@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --shop-gradient: linear-gradient(90deg, #de0e0e, #fc8823);
    --shop-dark: #1a1a1a;
    --shop-muted: #6b7280;
    --shop-border: #ececec;
    --shop-bg: #faf9f7;
    --shop-radius: 14px;
    --shop-radius-sm: 8px;
    --shop-shadow: 0 4px 20px rgba(20, 20, 20, 0.06);
    --shop-shadow-hover: 0 14px 32px rgba(20, 20, 20, 0.12);
}

.shop-page-header,
.shop-sidebar,
.shop-grid,
.pdp-title,
.pdp-price,
.pdp-brand,
.pdp-specs-card,
.pdp-desc-card,
.pdp-similar-heading {
    font-family: 'Poppins', sans-serif;
}

.shop-page-header {
    position: relative;
    background: linear-gradient(120deg, #ffcf9b 0%, #ffe4c2 100%);
    color: #7a3e12;
    padding: 64px 20px 84px;
    text-align: center;
    margin-bottom: 36px;
    overflow: hidden;
    isolation: isolate;
}

.shop-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.5;
    z-index: -1;
}

.shop-page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 40px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
    z-index: -1;
}

.shop-page-header-blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.shop-page-header-blob.b1 {
    width: 220px;
    height: 220px;
    top: -90px;
    left: -60px;
    background: radial-gradient(circle, rgba(222, 14, 14, 0.16) 0%, transparent 70%);
}

.shop-page-header-blob.b2 {
    width: 260px;
    height: 260px;
    bottom: -140px;
    right: -60px;
    background: radial-gradient(circle, rgba(222, 14, 14, 0.14) 0%, transparent 70%);
}

.shop-page-header-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.55);
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.shop-page-header h1 {
    position: relative;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: #7a3e12;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}

.shop-page-header p {
    position: relative;
    color: #8a5a2e;
    margin-top: 10px;
    font-size: 15px;
}

.shop-page-header-cart {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 2;
}

.shop-page-header-cart .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #b45309;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 18px;
    box-shadow: 0 6px 16px rgba(122, 62, 18, 0.18);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-page-header-cart .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(122, 62, 18, 0.24);
}

/* Hero banner (plain color) */
.shop-hero-wrap {
    margin: 0 0 56px;
    padding: 0;
}

@media (max-width: 767px) {
    .shop-hero-wrap {
        margin: 0 0 32px;
    }
}

.shop-hero-plain {
    position: relative;
    background: #fcf1eb;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 991px) {
    .shop-hero-plain {
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .shop-hero-plain {
        min-height: 200px;
        padding: 32px 0;
    }
}

.shop-hero-title-overlay-inner {
    width: 100%;
    text-align: center;
}

.shop-hero-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #a1673a;
    pointer-events: auto;
}

.shop-hero-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-hero-breadcrumb li:not(:last-child)::after {
    content: '/';
    color: #c99a6d;
}

.shop-hero-breadcrumb a {
    color: #a1673a;
    text-decoration: none;
}

.shop-hero-breadcrumb a:hover {
    color: #7a3e12;
    text-decoration: underline;
}

.shop-hero-breadcrumb li:last-child {
    color: #7a3e12;
}

.shop-hero-title-overlay-inner h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #7a3e12;
    letter-spacing: -0.01em;
}

.shop-hero-title-overlay-inner p {
    margin: 10px auto 0;
    color: #8a5a2e;
    font-size: 15px;
    line-height: 1.5;
    max-width: 560px;
}

.shop-hero-cart-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    pointer-events: auto;
}

.shop-hero-cart-icon .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #b45309;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 18px;
    box-shadow: 0 6px 16px rgba(122, 62, 18, 0.18);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-hero-cart-icon .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(122, 62, 18, 0.24);
}

@media (max-width: 767px) {
    .shop-hero-title-overlay-inner h1 {
        font-size: 24px;
    }

    .shop-hero-title-overlay-inner p {
        font-size: 13px;
    }

    .shop-hero-cart-icon {
        top: 14px;
        right: 16px;
    }

    .shop-hero-cart-icon .btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}

