/* ─── Variables ──────────────────────────────────────────── */
:root {
    --primary:       #2d5a3d;
    --primary-dark:  #1a3828;
    --primary-light: #e8f5ec;
    --accent:        #e8763a;
    --accent-dark:   #c9621f;
    --gold:          #c9a84c;
    --text:          #1c1c1e;
    --text-muted:    #6e6e73;
    --cream:         #faf7f2;
    --white:         #ffffff;
    --border:        #ebe8e3;
    --radius-sm:     8px;
    --radius:        16px;
    --radius-lg:     24px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
    --shadow:        0 6px 24px rgba(0,0,0,.09);
    --shadow-lg:     0 16px 48px rgba(0,0,0,.13);
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', -apple-system, sans-serif;
    --transition:    .22s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ─── Announcement Bar ───────────────────────────────────── */
.announcement-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.9);
    text-align: center;
    font-size: .78rem;
    font-weight: 500;
    padding: .5rem 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.announcement-bar i { color: var(--gold); }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark) !important;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 2px 8px rgba(45,90,61,.35);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: .875rem;
    letter-spacing: .01em;
    padding: .4rem .85rem !important;
    border-radius: 20px;
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.cart-btn {
    color: var(--text);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.cart-btn:hover { background: var(--cream); }

.cart-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
}

/* ─── Product Section ────────────────────────────────────── */
.product-section {
    background: var(--white);
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.product-gallery { position: sticky; top: 90px; }

.main-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-lg);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.main-image-wrapper:hover img { transform: scale(1.04); }


.thumbnail-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.thumb-btn {
    width: 70px;
    height: 70px;
    border: 2.5px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    background: var(--cream);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.thumb-btn.active { border-color: var(--primary); box-shadow: 0 2px 12px rgba(45,90,61,.25); }

/* ─── Product Info ───────────────────────────────────────── */
.product-info { padding-left: .5rem; }

.rating-row {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: .875rem;
    margin-bottom: .75rem;
}
.rating-row .bi-star-fill { font-size: .85rem; }

.product-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: .65rem;
    color: var(--text);
    letter-spacing: -.01em;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.price-block {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .3rem;
}

.sale-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -.02em;
}


/* ─── Divider ────────────────────────────────────────────── */
hr { border-color: var(--border); opacity: 1; }

/* ─── Selector Labels ────────────────────────────────────── */
.selector-label { font-weight: 600; font-size: .875rem; }
.size-guide-link { font-size: .8rem; color: var(--primary); text-decoration: none; }
.size-guide-link:hover { text-decoration: underline; }

/* ─── Size Buttons ───────────────────────────────────────── */
.size-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }

.size-btn {
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    padding: .65rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
    line-height: 1.3;
    color: var(--text);
}
.size-btn .size-dims {
    font-size: .62rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 3px;
}
.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.size-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(45,90,61,.12);
}

/* ─── Qty Control ────────────────────────────────────────── */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
}
.qty-control button {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-control button:hover { background: var(--cream); color: var(--primary); }
.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
    font-weight: 700;
    font-size: .95rem;
    outline: none;
    padding: 0;
    height: 44px;
    background: var(--white);
}

/* ─── CTA Buttons ────────────────────────────────────────── */
.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: .95rem 1.75rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-add-cart:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,90,61,.3);
}
.btn-add-cart:active { transform: translateY(0); }

.btn-buy-now, a.btn-buy-now {
    background: linear-gradient(135deg, var(--accent) 0%, #d4622a 100%);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: .95rem 1.75rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: all var(--transition);
    text-align: center;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,118,58,.4);
    color: #fff !important;
}
.btn-buy-now:active { transform: translateY(0); }

/* ─── Trust Badges ───────────────────────────────────────── */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.trust-item i { color: var(--primary); font-size: .95rem; flex-shrink: 0; }

/* ─── Section Titles ─────────────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}
.section-title + .section-sub {
    color: var(--text-muted);
    font-size: .95rem;
    margin-top: -.25rem;
}

/* ─── Features Section ───────────────────────────────────── */
.features-section { background: var(--cream); }

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), #c8edd4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 auto 1.1rem;
}

.feature-card h6 {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: var(--text);
}
.feature-card p {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ─── Size Table ─────────────────────────────────────────── */
.size-table-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.size-table { margin: 0; }
.size-table thead tr {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.size-table thead th { font-weight: 600; padding: 1rem 1.1rem; border: none; font-size: .875rem; }
.size-table tbody tr { transition: background var(--transition); }
.size-table tbody tr:hover { background: var(--primary-light); }
.size-table td { padding: .85rem 1.1rem; vertical-align: middle; border-color: var(--border); font-size: .875rem; }
.size-table td strong { font-size: 1rem; color: var(--primary-dark); }
.size-table td .text-primary { color: var(--primary) !important; }

/* ─── Reviews ────────────────────────────────────────────── */
.reviews-section { background: var(--white); }

.review-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--border);
    line-height: 1;
    pointer-events: none;
}

