/* Lavender's Glam Shop — Premium Beauty Boutique Theme */

:root {
    --shop-ivory: #fbf7f0;
    --shop-lavender-soft: #f5eefc;
    --shop-rose-promo: #dfa8a8;
    --shop-rose-light: #fdf5f5;
    --shop-champagne: #ecdcb9;
    --shop-plum-dark: #1b0f22;
    --shop-charcoal: #252525;
    --shop-border-gold: rgba(199, 164, 101, 0.35);
}

body.shop-page-body {
    background: 
        radial-gradient(circle at 5% 5%, rgba(185,142,234,.12), transparent 40rem),
        radial-gradient(circle at 95% 5%, rgba(199,164,101,.10), transparent 35rem),
        linear-gradient(180deg, var(--bg), #faf5ec 60%, #f6ecff 100%);
    color: var(--ink);
}

/* 1. Header & Navigation Updates */
.desktop-nav a.active-nav::after,
.desktop-nav a.active::after {
    width: 100% !important;
    left: 0 !important;
}

/* 2. Shop Hero */
.shop-hero {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(251, 247, 240, 0.6) 0%, rgba(245, 238, 252, 0.4) 100%);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.shop-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(185, 142, 234, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.shop-hero-eyebrow {
    color: var(--gold-deep);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}
.shop-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: var(--shop-plum-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}
.shop-hero-desc {
    color: var(--muted);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    max-width: 65ch;
    margin: 0 auto 2rem;
}
.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--shop-rose-light);
    border: 1px solid var(--shop-rose-promo);
    color: var(--danger);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

/* 3. Search & Category Navigation */
.shop-toolbar {
    margin-bottom: 2.5rem;
}
.shop-search-wrapper {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.shop-search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: .9rem 3.2rem .9rem 3rem;
    border-radius: var(--radius-pill);
    font-size: .92rem;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.shop-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(199, 164, 101, 0.15);
    outline: none;
}
.shop-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
/* Visible search submit button — keyboard & mouse accessible */
.shop-search-submit {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--plum), var(--lavender-deep));
    border: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 4px 12px rgba(36, 21, 43, .18);
}
.shop-search-submit:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(36, 21, 43, .28);
}
.shop-search-submit:focus-visible {
    outline: 3px solid rgba(199,164,101,.7);
    outline-offset: 3px;
}
.shop-categories-nav {
    display: flex;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .2rem 0;
}
.shop-category-pill {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    padding: .55rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--ink-soft);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.shop-category-pill:hover,
.shop-category-pill.active {
    background: var(--shop-lavender-soft);
    border-color: var(--lavender);
    color: var(--lavender-deep);
}

/* Active filter chips — improved tap targets & accessibility */
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line-strong);
    padding: .38rem .85rem .38rem .75rem;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.filter-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    background: rgba(36, 21, 43, .07);
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    transition: background .18s var(--ease), color .18s var(--ease);
    text-decoration: none;
    flex-shrink: 0;
}
.filter-remove-btn:hover {
    background: rgba(184, 70, 70, .14);
    color: var(--danger);
}

/* Catalog sort select — site-consistent focus ring */
.catalog-sort-select {
    border: 1px solid var(--line-strong);
    padding: .38rem .9rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-family: var(--font-sans);
    background: white;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.catalog-sort-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199,164,101,.18);
}

/* Delivery & Payment responsive grid */
.delivery-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 680px) {
    .delivery-payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* Delivery panel subheadings */
.delivery-panel-heading {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--shop-plum-dark);
    font-weight: 500;
}

