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

:root {
    /* Palette */
    --navy:        #062d1a;
    --navy-2:      #0a3a23;
    --teal:        #0f6b44;
    --teal-dark:   #0c5939;
    --teal-xdark:  #083f29;
    --emerald:     #198754;
    --amber:       #ddb24f;
    --danger:      #dc2626;

    /* Surfaces */
    --bg:          #f6f4ec;
    --bg-2:        #fbf8f0;
    --surface:     #fffdf8;
    --surface-2:   #f3efe3;

    /* Text */
    --text:        #1c3325;
    --text-2:      #244734;
    --muted:       #5f7468;
    --muted-light: #8fa397;

    /* Borders */
    --border:      #dfd9cb;
    --border-2:    #c8bfae;

    /* Primary = Teal */
    --primary:         var(--teal);
    --primary-strong:  var(--teal-xdark);

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(6,45,26,.09), 0 1px 2px rgba(6,45,26,.06);
    --shadow:     0 4px 16px rgba(6,45,26,.11), 0 1px 4px rgba(6,45,26,.08);
    --shadow-lg:  0 12px 40px rgba(6,45,26,.15), 0 4px 12px rgba(6,45,26,.09);
    --shadow-xl:  0 24px 60px rgba(6,45,26,.2);

    /* Shape */
    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand, .hero h1 {
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; }
/* ─── Layout ────────────────────────────────────────────────────────── */
.container {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
}

.narrow { width: min(600px, 94vw); }

/* ─── Top Strip ─────────────────────────────────────────────────────── */
.top-strip {
    background: var(--navy);
    color: #94adc4;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.top-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    gap: 1rem;
}

.top-strip p { margin: 0; }

.top-strip a {
    color: #7ec8e3;
    font-weight: 500;
}

.top-strip-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.top-strip-icons span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ─── Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(10,22,40,.04);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.08rem;
    white-space: nowrap;
    text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    padding: 2px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--teal) 0%, var(--emerald) 100%);
    box-shadow: 0 4px 12px rgba(8,145,178,.35);
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.46rem 0.82rem;
    border-radius: 8px;
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.header-nav a:hover {
    background: #edf7f1;
    color: var(--teal-dark);
    text-decoration: none;
}

.header-nav a.active {
    background: #e3f2e9;
    color: var(--teal-dark);
}

.pill-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 4px;
}

.cart-link {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px !important;
}

.cart-link:hover {
    background: #e3f2e9 !important;
    border-color: #b8d6c4 !important;
}