.review-header { display: flex; align-items: center; gap: .75rem; }

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(45,90,61,.25);
}

.review-text { color: var(--text); font-size: .875rem; line-height: 1.7; }

.verified-badge {
    font-size: .72rem;
    color: var(--primary);
    font-weight: 600;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-accordion .accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: .65rem;
    overflow: hidden;
    background: var(--white);
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: .9rem;
    background: var(--white);
    color: var(--text);
    padding: 1.1rem 1.4rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}
.faq-accordion .accordion-body { font-size: .875rem; color: var(--text-muted); line-height: 1.7; padding: 1rem 1.4rem 1.25rem; }

/* ─── Cart ───────────────────────────────────────────────── */
.cart-items-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fdfcfb; }

.cart-item-img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream);
    border: 1px solid var(--border);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-price { text-align: right; flex-shrink: 0; }

.qty-control-sm {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
}
.qty-control-sm button {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--text);
}
.qty-control-sm button:hover { background: var(--cream); }
.qty-control-sm span {
    width: 30px;
    text-align: center;
    font-weight: 700;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    font-size: .82rem;
    color: var(--text);
}

.btn-remove {
    background: none;
    border: none;
    color: #c0392b;
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 500;
    opacity: .8;
    transition: opacity var(--transition);
}
.btn-remove:hover { opacity: 1; }

/* ─── Order Summary Card ─────────────────────────────────── */
.order-summary-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.order-summary-card h5 {
    font-family: var(--font-display);
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .7rem;
    font-size: .875rem;
    color: var(--text-muted);
}
.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
}

.payment-note { font-size: .78rem; }
.btn-back-shop {
    color: var(--primary);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.btn-back-shop:hover { text-decoration: underline; color: var(--primary-dark); }

/* ─── Checkout ───────────────────────────────────────────── */
.checkout-section {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.35rem;
    color: var(--text);
}

.step-num {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(45,90,61,.3);
}

.ssl-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-size: .8rem;
    color: var(--primary-dark);
}

.form-label { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }

.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: .7rem .95rem;
    font-size: .875rem;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.form-control::placeholder { color: #b0b0b8; }
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,90,61,.1);
    outline: none;
    background: var(--white);
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.1rem;
}
.checkout-item-img {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream);
    border: 1px solid var(--border);
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--text-muted);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.x-small { font-size: .75rem; }

/* ─── Confirmation ───────────────────────────────────────── */
.confirmation-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.confirm-icon { font-size: 4.5rem; color: var(--primary); }
.confirm-details {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--border);
}
.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
}
.confirm-detail-row:last-child { border-bottom: none; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.65);
    padding: 4rem 0 2.5rem;
    margin-top: 5rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: .02em;
}
.footer-heading {
    color: rgba(255,255,255,.5);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: .65rem; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.payment-icons { display: flex; flex-wrap: wrap; gap: .6rem; }
.payment-icons span {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    padding: .35rem .8rem;
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.site-footer hr { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }

/* ─── Page Title ─────────────────────────────────────────── */
.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ─── Toast ──────────────────────────────────────────────── */
#cartToast {
    background: var(--primary-dark);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ─── Scroll fade-in (JS enhanced) ──────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Stripe Redirect Notice ────────────────────────────── */
.stripe-redirect-notice {
    background: #f8f7ff;
    border: 1.5px solid #e0dcff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.stripe-logo-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .65rem;
    font-weight: 600;
    font-size: .9rem;
    color: #32325d;
}

/* ─── Order Status Pills ─────────────────────────────────── */
.status-pill {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: capitalize;
}
.status-pending    { background: #fff8e1; color: #b45309; }
.status-processing { background: #e0f0ff; color: #1d4ed8; }
.status-fulfilled  { background: var(--primary-light); color: var(--primary-dark); }
.status-failed     { background: #fee2e2; color: #b91c1c; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .product-gallery { position: static; }
}

@media (max-width: 768px) {
    .product-title { font-size: 1.6rem; }
    .sale-price { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .trust-badges { grid-template-columns: 1fr 1fr; }
    .size-btn { min-width: 64px; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-price { width: 100%; text-align: left; }
    .product-section { padding-top: 1.5rem; }
}
