/* ===================================================
   SCADA PERFUMES – SHOP CSS
   Design: Mobile-first, cream/pastel palette, premium
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --primary: #0f172a;
    --primary-light: #334155;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: rgba(15, 23, 42, 0.08);
    --shadow-md: rgba(15, 23, 42, 0.12);
    --shadow-lg: rgba(15, 23, 42, 0.18);
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 64px;
    --bottom-nav-h: 64px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: var(--header-h);
    padding-bottom: var(--bottom-nav-h);
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px var(--shadow-md); }
.header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: var(--header-h);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    text-align: center;
    justify-content: center;
}
.logo__icon { font-size: 22px; }
.logo__text {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.logo__text em {
    font-style: normal;
    color: var(--accent);
    font-weight: 400;
    margin-left: 2px;
}
.header__actions { display: flex; gap: 4px; }
.btn-icon {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background var(--transition);
}
.btn-icon:hover { background: var(--cream-dark); }
.cart-count {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    line-height: 1;
    display: none;
}
.cart-count.visible { display: flex; }

/* ===== SEARCH BAR ===== */
.search-bar {
    max-height: 0;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
}
.search-bar.open {
    max-height: 80px; /* Base height for the input */
    border-top-color: var(--border);
}
.search-bar:not(.open) { overflow: hidden; }
.search-bar__inner {
    padding: 12px 16px;
    position: relative;
}
#searchInput {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: all var(--transition);
}
#searchInput:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-results {
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px var(--shadow-lg);
    max-height: 260px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}
.search-results.open { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--cream); }
.search-result-item img {
    width: 40px; height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--cream-dark);
}
.search-result-item .sr-info { flex: 1; min-width: 0; }
.search-result-item .sr-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item .sr-cat { font-size: 11px; color: var(--text-light); }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--white);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px var(--shadow-lg);
}
.sidebar.open { transform: translateX(0); }
.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar__header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.sidebar-close, .sidebar-toggle {
    width: 36px; height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    transition: background var(--transition);
}
.sidebar-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.sidebar-close { font-size: 16px; color: var(--text-mid); }
.sidebar-close:hover, .sidebar-toggle:hover { background: var(--cream-dark); }
.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}
.sidebar__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
}
.sidebar__item:hover { background: var(--cream); color: var(--text-dark); }
.sidebar__item.active {
    background: var(--bg-alt);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 15, 5, 0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* ===== HERO ===== */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: 48px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent);
    pointer-events: none;
}
.hero__sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.hero__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.hero__desc {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
}

/* ===== PRODUCTS SECTION ===== */
.products-section { padding: 20px 16px 16px; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.product-count {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeSlideUp 0.4s ease both;
}
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow-md); }
.card__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}
.product-card:hover .card__img-wrap img { transform: scale(1.06); }
.card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card__category {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}
.card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 8px;
}
.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.card__price {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.card__price.hidden { display: none; }
.card__add {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.card__add:hover { background: var(--accent); transform: scale(1.05); }

/* ===== SKELETON LOADER ===== */
.loading-skeleton { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-column: 1 / -1; }
@media (min-width: 768px) { .loading-skeleton { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .loading-skeleton { grid-template-columns: repeat(4, 1fr); } }
.skeleton-card {
    background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%);
    background-size: 200% auto;
    border-radius: var(--radius);
    aspect-ratio: 0.8;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% center; } to { background-position: -200% center; } }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination button {
    min-width: 36px; height: 36px;
    padding: 0 8px;
    border: 1.5px solid var(--cream-darker);
    border-radius: 50%;
    background: white;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-mid);
    transition: all var(--transition);
}
.pagination button.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }
.pagination button:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: rgba(250, 246, 241, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 100;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav__track {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    gap: 8px;
    width: max-content;
}
.bottom-nav__item {
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--cream-darker);
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.bottom-nav__item:hover { border-color: var(--accent); color: var(--accent); }
.bottom-nav__item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* ===== CART DRAWER ===== */
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 95vw);
    background: var(--white);
    z-index: 300;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer__header h2 { font-size: 18px; font-weight: 600; }
