/* ==========================================================================
   MYTH VERSE — SIDEBAR + BOOK-FLIP ENGINE STYLES
   ========================================================================== */

/* ── App Shell: sidebar + main locked to viewport ──────────────────────── */
.app-shell {
    position: fixed;
    top: 0;             /* no banner anymore */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: 230px;
    flex-shrink: 0;
    height: 100%;
    background: hsl(220, 25%, 5%);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 0 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,143,56,0.2) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(212,143,56,0.2); border-radius: 2px; }

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 24px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}
.sidebar-logo:hover { opacity: 0.85; }
.sidebar-brand { line-height: 1; }
.sidebar-brand .logo-myth  { font-size: 16px; font-weight: 800; letter-spacing: 1.5px; color: #fff; }
.sidebar-brand .logo-verse { font-size: 16px; font-weight: 800; letter-spacing: 1.5px; color: var(--color-accent-gold); }

/* Search */
.sidebar-search {
    position: relative;
    margin: 0 16px 20px;
}
.sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 12px;
    pointer-events: none;
}
.sidebar-search input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 9px 12px 9px 32px;
    color: var(--color-text-white);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}
.sidebar-search input:focus {
    border-color: var(--color-accent-gold);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 12px rgba(212,143,56,0.12);
}
.sidebar-search input::placeholder { color: var(--color-text-muted); font-size: 12px; }

/* Nav */
.sidebar-nav {
    padding: 0 10px;
    flex: 1;
}
.sidebar-nav-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-text-muted);
    padding: 0 10px;
    margin-bottom: 6px;
    opacity: 0.5;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.sidebar-link i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-white);
}
.sidebar-link.active {
    background: rgba(212,143,56,0.12);
    color: var(--color-accent-gold);
    border: 1px solid rgba(212,143,56,0.2);
}

/* Promo badge */
.sidebar-promo {
    margin: 20px 16px 16px;
    background: rgba(212,143,56,0.08);
    border: 1px solid rgba(212,143,56,0.2);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.sidebar-promo-code {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-accent-gold);
    margin-bottom: 4px;
}
.sidebar-promo-label {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* WhatsApp button */
.sidebar-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 12px;
    padding: 10px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 10px;
    color: #25d366;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sidebar-wa-btn:hover {
    background: rgba(37,211,102,0.18);
    border-color: rgba(37,211,102,0.4);
}

/* Social links row */
.sidebar-footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}
.sidebar-footer-links a {
    color: var(--color-text-muted);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sidebar-footer-links a:hover { color: var(--color-accent-gold); }

/* ── Main content ───────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ── Book stage: fills remaining space ──────────────────────────────────── */
.book-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,143,56,0.03) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(212,143,56,0.02) 0%, transparent 55%);
    height: 100%;
}

/* ── Book wrapper ───────────────────────────────────────────────────────── */
.book-wrapper {
    width: 100%;
    max-width: 1060px;
    flex: 1;
    min-height: 0;
    perspective: 2400px;
    perspective-origin: 50% 40%;
    display: flex;
    align-items: stretch;
}

/* ── The book ───────────────────────────────────────────────────────────── */
.book {
    width: 100%;
    display: flex;
    align-items: stretch;
    border-radius: 4px 16px 16px 4px;
    box-shadow:
        0 30px 70px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    min-height: 0;
    flex: 1;
}

/* Spine shadow */
.book::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0,0,0,0.6) 20%,
        rgba(0,0,0,0.85) 50%,
        rgba(0,0,0,0.6) 80%,
        transparent 100%
    );
    z-index: 10;
    pointer-events: none;
}

/* ── Spreads ────────────────────────────────────────────────────────────── */
.book-spread {
    display: none;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
}
.book-spread.active {
    display: flex;
}

/* ── Pages ──────────────────────────────────────────────────────────────── */
.book-page {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: hsl(220, 22%, 9%);
    transform-style: preserve-3d;
    will-change: transform;
    min-width: 0;
}
.book-page.left-page  { transform-origin: right center; border-right: 1px solid rgba(0,0,0,0.5); }
.book-page.right-page { transform-origin: left center;  border-left:  1px solid rgba(0,0,0,0.3); }

