/* ============================================================
   CMZ Store — Dark Black & Bright Red Design System
   Dark black background, bright red primary, white accent.
   One gradient (primary CTA only). No rainbow glows.
   ============================================================ */

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

/* ── Token layer ────────────────────────────────────────────── */
:root {
    /* Surfaces */
    --bg:          #1A1A1A;
    --bg-soft:     #222222;
    --bg-muted:    #2a2a2a;
    --card:        #222222;
    --card-hover:  #2a2a2a;

    /* Borders */
    --border:       rgba(255,255,255,0.09);
    --border-light: rgba(255,255,255,0.05);
    --border-focus: rgba(255,68,68,0.55);

    /* Text — all ratios verified on #1A1A1A bg */
    --text:           #FFFFFF;   /* White — primary content */
    --text-secondary: #cccccc;   /* Light grey — captions, labels, hints */
    --text-light:     #999999;   /* Mid grey — placeholders, footnotes */
    --text-muted:     #666666;   /* Dark grey — decorative only, never body text */

    /* Primary — Bright Red */
    --primary:       #FF0000;
    --primary-hover: #CC0000;
    --primary-light: rgba(255,0,0,0.14);
    --primary-dim:   rgba(255,0,0,0.07);

    /* Semantic */
    --accent:        #FFFFFF;
    --success:       #22c55e;
    --success-hover: #16a34a;
    --success-light: rgba(34,197,94,0.12);
    --danger:        #FF4444;
    --danger-hover:  #CC2222;
    --warning:       #f59e0b;
    --info:          #FF4444;

    /* Geometry */
    --radius:    10px;
    --radius-sm: 6px;
    --radius-lg: 14px;

    /* Elevation (opacity layers, no color glows) */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow:    0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.7);

    /* Single gradient — CTA only */
    --gradient-cta: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

/* Admin theme */
.admin-navbar,
.admin-navbar ~ * {
    --bg:       #0f1115;
    --bg-soft:  #171a21;
    --card:     #1d212b;
    --card-soft:#232836;
    --border:   #2c3242;
    --text:     #e8ecf3;
    --text-dim: #97a0b5;
    --primary:  #FF0000;
    --primary-hover: #CC0000;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll / Safari pinch-zoom-out blank-space bug.
       Any absolutely-positioned glow/orb or oversized hero image is clipped
       at the viewport edge instead of expanding the page width.         */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255,0,0,0.07) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main-content { flex: 1; padding-top: 32px; padding-bottom: 80px; }
.center-content { display: flex; align-items: center; justify-content: center; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%     { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.animate-fadeIn      { animation: fadeIn 0.3s ease-out; }
.animate-slideInRight{ animation: slideInRight 0.3s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.3s ease-out; }
.animate-scaleIn     { animation: scaleIn 0.25s ease-out; }

/* ── Skeleton ───────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #222222 25%, #2e2e2e 50%, #222222 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: var(--radius-sm);
}
.skeleton-text   { height: 14px; margin: 8px 0; border-radius: 3px; }
.skeleton-title  { height: 22px; width: 55%; margin: 10px 0; border-radius: 4px; }
.skeleton-card   { height: 260px; border-radius: var(--radius); }
.skeleton-circle { border-radius: 50%; }
.skeleton-button { height: 40px; border-radius: var(--radius-sm); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    background: rgba(26,26,26,0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; transition: opacity 0.15s; }
.brand:hover { opacity: 0.8; }
.brand-logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name {
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    letter-spacing: -0.03em;
    -webkit-text-fill-color: initial;
}

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-links a::before { display: none; }
.nav-links a:hover:not(.active) {
    color: var(--text);
    background: var(--bg-muted);
    transform: none;
    border: none;
}
.nav-links a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.cart-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    box-shadow: none;
}
.hamburger {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; margin-left: auto;
}
.hamburger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--text-secondary); margin: 4px 0;
    transition: .2s; border-radius: 2px;
}
.admin-navbar { background: #14171f; }

/* ── Legacy .hero (unused on front-end, kept for safety) ─────── */
.hero {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 64px;
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out;
}
.hero::before, .hero::after { display: none; }
.hero-title {
    font-size: 56px; font-weight: 800;
    letter-spacing: -0.04em; color: var(--text);
    margin-bottom: 20px;
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
}
@keyframes gradient-shift { 0%,100%{} }

.hero-text {
    color: var(--text-secondary);
    font-size: 18px; font-weight: 400;
    margin-bottom: 32px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

/* ── Sections & Cards ───────────────────────────────────────── */
.section { margin-bottom: 72px; animation: fadeIn 0.4s ease-out; }

.home-cat-section + .home-cat-section {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-all {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
    display: flex; align-items: center; gap: 4px;
}
.view-all:hover { color: var(--text); transform: none; text-shadow: none; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}
.card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
    transform: none;
}
.card-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px; color: var(--text);
    letter-spacing: -0.02em;
}
.sub-heading {
    font-size: 12px; font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Product grid ───────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
    animation: scaleIn 0.3s ease-out;
    isolation: isolate;
}
.product-card::before, .product-card::after { display: none; }
.product-card:hover {
    border-color: rgba(255,68,68,0.45);
    box-shadow: 0 0 0 1px rgba(255,68,68,0.25), var(--shadow);
    transform: translateY(-3px);
}

.product-card-media {
    display: block;
    aspect-ratio: 1/1;
    background: var(--bg-muted);
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: var(--radius);
}
.product-card-media:hover::after { opacity: 1; }
.product-card-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.product-noimg-lg { font-size: 96px; }

.product-card-body { padding: 16px; position: relative; z-index: 3; }
.product-name {
    font-weight: 600; font-size: 14px;
    min-height: 40px; color: var(--text);
    line-height: 1.45; margin-bottom: 8px;
}
.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin: 8px 0 16px;
    display: flex; align-items: center; gap: 4px;
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
}

.product-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    z-index: 2;
    box-shadow: none;
    text-transform: uppercase; letter-spacing: 0.3px;
}

.product-rating { display: flex; gap: 4px; margin-bottom: 8px; }
.product-rating .star {
    color: var(--warning); font-size: 13px;
    filter: none; transition: none;
}
.product-card:hover .product-rating .star { transform: none; }

/* ── Product detail ─────────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0,440px) 1fr;
    gap: 48px; align-items: start;
}
.product-detail-media {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: slideInLeft 0.3s ease-out;
}
.product-detail-media img { width: 100%; display: block; }
.product-detail-info { animation: slideInRight 0.3s ease-out; }

.product-price-lg {
    font-size: 36px; font-weight: 800;
    color: var(--primary); margin: 16px 0;
    letter-spacing: -0.03em;
}
.product-description {
    color: var(--text-secondary); margin: 14px 0;
    white-space: pre-wrap; line-height: 1.7;
}
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-control {
    display: flex; align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 40px; height: 40px;
    background: var(--bg-muted);
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text);
    font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
}
.qty-btn:last-child { border-right: none; border-left: 1px solid var(--border); }
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-btn:active { transform: scale(0.95); }
.qty-input {
    width: 56px; height: 40px;
    text-align: center; background: var(--bg-muted);
    border: none; color: var(--text);
    font-weight: 700; font-size: 14px;
}
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.action-feedback {
    color: var(--success); font-weight: 600;
    margin-top: 10px; font-size: 14px;
    animation: fadeIn 0.2s ease-out;
}
.action-feedback.feedback-error { color: var(--danger); }

.notes-box {
    margin-top: 24px; padding: 16px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 13px; line-height: 1.6;
    backdrop-filter: none;
}
.notes-box strong { color: var(--text); }
.notes-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.notes-list {
    list-style: none; padding: 0; margin: 0 0 10px;
    display: flex; flex-direction: column; gap: 6px;
}
.notes-list li {
    font-size: 13px; line-height: 1.6;
    color: var(--text-secondary); padding-left: 12px; position: relative;
}
.notes-list li::before { content: '·'; position: absolute; left: 0; color: var(--primary); }
.notes-list b { color: var(--text); font-weight: 600; }
.notes-footer { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.notes-link { color: inherit; text-decoration: underline; }

/* ── Forms ──────────────────────────────────────────────────── */
.input {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-weight: 500;
    backdrop-filter: none;
}
.input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(255,68,68,0.14);
    transform: none;
}
.input::placeholder { color: var(--text-light); }
.select { width: auto; min-width: 160px; }
.file-input { padding: 10px; }
.form-label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text); margin: 14px 0 6px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.check-label {
    display: flex; gap: 8px; align-items: center;
    margin: 10px 0; font-size: 14px;
    cursor: pointer; color: var(--text);
}
.stack-form .input { margin-bottom: 8px; }
.inline-form { display: inline; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 24px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; text-align: center;
    font-family: inherit;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
    letter-spacing: 0.01em;
    position: relative;
    text-transform: none;
}
.btn::before { display: none; }