/* 4. Product Cards Visuals */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.2rem);
    margin-bottom: 3.5rem;
}
.shop-product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--shop-border-gold);
}
.product-card-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fbfbfc;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.product-card-media .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}
.shop-product-card:hover .product-card-media .main-img {
    opacity: 0;
}
.shop-product-card:hover .product-card-media .hover-img {
    opacity: 1;
    transform: scale(1.05);
}
.product-card-badges {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    z-index: 2;
    pointer-events: none;
}
.shop-badge {
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .6rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: inline-block;
    width: max-content;
}
.badge-instock { background: var(--success); color: white; }
.badge-presale { background: var(--shop-rose-promo); color: white; }
.badge-new { background: var(--gold); color: #1c150c; }
.badge-bestseller { background: var(--lavender-deep); color: white; }
.badge-homemade { background: #d2c0e8; color: #322144; }

.wishlist-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
    z-index: 2;
}
.wishlist-btn:hover {
    background: white;
    color: var(--danger);
    transform: scale(1.08);
}
.wishlist-btn.active {
    background: white;
    color: var(--danger);
    fill: var(--danger);
    border-color: rgba(184,70,70,0.3);
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: .85rem;
    display: flex;
    justify-content: center;
    transition: bottom .35s var(--ease);
    z-index: 3;
    pointer-events: none;
}
.shop-product-card:hover .product-card-actions {
    bottom: 0;
}
.product-card-actions .btn {
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
/* On touch devices (no precise hover), always show the Add to Cart button */
@media (hover: none) {
    .product-card-actions {
        position: static;
        bottom: auto;
        pointer-events: auto;
        padding: 0 1.2rem 1.2rem;
    }
}

.product-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-brand {
    font-size: .68rem;
    font-weight: 900;
    color: var(--gold-deep);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.product-card-title {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .6rem;
    line-height: 1.3;
}
.product-card-title a {
    color: var(--ink);
    transition: color .25s var(--ease);
}
.product-card-title a:hover {
    color: var(--lavender-deep);
}
.product-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: .76rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.product-card-shades {
    color: var(--lavender-deep);
    font-weight: 600;
}
.product-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.product-card-price {
    display: flex;
    flex-direction: column;
}
.product-card-price strong {
    font-size: 1.15rem;
    color: var(--shop-plum-dark);
}
.product-card-price del {
    font-size: .78rem;
    color: var(--muted);
}
.save-pct {
    font-size: .68rem;
    font-weight: 800;
    color: var(--danger);
}
.card-action-btn {
    font-size: .65rem !important;
    padding: .5rem .9rem !important;
}

/* 5. The Lavender Edit Showcase */
.shop-preview {
    background: #fffaf4;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.editorial-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: 3.5rem;
}
@media (max-width: 768px) {
    .editorial-panel {
        grid-template-columns: 1fr;
    }
}
.editorial-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--shop-border-gold);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1.1;
}
.editorial-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editorial-copy {
    display: flex;
    flex-direction: column;
}
.shop-preview-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    color: var(--shop-plum-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}
.shop-preview-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}
.presale-announcement-card {
    background: var(--shop-rose-light);
    border: 1px solid var(--shop-rose-promo);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.badge-presale-pulse {
    background: var(--danger);
    color: white;
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: .35rem .75rem;
    border-radius: var(--radius-pill);
    animation: presale-pulse-glow 2s infinite;
}
@keyframes presale-pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 70, 70, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(184, 70, 70, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 70, 70, 0); }
}
.presale-announcement-card p {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 0;
}
.editorial-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Category cards */
.category-heading-center {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    color: var(--shop-plum-dark);
    margin-bottom: 2.2rem;
    position: relative;
}
.category-heading-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: .75rem auto 0;
}
.shop-by-category-wrapper {
    margin-bottom: 4rem;
}
.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
@media (max-width: 992px) {
    .shop-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .shop-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--shop-border-gold);
    box-shadow: var(--shadow-md);
}
.category-media {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: .85rem;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: var(--shop-lavender-soft);
}
.category-card strong {
    font-size: .8rem;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.25;
}

/* Brand Strip */
.shop-brands-strip-wrapper {
    margin: 4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
    background: var(--surface);
    overflow: hidden;
}
.brands-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.brands-marquee-track {
    display: flex;
    gap: 3.5rem;
    white-space: nowrap;
    animation: marquee-scroll 45s linear infinite;
}
.brands-marquee-track span {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .06em;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Authenticity Panel */
.shop-authenticity-panel {
    background: linear-gradient(135deg, var(--surface-2), var(--shop-lavender-soft));
    border: 1px solid var(--shop-border-gold);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    box-shadow: var(--shadow-md);
}
.authenticity-badge {
    background: rgba(71, 122, 86, 0.08);
    color: var(--success);
    border: 1px solid rgba(71, 122, 86, 0.24);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    padding: .45rem 1rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 1.25rem;
}
.shop-authenticity-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: .85rem;
}
.shop-authenticity-panel p {
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto;
    font-size: .95rem;
}

/* Final CTA */
.shop-final-cta {
    text-align: center;
    padding: 3rem 0 1rem;
}
.shop-final-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1.5rem;
}

/* 6. Product Detail View */
.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 4rem;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-stage-wrapper {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: white;
}
.main-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease);
}
.main-stage-wrapper:hover .main-stage-img {
    transform: scale(1.1);
}
.gallery-thumbs {
    display: flex;
    gap: .75rem;
}
.thumb-btn {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    overflow: hidden;
    background: white;
    padding: 0;
    transition: border-color .25s var(--ease);
}
.thumb-btn.active {
    border-color: var(--lavender);
    outline: 2px solid rgba(185, 142, 234, 0.25);
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel {
    display: flex;
    flex-direction: column;
}
.pinfo-brand {
    font-size: .8rem;
    font-weight: 900;
    color: var(--gold-deep);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.pinfo-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: .75rem;
}
.pinfo-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--muted);
    font-size: .82rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.pinfo-price-box {
    margin-bottom: 1.75rem;
}
.pinfo-price {
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--shop-plum-dark);
}
.pinfo-price del {
    font-size: 1.1rem;
    color: var(--muted);
    margin-left: .5rem;
}