/* Flip animation */
.book-page.flipping {
    transition: transform 0.65s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
.book-page.left-page.flip-out   { transform: rotateY(-180deg); z-index: 20; }
.book-page.right-page.flip-in   { transform: rotateY(0deg);    z-index: 20; }

/* Shadow sweep */
.book-page::after {
    content: '';
    position: absolute;
    top: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
}
.book-page.left-page::after  { right:0; background: linear-gradient(to left,  rgba(0,0,0,0.45), transparent 60%); }
.book-page.right-page::after { left:0;  background: linear-gradient(to right, rgba(0,0,0,0.45), transparent 60%); }
.book-page.shadow-on::after  { opacity: 1; }

/* Gold top accent on each page */
.book-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212,143,56,0.25) 30%,
        rgba(212,143,56,0.5) 50%,
        rgba(212,143,56,0.25) 70%,
        transparent 100%
    );
    z-index: 3;
}

/* ── Page inner: default fade-in, fades out during flip ─────────────────── */
.page-inner {
    width: 100%;
    height: 100%;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;          /* allow scroll when content overflows */
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.28s ease;
    /* thin styled scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(212,143,56,0.25) transparent;
}
.page-inner::-webkit-scrollbar         { width: 4px; }
.page-inner::-webkit-scrollbar-track   { background: transparent; }
.page-inner::-webkit-scrollbar-thumb   {
    background: rgba(212,143,56,0.25);
    border-radius: 2px;
}
.page-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(212,143,56,0.5);
}

/* Content fades out as page starts rotating */
.book-page.flipping .page-inner,
.page-inner.fading {
    opacity: 0 !important;
    transition: opacity 0.22s ease !important;
}

/* Content snaps to 0 then fades in on new spread */
.page-inner.fading-in {
    opacity: 0;
    transition: none;
}

.page-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    opacity: 0.55;
}
.right-label { text-align: right; }

/* ── Cover ──────────────────────────────────────────────────────────────── */
.cover-page { justify-content: center; background: linear-gradient(145deg, hsl(220,25%,5%), hsl(220,22%,9%)); }
.cover-logo-area { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: 1; justify-content: center; }
.cover-title { font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; background: linear-gradient(135deg,#fff 30%,#f59e0b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cover-sub   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; color: var(--color-accent-gold); }
.cover-desc  { font-size: 13px; color: var(--color-text-muted); line-height: 1.65; max-width: 300px; }
.cover-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-gold-dark));
    color: hsl(220,25%,4%);
    border: none; border-radius: 28px;
    font-size: 12px; font-weight: 800; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px var(--color-accent-gold-glow);
    text-decoration: none;
}
.cover-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--color-accent-gold-glow); }
.cover-mockup-side { background: linear-gradient(145deg,hsl(220,22%,7%),hsl(220,20%,11%)); }
.cover-img-frame { width:100%; height:100%; position:relative; overflow:hidden; }
.cover-img-frame img { width:100%; height:100%; object-fit:cover; opacity:.85; filter:brightness(.9) contrast(1.1); transition:transform .8s ease; }
.cover-img-frame:hover img { transform:scale(1.04); }
.cover-img-overlay { position:absolute; inset:0; background:linear-gradient(to right, hsl(220,25%,6%) 0%, transparent 40%); }

/* ── Chapter headers ────────────────────────────────────────────────────── */
.chapter-header { margin-bottom: 18px; }
.chapter-eyebrow { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 4px; color: var(--color-accent-gold); margin-bottom: 6px; opacity: 0.85; }
.chapter-title { font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--color-text-white); letter-spacing: -0.3px; }
.chapter-desc { font-size: 12px; color: var(--color-text-muted); line-height: 1.55; margin-top: 8px; }

/* ── Product grid inside pages ──────────────────────────────────────────── */
.page-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    align-content: start;
}