.shop-sidebar .card {
    border: none;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-sidebar .list-group-item {
    border: none;
    padding: 9px 0;
}

.shop-sidebar h6 {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-top: 6px;
}

.shop-sidebar .list-group-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.shop-sidebar .list-group-item a:hover,
.shop-sidebar .list-group-item a.active {
    color: #de0e0e;
    font-weight: 600;
    padding-left: 4px;
}

.shop-sidebar input.form-control {
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.shop-card {
    background: #fff;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--shop-border);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-shadow-hover);
}

.shop-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: linear-gradient(180deg, #fbfbfb, #f3f3f3);
    padding: 16px;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card-image {
    transform: scale(1.04);
}

.shop-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.shop-card-content {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--shop-border);
}

.shop-card-content h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--shop-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.shop-card-content .shop-price {
    font-weight: 700;
    color: var(--shop-dark);
    font-size: 17px;
    margin: 4px 0 14px;
}

.shop-card-content .shop-price .compare-at {
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 13px;
}

.shop-btn {
    background: var(--shop-gradient);
    color: #fff;
    border-radius: var(--shop-radius-sm);
    padding: 9px 18px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 6px 16px rgba(222, 14, 14, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: none;
}

.shop-btn:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(222, 14, 14, 0.3);
}

.shop-detail-gallery img {
    width: 100%;
    border-radius: var(--shop-radius);
    background: #f8f8f8;
    object-fit: contain;
    max-height: 420px;
}

.shop-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.shop-detail-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
    transition: border-color 0.15s ease;
}

.shop-detail-thumbs img:hover {
    border-color: #fc8823;
}

.shop-empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--shop-muted);
    width: 100%;
    font-size: 15px;
}

.shop-empty::before {
    content: '🔍';
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Cart / Checkout shared components */

.shop-panel {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    padding: 24px;
    margin-bottom: 22px;
}

.shop-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.shop-panel h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin: 0;
}

.shop-panel h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-bottom: 12px;
}

.shop-radio-option {
    position: relative;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    padding: 14px 16px 14px 42px;
    margin-bottom: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-radio-option:has(input:checked) {
    border-color: #fc8823;
    background: #fff8f2;
}

.shop-radio-option:last-child {
    margin-bottom: 0;
}

.shop-radio-option .form-check-input {
    position: absolute;
    left: 16px;
    top: 16px;
    margin: 0;
}

.shop-radio-option .form-check-label {
    width: 100%;
    cursor: pointer;
}

.shop-address-form-card {
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    background: #fff8f2;
    padding: 20px;
    margin-top: 16px;
}

.shop-summary-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.shop-summary-card h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-bottom: 16px;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.shop-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-dark);
    border-top: 1px solid var(--shop-border);
    margin-top: 8px;
    padding-top: 14px;
}

.shop-table-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.shop-table-card table {
    margin-bottom: 0;
}

.shop-table-card thead th {
    background: var(--shop-bg);
    border-bottom: none;
    color: var(--shop-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 14px 16px;
}

.shop-table-card tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--shop-border);
}

.shop-line-item-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: linear-gradient(180deg, #fbfbfb, #f3f3f3);
    border-radius: 10px;
    border: 1px solid var(--shop-border);
}

.shop-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.shop-qty-stepper input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-weight: 600;
}

.shop-qty-stepper button {
    width: 34px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shop-qty-stepper button:hover {
    background: #ececec;
}

.shop-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
    color: #c62828;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-icon-link:hover {
    background: #fdecea;
    border-color: #c62828;
    color: #c62828;
}

.shop-order-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

/* Order status badges */
.shop-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.shop-status-badge.is-pending { background: #fdf3e3; color: #b8860b; }
.shop-status-badge.is-processing { background: #e6f0ff; color: #1d5fd6; }
.shop-status-badge.is-shipped { background: #eee6ff; color: #6c3ce9; }
.shop-status-badge.is-delivered { background: #e8f5e9; color: #2e7d32; }
.shop-status-badge.is-cancelled { background: #fdecea; color: #c62828; }
.shop-status-badge.is-return_requested { background: #fdf3e3; color: #b8860b; }
.shop-status-badge.is-returned { background: #eceff1; color: #546e7a; }
.shop-status-badge.is-paid { background: #e8f5e9; color: #2e7d32; }
.shop-status-badge.is-failed { background: #fdecea; color: #c62828; }

/* Order detail page */
.shop-order-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.shop-order-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-dark);
    margin: 0 0 4px;
}

.shop-order-head .text-muted {
    font-size: 13px;
}

.shop-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 767px) {
    .shop-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.shop-info-block dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    font-weight: 700;
    margin-top: 10px;
}

.shop-info-block dt:first-child {
    margin-top: 0;
}

.shop-info-block dd {
    margin: 2px 0 0;
    color: var(--shop-dark);
    font-size: 14px;
    line-height: 1.5;
}

.shop-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-timeline li {
    position: relative;
    padding: 0 0 22px 28px;
    border-left: 2px solid var(--shop-border);
}

.shop-timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.shop-timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc8823;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #fc8823;
}

.shop-timeline li:first-child::before {
    background: #2e7d32;
    box-shadow: 0 0 0 2px #2e7d32;
}

.shop-timeline-date {
    display: block;
    font-size: 12px;
    color: var(--shop-muted);
    margin-top: 3px;
}

.shop-timeline-note {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}
