/* ───────────────────────────────────────────────
   Rivo Sports House — flat editorial stylesheet
   Palette: Red / Green / Black.
   Red = action & urgency (CTAs, sales, active states)
   Green = positive signal (in stock, completed, success)
   Black = structure (text, topbar, footer bands)
   ─────────────────────────────────────────────── */

:root {
    --primary: #d21d30;      /* red — actions, sales, active states */
    --primary-dark: #a81524; /* red hover */
    --accent: #0f8a3c;       /* green — positive signals */
    --accent-dark: #0c6f2f;  /* green hover */
    --dark: #0c0c0c;         /* near-black text + structural bands */
    --gray: #5b5b63;         /* secondary text */
    --border: #e4e4e6;       /* hairline rules */
    --light: #ffffff;        /* solid background */
    --light-alt: #f7f7f5;    /* subtle alt background */
    --radius: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.main-content { min-height: 65vh; }

/* Small uppercase label used across the site */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-buy-now { background: var(--accent); color: #fff; border-color: var(--accent); margin-top: 8px; }
.btn-buy-now:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { border-color: var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-plain { border-color: transparent; color: var(--gray); padding-left: 12px; padding-right: 12px; }
.btn-plain:hover { color: var(--dark); }
.btn-sm { padding: 8px 16px; font-size: 0.72rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Navbar ─── */
.nav-top {
    background: var(--dark);
    font-size: 0.8rem;
    color: #9c9ca4;
    padding: 8px 0;
}
.nav-top-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-top a { color: #fff; text-decoration: none; }
.nav-top a:hover { color: #57d183; }
.nav-social a { margin-left: 16px; }

.nav-main {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-main-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; }
.nav-search-row { display: none; }

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.nav-logo-img { height: 62px; width: auto; display: block; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 0.92rem; transition: color 0.15s; }
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    background: var(--light);
    border: 1px solid var(--dark);
    min-width: 200px;
    padding: 8px 0;
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 8px 16px; color: var(--dark); text-decoration: none; font-size: 0.9rem; }
.dropdown-item:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--dark); }
.nav-search input {
    padding: 6px 2px;
    border: none;
    font-size: 0.9rem;
    width: 160px;
    background: transparent;
    outline: none;
    font-family: inherit;
}
.nav-search button {
    padding: 4px 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark);
    font-family: inherit;
}
.nav-cart {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--dark);
}
.nav-cart:hover { color: var(--accent); }

.nav-search button:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); }

/* ─── Hero ─── */
.hero { padding: 130px 0 140px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; max-width: 14ch; }
.hero p { font-size: 1.15rem; color: var(--gray); margin: 20px 0 36px; max-width: 44ch; }
.hero-highlight { color: var(--accent); }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--dark);
    padding: 8px 12px 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    color: var(--dark);
}
.hero-chip-tag {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    padding: 8px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (max-width: 480px) {
    .hero-chip { font-size: 0.78rem; }
}

/* ─── Sections ─── */
.section { padding: 88px 0; }
.section-rule { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.section-title { font-size: 1.7rem; font-weight: 700; }
.section-link { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--gray); }
.section-link:hover { color: var(--accent); }

/* ─── Category rows (index) ─── */
.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.15s;
}
.category-row:last-child { border-bottom: 1px solid var(--border); }
.category-row-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.category-row:hover .category-row-name { color: var(--accent); }
.category-row-meta { display: flex; align-items: center; gap: 32px; }
.category-row-count { font-size: 0.85rem; color: var(--gray); }
.category-row-cta { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark); }
.category-row:hover .category-row-cta { color: var(--accent); }