.btn-nav-admin {
    background: var(--navy) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.btn-nav-admin:hover {
    background: var(--navy-2) !important;
    color: #fff !important;
}

/* ─── Links ─────────────────────────────────────────────────────────── */
a {
    color: var(--teal-dark);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn,
.btn-secondary,
.danger {
    border: 0;
    border-radius: 9px;
    padding: 0.7rem 1.1rem;
    min-height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn {
    color: #fff;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-xdark) 100%);
    box-shadow: 0 4px 14px rgba(8,145,178,.28);
}

.btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(8,145,178,.38);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.btn-secondary:hover {
    background: #e8f0fa;
    border-color: #b8cde0;
    text-decoration: none;
    transform: translateY(-1px);
}

.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 10px rgba(220,38,38,.22);
}

.danger:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.small {
    padding: 0.36rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 7px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--teal);
    color: var(--teal-dark);
    border-radius: 9px;
    padding: 0.58rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.18s;
}

.btn-outline:hover {
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ─── Main wrapper ──────────────────────────────────────────────────── */
main.container {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 1.4rem 0 1.2rem;
}

.hero-xl {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #062d1a 0%, #0b4a2e 42%, #0f6b44 82%, #165b31 100%);
    color: #e8f6ff;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.2rem, 4vw, 3rem);
    min-height: clamp(420px, 58vw, 580px);
    gap: 1.5rem;
}

.hero-copy,
.hero-cards {
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 600px) {
    .hero.hero-has-banner .hero-copy { width: fit-content; }
}

/* Pushes hero-copy to the bottom of the hero flex container */
.hero-copy::before {
    content: none;
}

.hero-spacer {
    flex: 1;
}

.hero-xl > .hero-copy {
    margin-top: 0;
}

.hero-copy {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero .eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f3d084;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.hero .eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #f3d084;
    border-radius: 99px;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: #f7d88f;
}

.hero > .hero-copy > p {
    margin: 0 0 0.9rem;
    font-size: 0.97rem;
    color: rgba(220,240,255,.85);
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.mini-card {
    flex: 1 1 190px;
    max-width: 280px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    text-align: center;
}

.mini-card:hover {
    background: rgba(255,255,255,.15);
}

.mini-card .kicker {
    margin: 0 0 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(246,219,153,.9);
    font-weight: 700;
}

.mini-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.mini-card p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(210,235,250,.8);
    line-height: 1.5;
}

/* ─── Trust / Feature Band ──────────────────────────────────────────── */
.feature-band {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1.4rem;
}

.feature-band article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-band article:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.feature-icon.teal   { background: #dcf7ff; color: var(--teal-dark); }
.feature-icon.green  { background: #dcfce7; color: #059669; }
.feature-icon.amber  { background: #fef3c7; color: #d97706; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }

.feature-band h4 {
    margin: 0 0 0.2rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.feature-band p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ─── Catalog Toolbar ───────────────────────────────────────────────── */
.catalog-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0 0.8rem;
}

.catalog-toolbar h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
}

.catalog-toolbar .muted { margin: 0.2rem 0 0; font-size: 0.88rem; }

/* ─── Homepage Category Sections ──────────────────────────────────────── */
.home-cat-section {
    margin-top: 2.8rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-2);
}

.home-cat-toolbar {
    margin-bottom: 1rem;
    padding: 0.8rem 1.1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.home-cat-toolbar h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

@media (max-width: 768px) {
    .home-cat-4th { display: none; }

    /* Hero mobile: hide CTA buttons and eyebrow strip */
    .hero .eyebrow { display: none; }
    .hero .hero-cta { display: none; }

    /* Checkout page: hide Home and Shop nav links on mobile */
    .header-checkout .header-nav a:not(.cart-link) { display: none; }
}

/* ─── Category Chips ────────────────────────────────────────────────── */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.chip {
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.chip:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    text-decoration: none;
    background: #f0f9ff;
}

.chip.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-xdark));
    box-shadow: 0 3px 10px rgba(8,145,178,.3);
}

/* ─── Product Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.1rem; }
.products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ─── Stat Dashboard Cards ──────────────────────────────────────────── */
.stat-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.stat-card-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.stat-card-label {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}
.stat-card-hint {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 600;
}
.text-teal { color: var(--teal); }

/* ─── Cards ─────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}

/* ─── Product Card ──────────────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.product-card-image {
    aspect-ratio: 4 / 3;
    background: var(--surface-2, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border: none;
    transition: transform 0.35s ease;
    padding: 0.5rem;
    box-sizing: border-box;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-image .image-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    border: none;
}

.product-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.product-card .product-category {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-dark);
    font-weight: 700;
}

.product-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.product-card .price {
    margin: 0.3rem 0 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--teal-xdark);
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
    border-radius: 7px;
}

.grid.products {
    margin-bottom: 0.5rem;
}

/* badge on card */
.product-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    z-index: 2;
}