.btn-primary {
    background: var(--gradient-cta);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,0,0,0.35);
    border: 1px solid rgba(255,0,0,0.25);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(255,68,68,0.5);
    transform: translateY(-1px);
    background-position: 100% center;
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: var(--success); color: #fff;
    box-shadow: none;
}
.btn-success:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger); color: #fff;
    box-shadow: none;
}
.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    backdrop-filter: none;
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
    background: var(--bg-muted);
    box-shadow: none; transform: none;
}

.btn-large  { padding: 14px 36px; font-size: 16px; }
.btn-small  { padding: 7px 14px; font-size: 12px; }
.btn-block  { display: block; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.btn-add-cart {
    background: var(--primary);
    border: 1px solid transparent;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; padding: 0;
    transition: background 0.15s, color 0.15s;
    box-shadow: none;
}
.btn-add-cart:hover {
    background: var(--primary); color: #fff;
    transform: none; box-shadow: none;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px; font-weight: 500;
    border: 1px solid;
    display: flex; align-items: center; gap: 10px;
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: none;
}
.alert-error   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); color: #86efac; }
.alert-info    { background: var(--primary-dim);  border-color: rgba(255,68,68,0.35); color: #ff9999; }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar { margin-bottom: 24px; animation: fadeIn 0.3s ease-out; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.search-input { flex: 1; min-width: 220px; }
.admin-filters {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; font-size: 12px; font-weight: 700;
    color: var(--text-secondary); padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em;
}
.table td {
    padding: 14px; border-bottom: 1px solid var(--border-light);
    vertical-align: middle; font-weight: 400;
}
.table tfoot td { font-weight: 700; }
.total-row td {
    color: var(--primary);
    font-size: 16px; font-weight: 800;
    background: none; -webkit-text-fill-color: initial;
}
.row-link { cursor: pointer; transition: background 0.15s; }
.row-link:hover { background: var(--bg-muted); }
.empty-cell { text-align: center; color: var(--text-secondary); padding: 40px; }
.thumb {
    width: 48px; height: 48px; object-fit: cover;
    border-radius: var(--radius-sm); display: block;
}
.thumb-empty {
    background: var(--bg-muted);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light);
}
.actions-cell { white-space: nowrap; display: flex; gap: 6px; }