/* Big card variant — 1 column, used for comics pages (3 per side) */
.page-product-grid--big {
    grid-template-columns: 1fr;
    gap: 14px;
}
.page-product-grid--big .page-card-img {
    aspect-ratio: 3 / 2;   /* wider image for comics big-card layout */
}
.page-product-grid--big .page-card-info {
    padding: 12px 14px;
}
.page-product-grid--big .page-card-title {
    font-size: 13px;
    margin-bottom: 3px;
}
.page-product-grid--big .page-card-price-sale {
    font-size: 14px;
}

.page-product-card {
    background: hsla(220,22%,12%,0.85);
    border: 1px solid var(--color-border-glass);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
    display: flex;
    flex-direction: column;
}
.page-product-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--color-border-glass-hover);
    box-shadow: 0 10px 24px rgba(0,0,0,0.5), 0 0 12px var(--color-accent-gold-glow);
}
/* ── Card image: padding-bottom intrinsic ratio (works in ALL flex/grid contexts) ─── */
.page-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%;    /* 4:3 ratio */
    background: #111316;
}
.page-card-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.page-product-card:hover .page-card-img { transform: scale(1.06); }

/* Big card: 3:2 ratio (wider, suits comics art) */
.page-product-grid--big .page-card-img-wrapper { padding-bottom: 60%; }
.page-card-info { padding: 9px 10px; }
.page-card-title { font-size: 11px; font-weight: 700; color: var(--color-text-white); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-card-dims  { font-size: 9px; color: var(--color-text-muted); margin-bottom: 4px; }
.page-card-price-row { display: flex; align-items: center; gap: 5px; }
.page-card-price-sale     { font-size: 12px; font-weight: 800; color: var(--color-accent-gold); }
.page-card-price-original { font-size: 10px; color: var(--color-text-muted); text-decoration: line-through; }
.page-card-badge {
    position: absolute; top: 6px; left: 6px;
    background: linear-gradient(135deg,#e53e3e,#c53030);
    color: white; font-size: 8px; font-weight: 800;
    padding: 2px 6px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: .5px; z-index: 2;
}

/* ── Story page ─────────────────────────────────────────────────────────── */
.story-content { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.story-stat-row { display: flex; gap: 12px; margin-top: 8px; }
.story-stat { flex: 1; background: hsla(220,22%,14%,.7); border: 1px solid var(--color-border-glass); border-radius: 10px; padding: 12px; text-align: center; }
.story-stat-num   { font-size: 22px; font-weight: 800; color: var(--color-accent-gold); line-height: 1; margin-bottom: 3px; }
.story-stat-label { font-size: 9px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Spec boxes */
.spec-box { display: flex; align-items: center; gap: 12px; background: hsla(220,22%,12%,.8); border: 1px solid var(--color-border-glass); border-radius: 10px; padding: 11px 14px; transition: all .3s ease; }
.spec-box:hover { border-color: var(--color-border-glass-hover); background: hsla(220,22%,15%,.9); }
.spec-box-icon { font-size: 16px; color: var(--color-accent-gold); width: 34px; height: 34px; background: rgba(212,143,56,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(212,143,56,.2); }
.spec-box-text h4 { font-size: 12px; font-weight: 700; color: var(--color-text-white); margin-bottom: 1px; }
.spec-box-text p  { font-size: 10px; color: var(--color-text-muted); }

/* ── Contact page ───────────────────────────────────────────────────────── */
.contact-page-content { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.contact-item { display: flex; align-items: center; gap: 12px; background: hsla(220,22%,12%,.8); border: 1px solid var(--color-border-glass); border-radius: 10px; padding: 12px 14px; }
.contact-item-icon { font-size: 16px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon.whatsapp { background: rgba(37,211,102,.1); color: #25d366; border: 1px solid rgba(37,211,102,.2); }
.contact-item-icon.email    { background: rgba(212,143,56,.1); color: var(--color-accent-gold); border: 1px solid rgba(212,143,56,.2); }
.contact-item-icon.location { background: rgba(99,179,237,.1); color: #63b3ed; border: 1px solid rgba(99,179,237,.2); }
.contact-item-text h4 { font-size: 12px; font-weight: 700; color: var(--color-text-white); margin-bottom: 1px; }
.contact-item-text p  { font-size: 11px; color: var(--color-text-muted); }

/* Custom form on page */
.custom-form-page { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.page-form-group { display: flex; flex-direction: column; gap: 4px; }
.page-form-group label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); }
.page-form-group input, .page-form-group textarea {
    background: rgba(255,255,255,.03); border: 1px solid var(--color-border-glass);
    border-radius: 8px; padding: 8px 12px; color: var(--color-text-white);
    font-size: 13px; outline: none; transition: all .3s ease;
    font-family: 'Outfit',sans-serif; resize: none;
}
.page-form-group input:focus, .page-form-group textarea:focus {
    border-color: var(--color-accent-gold); background: rgba(255,255,255,.05);
    box-shadow: 0 0 12px var(--color-accent-gold-glow);
}

/* ── Back cover ─────────────────────────────────────────────────────────── */
.back-cover-page { background: linear-gradient(145deg,hsl(220,25%,5%),hsl(220,22%,8%)); justify-content: center; align-items: center; text-align: center; }
.back-cover-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.back-cover-tagline  { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 4px; color: var(--color-text-muted); }
.back-cover-logo-text { font-size: 32px; font-weight: 800; letter-spacing: 2px; background: linear-gradient(135deg,#fff 30%,#f59e0b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.back-social-row { display: flex; gap: 12px; margin-top: 6px; }
.back-social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid var(--color-border-glass); color: var(--color-text-muted); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s ease; text-decoration: none; }
.back-social-btn:hover { color: var(--color-accent-gold); border-color: var(--color-accent-gold); background: rgba(212,143,56,.08); transform: scale(1.1); }

/* ── Book controls ──────────────────────────────────────────────────────── */
.book-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    flex-shrink: 0;
}
.book-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.book-nav-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.04); border: 1px solid var(--color-border-glass);
    color: var(--color-text-white); font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .3s ease; backdrop-filter: blur(8px);
}
.book-nav-btn:hover:not(:disabled) {
    background: var(--color-accent-gold); color: hsl(220,25%,4%);
    border-color: var(--color-accent-gold);
    box-shadow: 0 4px 18px var(--color-accent-gold-glow);
    transform: scale(1.1);
}
.book-nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.book-page-indicator { font-size: 11px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 2px; min-width: 90px; text-align: center; }

/* Dot indicators */
.book-dots { display: flex; gap: 8px; }
.book-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; cursor: pointer; transition: all .3s ease; padding: 0; }
.book-dot.active { background: var(--color-accent-gold); transform: scale(1.5); box-shadow: 0 0 6px var(--color-accent-gold-glow); }
.book-dot:hover:not(.active) { background: rgba(255,255,255,.3); }

/* ── Search results overlay ─────────────────────────────────────────────── */
.search-results-overlay {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,143,56,.2) transparent;
}
.search-results-overlay.active { display: block; }
.search-results-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border-glass);
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 18px;
}

/* ── Mobile topbar (small screens only) ─────────────────────────────────── */
.mobile-topbar {
    display: none;
    height: 50px;
    background: hsl(220,25%,5%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    flex-shrink: 0;
}
.mobile-toggle {
    background: none; border: none; color: var(--color-text-white);
    font-size: 18px; cursor: pointer; padding: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .sidebar {
        position: fixed;
        left: -230px;
        top: 40px;
        height: calc(100% - 40px);
        transition: left 0.3s ease;
        z-index: 200;
    }
    .sidebar.open { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,.6); }
    .main-content { width: 100%; }
    .mobile-topbar { display: flex; }
    .book-stage { padding: 12px 16px 12px; }
}

@media (max-width: 640px) {
    .page-product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .page-inner { padding: 20px 18px; }
    .chapter-title { font-size: 22px; }
    .book-nav { gap: 12px; }
    .book-nav-btn { width: 36px; height: 36px; font-size: 14px; }
    .book-dots { gap: 5px; }
    .book-dot { width: 5px; height: 5px; }
}

/* ==========================================================================
   CART SYSTEM & PROMO BELL STYLING
   ========================================================================== */

/* Sidebar Cart Button */
.sidebar-cart-section {
    margin: 20px 16px 16px;
}
.sidebar-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(212, 143, 56, 0.05);
    border: 1px solid rgba(212, 143, 56, 0.2);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.22s ease;
}
.sidebar-cart-btn:hover {
    background: rgba(212, 143, 56, 0.12);
    border-color: rgba(212, 143, 56, 0.45);
    box-shadow: 0 0 14px rgba(212, 143, 56, 0.08);
}
.sidebar-cart-badge {
    background: var(--color-accent-gold);
    color: #000;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 17px;
    text-align: center;
    line-height: 1.4;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.3); }
    100% { transform: scale(1); }
}