.product-badge.sale { background: #e11d48; }
.product-badge.new  { background: var(--emerald); }

/* ─── Product Single ────────────────────────────────────────────────── */
.product-single {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(280px, 500px) 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.product-single .cover {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.product-panel h1 {
    margin: 0.3rem 0 0.6rem;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.product-tag {
    margin: 0;
    display: inline-flex;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--teal-xdark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.product-description {
    color: var(--text-2);
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.8rem 0 1rem;
}

.product-price-block .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--teal-xdark);
    margin: 0;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}

.stock-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.product-buy-form {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.product-buy-form input {
    max-width: 90px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9px;
    border: 1.5px solid var(--border-2);
}

.product-gallery-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.5rem;
}

.gallery-thumb {
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s;
}

.gallery-thumb:hover { border-color: var(--teal); }

.product-gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* ─── Page Head ─────────────────────────────────────────────────────── */
.page-head {
    padding: 1.2rem 0 0.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.2rem;
}

.page-head h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.page-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

/* ─── Checkout Layout ───────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
}

.summary-card {
    position: sticky;
    top: 90px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
}

.summary-row strong {
    font-weight: 700;
    color: var(--teal-xdark);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 0.7rem 0;
}

.summary-total {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 800;
}

.summary-total .big-price {
    font-size: 1.35rem;
    color: var(--teal-xdark);
}

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-2);
}

input,
select,
textarea {
    width: 100%;
    border: 1.5px solid var(--border-2);
    border-radius: 9px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 44px;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}

textarea { min-height: 100px; resize: vertical; }

.check {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-weight: 500;
}

.check input { width: auto; }

.form-row {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr 1fr;
}

/* ─── Table ─────────────────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table th,
.table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: var(--surface-2);
    color: var(--text-2);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafcff; }

/* ─── Image Helpers ─────────────────────────────────────────────────── */
.image-placeholder {
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1.5px dashed #c5d6e8;
    background: var(--surface-2);
    color: var(--muted-light);
    aspect-ratio: 4 / 3;
    font-size: 0.85rem;
    font-weight: 600;
}

.image-placeholder.large { min-height: 340px; }

.thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.thumb-large {
    width: min(250px, 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.image-preview { display: grid; gap: 0.45rem; }

/* ─── Badges & Pills ────────────────────────────────────────────────── */
.pill {
    background: #e0f2fe;
    color: var(--teal-xdark);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.price {
    font-weight: 800;
    color: var(--teal-xdark);
    font-size: 1rem;
    margin: 0.2rem 0 0.4rem;
}

.muted { color: var(--muted); }

/* ─── Utility ───────────────────────────────────────────────────────── */
.row            { display: flex; align-items: center; }
.spread         { justify-content: space-between; }
.center         { align-items: center; }
.gap-sm         { gap: 0.5rem; }
.big            { font-size: 2.2rem; font-weight: 800; margin: 0.1rem 0 0; line-height: 1; color: var(--navy); }

/* ─── Alerts ────────────────────────────────────────────────────────── */
.notice {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #14532d;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
}

.error {
    background: #fff1f2;
    border: 1.5px solid #fda4af;
    color: #9f1239;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
}

/* ─── Pagination ────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
    justify-content: center;
}

.page-link {
    min-width: 38px;
    text-align: center;
    border: 1.5px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    text-decoration: none;
    background: #f0f9ff;
}

.page-link.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    box-shadow: 0 3px 10px rgba(8,145,178,.28);
}

/* ─── Empty State ───────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.empty-state p   { color: var(--muted); margin: 0 0 1.2rem; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 3rem;
    background: var(--navy);
    color: #8faec8;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    padding: 2.8rem 0 1.8rem;
}

.footer-brand .brand {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
}

.footer-brand .brand-badge {
    box-shadow: none;
}

.footer-brand p {
    margin: 0 0 1.2rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #7a9ab8;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    display: grid;
    place-items: center;
    color: #7a9ab8;
    font-size: 0.9rem;
    transition: all 0.15s;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.2);
    text-decoration: none;
}

.footer-grid h4 {
    margin: 0 0 1rem;
    color: #e2eaf2;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-grid ul li a {
    color: #7a9ab8;
    font-size: 0.88rem;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-grid ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom small {
    color: #5a7a96;
    font-size: 0.82rem;
}

.footer-payments {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.payment-badge {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #8aacca;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.quality-badge {
    background: rgba(15,107,68,.25);
    border: 1px solid rgba(15,107,68,.4);
    color: #7dd8ae;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.footer-tagline {
    display: block;
    color: #7a9ab8;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    line-height: 1.6;
}

/* ─── Admin Gallery ─────────────────────────────────────────────────── */
.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.7rem;
}

.admin-gallery-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 7px;
}

/* ─── Summary ───────────────────────────────────────────────────────── */
.summary {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
}

/* ─── Animations ────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero      { animation: fadeUp 0.5s ease both; }
.feature-band article { animation: fadeUp 0.45s ease both; }
.product-card { animation: fadeUp 0.4s ease both; }

.product-card:nth-child(2)  { animation-delay: 0.04s; }
.product-card:nth-child(3)  { animation-delay: 0.08s; }
.product-card:nth-child(4)  { animation-delay: 0.12s; }
.product-card:nth-child(5)  { animation-delay: 0.16s; }
.product-card:nth-child(6)  { animation-delay: 0.20s; }
.product-card:nth-child(7)  { animation-delay: 0.24s; }
.product-card:nth-child(8)  { animation-delay: 0.28s; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .feature-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { display: none; }
}

@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .summary-card     { position: static; }
    .mini-card  { flex: 1 1 140px; max-width: none; }
}

@media (max-width: 768px) {
    .feature-band    { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .product-single  { grid-template-columns: 1fr; overflow-x: hidden; }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .header-nav .btn-nav-admin { display: none; }
}

@media (max-width: 640px) {
    /* Nav horizontal scroll on mobile so all links remain accessible */
    .header-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .header-nav::-webkit-scrollbar { display: none; }
    .header-shell { padding: 0.6rem 0; gap: 0.75rem; }
    /* Hide top strip icon text on small screens — keep it one line */
    .top-strip-icons { gap: 0.7rem; font-size: 0.72rem; }
    /* Compact brand on small screens */
    .brand span:not(.brand-badge) { display: none; }
}

@media (max-width: 540px) {
    .feature-band { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .hero h1      { font-size: 1.5rem; }
    .form-row     { grid-template-columns: 1fr; }
    .top-strip .container { flex-direction: column; gap: 0.2rem; text-align: center; }
    /* Larger touch targets for product action buttons */
    .product-card .btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
    /* Checkout table compact */
    .cart-table td, .cart-table th { padding: 0.5rem 0.4rem; }
    /* Stat cards stack */
    .stats { grid-template-columns: 1fr 1fr; }
}

/* ── Shop Navigation Button ──────────────────────────────────────────────── */
.btn-nav-shop {
    background: var(--teal);
    color: #fff !important;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}
.btn-nav-shop:hover,
.btn-nav-shop.active {
    background: var(--teal-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── Shop page header ────────────────────────────────────────────────────── */
.shop-page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.6rem 0 0.6rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.shop-page-head h1 {
    font-size: 1.5rem;
    margin: 0 0 0.15rem;
}
.shop-result-count { margin: 0; font-size: 0.88rem; }

/* ── Filter bar (single horizontal row) ──────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    flex-wrap: nowrap;
}
.filter-bar-search {
    display: flex;
    align-items: center;
    flex: 1 1 200px;
    min-width: 140px;
    padding: 0 0.75rem;
    gap: 0.4rem;
    border-right: 1px solid var(--border);
    background: #fff;
}
.filter-bar-search:focus-within {
    background: #f0fbff;
}
.filter-bar-icon { color: var(--muted); font-size: 0.95rem; flex-shrink: 0; }
.filter-bar-search input {
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    font-size: 0.88rem;
    width: 100%;
    padding: 0.6rem 0;
    color: var(--text);
}
.filter-bar-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border-right: 1px solid var(--border);
    min-width: 0;
    flex-shrink: 0;
    background: #fff;
}
.filter-bar-field:focus-within { background: #f0fbff; }
.filter-bar-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.1rem;
    white-space: nowrap;
}
.filter-bar-field input,
.filter-bar-field select {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0;
    width: 100%;
    cursor: pointer;
    min-width: 80px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}
.filter-bar-field input[type="number"] { min-width: 80px; max-width: 100px; }
.filter-bar-field select {
    min-width: 100px;
    padding-right: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
}
.filter-bar-btn {
    flex-shrink: 0;
    border: none;
    background: var(--teal);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}
.filter-bar-btn:hover { background: var(--navy); }
.filter-bar-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.8rem;
    font-size: 1.2rem;
    color: var(--muted);
    text-decoration: none;
    border-left: 1px solid var(--border);
    transition: color 0.15s, background 0.15s;
    background: #fff;
}
.filter-bar-clear:hover { color: #dc2626; background: #fef2f2; }

/* ── Active filter pills ─────────────────────────────────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    background: #e0f7f5;
    border: 1px solid var(--teal);
    color: var(--teal);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.active-filter-tag a {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.7;
}
.active-filter-tag a:hover { opacity: 1; }

/* ── Shop product grid ───────────────────────────────────────────────────── */
.shop-grid {
    margin-top: 0.5rem;
}

/* ── Pagination ellipsis ─────────────────────────────────────────────────── */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ── Responsive filter bar ───────────────────────────────────────────────── */
@media (max-width: 860px) {
    .filter-bar { flex-wrap: wrap; border-radius: var(--radius); }
    .filter-bar-search { border-right: none; border-bottom: 1px solid var(--border); flex: 1 1 100%; }
    .filter-bar-field { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--border); padding: 0.5rem 0.75rem; }
    .filter-bar-field:nth-child(odd) { border-right: 1px solid var(--border); }
    .filter-bar-field select,
    .filter-bar-field input { padding: 0.25rem 0; font-size: 0.9rem; }
    .filter-bar-btn { flex: 1 1 auto; padding: 0.6rem 1rem; }
    .filter-bar-clear { flex: 0 0 48px; border-left: 1px solid var(--border); }
    .filter-bar-price { display: none; }
}
@media (max-width: 540px) {
    .filter-bar-field { flex: 1 1 100%; border-right: none !important; }
}

/* ── View All CTA (homepage) ─────────────────────────────────────────────── */
.view-all-cta {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0.5rem;
}
.btn-outline-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 2rem;
    border: 2px solid var(--navy);
    border-radius: var(--radius-lg);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
    text-decoration: none;
}

/* ── Order Management ────────────────────────────────────────────────────── */

/* Status pills – list & view */
.ord-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.os-pending      { background: #fef3c7; color: #92400e; }
.os-awaiting     { background: #ede9fe; color: #5b21b6; }
.os-paid         { background: #d1fae5; color: #065f46; }
.os-processing   { background: #dbeafe; color: #1e40af; }
.os-dispatched   { background: #e0f2fe; color: #0c4a6e; }
.os-delivered    { background: #dcfce7; color: #14532d; }
.os-cancelled    { background: #f1f5f9; color: #475569; }
.os-failed       { background: #fee2e2; color: #991b1b; }
.os-chargeback   { background: #fce7f3; color: #9d174d; }

/* Issue badge */
.ord-issue-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.55rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #fca5a5;
}

/* Payment badge */
.ord-pay-badge {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.pay-cod    { background: #fef9c3; color: #854d0e; }
.pay-online { background: #dbeafe; color: #1e3a8a; }

/* Issue row highlight */
.ord-row-issue td { background: #fff8f8 !important; }
.ord-row-issue:hover td { background: #fff1f1 !important; }

/* Stats bar */
.ord-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}
.ord-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.ord-stat-pill:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    text-decoration: none;
    background: #f0f9ff;
}
.ord-stat-pill.active {
    background: linear-gradient(135deg, var(--teal), var(--teal-xdark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(8,145,178,.28);
}
.ord-stat-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 0 0.3rem;
    height: 18px;
    border-radius: 99px;
    background: rgba(0,0,0,.12);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
}
.ord-stat-pill.active span { background: rgba(255,255,255,.25); }

/* Search form */
.ord-search-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.ord-search-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
    align-items: end;
}
.ord-search-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}
.ord-issues-check {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
    flex-direction: row !important;
}
.ord-issues-check input {
    width: auto;
    min-height: auto;
    margin: 0;
    cursor: pointer;
}
.ord-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ord-field-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.ord-field input,
.ord-field select {
    padding: 0.5rem 0.7rem;
    font-size: 0.86rem;
    min-height: 38px;
    border-radius: 8px;
}
/* .ord-field-check merged into ord-field in orders.php */

/* Orders table */
.ord-table td { vertical-align: top; padding: 0.65rem 0.7rem; }
.ord-table th  { white-space: nowrap; }

@media (max-width: 1100px) {
    .ord-search-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .ord-search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .ord-stats-bar { gap: 0.3rem; }
    .ord-stat-pill { font-size: 0.76rem; padding: 0.25rem 0.6rem; }
    .ord-search-grid { grid-template-columns: 1fr; }
    .ord-search-actions { flex-wrap: wrap; }
    .ord-search-actions > div { margin-left: 0; width: 100%; }
    .ord-search-actions > div .btn,
    .ord-search-actions > div .btn-secondary { flex: 1; justify-content: center; }
}

/* ── Admin search-bar input group ──────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border-2);
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}
.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    outline: none;
    box-shadow: none !important;
    width: 100%;
}
.search-bar input:focus {
    border-color: transparent;
    box-shadow: none;
}
.search-bar button {
    flex-shrink: 0;
    border: none;
    border-left: 1.5px solid var(--border-2);
    background: var(--surface-2, #f3f4f6);
    color: var(--text-2, #374151);
    padding: 0 0.85rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
    border-radius: 0;
    min-height: 38px;
    line-height: 1;
}
.search-bar button:hover {
    background: var(--teal);
    color: #fff;
}

/* ── WhatsApp Floating Action Button ────────────────────────────────────── */
.wa-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem 0.65rem 0.85rem;
    background: #25d366;
    color: #fff;
    border-radius: 3rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(37,211,102,.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(37,211,102,.55);
    color: #fff;
}
.wa-fab svg {
    flex-shrink: 0;
}
/* Hide WA button while cart drawer is open */
body.cart-drawer-open .wa-fab {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 540px) {
    .wa-fab span { display: none; }
    .wa-fab { padding: 0.8rem; border-radius: 50%; }
}

/* ─── Homepage Banner Slider ────────────────────────────────────────────── */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 1.4rem 0 1.2rem;
    background: var(--navy);
    aspect-ratio: 16 / 5;
    min-height: 180px;
    max-height: 420px;
}

.banner-track { position: relative; width: 100%; height: 100%; }

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-2);
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active { opacity: 1; z-index: 1; }

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,45,26,.72) 0%, rgba(6,45,26,.28) 60%, transparent 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    max-width: 560px;
}

.banner-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.3rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.banner-subtitle {
    margin: 0 0 1rem;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: rgba(230,250,240,.88);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.banner-btn {
    font-size: 0.92rem;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}

.banner-arrow:hover { background: rgba(255,255,255,.35); }
.banner-prev { left: 0.9rem; }
.banner-next { right: 0.9rem; }

.banner-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.45rem;
}

.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .banner-slider { aspect-ratio: 16 / 7; min-height: 140px; }
    .banner-arrow { display: none; }
}

/* ─── Food Info Tabs (Ingredients / How to Prepare) ─────────────────────── */
.food-info-tabs { border-radius: var(--radius-lg); overflow: hidden; }

.food-tabs-nav {
    display: flex;
    gap: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.food-tab-btn {
    flex: 1;
    padding: 0.75rem 1.2rem;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-bottom: 2.5px solid transparent;
}

.food-tab-btn:hover { background: var(--bg); color: var(--text); }
.food-tab-btn.active { background: var(--surface); color: var(--teal-dark); border-bottom-color: var(--teal); }

.food-tab-content { display: none; }
.food-tab-content.active { display: block; }

.food-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.4rem 1.6rem;
}

.food-info-card h3 {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.food-info-body {
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--text-2);
    white-space: pre-wrap;
}

/* ─── Product Variants ──────────────────────────────────────────────────── */
.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-chip {
    padding: 0.48rem 1rem;
    border-radius: 9px;
    border: 2px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    font-weight: 700;
    font-size: 0.87rem;
    cursor: pointer;
    transition: all 0.15s;
}

.variant-chip:hover:not(:disabled) {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: #f0fdf9;
}

.variant-chip.active {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
    box-shadow: 0 3px 10px rgba(8,145,178,.3);
}

.variant-chip.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}


/* -- Product Card Stretched Link ------------------------------------------- */
.product-card { position: relative; cursor: pointer; }
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}
/* Keep the inner btn visually on top but non-clickable (card link handles it) */
.product-card .btn,
.product-card .btn-secondary {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* -- Cart Toggle Button (header) ------------------------------------------- */
#cart-toggle-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: inherit;
    line-height: inherit;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.46rem 0.82rem;
    transition: background 0.15s, color 0.15s;
}
#cart-toggle-btn:hover {
    background: #e3f2e9;
    border-color: #b8d6c4;
    color: var(--teal-dark);
}

/* -- Cart Drawer ----------------------------------------------------------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1199;
    background: rgba(6,45,26,.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(420px, 100vw);
    background: var(--surface);
    box-shadow: -8px 0 40px rgba(6,45,26,.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

body.cart-drawer-open { overflow: hidden; }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.2rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-xdark) 100%);
    color: #fff;
    flex-shrink: 0;
}
.cart-drawer-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.cart-close-btn {
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-close-btn:hover { background: rgba(255,255,255,.32); }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer-loading,
.cart-drawer-error {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-drawer-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}
.cart-drawer-empty p { color: var(--muted); margin: 0 0 1rem; }
.cart-drawer-empty .btn { margin: 0 auto; }

.cart-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-drawer-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-drawer-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.cart-drawer-item-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    white-space: normal;
    word-break: break-word;
}

.cart-drawer-item-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.cart-drawer-item-total {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--teal-xdark);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-drawer-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-drawer-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}
.cart-drawer-subtotal strong { font-size: 1.2rem; color: var(--teal-xdark); }

/* -- Add-to-Cart Button Animations ----------------------------------------- */
@keyframes atcPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); box-shadow: 0 6px 22px rgba(8,145,178,.5); }
    100% { transform: scale(1); }
}
@keyframes spinAround {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes badgeBounce {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.55); }
    65%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}

.atc-loading {
    opacity: 0.8;
    cursor: wait !important;
}
.atc-done {
    background: linear-gradient(135deg, #059669, #047857) !important;
    animation: atcPulse 0.4s ease forwards;
}
.atc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinAround 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 2px;
}
.badge-bounce { animation: badgeBounce 0.4s ease; }

/* -- Mobile Cart Page ------------------------------------------------------ */
@media (max-width: 700px) {
    .checkout-layout { grid-template-columns: 1fr !important; }
    .summary-card { position: static; order: -1; }

    /* Cart table ? card list on mobile */
    .cart-table-wrap { overflow-x: auto; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--surface);
    }
    .table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 0.9rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.88rem;
    }
    .table td:last-child { border-bottom: none; }
    .table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
    .table td input[type="number"] { max-width: 70px; text-align: center; }
}

@media (max-width: 480px) {
    .cart-drawer { width: 100vw; }
    .cart-drawer-header { padding: 0.9rem 1rem; }
    .cart-drawer-body { padding: 0.75rem; }
    .cart-drawer-footer { padding: 0.75rem; }
}

/* ─── Hero with Banner Background ───────────────────────────────────── */
.hero-has-banner {
    background: var(--navy);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
}

.hero-banner-bg.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.hero.hero-has-banner .hero-copy,
.hero.hero-has-banner .hero-cards {
    position: relative;
    z-index: 2;
}

.hero.hero-has-banner .hero-copy {
    background: rgba(6, 40, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 2rem 2.5rem 2.2rem;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .hero.hero-has-banner .hero-copy {
        padding: 0.7rem 1rem 0.8rem;
        border-radius: 10px;
        width: fit-content;
        max-width: 88vw;
    }
    .hero-xl {
        min-height: 280px;
        padding: 2rem 1rem;
        align-items: center;
    }
}

.hero-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.45rem;
}

@media (max-width: 600px) {
    .hero-has-banner .banner-arrow { display: none; }
}

/* ─── Product Bundle Cards ───────────────────────────────────────────── */
.bundles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.bundle-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.bundle-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-2);
}