/* ── Status badges ──────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap; text-transform: uppercase;
    box-shadow: none;
}
.status-pending_payment  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-payment_submitted{ background: rgba(34,211,238,0.12); color: #22d3ee; }
.status-payment_rejected { background: rgba(239,68,68,0.15);  color: #f87171; }
.status-payment_approved { background: rgba(34,197,94,0.15);  color: #4ade80; }
.status-delivery_failed  { background: rgba(239,68,68,0.15);  color: #f87171; }
.status-completed        { background: rgba(34,197,94,0.15);  color: #4ade80; }
.status-expired          { background: rgba(100,100,120,0.15);color: #9ca3af; }

/* ── Meta rows ──────────────────────────────────────────────── */
.meta-row {
    display: flex; justify-content: space-between;
    gap: 14px; padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.meta-value { font-weight: 600; color: var(--text); }
.customer-info-grid { margin-top: 14px; }

/* ── Order page ─────────────────────────────────────────────── */
.order-id-box {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.order-id-value {
    font-family: 'SF Mono', Consolas, monospace;
    font-weight: 700; font-size: 16px;
    color: var(--primary);
    background: none; -webkit-text-fill-color: initial;
}
.payment-zone { text-align: center; }
.pay-before-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding: 18px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
}
.countdown {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 36px; font-weight: 800;
    color: var(--primary);
    background: none; -webkit-text-fill-color: initial;
    letter-spacing: 2px;
}
.qris-box {
    max-width: 320px; margin: 0 auto 24px;
    background: #fff; padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease-out;
    border: 1px solid rgba(0,0,0,0.06);
}
.qris-box img { width: 100%; display: block; border-radius: var(--radius-sm); }
.qris-missing {
    background: var(--bg-muted); color: var(--text-secondary);
    padding: 32px; border: 1px dashed var(--border);
}
.total-payment-banner {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text); padding: 20px;
    border-radius: var(--radius-lg);
    font-size: 15px; margin-bottom: 24px; font-weight: 600;
    box-shadow: none; animation: none; background-size: auto;
}
.total-payment-banner strong {
    color: var(--primary); font-size: 28px; font-weight: 800;
    display: block; margin-top: 8px; text-shadow: none;
    background: none; -webkit-text-fill-color: initial;
}
.instructions {
    text-align: left; margin: 0 auto 16px; max-width: 440px;
    color: var(--text-secondary); font-size: 14px;
    line-height: 1.8; font-weight: 400;
}
.instructions li { margin: 8px 0; padding-left: 6px; }
.proof-form { max-width: 440px; margin: 0 auto; text-align: left; }
.success-checklist { margin-bottom: 24px; }
.check-item { padding: 10px 0; color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.check-item.done { color: var(--success); font-weight: 700; text-shadow: none; }
.order-nav { display: flex; gap: 12px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-step {
    display: grid;
    grid-template-columns: 36px 180px 1fr;
    align-items: center; gap: 12px; padding: 12px 0;
}
.timeline-marker { font-size: 18px; text-align: center; font-weight: 700; }
.timeline-label  { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.timeline-time   { color: var(--text-secondary); font-size: 13px; font-weight: 400; }
.timeline-step.done .timeline-marker { color: var(--success); text-shadow: none; }
.timeline-step.done .timeline-label  { color: var(--text); }
.timeline-step.pending .timeline-marker { color: var(--border); }
.timeline-step.pending .timeline-label  { color: var(--text-secondary); }
.timeline-step.skipped { opacity: .35; }

/* ── History / Track banner ─────────────────────────────────── */
.track-banner {
    display: flex; justify-content: space-between;
    align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--bg-soft);
    padding: 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: none; animation: none; background-size: auto;
}
.track-banner-text { color: var(--text); font-size: 15px; line-height: 1.6; font-weight: 500; }
.track-banner-text strong { color: var(--text); font-weight: 800; font-size: 18px; text-shadow: none; }
.track-form { max-width: 480px; }
.hint {
    color: var(--text-secondary); font-size: 13px;
    margin-top: 12px; line-height: 1.6; font-weight: 500;
}
.notfound-card { text-align: center; padding: 32px; }
.local-order-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    background: var(--card);
    gap: 16px; flex-wrap: wrap;
    transition: border-color 0.15s, box-shadow 0.15s;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: none;
}
.local-order-row:hover {
    border-color: rgba(255,68,68,0.4);
    box-shadow: var(--shadow);
    transform: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    backdrop-filter: none;
    padding: 40px 0; margin-top: auto;
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 32px;
    justify-content: space-between; align-items: center;
}
.footer-brand {
    font-weight: 800; letter-spacing: -0.03em; font-size: 16px;
    color: var(--text);
    background: none; -webkit-text-fill-color: initial; animation: none;
}
.footer-links { display: flex; gap: 24px; color: var(--text-secondary); font-size: 14px; }
.footer-links a { color: var(--text-secondary); transition: color 0.15s; font-weight: 500; }
.footer-links a:hover { color: var(--text); text-shadow: none; transform: none; }
.footer-tos { font-size: 13px; color: var(--text-secondary); }
.footer-tos a { color: var(--text-secondary); transition: color 0.15s; font-weight: 400; }
.footer-tos a:hover { color: var(--text); text-shadow: none; }

/* ── Empty / error states ───────────────────────────────────── */
.empty-state {
    text-align: center; color: var(--text-secondary);
    padding: 64px 24px; animation: fadeIn 0.4s ease-out;
}
.empty-state p { font-size: 16px; margin-bottom: 20px; font-weight: 400; }
.error-page { text-align: center; padding: 120px 24px; animation: fadeIn 0.4s ease-out; }
.error-page h1 {
    font-size: 96px; font-weight: 900; color: var(--text-muted);
    margin-bottom: 16px; opacity: 0.5;
    background: none; -webkit-text-fill-color: initial; animation: none;
}

/* ── Admin ──────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; margin-bottom: 18px; }
.stats-row { margin-bottom: 16px; }
.stat-card { padding: 14px; text-align: center; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-sub { font-size: 10px; color: var(--text-dim); margin-top: 3px; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-card { max-width: 400px; margin: 48px auto; }
.auth-form .input { margin-bottom: 6px; }
.detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-form .card { padding: 16px; }
.current-image-box { margin: 6px 0; }
.preview-img { max-width: 200px; max-height: 80px; border-radius: 5px; background: #fff; padding: 5px; }
.preview-img-qris { max-width: 200px; max-height: 200px; }
.pagination-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pagination-info { color: var(--text-dim); font-size: 12px; }
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
    min-width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-weight: 600; font-size: 13px; padding: 0 7px;
}
.page-btn:hover { border-color: rgba(255,255,255,0.15); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-ellipsis { color: var(--text-dim); padding: 0 3px; }
.proof-view { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.proof-preview-box {
    margin-top: 14px; padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.proof-preview-img {
    max-width: 100%; width: auto; max-height: 480px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.proof-preview-box .btn { align-self: flex-start; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box { max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; margin: 0; }
.modal-lg  { max-width: 580px; }
.mfa-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mfa-setup-card { max-width: 520px; margin: 0 auto; }
.totp-secret, .totp-uri { background: var(--bg-soft); padding: 8px; border-radius: 5px; margin: 6px 0; word-break: break-all; }
.totp-secret code, .totp-uri code { color: var(--info); font-size: 12px; }
.hot-available-list { display: flex; flex-direction: column; gap: 6px; }
.hot-available-row, .hot-selected-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 7px 10px; background: var(--bg-soft);
    border-radius: var(--radius-sm); font-size: 13px; flex-wrap: wrap;
}
.hot-selected-row { background: transparent; border: 1px solid var(--border); margin-bottom: 6px; }
.hot-selected-row > span:first-child { display: flex; gap: 6px; align-items: center; }
.hot-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.hot-selected-list { list-style-position: inside; padding-left: 0; }
.metadata-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--text-dim); }
.audit-action { font-weight: 700; font-size: 11px; letter-spacing: .4px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .hero { padding: 40px 20px; }
    .section-title { font-size: 22px; }
    .container { padding: 0 16px; }
}
@media (max-width: 720px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 16px 20px; gap: 4px;
        box-shadow: var(--shadow);
        animation: fadeIn 0.2s ease-out;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-sm); }
    .cart-link { margin-left: 0; }
    .navbar-inner { gap: 12px; }
    .navbar-inner .cart-link   { margin-left: auto; }
    .navbar-inner .hamburger   { margin-left: 0; }
    .filter-row .input, .filter-row .select { width: 100%; }
    .table { font-size: 13px; }
    .timeline-step { grid-template-columns: 24px 1fr; }
    .timeline-time { grid-column: 2; }
    .action-row .btn { flex: 1; min-width: 120px; }
    .orders-table th:nth-child(2), .orders-table td:nth-child(2) { display: none; }
    .hot-actions { width: 100%; }
    .stats-row .dashboard-grid { grid-template-columns: repeat(2,1fr); }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
    .main-content { padding-top: 20px; padding-bottom: 40px; }
    .card { padding: 16px; }
    .product-price { font-size: 17px; }
}

/* ── Skeleton product cards ─────────────────────────────────── */
.loading-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.skeleton-product-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.skeleton-product-card .skeleton-image {
    aspect-ratio: 1/1;
    background: linear-gradient(90deg,#222222 25%,#2e2e2e 50%,#222222 75%);
    background-size: 800px 100%; animation: shimmer 1.6s infinite linear;
}
.skeleton-product-card .skeleton-body { padding: 16px; }
.skeleton-product-card .skeleton-title {
    height: 16px;
    background: linear-gradient(90deg,#222222 25%,#2e2e2e 50%,#222222 75%);
    background-size: 800px 100%; animation: shimmer 1.6s infinite linear;
    border-radius: 3px; margin-bottom: 10px;
}
.skeleton-product-card .skeleton-price {
    height: 20px; width: 55%;
    background: linear-gradient(90deg,#222222 25%,#2e2e2e 50%,#222222 75%);
    background-size: 800px 100%; animation: shimmer 1.6s infinite linear;
    border-radius: 3px; margin-bottom: 12px;
}
.skeleton-product-card .skeleton-btn {
    height: 36px;
    background: linear-gradient(90deg,#222222 25%,#2e2e2e 50%,#222222 75%);
    background-size: 800px 100%; animation: shimmer 1.6s infinite linear;
    border-radius: var(--radius-sm);
}
.fade-in-content { animation: fadeIn 0.4s ease-out; }

/* ── Cookie banner ──────────────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 20px; right: 20px;
    z-index: 9999; max-width: 340px; width: calc(100% - 40px);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 16px;
    animation: cookieFloatIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
    backdrop-filter: none;
}
.cookie-banner--hide { animation: cookieFloatOut 0.25s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes cookieFloatIn  { from{transform:translateY(16px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes cookieFloatOut { from{transform:translateY(0);opacity:1}    to{transform:translateY(16px);opacity:0} }
.cookie-banner-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-text { color: var(--text-secondary); font-size: 13px; line-height: 1.6; font-weight: 400; }
.cookie-text strong { color: var(--text); }
.cookie-link { color: var(--primary); text-decoration: underline; font-weight: 600; }
.cookie-link:hover { color: var(--primary-hover); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; text-align: center; font-size: 13px; padding: 9px 14px; }
@media (max-width: 480px) {
    .cookie-banner { bottom: 12px; right: 12px; left: 12px; width: auto; max-width: none; }
}

/* ── Hero extras ────────────────────────────────────────────── */
.hero-disclaimer {
    display: inline-block; font-size: 12px; font-weight: 500;
    color: var(--text-secondary);
    background: var(--primary-dim);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: 999px; padding: 4px 12px;
    margin-bottom: 20px; letter-spacing: 0.02em; position: relative; z-index: 1;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Trust list ─────────────────────────────────────────────── */
.trust-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 56px;
}
.trust-list-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s;
}
.trust-list-item:hover { border-color: rgba(255,68,68,0.35); }
.trust-list-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
}
.trust-list-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.trust-list-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.03em;
}
.trust-list-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.55;
}
@media (max-width: 860px) {
    .trust-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .trust-list { grid-template-columns: 1fr; }
}

/* ── How it works ───────────────────────────────────────────── */
.how-it-works { padding: 40px 0; }
.hiw-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 20px; margin-top: 32px; position: relative;
}
.hiw-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 10px);
    right: calc(12.5% + 10px);
    height: 1px;
    background: var(--border);
    pointer-events: none;
}
.hiw-step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 10px; padding: 20px 12px;
}
.hiw-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary);
    border: 1px solid transparent;
    color: #fff;
    font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: none;
}
.hiw-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.hiw-desc  { font-size: 13px; color: var(--text-secondary); font-weight: 400; line-height: 1.6; }
@media (max-width: 860px) { .hiw-grid { grid-template-columns: repeat(2,1fr); } .hiw-grid::before { display: none; } }
@media (max-width: 480px) { .hiw-grid { grid-template-columns: 1fr; } }

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer-box {
    font-size: 12px; color: var(--text-secondary);
    font-weight: 400; line-height: 1.7; text-align: center;
    padding: 14px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
}
.disclaimer-box strong { color: var(--text); }