/* Promo Tag Bell (Float top-right) */
.promo-bell {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: hsl(220, 24%, 10%);
    border: 1px solid rgba(212,143,56,0.35);
    color: var(--color-accent-gold);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 10px rgba(212,143,56,0.1);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.promo-bell.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}
.promo-bell:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 15px rgba(212,143,56,0.25);
    color: #fff;
    border-color: rgba(212,143,56,0.7);
}
.promo-bell-dot {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

/* Cart Backdrop Overlay */
.cart-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Cart Slide-out Panel */
.cart-panel {
    position: fixed;
    top: 0; right: 0;
    width: 360px; height: 100%;
    background: hsl(220, 25%, 6%);
    border-left: 1px solid rgba(255,255,255,0.06);
    z-index: 1900;
    box-shadow: -10px 0 40px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 480px) {
    .cart-panel { width: 100%; }
}
.cart-panel.active {
    transform: translateX(0);
}
.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.cart-panel-title i {
    color: var(--color-accent-gold);
}
.cart-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 26px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.cart-close-btn:hover { color: #fff; }

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,143,56,0.2) transparent;
}
.cart-items-list::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-thumb { background: rgba(212,143,56,0.2); border-radius: 2px; }

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    text-align: center;
    gap: 10px;
    padding: 40px 20px;
}
.cart-empty-state i {
    font-size: 38px;
    color: rgba(255,255,255,0.08);
    margin-bottom: 6px;
}
.cart-empty-state p {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.cart-empty-state span {
    font-size: 11.5px;
    max-width: 200px;
    line-height: 1.5;
}

/* Cart Item Layout */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}
.cart-item:hover {
    background: rgba(255,255,255,0.025);
    border-color: rgba(212,143,56,0.15);
}
.cart-item-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: #111316;
    border: 1px solid rgba(255,255,255,0.05);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.cart-item-dims {
    font-size: 9.5px;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}