.bundle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bundle-card:hover .bundle-card-image img {
    transform: scale(1.04);
}

.bundle-no-img {
    padding: 1.2rem 1.2rem 0;
    display: flex;
}

.bundle-save-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

.bundle-save-badge.static {
    position: static;
}

.bundle-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.bundle-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.bundle-desc {
    margin: 0;
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.55;
}

.bundle-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.4rem;
}

.bundle-original {
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: line-through;
}

.bundle-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--teal-dark);
}

/* ─── Quantity Stepper (+/−) ─────────────────────────────────────────── */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-2);
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface);
}

.qty-btn {
    width: 36px;
    height: 38px;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal-dark);
    cursor: pointer;
    line-height: 1;
    transition: background 0.12s;
    flex-shrink: 0;
}

.qty-btn:hover { background: #e6f7f1; }

.qty-stepper input[type=number] {
    width: 52px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    border-radius: 0;
    padding: 0.35rem 0;
    background: var(--surface);
    -moz-appearance: textfield;
}

.qty-stepper input[type=number]::-webkit-outer-spin-button,
.qty-stepper input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ─── Admin: btn-danger (small inline delete button) ────────────────── */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #fee2e2;
    color: #991b1b;
    transition: background 0.15s;
}
.btn-danger:hover { background: #fca5a5; }
.btn-danger.small { padding: 0.25rem 0.65rem; font-size: 0.78rem; }

/* Category section "See All" button alignment */
.catalog-toolbar .btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
}