/* ─── Product grid ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 24px;
}
@media (min-width: 1025px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card { position: relative; min-width: 0; }
.product-card-image-wrap { position: relative; overflow: hidden; background: #f4f4f4; }
.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.product-card-image-2 { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.2s; }
.product-card:hover .product-card-image-2 { opacity: 1; }
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 7px 12px;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14);
}
.sale-badge-soldout { background: var(--dark); box-shadow: none; }
.product-card-body { padding: 14px 0 0; }
.product-card-flag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}
.flag-sale { color: var(--accent); }
.flag-soldout { color: var(--gray); }
.product-card-category { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.product-card-title { font-size: 0.95rem; font-weight: 500; margin: 4px 0 6px; }
.product-card-title a { text-decoration: none; color: var(--dark); }
.product-card-title a:hover { color: var(--accent); }
.product-card-price { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.product-card-price .original-price { text-decoration: line-through; color: var(--gray); font-weight: 400; font-size: 0.85rem; margin-right: 8px; }
.price-on-sale { color: var(--accent); font-weight: 700; }
.product-card-stock { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.product-card-stock .in { color: var(--accent); font-weight: 600; }
.product-card-stock .low { color: var(--primary); font-weight: 700; }
.product-card-stock .out { color: var(--gray); }

/* ─── Latest arrivals list (index) ─── */
.arrival-row {
    display: grid;
    grid-template-columns: 48px 64px 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
}
.arrival-row:last-child { border-bottom: 1px solid var(--border); }
.arrival-num { font-size: 0.8rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.arrival-thumb { width: 64px; height: 64px; object-fit: cover; background: #f4f4f4; display: block; }
.arrival-name { font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.arrival-row:hover .arrival-name { color: var(--accent); }
.arrival-cat { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.arrival-price { font-size: 0.95rem; font-weight: 600; }

/* ─── Product detail ─── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 0; font-size: 0.82rem; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb a:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--border); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 32px 0 72px; }
.product-detail-image { width: 100%; background: #f4f4f4; display: block; }
.product-detail h1 { font-size: 2.1rem; margin: 8px 0 16px; }
.product-detail .price { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.product-detail .price .original-price { text-decoration: line-through; color: var(--gray); font-weight: 400; font-size: 1rem; margin-right: 10px; }
.save-tag {
    display: inline-block;
    margin-left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    vertical-align: middle;
}
.product-brand { font-size: 0.9rem; color: var(--gray); margin-bottom: 16px; }
.product-brand strong { color: var(--dark); }
.product-detail .description { color: var(--gray); margin-bottom: 32px; line-height: 1.8; }
.product-stock { margin-bottom: 24px; font-size: 0.9rem; color: var(--gray); }
.product-stock .out { color: var(--primary); font-weight: 600; }
.product-stock .in { color: var(--accent); font-weight: 600; }
.option-group { margin-bottom: 24px; }
.option-group > label { font-weight: 600; display: block; margin-bottom: 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.option-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.option-pills input[type="radio"] { display: none; }
.option-pills label {
    padding: 9px 18px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.15s;
}
.option-pills input[type="radio"]:checked + label { border-color: var(--dark); font-weight: 600; }
.quantity-control { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.quantity-control button {
    width: 40px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--light);
    font-size: 1rem;
    cursor: pointer;
}
.quantity-control button:hover { border-color: var(--dark); }
.quantity-control input {
    width: 56px;
    height: 42px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: 0;
    border-right: 0;
    font-family: inherit;
    font-size: 0.9rem;
}
.product-detail form .btn { width: 100%; }

.product-meta { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.88rem; color: var(--gray); }
.product-meta p { padding: 3px 0; }
.product-meta strong { color: var(--dark); font-weight: 600; }

.product-info-section { border-top: 1px solid var(--dark); padding: 32px 0 72px; display: grid; gap: 48px; }
.product-info-block .info-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin-bottom: 20px;
}
.feature-list { list-style: none; }
.feature-list li { padding-left: 22px; position: relative; color: var(--dark); line-height: 1.7; margin-bottom: 10px; font-size: 0.95rem; }
.feature-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 8px;
    height: 2px;
    background: var(--accent);
}
.feature-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.feature-list a:hover { color: var(--primary); }

.spec-table { width: 100%; border-collapse: collapse; max-width: 640px; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.spec-table th { width: 200px; color: var(--gray); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; }
.spec-table td { color: var(--dark); }

.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery-thumb {
    padding: 0;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    width: 72px;
    height: 72px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb:hover { border-color: var(--accent); }
.product-gallery-thumb.active { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }

.product-gallery-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}
.product-gallery-main:hover img { filter: brightness(0.96); }
.gallery-zoom-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.product-gallery:hover .gallery-zoom-hint { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.96);
    padding: 64px 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: 100%;
    margin: 0;
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-count {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-top: 16px;
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 12px 20px;
}
.lightbox-arrow:hover { color: #fff; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 10px;
}
.lightbox-close:hover { color: #fff; }
.lightbox-thumbs {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px;
}
.lightbox-thumb {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb.active { border-color: #fff; outline: 1px solid #fff; outline-offset: 1px; }

/* ─── Shop layout ─── */
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 48px 0 88px; }
.shop-sidebar { height: fit-content; position: sticky; top: 96px; }
.filter-group { border-top: 1px solid var(--border); padding: 20px 0; }
.filter-group:first-child { border-top: 0; padding-top: 0; }
.filter-group h3, .filter-group h4 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin-bottom: 14px;
}
.filter-item { margin-bottom: 2px; }
.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
}
.sidebar-link:hover { color: var(--accent); }
.sidebar-link.active { color: var(--accent); font-weight: 600; }
.count { font-size: 0.78rem; color: var(--gray); font-variant-numeric: tabular-nums; }

.size-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 0.9rem; color: var(--gray); }
.size-check:hover { color: var(--accent); }
.size-check input { accent-color: var(--accent); cursor: pointer; }
.size-check .count { margin-left: auto; }