/* ── Footer update ──────────────────────────────────────────── */
.footer-disclaimer {
    font-size: 12px; color: var(--text-secondary);
    font-weight: 400; line-height: 1.7; text-align: center;
    padding-top: 20px; margin-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ── Privacy page ───────────────────────────────────────────── */
.privacy-page .card p, .privacy-page .card ul, .privacy-page .card ol {
    color: var(--text-secondary); font-size: 14px; line-height: 1.75; font-weight: 400;
}
.privacy-page .card ul li, .privacy-page .card ol li {
    color: var(--text-secondary); font-size: 14px; font-weight: 400; line-height: 1.75;
}
.privacy-page .card ul li strong, .privacy-page .card ol li strong, .privacy-page .card p strong { color: var(--text); }
.privacy-page .card .sub-heading {
    color: var(--text); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 5px;
}

/* ── Navbar right (Shop Now + cart) ─────────────────────────── */
.navbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-shop-now {
    background: var(--primary);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 700; font-size: 13px;
    padding: 8px 20px; border-radius: 999px;
    text-decoration: none; letter-spacing: 0.2px;
    box-shadow: none; transition: background 0.15s;
    white-space: nowrap;
}
.btn-shop-now:hover {
    background: var(--primary-hover); color: #fff;
    transform: none; box-shadow: none;
}
.cart-link {
    position: relative; color: var(--text-secondary);
    display: flex; align-items: center;
    padding: 8px; border-radius: var(--radius-sm);
    transition: color 0.15s;
}
.cart-link svg { display: block; }
.cart-link:hover { color: var(--text); }

/* ── Hero V2 ────────────────────────────────────────────────── */
.hero-v2 {
    display: grid; grid-template-columns: 1fr auto;
    gap: 48px; align-items: center;
    min-height: 420px;
    padding: 60px 0 0; margin-bottom: 56px;
    position: relative; overflow: hidden;
    max-width: 100%;
}
.hero-v2.hero-v2--no-image { grid-template-columns: 1fr; max-width: 680px; }
.hero-v2-content {
    display: flex; flex-direction: column; gap: 20px;
    animation: fadeIn 0.5s ease-out; position: relative; z-index: 2;
}
.hero-v2-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary);
    background: var(--primary-dim);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: 999px; padding: 5px 14px;
    width: fit-content; letter-spacing: 0.02em;
}
.hero-v2-badge-dot {
    width: 6px; height: 6px;
    background: var(--success); border-radius: 50%;
    flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite;
}
.hero-v2-title {
    font-size: 52px; font-weight: 800;
    line-height: 1.08; letter-spacing: -0.04em;
    color: var(--text); margin: 0;
}
.hero-v2-title-highlight {
    color: var(--primary);
    background: none; -webkit-text-fill-color: initial; animation: none;
}
.hero-v2-text {
    color: var(--text-secondary); font-size: 16px;
    font-weight: 400; line-height: 1.7; max-width: 440px; margin: 0;
}
.hero-v2-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.btn-hero-primary {
    background: var(--gradient-cta);
    color: #fff; font-weight: 700; font-size: 15px;
    padding: 13px 32px; border-radius: 999px;
    text-decoration: none; letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(255,0,0,0.35);
    transition: box-shadow 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-hero-primary:hover {
    box-shadow: 0 6px 24px rgba(255,68,68,0.5);
    transform: translateY(-2px); color: #fff;
}

.btn-hero-secondary {
    background: transparent; color: var(--text-secondary);
    font-weight: 600; font-size: 15px;
    padding: 12px 30px; border-radius: 999px;
    text-decoration: none; letter-spacing: 0.2px;
    border: 1px solid var(--border);
    transition: border-color 0.15s, color 0.15s;
    display: inline-block; backdrop-filter: none;
}
.btn-hero-secondary:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text); background: var(--bg-muted); transform: none;
}

/* Orbs */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none; z-index: 0; }
.hero-orb-1 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,0,0,0.15) 0%, transparent 70%);
    top: -32px; left: 20px; animation: float 7s ease-in-out infinite;
}
.hero-orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,68,68,0.10) 0%, transparent 70%);
    bottom: -16px; right: 10px; animation: float 9s ease-in-out infinite reverse;
}
.hero-character-box {
    position: relative; display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 24px; padding: 32px 40px;
    box-shadow: var(--shadow); backdrop-filter: none; z-index: 2;
}
.hero-character-svg {
    width: 160px; height: auto;
    filter: none; animation: float 5s ease-in-out infinite;
}
.hero-character-box--img {
    padding: 0; background: transparent; border: none; box-shadow: none;
}
.hero-custom-img {
    width: 100%; max-width: 320px; height: auto;
    object-fit: contain; display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
    animation: float 5s ease-in-out infinite;
}
.hero-float-badge {
    position: absolute; background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 12px;
    font-size: 12px; font-weight: 600; color: var(--text);
    backdrop-filter: none; box-shadow: var(--shadow-sm);
    white-space: nowrap; z-index: 3;
}
.hero-float-1 { top: -6px; right: -12px; animation: float 4s ease-in-out infinite; }
.hero-float-2 { bottom: 16px; left: -20px; animation: float 5.5s ease-in-out infinite reverse; }
.hero-float-3 { top: 40%; right: -24px; animation: float 6s ease-in-out infinite; }

/* ── Featured Products header ───────────────────────────────── */
.featured-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.featured-header-left { display: flex; align-items: center; gap: 10px; }
.featured-tag {
    background: var(--primary);
    border: 1px solid transparent;
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    letter-spacing: 0.3px; text-transform: uppercase;
    box-shadow: none; white-space: nowrap;
}
.featured-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin: 0; }

/* ── Product card overlay ───────────────────────────────────── */
.product-card-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    border-radius: var(--radius);
    pointer-events: none;
    max-height: 100%;
}
.product-card-media:hover .product-card-overlay { opacity: 1; pointer-events: auto; }
.product-card:hover .product-card-body { position: relative; z-index: 3; }
.product-card-view {
    color: #fff; font-weight: 700; font-size: 13px;
    letter-spacing: 0.3px; padding: 7px 18px;
    background: var(--primary);
    border-radius: 999px; backdrop-filter: none;
}