.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    gap: 12px;
    color: var(--text-light);
}
.cart-empty span { font-size: 48px; }
.cart-empty p { font-size: 14px; }
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    align-items: center;
}
.cart-item img {
    width: 56px; height: 56px;
    object-fit: contain;
    padding: 4px;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__cat { font-size: 10px; color: var(--text-light); margin-bottom: 6px; }
.cart-item__price { font-size: 13px; font-weight: 600; color: var(--accent); }
.cart-item__qty {
    display: flex; align-items: center; gap: 8px;
    margin-top: 4px;
}
.qty-btn {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--cream-darker);
    background: white;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-num { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; }
.cart-item__remove {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: none;
    background: var(--bg-alt);
    color: var(--text-mid);
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.cart-item__remove:hover { background: #fee2e2; color: #ef4444; }
.cart-drawer__footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--cream);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}
.cart-total strong { font-size: 22px; font-family: 'Cormorant Garamond', serif; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-primary:active { transform: translateY(0); }
.w-full { width: 100%; }
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1ebe59; }

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}
@media (min-width: 640px) { .modal { align-items: center; } }
.modal.open { opacity: 1; pointer-events: all; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 15, 5, 0.50);
    cursor: pointer;
}
.modal__card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition);
    z-index: 1;
}
@media (min-width: 640px) { .modal__card { border-radius: var(--radius); max-height: 85vh; } }
.modal.open .modal__card { transform: translateY(0); }
.modal__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--cream);
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mid);
    transition: background var(--transition);
}
.modal__close:hover { background: var(--cream-dark); }

/* PRODUCT MODAL BODY */
.modal__body {
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* Limit modal height */
    overflow: hidden;
}
.product-modal-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}
.product-detail-img {
    width: 100%;
    aspect-ratio: 1.1;
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
}
.product-detail-img img {
    width: 60%; /* REDUCED PHOTO SIZE */
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.product-detail-info { padding: 24px; }
.pd-header { margin-bottom: 24px; }
.pd-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.pd-name {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.pd-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}
.pd-description {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 24px;
}
.pd-description h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.pd-description p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-mid);
    white-space: pre-line;
}
.pd-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.feat-item {
    font-size: 11px;
    color: var(--text-light);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.feat-item span { font-size: 18px; }

/* FIXED FOOTER */
.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.modal-qty {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--border);
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--bg-alt);
}
.modal-qty .qty-btn { border: none; background: transparent; padding: 4px 8px; }

/* CHECKOUT */
.checkout-card { border-radius: var(--radius); max-width: 480px; }
.checkout-body { padding: 28px 24px 24px; }
.checkout-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.checkout-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--cream-darker);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: white;
}
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--cream-darker);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--cream);
    font-size: 14px;
}
.payment-opt:has(input:checked) {
    border-color: var(--accent);
    background: #f5f3ff;
    color: var(--accent);
    font-weight: 600;
}
.payment-opt input { accent-color: var(--accent); }
.checkout-summary {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-mid);
    display: none;
}
.checkout-summary .cs-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.checkout-summary .cs-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
}

/* CONFIRM MODAL */
.confirm-card { border-radius: var(--radius); max-width: 380px; }
.confirm-body { padding: 32px 24px; text-align: center; }
.confirm-icon { font-size: 52px; margin-bottom: 12px; }
.confirm-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; margin-bottom: 10px; }
.confirm-body p { font-size: 14px; color: var(--text-mid); margin-bottom: 12px; }
.order-code {
    display: inline-block;
    background: var(--cream-dark);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: monospace;
}
.status-link {
    display: block;
    padding: 10px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    color: var(--rose-dark);
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 500;
}
.status-link:hover { background: var(--blush-dark); }

/* ===== PERSISTENT CART (Desktop) & FLOATING CART (Mobile) ===== */
.floating-cart {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--rose);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 20px var(--shadow-lg);
    display: none; /* Revealed by JS when cart has items */
    align-items: center;
    justify-content: center;
    z-index: 150;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-cart.visible { display: flex; animation: bounceIn 0.5s both; }
.floating-cart:hover { transform: scale(1.1); background: var(--rose-dark); }
.floating-cart__icon { font-size: 26px; }
.floating-cart__count {
    position: absolute;
    top: 0; right: 0;
    background: var(--text-dark);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@media (min-width: 1200px) {
    body.cart-persistent {
        padding-right: 340px;
        transition: padding-right var(--transition);
    }
    .cart-drawer.persistent {
        transform: translateX(0);
        box-shadow: -1px 0 10px rgba(0,0,0,0.05);
        border-left: 1px solid var(--border);
    }
    .cart-drawer.persistent .sidebar-close {
        display: none;
    }
    .floating-cart {
        display: none !important;
    }
}