.filter-actions { padding-top: 8px; }
.filter-actions .btn { width: 100%; }

.shop-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.shop-header h1 { font-size: 2rem; }
.result-count { color: var(--gray); font-size: 0.85rem; margin-top: 4px; }
.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--light);
    font-family: inherit;
    font-size: 16px;
    color: var(--dark);
}
.filter-toggle { display: none; }

/* Shop filters drawer (mobile) */
.shop-sidebar-toggle { display: none; }
.shop-sidebar.open { display: block; }

/* ─── Price slider ─── */
.price-slider { position: relative; height: 24px; margin: 8px 0 14px; }
.price-slider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
    transform: translateY(-50%);
}
.slider-track {
    position: absolute;
    top: 50%; left: 0;
    height: 1px;
    background: var(--accent);
    transform: translateY(-50%);
    z-index: 1;
}
.price-slider input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: var(--accent);
    border: none;
    cursor: pointer;
}
.price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: var(--accent);
    border: none;
    cursor: pointer;
}
.price-inputs { display: flex; align-items: center; gap: 6px; }
.price-inputs input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    font-size: 16px;
    text-align: right;
    font-family: inherit;
}
.price-inputs span { font-size: 0.8rem; color: var(--gray); }
.price-label { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.78rem; color: var(--gray); }

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.85rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    background: var(--light);
    color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ─── Cart ─── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    padding: 0 16px 12px 0;
    border-bottom: 1px solid var(--dark);
}
.cart-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-image { width: 72px; height: 72px; object-fit: cover; background: #f4f4f4; display: block; }
.cart-item-name { font-weight: 600; text-decoration: none; color: var(--dark); }
.cart-item-name:hover { color: var(--accent); }
.cart-total { text-align: right; padding: 24px 0; }
.cart-total .amount { font-size: 1.5rem; font-weight: 700; }
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

/* ─── Checkout ─── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; padding: 24px 0 88px; }
.checkout-grid h1 { font-size: 2rem; margin: 8px 0 8px; }
.checkout-sub { color: var(--gray); font-size: 0.92rem; margin-bottom: 32px; }
.checkout-form { border: none; padding: 0; background: none; }
.checkout-section { border-top: 1px solid var(--dark); padding: 24px 0 8px; margin-bottom: 24px; }
.checkout-section-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); margin-bottom: 20px; }
.payment-list { list-style: none; margin-bottom: 16px; }
.payment-list li { padding-left: 22px; position: relative; color: var(--gray); line-height: 1.7; margin-bottom: 10px; font-size: 0.92rem; }
.payment-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 8px;
    height: 2px;
    background: var(--accent);
}
.payment-list strong { color: var(--dark); }

.order-summary { border-left: 1px solid var(--border); padding-left: 40px; height: fit-content; }
.order-summary h2 { font-size: 1.1rem; margin-bottom: 6px; }
.order-summary-count { font-size: 0.8rem; color: var(--gray); margin-bottom: 20px; }
.order-summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.order-summary-item { display: flex; gap: 14px; align-items: flex-start; }
.order-summary-thumb { width: 56px; height: 56px; object-fit: cover; background: #f4f4f4; flex-shrink: 0; }
.order-summary-line .name { font-weight: 600; font-size: 0.9rem; }
.order-summary-line .meta { color: var(--gray); font-size: 0.8rem; }
.order-summary-line .meta.sale { color: var(--accent); font-weight: 600; }
.order-summary-price { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.order-summary-total { display: flex; justify-content: space-between; padding: 18px 0 0; font-size: 1.15rem; font-weight: 700; }
.sum-note { margin-top: 8px; color: var(--accent-dark); font-size: 0.82rem; font-weight: 600; }
.checkout-note { text-align: left; margin-top: 12px; color: var(--gray); font-size: 0.85rem; }

/* ─── Auth ─── */
.auth-container { max-width: 380px; margin: 96px auto; }
.auth-container h1 { font-size: 2rem; margin-bottom: 32px; }

/* ─── Flash messages ─── */
.flash-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.flash {
    padding: 14px 20px;
    background: var(--light);
    border: 1px solid var(--dark);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 260px;
    transition: opacity 0.3s, transform 0.3s;
}
.flash-success { border-left: 3px solid var(--accent); }
.flash-danger { border-left: 3px solid var(--primary); }

/* ─── Footer ─── */
.footer { background: var(--dark); color: #c7c7cd; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: 12px; color: #fff; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #8f8f97; margin-bottom: 14px; }
.footer-col p { color: #a9a9b0; font-size: 0.9rem; max-width: 32ch; }
.footer-col a { display: block; color: #d6d6db; text-decoration: none; padding: 3px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 56px; padding: 20px 0; border-top: 1px solid #2a2a2e; font-size: 0.82rem; color: #8f8f97; }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; gap: 20px; margin-top: 56px; }
.pagination a, .pagination span {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 2px 0;
}
.pagination a:hover { color: var(--dark); }
.pagination a.active { color: var(--dark); font-weight: 700; border-bottom: 2px solid var(--accent); }
.pagination span { color: var(--border); }

/* ─── Empty states ─── */
.empty-state { text-align: center; padding: 96px 20px; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 28px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 8px; }

/* ─── Maintenance ─── */
.maintenance { text-align: center; padding: 140px 20px; }
.maintenance h1 { font-size: 2.2rem; margin-bottom: 12px; }
.maintenance p { color: var(--gray); font-size: 1.05rem; }
.maintenance .btn { margin-top: 32px; }

/* ─── Legal pages ─── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 72px 0 96px; }
.legal-page h1 { font-size: 2rem; padding-bottom: 24px; border-bottom: 1px solid var(--dark); margin-bottom: 8px; }
.legal-content h2 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin: 44px 0 14px;
}
.legal-content h2:first-child { margin-top: 28px; }
.legal-content p { color: var(--gray); line-height: 1.9; max-width: 65ch; margin-bottom: 16px; }
.legal-content ul { margin: 4px 0 24px 4px; padding-left: 0; }
.legal-content li {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    list-style: none;
}
.legal-content li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 8px;
    height: 1px;
    background: var(--primary);
}
.legal-content strong { color: var(--dark); font-weight: 600; }
.legal-updated {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Admin ─── */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 40px 0 88px; }
.admin-sidebar a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    padding: 7px 0;
    font-size: 0.92rem;
}
.admin-sidebar a:hover { color: var(--dark); }
.admin-sidebar a.active { color: var(--accent); font-weight: 600; }
.admin-sidebar .admin-logout { margin-top: 24px; color: var(--primary); }
.admin-content { min-width: 0; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 1.6rem; }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.stat-card { padding: 24px 24px 24px 0; }
.stat-card + .stat-card { border-left: 1px solid var(--border); padding-left: 24px; }
.stat-card h3 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); margin-bottom: 6px; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }
.stat-completed .value { color: var(--accent); }
.stat-revenue .value { color: var(--primary); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    padding: 0 16px 12px 0;
    border-bottom: 1px solid var(--dark);
}
.admin-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--light-alt); }
.admin-table td a { text-decoration: none; }
.admin-table td a:hover { color: var(--accent); }
.admin-table .row-actions { display: flex; gap: 8px; align-items: center; }
.admin-thumb { width: 48px; height: 48px; object-fit: cover; background: #f4f4f4; display: block; }

.status-text { font-size: 0.85rem; font-weight: 600; }
.status-pending { color: var(--gray); }
.status-confirmed { color: var(--accent); font-weight: 700; }
.status-delivered { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.status-completed { color: #fff; background: var(--accent); padding: 2px 10px; display: inline-block; }
.status-cancelled { color: var(--primary); }

.admin-panel { padding: 28px 0; }
.admin-panel > h2 { font-size: 1.1rem; margin-bottom: 16px; }
.admin-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.admin-detail p { padding: 6px 0; font-size: 0.95rem; }
.admin-detail p strong { display: inline-block; min-width: 80px; color: var(--gray); font-weight: 500; }
.admin-status-form { display: flex; gap: 8px; align-items: center; }
.admin-status-form select { padding: 8px 12px; border: 1px solid var(--border); font-family: inherit; background: var(--light); }
.admin-total { text-align: right; padding-top: 16px; font-size: 1.15rem; font-weight: 700; }

.admin-form { max-width: 640px; }
.admin-form-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.admin-checks { display: flex; gap: 24px; margin-bottom: 20px; }
.admin-checks label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.admin-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-gallery-item {
    width: 100px;
    border: 1px solid var(--border);
    padding: 6px;
}
.admin-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f4f4f4; }
.admin-gallery-item form { margin-top: 6px; }
.admin-gallery-item .btn { width: 100%; text-align: center; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(3), .stat-card:nth-child(5) { border-left: 0; padding-left: 0; }
}

@media (max-width: 768px) {
    /* Navbar: logo + menu + cart on one line, search on its own row below */
    .nav-top { display: none; }
    .nav-main-inner { padding: 14px 0; }
    .nav-logo { flex: 1; font-size: 1rem; white-space: nowrap; }
    .nav-logo-img { height: 48px; }
    .nav-search { display: none; }
    .nav-search-row { display: block; width: 100%; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
    .nav-search-row .nav-search { display: flex; width: 100%; }
    .nav-search-row .nav-search input { flex: 1; width: auto; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }

    /* Hero & sections */
    .section { padding: 56px 0; }
    .hero { padding: 64px 0 72px; }
    .section-head { flex-direction: column; gap: 4px; margin-bottom: 28px; }

    /* Grids & lists */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
    .category-row { padding: 16px 0; gap: 16px; }
    .category-row-name { font-size: 1.15rem; }
    .category-row-count { display: none; }
    .arrival-row { grid-template-columns: 1fr auto; }
    .arrival-num, .arrival-thumb, .arrival-cat { display: none; }
    .arrival-name { font-size: 0.95rem; }

    /* Shop: sidebar becomes a collapsible drawer */
    .shop-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
    .filter-toggle { display: flex; width: 100%; justify-content: center; margin-bottom: 20px; }
    .shop-sidebar { display: none; position: static; padding-bottom: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
    .shop-sidebar.open { display: block; }
    .shop-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .shop-header h1 { font-size: 1.5rem; }

    /* Product detail */
    .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 40px; }
    .product-detail h1 { font-size: 1.6rem; }
    .product-info-section { gap: 32px; padding-bottom: 48px; }
    .spec-table th { width: 120px; }

    /* Lightbox */
    .lightbox { padding: 56px 0 20px; }
    .lightbox-image { max-height: 78vh; }
    .lightbox-arrow { font-size: 1.9rem; padding: 8px 12px; }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
    .gallery-zoom-hint { opacity: 1; }

    /* Checkout */
    .checkout-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
    .order-summary { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }

    /* Cart */
    .cart-table { font-size: 0.85rem; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .cart-total { text-align: left; }
    .cart-actions { flex-direction: column; align-items: stretch; }

    /* Admin */
    .admin-layout { grid-template-columns: 1fr; gap: 24px; }
    .admin-sidebar { display: flex; flex-wrap: wrap; gap: 4px 20px; }
    .admin-sidebar .admin-logout { margin-top: 0; margin-left: auto; }
    .admin-panel-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card + .stat-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); }
    .admin-header { flex-wrap: wrap; gap: 12px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Legal pages */
    .legal-page { padding: 40px 0 64px; }
    .legal-page h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card-title { font-size: 0.85rem; }
}