/* ── Hero V2 responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-v2 {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px 0 24px;
        gap: 12px;
        margin-bottom: 28px;
    }
    .hero-v2-title { font-size: 38px; }
    .hero-v2-text { max-width: 100%; margin: 0 auto; }
    .hero-v2-actions { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .hero-v2-badge { margin: 0 auto; }
    .hero-v2-visual { order: -1; }
    .hero-float-badge { display: none; }
    /* Buttons full-width so text never gets cut on narrow screens */
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
@media (max-width: 600px) {
    .hero-v2-title { font-size: 28px; }
    .featured-title { font-size: 20px; }
    .navbar-right .btn-shop-now { padding: 7px 14px; font-size: 12px; }
}
@media (max-width: 720px) {
    .navbar-right { gap: 8px; }
    .navbar-right .btn-shop-now { display: none; }
}

/* ── Browse Page ────────────────────────────────────────────── */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.browse-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }

.browse-search-wrap { position: relative; margin-bottom: 12px; }
.browse-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--text-secondary); pointer-events: none;
}
.browse-search-input {
    width: 100%; background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px 11px 40px;
    color: var(--text); font-size: 13px; font-weight: 500;
    font-family: inherit; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    backdrop-filter: none;
}
.browse-search-input::placeholder { color: var(--text-light); }
.browse-search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(255,68,68,0.12);
}

.browse-cat-panel {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 16px;
    backdrop-filter: none;
}
.browse-cat-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--text-secondary); text-transform: uppercase; margin-bottom: 14px;
}
.browse-cat-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 4px; cursor: pointer;
    border-radius: var(--radius-sm); transition: background 0.15s;
}
.browse-cat-item:hover { background: var(--bg-muted); }
.browse-cat-item.active .browse-cat-label { color: var(--text); font-weight: 700; }

.browse-radio {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid var(--border); flex-shrink: 0;
    position: relative; transition: border-color 0.15s; background: transparent;
}
.browse-radio.checked { border-color: var(--primary); background: var(--primary-light); }
.browse-radio.checked::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); box-shadow: none;
}
.browse-cat-label {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    letter-spacing: 0.02em; text-transform: uppercase; transition: color 0.15s;
}
.browse-apply-btn {
    width: 100%; margin-top: 16px; padding: 11px;
    border-radius: var(--radius-sm); border: none;
    background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; cursor: pointer;
    box-shadow: none; transition: background 0.15s; font-family: inherit;
}
.browse-apply-btn:hover { background: var(--primary-hover); transform: none; box-shadow: none; }
.browse-apply-btn:active { transform: none; }

.browse-main { min-width: 0; }
.browse-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.browse-card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}
.browse-card:hover {
    border-color: rgba(255,68,68,0.45);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(255,68,68,0.2), var(--shadow);
}
.browse-card-media {
    position: relative; aspect-ratio: 4/3;
    background: var(--bg-muted);
    overflow: hidden; padding: 10px;
}
.browse-card-media img {
    width: 100%; height: 100%; object-fit: contain;
    display: block; border-radius: var(--radius-sm);
    transition: transform 0.25s ease;
}
.browse-card:hover .browse-card-media img { transform: scale(1.04); }
.browse-card-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 700; color: var(--text-muted);
}
.browse-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.browse-card-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; letter-spacing: -0.01em; }
.browse-card-price {
    font-size: 13px; font-weight: 700; color: var(--primary);
    background: none; -webkit-text-fill-color: initial;
}
.browse-empty { text-align: center; padding: 64px 24px; color: var(--text-secondary); }
.browse-empty-icon { font-size: 36px; margin-bottom: 12px; }
.browse-empty p { font-size: 15px; font-weight: 400; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-page-title { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cart-empty { text-align: center; padding: 64px 24px; color: var(--text-secondary); }
.cart-empty-icon { font-size: 48px; margin-bottom: 14px; }
.cart-empty p { font-size: 15px; font-weight: 400; }
.cart-loading { color: var(--text-secondary); padding: 28px; text-align: center; font-size: 14px; }

.cart-checkbox-wrap { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.cart-checkbox-wrap input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.cart-checkbox-custom {
    width: 18px; height: 18px; border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-soft); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s; position: relative;
}
.cart-checkbox-wrap input[type="checkbox"]:checked ~ .cart-checkbox-custom {
    background: var(--primary); border-color: var(--primary);
}
.cart-checkbox-wrap input[type="checkbox"]:checked ~ .cart-checkbox-custom::after {
    content: ''; display: block; width: 4px; height: 8px;
    border: 1.5px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px,-1px);
}

.cart-main-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border-light);
}
.cart-select-all-wrap { gap: 10px; }
.cart-select-all-label { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 5px; }
.cart-count-badge { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.cart-clear-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.cart-clear-btn:hover { color: var(--danger); background: rgba(239,68,68,0.08); }

.cart-items-list { display: flex; flex-direction: column; }
.cart-item-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: var(--bg-muted); }

.cart-img-wrap { position: relative; flex-shrink: 0; width: 72px; height: 72px; }
.cart-item-img {
    width: 72px; height: 72px; object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-muted); border: 1px solid var(--border);
    padding: 5px; display: block;
}
.cart-item-img-placeholder {
    width: 72px; height: 72px; border-radius: var(--radius-sm);
    background: var(--bg-muted); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: var(--text-muted);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5;
    margin-bottom: 5px; word-break: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-price {
    font-size: 14px; font-weight: 700; color: var(--primary);
    background: none; -webkit-text-fill-color: initial;
}
.cart-item-actions {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    flex-direction: row; margin-top: auto; padding-top: 6px; align-self: flex-end;
}
.cart-action-btn {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; padding: 5px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.cart-wish-btn:hover { color: var(--primary); background: var(--primary-dim); }
.cart-wish-btn.cart-wish-active { color: var(--primary); }
.cart-del-btn:hover { color: var(--danger); background: rgba(239,68,68,0.08); }

.cart-qty-control {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: 999px;
    overflow: hidden; background: var(--bg-soft);
}
.cart-qty-btn {
    width: 28px; height: 28px; background: none; border: none;
    color: var(--text); font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; font-family: inherit;
}
.cart-qty-btn:hover { background: var(--bg-muted); }
.cart-qty-val {
    min-width: 28px; text-align: center; font-size: 13px;
    font-weight: 700; color: var(--text);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    line-height: 28px;
}

.cart-summary-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 16px;
    position: sticky; top: 80px;
}
.cart-summary-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 14px; }
.cart-summary-label { color: var(--text-secondary); font-weight: 400; }
.cart-grand-total { font-size: 16px; font-weight: 800; color: var(--text); }
.cart-summary-divider { height: 1px; background: var(--border); margin: 14px 0; }

.cart-checkout-btn {
    display: block; width: 100%; padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--gradient-cta);
    color: #fff; font-size: 15px; font-weight: 700;
    text-align: center; text-decoration: none; letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(255,0,0,0.35);
    transition: box-shadow 0.2s, transform 0.15s;
    border: none; cursor: pointer; font-family: inherit;
}
.cart-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,68,68,0.5); color: #fff; }
.cart-checkout-btn:active { transform: translateY(0); }
.cart-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 8px; line-height: 1.5; }