.cart-item-price {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--color-accent-gold);
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    height: 24px;
}
.cart-item-qty-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cart-item-qty-btn:hover { background: rgba(255,255,255,0.06); }
.cart-item-qty-val {
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    text-align: center;
}

/* Cart Footer Section */
.cart-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.cart-subtotal-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent-gold);
}
.cart-promo-hint {
    font-size: 10px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 14px;
}
.cart-promo-code-chip {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(212,143,56,0.08);
    border: 1px dashed rgba(212,143,56,0.35);
    border-radius: 4px;
    color: var(--color-accent-gold);
    font-weight: 800;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s;
}
.cart-promo-code-chip:hover {
    background: rgba(212,143,56,0.15);
    border-color: rgba(212,143,56,0.6);
}
.cart-wa-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #000;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(37,211,102,0.2);
    transition: all 0.22s ease;
}
.cart-wa-order-btn:hover {
    background: #20ba56;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}

/* Card Inline Cart Controls */
.card-cart-control {
    display: flex;
    align-items: center;
    height: 24px;
    margin-left: auto;
}
.card-add-to-cart-btn {
    background: rgba(212, 143, 56, 0.06);
    border: 1px solid rgba(212, 143, 56, 0.25);
    color: var(--color-accent-gold);
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}
.card-add-to-cart-btn:hover {
    background: var(--color-accent-gold);
    color: #000;
    border-color: var(--color-accent-gold);
}
.card-qty-controls {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    height: 22px;
    animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.card-qty-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.card-qty-btn:hover { background: rgba(255,255,255,0.08); }
.card-qty-val {
    font-size: 10.5px;
    font-weight: 700;
    width: 16px;
    text-align: center;
    color: #fff;
}