/* Variant Selector */
.pinfo-variants {
    margin-bottom: 2rem;
}
.variant-title-row {
    font-size: .82rem;
    font-weight: 750;
    color: var(--ink-soft);
    margin-bottom: .75rem;
    display: flex;
    justify-content: space-between;
}
.swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.swatch-item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    outline: 1px solid var(--line-strong);
    cursor: pointer;
    transition: transform .25s var(--ease), outline-color .25s var(--ease);
}
.swatch-item:hover {
    transform: scale(1.08);
}
.swatch-item.active {
    outline: 2px solid var(--lavender-deep);
    transform: scale(1.05);
}
.swatch-tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    font-size: .65rem;
    font-weight: 800;
    padding: .35rem .6rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}
.swatch-item:hover .swatch-tooltip {
    display: block;
}

/* Dispatch details */
.dispatch-box {
    background: var(--shop-lavender-soft);
    border: 1px solid rgba(185, 142, 234, 0.25);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
}
.dispatch-box strong {
    display: block;
    color: var(--lavender-deep);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}
.dispatch-box p {
    font-size: .88rem;
    margin: 0;
}

/* Quantity & CTA row */
.pinfo-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: white;
    overflow: hidden;
}
.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    transition: background .2s var(--ease);
}
.qty-btn:hover { background: rgba(0,0,0,0.03); }
.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 750;
    font-size: .95rem;
}
.pinfo-cta-btn {
    flex-grow: 1;
    height: 46px;
    font-size: .82rem !important;
}

/* Checkbox Acknowledgement */
.presale-ack-row {
    display: flex;
    gap: .75rem;
    background: var(--shop-rose-light);
    border: 1px solid var(--shop-rose-promo);
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}
.presale-ack-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--danger);
    cursor: pointer;
}
.presale-ack-row label {
    font-size: .78rem;
    line-height: 1.35;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
}

/* Accordion Tab panel */
.product-details-accordion {
    margin-top: 3.5rem;
    border-top: 1px solid var(--line);
}
.accordion-tab {
    border-bottom: 1px solid var(--line);
}
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.accordion-header::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
    transition: transform .25s var(--ease);
}
.accordion-tab.active .accordion-header::after {
    content: '−';
}
.accordion-content {
    display: none;
    padding-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
}
.accordion-tab.active .accordion-content {
    display: block;
}

/* 7. Cart Drawer Slide-out */
/* Cart overlay — use visibility so opacity transition fires correctly */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 21, 43, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
    pointer-events: none;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: min(100%, 450px);
    height: 100%;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right .35s var(--ease);
}
.cart-drawer.active {
    right: 0;
}
.cart-drawer-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}
.cart-drawer-header h2 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
}
.cart-close-trigger {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    /* Minimum 44×44 touch target */
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-close-trigger:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.cart-item-card {
    display: flex;
    gap: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: .85rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.cart-item-media {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cart-item-brand {
    font-size: .65rem;
    font-weight: 900;
    color: var(--gold-deep);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.cart-item-name {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.cart-item-variant {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-item-price strong {
    font-size: .95rem;
    color: var(--shop-plum-dark);
}
.cart-item-remove {
    position: absolute;
    top: .65rem;
    right: .65rem;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.15rem;
    cursor: pointer;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--line);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: .5rem;
}
.cart-summary-row.total-row {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--shop-plum-dark);
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed var(--line);
    margin-bottom: 1.25rem;
}
.cart-checkout-btn {
    height: 48px;
    font-size: .8rem !important;
}

/* 8. Checkout Form styling */
.checkout-container-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    margin-bottom: 4rem;
}
@media (max-width: 992px) {
    .checkout-container-grid {
        grid-template-columns: 1fr;
    }
}
.checkout-form-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-sm);
}
.checkout-section-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
    color: var(--shop-plum-dark);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}
.checkout-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 576px) {
    .checkout-input-row {
        grid-template-columns: 1fr;
    }
}
.form-group-phone {
    display: flex;
    gap: .5rem;
}
.phone-country-select {
    width: 90px;
    flex-shrink: 0;
    background: var(--shop-ivory);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    padding: 0 .5rem;
    font-size: .85rem;
}

/* Payment choices */
.payment-choices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 576px) {
    .payment-choices-grid {
        grid-template-columns: 1fr;
    }
}
.payment-choice-card {
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 1rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s var(--ease), background .25s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 750;
}
.payment-choice-card.active {
    border-color: var(--lavender-deep);
    background: var(--shop-lavender-soft);
    color: var(--lavender-deep);
}
.payment-choice-card input[type="radio"] {
    display: none;
}

.checkout-summary-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}
.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: .5rem;
}
.summary-item-row {
    display: flex;
    justify-content: space-between;
    gap: .85rem;
    font-size: .82rem;
}
.summary-item-name {
    font-weight: 600;
}
.summary-item-price {
    font-weight: 700;
    white-space: nowrap;
}

/* 9. Administration System styling */
.admin-shop-panel {
    display: none;
}
.admin-shop-panel.active {
    display: block;
}
.swatch-color-picker-input {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.authenticity-badge-private {
    background: rgba(199, 164, 101, 0.1);
    color: var(--gold-deep);
    border: 1px dashed var(--gold);
    font-size: .65rem;
    padding: .2rem .5rem;
    border-radius: 4px;
}