@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr 280px; } }
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
    /* Push enough space at the bottom so the floating bar doesn't cover content */
    .cart-left { padding-bottom: 84px; }
    /* Float the summary card as a sticky bottom bar on mobile */
    .cart-right {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    }
    .cart-summary-card {
        position: static;
        border-radius: 0;
        border: none;
        border-top: 3px solid var(--primary);
        padding: 10px 18px 14px;
        background: #111111;
        box-shadow: 0 -6px 32px rgba(0,0,0,0.7), 0 -1px 0 rgba(255,255,255,0.06);
        display: flex; align-items: center; gap: 14px;
    }
    .cart-summary-title { display: none; }
    /* Hide subtotal + promo discount rows — only show the grand total row in the bar */
    .cart-summary-row { display: none; }
    .cart-summary-row--total {
        display: flex;
        margin-bottom: 0; flex-direction: column;
        align-items: flex-start; gap: 2px; flex: 1; min-width: 0;
    }
    .cart-summary-label { font-size: 11px; color: #888; font-weight: 500; }
    .cart-grand-total { font-size: 16px; font-weight: 800; color: #fff; }
    .cart-summary-divider { display: none; }
    .cart-promo-discount-row { display: none; }
    .cart-checkout-btn {
        width: auto; flex-shrink: 0;
        padding: 11px 22px; font-size: 14px; font-weight: 700;
        white-space: nowrap; border-radius: 8px;
        box-shadow: 0 2px 12px rgba(255,0,0,0.45);
    }
}
@media (max-width: 560px) {
    .cart-item-row { flex-wrap: wrap; gap: 10px; }
    .cart-item-actions { width: 100%; justify-content: flex-end; padding-top: 0; align-self: auto; }
    .cart-img-wrap, .cart-item-img, .cart-item-img-placeholder { width: 60px; height: 60px; }
    .cart-checkout-btn { padding: 10px 14px; font-size: 13px; }
}

/* ── Cart recommendations ────────────────────────────────────── */
.cart-rec-section {
    margin-top: 40px;
    animation: fadeIn 0.4s ease-out;
}
.cart-rec-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.cart-rec-tag {
    display: inline-flex; align-items: center;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
    padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase;
}
.cart-rec-title {
    font-size: 20px; font-weight: 800;
    color: var(--text); letter-spacing: -0.03em; flex: 1;
}
.cart-rec-viewall {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.15s; white-space: nowrap;
}
.cart-rec-viewall:hover { color: var(--text); }
.cart-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cart-rec-loading {
    color: var(--text-secondary); font-size: 14px;
    padding: 24px 0; grid-column: 1/-1;
}
@media (max-width: 560px) {
    .cart-rec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cart-rec-title { font-size: 17px; }
    /* Extra bottom padding for floating bar on mobile */
    .cart-rec-section { padding-bottom: 20px; }
}

/* ── Track / History hero ────────────────────────────────────── */
.track-hero { text-align: center; padding: 56px 24px 40px; animation: fadeIn 0.4s ease-out; }
.track-hero-icon { font-size: 36px; margin-bottom: 12px; line-height: 1; filter: none; }
.track-hero-title {
    font-size: 44px; font-weight: 800; letter-spacing: -0.04em;
    color: var(--text); margin-bottom: 12px;
    background: none; -webkit-text-fill-color: initial;
}
.track-hero-sub { color: var(--text-secondary); font-size: 15px; font-weight: 400; margin-bottom: 28px; line-height: 1.7; }
.track-hero-sub strong { color: var(--text); }
.track-hero-form { max-width: 640px; margin: 0 auto; }
.track-hero-inputs {
    display: flex; gap: 8px; align-items: stretch;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 6px 6px 16px; box-shadow: var(--shadow);
    backdrop-filter: none;
}
.track-input-wrap { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
.track-input-icon { position: absolute; left: 8px; width: 14px; height: 14px; color: var(--text-secondary); flex-shrink: 0; pointer-events: none; }
.track-input {
    width: 100%; background: transparent; border: none; outline: none;
    color: var(--text); font-size: 14px; font-weight: 500;
    font-family: inherit; padding: 10px 10px 10px 28px;
}
.track-input::placeholder { color: var(--text-light); }
.track-input-wrap + .track-input-wrap { border-left: 1px solid var(--border-light); }
.track-submit-btn {
    flex-shrink: 0; background: var(--gradient-cta); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: 10px 24px; font-size: 14px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s; white-space: nowrap; letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(255,0,0,0.35);
}
.track-submit-btn:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(255,68,68,0.5); }
@media (max-width: 640px) {
    .track-hero-title { font-size: 30px; }
    .track-hero-inputs { flex-direction: column; border-radius: var(--radius-lg); padding: 14px; }
    .track-input-wrap + .track-input-wrap { border-left: none; border-top: 1px solid var(--border-light); }
    .track-input { padding: 8px 8px 8px 26px; }
    .track-submit-btn { width: 100%; border-radius: var(--radius-sm); padding: 12px; }
}

/* ── Invoice / Order Page ───────────────────────────────────── */
.invoice-page { max-width: 800px; margin: 0 auto; }
.invoice-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.invoice-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 6px; }
.invoice-order-id-row { display: flex; align-items: center; gap: 8px; }
.invoice-order-id {
    font-family: 'SF Mono', Consolas, monospace; font-size: 14px; font-weight: 600;
    color: var(--primary); background: none; -webkit-text-fill-color: initial;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--primary-dim); border: 1px solid rgba(255,0,0,0.25);
    border-radius: 999px; color: var(--text-secondary);
    font-size: 12px; font-weight: 600; font-family: inherit;
    padding: 3px 10px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: var(--primary-light); color: var(--primary); }
.invoice-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.invoice-success-badge {
    background: var(--success-light); border: 1px solid rgba(34,197,94,0.3);
    color: var(--success); font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px;
    box-shadow: none;
}
.invoice-status-pill {
    border: 1px solid; border-radius: 999px;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.invoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .invoice-grid { grid-template-columns: 1fr; } }
.invoice-section-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px;
    backdrop-filter: none;
}
.invoice-section-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-secondary); text-transform: uppercase; margin-bottom: 14px;
}
.invoice-info-table { display: flex; flex-direction: column; }
.invoice-info-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.invoice-info-key { color: var(--text-secondary); font-weight: 400; white-space: nowrap; }
.invoice-info-val { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }
.invoice-timeline { display: flex; flex-direction: column; gap: 0; }
.inv-timeline-step { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; position: relative; }
.inv-timeline-step:not(:last-child)::after {
    content: ''; position: absolute; left: 10px; top: 28px; bottom: -8px;
    width: 1px; background: var(--border);
}
.inv-timeline-dot {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: var(--bg-soft);
    position: relative; z-index: 1;
}
.inv-timeline-step.done .inv-timeline-dot {
    border-color: var(--success); background: var(--success-light); color: var(--success);
}
.inv-timeline-dot-inner { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.inv-timeline-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }
.inv-timeline-step.done .inv-timeline-label { color: var(--text); }
.inv-timeline-time { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.invoice-items-table { display: flex; flex-direction: column; }
.invoice-item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.invoice-item-name { flex: 1; color: var(--text); font-weight: 500; }
.invoice-item-qty {
    background: var(--primary-dim); border: 1px solid rgba(255,0,0,0.25);
    border-radius: 4px; padding: 2px 7px;
    font-size: 12px; font-weight: 700; color: var(--primary); white-space: nowrap;
}
.invoice-item-price { font-weight: 600; color: var(--text); white-space: nowrap; }
.invoice-subtotal-row {
    display: flex; justify-content: space-between; padding: 8px 0;
    font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.invoice-promo-row { color: var(--success); }
.invoice-promo-discount { font-weight: 700; }
.invoice-total-row {
    display: flex; justify-content: space-between; padding: 14px 0 2px;
    font-size: 16px; font-weight: 800; color: var(--primary);
    background: none; -webkit-text-fill-color: initial;
}
.invoice-thankyou {
    margin-top: 24px; text-align: center; padding: 28px 20px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.invoice-thankyou-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.02em; }
.invoice-thankyou-sub { color: var(--text-secondary); font-size: 13px; font-weight: 400; line-height: 1.7; margin-bottom: 20px; }
.btn-review {
    display: inline-block; background: var(--gradient-cta);
    color: #fff; font-size: 14px; font-weight: 700;
    padding: 12px 32px; border-radius: 999px;
    text-decoration: none; letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(255,0,0,0.35); transition: box-shadow 0.2s, transform 0.15s;
}
.btn-review:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,68,68,0.5); color: #fff; }

.local-order-row { text-decoration: none; }

/* ── Mobile filter bar ──────────────────────────────────────── */
.browse-mobile-bar { display: none; align-items: center; gap: 10px; margin-bottom: 14px; }
.browse-search-mobile { flex: 1; margin-bottom: 0; }
.browse-filter-toggle {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 13px; font-weight: 600; font-family: inherit;
    padding: 10px 16px; cursor: pointer; transition: border-color 0.15s;
    position: relative; white-space: nowrap;
}
.browse-filter-toggle:hover { border-color: rgba(255,255,255,0.15); }
.browse-filter-badge { color: var(--primary); font-size: 12px; line-height: 1; }
.browse-mobile-dropdown {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
    margin-bottom: 16px; backdrop-filter: none;
    animation: fadeIn 0.2s ease-out;
}
.browse-mobile-dropdown--open { display: block; }
.browse-mobile-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.browse-mobile-actions { display: flex; gap: 10px; }
.browse-reset-btn {
    flex: 0 0 auto; padding: 10px 20px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.browse-reset-btn:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }
.browse-apply-mobile { flex: 1; margin-top: 0 !important; }

@media (max-width: 1100px) { .browse-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 860px) {
    .browse-mobile-bar { display: flex; }
    .browse-sidebar { display: none; }
    .browse-layout { grid-template-columns: 1fr; gap: 0; }
    .browse-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
    .browse-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .browse-mobile-panels { grid-template-columns: 1fr; gap: 10px; }
    .browse-cat-panel { border-radius: var(--radius-sm); }
}

/* ── Promo code — cart summary ───────────────────────────────── */
.cart-promo-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 2px;
}
.cart-promo-input {
    flex: 1;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.15s;
    min-width: 0;
}
.cart-promo-input::placeholder { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.cart-promo-input:focus { border-color: var(--primary); }
.cart-promo-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    padding: 9px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    letter-spacing: 0.04em;
}
.cart-promo-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-promo-btn:disabled { opacity: .5; cursor: not-allowed; }
.cart-promo-msg {
    font-size: 12px;
    min-height: 18px;
    margin-bottom: 4px;
    padding: 0 2px;
}
.cart-promo-msg--ok  { color: var(--success); }
.cart-promo-msg--err { color: var(--primary); }

.cart-promo-discount-row { color: var(--success); }
.cart-promo-discount-val { font-weight: 700; }

/* Mobile promo card — shown above items on small screens, hidden on desktop */
.cart-promo-mobile-card {
    display: none;
}
/* Desktop promo block inside sidebar — always visible on desktop */
.cart-promo-desktop { display: block; }
.cart-promo-divider-desktop { display: block; }

@media (max-width: 860px) {
    /* Show the standalone mobile promo card */
    .cart-promo-mobile-card {
        display: block;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    .cart-promo-mobile-card .cart-promo-msg { margin-bottom: 0; }
    .cart-promo-mobile-saved {
        font-size: 12px;
        font-weight: 700;
        color: var(--success);
        margin-top: 6px;
    }
    /* Hide the promo block inside the floating bottom bar */
    .cart-promo-desktop { display: none; }
    .cart-promo-divider-desktop { display: none; }
}

/* ── Admin promo code list ───────────────────────────────────── */
.promo-list { display: flex; flex-direction: column; gap: 12px; }
.promo-row {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-row-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-code-badge {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: monospace;
}
.promo-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.promo-row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   Hero V2 — visual column with clipped character + product cards
   ═══════════════════════════════════════════════════════════════ */

/* Visual column: centres the fixed-size stack */
.hero-v2-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    animation: fadeIn 0.6s ease-out;
    z-index: 1;
    /* overflow visible — lets orb glow bleed into the page background
       naturally instead of showing a hard-clipped edge.                */
    overflow: visible;
    height: 420px;
}

/* character-wrap: centres the stack, does NOT clip the glow orbs */
.hero-v2-character-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ── char-stack: THE fixed coordinate space ─────────────────────
   ALWAYS 560 × 420 px on both homepage AND admin canvas.
   left/top/width % on character and cards are all relative to this.
   overflow:hidden clips character/cards to the stack; the parent
   wrappers are overflow:visible so glow orbs bleed freely.
   On narrower viewports the stack scales down via transform.       */
.hero-v2-char-stack {
    position: relative;
    width: 560px;
    height: 420px;
    flex-shrink: 0;
    overflow: hidden;
}
.hsp-canvas {
    position: relative;
    width: 560px;
    height: 420px;
    flex-shrink: 0;
    /* visible so oversized dragged elements stay reachable in admin */
    overflow: visible;
}

/* Character: position + width fully driven by inline styles (% of 560×420) */
.hero-v2-char {
    position: absolute;
    z-index: 3;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
    pointer-events: none;
}

/* ── Product cards — left/top % of the stack ─────────────────── */
.hero-prod-card,
.hsp-drag-card {
    position: absolute;
    z-index: 4;             /* above character */
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 148px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hero-prod-card:hover {
    border-color: rgba(255,68,68,0.45);
    box-shadow: 0 0 0 1px rgba(255,68,68,0.25), var(--shadow-lg);
    color: inherit;
}
/* Keep saved anchors stable; hover feedback does not move the cards. */

/* Product thumbnail */
.hero-prod-img {
    width: 52px; height: 52px;
    object-fit: contain; border-radius: 8px;
    background: var(--bg-muted); border: 1px solid var(--border);
    padding: 3px; flex-shrink: 0;
    display: block;
}
.hero-prod-noimg {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--bg-muted); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: var(--text-muted);
    flex-shrink: 0;
}
.hero-prod-meta  { display: flex; flex-direction: column; gap: 2px; }
.hero-prod-name  {
    font-size: 11px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 124px;
}
.hero-prod-price { font-size: 10px; font-weight: 700; color: var(--primary); }

/* ── Responsive — scale the fixed stack down on smaller screens ── */
@media (max-width: 1100px) {
    /* Right column is narrower — scale stack to ~85% */
    .hero-v2-char-stack {
        transform: scale(0.85);
        transform-origin: top center;
    }
    .hero-v2-character-wrap { height: 357px; } /* 420 * 0.85 */
    .hero-v2-visual         { height: 357px; }
}
@media (max-width: 900px) {
    /* ── Mobile hero: ditch the fixed scaled stack, use a simple image ── */
    .hero-prod-card  { display: none; }

    /* Visual column: auto height, no fixed size */
    .hero-v2-visual         { height: auto; overflow: visible; }
    .hero-v2-character-wrap { height: auto; overflow: visible; width: 100%; justify-content: center; }

    /* Hide the complex stack entirely */
    .hero-v2-char-stack { display: none; }

    /* Show the mobile-only simple character image instead.
       max-height crops transparent bottom padding in the PNG. */
    .hero-v2-char-mobile {
        display: block;
        width: 240px;
        max-width: 72vw;
        height: 220px;
        max-height: 56vw;
        object-fit: contain;
        object-position: center top;
        margin: 0 auto;
        filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    }
}
@media (min-width: 901px) {
    /* Hide the mobile-only image on desktop — desktop uses the stack */
    .hero-v2-char-mobile { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Admin — Hero Setup Page
   Canvas mirrors the homepage visual column exactly:
   same height (420px), same overflow:hidden, same character position,
   same card sizes → drag positions are 1:1 with the live site.
   ═══════════════════════════════════════════════════════════════ */

.hero-setup-layout {
    display: grid;
    grid-template-columns: 320px 560px;
    gap: 28px;
    align-items: start;
    overflow-x: auto;   /* allow horizontal scroll on narrow screens */
}

/* ── Left: controls ──────────────────────────────────────────── */
.hero-setup-controls { display: flex; flex-direction: column; gap: 0; }
.hero-slot-card      { margin-bottom: 16px; }
.hero-slot-header    { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hero-slot-badge {
    font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
    padding: 3px 10px; border-radius: 999px; text-transform: uppercase; flex-shrink: 0;
}
.hero-slot-badge--char { background: #7c3aed; color: #fff; }
.hero-slot-badge--1    { background: var(--primary); color: #fff; }
.hero-slot-badge--2    { background: var(--bg-muted); color: var(--text-secondary); border: 1px solid var(--border); }

.hero-slot-info {
    display: flex; align-items: center; gap: 10px;
    margin-top: 12px; padding: 10px 12px;
    background: var(--bg-muted); border: 1px solid var(--border);
    border-radius: var(--radius-sm); min-height: 54px;
}
.hero-slot-thumb {
    width: 36px; height: 36px; object-fit: contain; border-radius: 6px;
    background: var(--bg-soft); border: 1px solid var(--border); padding: 3px; flex-shrink: 0;
}
.hero-slot-thumb--empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: var(--text-secondary); background: var(--bg-soft);
}
.hero-slot-meta  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-slot-name  { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-slot-price { font-size: 12px; font-weight: 700; color: var(--primary); }
.hero-slot-empty { font-size: 12px; color: var(--text-light); font-style: italic; }
.hero-slot-coords {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; font-size: 12px; color: var(--text-secondary);
}
.hero-slot-coords strong { color: var(--text); font-weight: 700; font-family: 'SF Mono', Consolas, monospace; }
.hero-reset-btn {
    margin-left: auto; background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 11px; font-weight: 700; font-family: inherit;
    padding: 3px 10px; cursor: pointer;
}
.hero-reset-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ── Right: canvas ───────────────────────────────────────────── */
.hero-setup-preview-wrap { position: sticky; top: 80px; }
.hero-setup-preview-label {
    font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
    color: var(--text-secondary); text-transform: uppercase;
    margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.hsp-label-hint { font-size: 11px; font-weight: 500; color: var(--text-light); text-transform: none; letter-spacing: 0; }
.hero-setup-preview-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* THE CANVAS — exactly 560 × 420 px, same as .hero-v2-char-stack.
   % positions are therefore 1:1 between admin and homepage.        */
.hsp-preview-frame {
    width: calc(560px * var(--preview-scale, 1));
    height: calc(420px * var(--preview-scale, 1));
    outline: 1px solid var(--border);
    overflow: hidden;
}
.hsp-canvas {
    /* Borderless logical stage: percentages resolve against exactly 560 x 420.
       overflow:visible so dragging past canvas edges still works in the admin;
       the live page clips via .hero-v2-character-wrap { overflow:hidden }.   */
    transform: scale(var(--preview-scale, 1));
    transform-origin: top left;
    overflow: visible;
    background: var(--bg);
    user-select: none;
    cursor: default;
    /* Do not inherit the admin palette into the storefront preview. */
    --bg: #1A1A1A;
    --bg-soft: #222222;
    --card: #222222;
    --border: rgba(255,255,255,0.09);
    --text: #FFFFFF;
}
.hsp-preview-frame[data-mode="mobile"] .hsp-drag-card { display: none; }
.hsp-preview-controls { margin-bottom: 12px; }
.hsp-drag-char, .hsp-drag-card, .hsp-resize-handle { touch-action: none; }

/* ── Draggable + resizable character ─────────────────────────── */
.hsp-drag-char {
    position: absolute;
    z-index: 5;
    /* width set inline as % of canvas — same unit as homepage */
    cursor: grab;
    border-radius: 4px;
    /* subtle selection ring on hover */
}
.hsp-drag-char:hover,
.hsp-drag-char.hsp-dragging {
    outline: 2px dashed rgba(255,68,68,0.55);
    outline-offset: 4px;
}
.hsp-drag-char.hsp-dragging { cursor: grabbing !important; z-index: 20; }

.hsp-drag-char-img {
    width: 100%; height: auto;
    object-fit: contain; display: block;
    pointer-events: none;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}
.hsp-drag-char-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: var(--text-secondary); font-size: 10px;
    height: 120px; border: 1px dashed var(--border); border-radius: var(--radius-lg);
    width: 100%;
}

/* "CHARACTER" label below the image */
.hsp-drag-char-label {
    position: absolute;
    bottom: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 999px; padding: 2px 8px;
    white-space: nowrap; pointer-events: none;
}

/* ── Resize handle — bottom-right corner ─────────────────────── */
.hsp-resize-handle {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--primary);
    border: 2px solid var(--bg);
    border-radius: 4px;
    cursor: se-resize;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.15s;
    /* Resize icon via background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M2 6L6 2M4 6L6 4M6 6L6 6' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--primary);
}
.hsp-drag-char:hover .hsp-resize-handle,
.hsp-drag-char.hsp-dragging .hsp-resize-handle { opacity: 1; }

/* ── Size slider ─────────────────────────────────────────────── */
.hsp-size-slider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 6px;
    height: 4px;
}

/* ── Draggable cards — same size as .hero-prod-card ─────────── */
.hsp-drag-card {
    z-index: 10;
    cursor: grab;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.hsp-drag-card:hover { border-color: rgba(255,68,68,0.45); }
.hsp-drag-card--dragging,
.hsp-drag-card.hsp-dragging {
    cursor: grabbing !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.35), var(--shadow-xl) !important;
    z-index: 20;
}
.hsp-drag-card--hidden { opacity: 0 !important; pointer-events: none !important; }

.hsp-drag-handle {
    position: absolute; top: 5px; right: 6px;
    color: var(--text-muted); opacity: 0.4; pointer-events: none;
}
.hsp-drag-card:hover .hsp-drag-handle { opacity: 1; }

.hsp-drag-badge {
    position: absolute; top: -7px; left: -7px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg); pointer-events: none;
}
.hsp-drag-badge--2 { background: var(--bg-muted); color: var(--text-secondary); border-color: var(--border); }

.hsp-drag-card-img { width: 52px; height: 52px; flex-shrink: 0; }
.hsp-drag-card-img img {
    width: 52px; height: 52px; object-fit: contain; border-radius: 8px;
    background: var(--bg-muted); border: 1px solid var(--border); padding: 3px; display: block;
}
.hsp-drag-noimg {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--bg-muted); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: var(--text-muted);
}
.hsp-drag-meta  { display: flex; flex-direction: column; gap: 2px; }
.hsp-drag-name  { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
.hsp-drag-price { font-size: 10px; font-weight: 700; color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-setup-layout { grid-template-columns: 1fr; }
    .hero-setup-preview-wrap { position: static; order: -1; overflow-x: auto; }
}

/* ── Category landing page ──────────────────────────────────────────────── */
.category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.category-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}
.category-breadcrumb a:hover { color: var(--primary); }
.category-breadcrumb-sep { color: var(--border-light); }
.category-breadcrumb-current { color: var(--text); font-weight: 600; }
.category-back-row { margin-top: 28px; }

/* ── Admin: category SEO fields ─────────────────────────────────────────── */
.modal-box-wide { max-width: 620px; }
.modal-divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 20px 0 14px;
}
.card-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}
.slug-lock { margin-left: 4px; font-size: 11px; }
.input-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255,255,255,0.03);
}

/* ── Admin: migration SQL fallback box ──────────────────────────────────── */
.sql-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    cursor: text;
}
