/* Fonts (Archivo, Inter, JetBrains Mono) are loaded via <link> tags in
   header.php's <head>, not @import here - @import forces the browser to
   download this whole file first before it can even discover the font
   request, adding a full extra sequential round-trip. Loading them as
   separate <link> tags lets the browser fetch fonts and this stylesheet
   in parallel instead. */

:root {
    --paper: #FAF9F6;
    --paper-dim: #F1EFE9;
    --ink: #1B3A34;
    --ink-soft: #3C534E;
    --pine: #1B3A34;
    --pine-dark: #122622;
    --marigold: #E8A33D;
    --marigold-dark: #C4841F;
    --line: #DEDACE;
    --muted: #7A8B87;
    --danger: #B3452F;
    --radius: 4px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; width: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .display {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pine-dark);
    margin: 0;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--marigold-dark); outline-offset: 2px; }

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

/* ---------- Header ---------- */
.site-header {
    background: var(--pine);
    color: var(--paper);
    position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header .logo { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; color: var(--paper); letter-spacing: -0.01em; white-space: nowrap; display: flex; align-items: center; }
.site-header .logo-img { max-height: 80px; width: auto; display: block; }

/* Site-wide watermark - dedicated image from Shop Settings, tiled repeatedly
   across the full page rather than one centered mark. A single centered
   watermark ends up almost entirely hidden behind opaque cards/sections
   sitting on top of it; a repeated tile shows through the many small gaps
   between content instead. Purely decorative (aria-hidden, no pointer
   events). z-index -1 keeps it behind normal-flow content without needing
   z-index on every other element - default (auto) content already outranks
   a negative value. */
.site-watermark {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background-repeat: repeat; background-size: 160px 160px;
    opacity: 0.05; z-index: -1; pointer-events: none;
}
.search-form { flex: 1; display: flex; position: relative; }
.search-category-select {
    border: none; border-right: 1px solid var(--line); background: var(--paper-dim); color: var(--ink-soft);
    font-size: 13px; padding: 0 10px; border-radius: var(--radius) 0 0 var(--radius); max-width: 130px;
}
.search-form input {
    flex: 1; border: none; border-radius: 0;
    padding: 10px 14px; font-size: 14px; font-family: inherit;
}
.search-form button {
    border: none; background: var(--marigold); color: var(--pine-dark); font-weight: 700;
    padding: 0 18px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}

.search-hints {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 12px 28px rgba(27,58,52,0.18); max-height: 380px; overflow-y: auto; padding: 6px;
}
.search-hints.open { display: block; }
.search-hint-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; color: inherit; }
.search-hint-row:hover, .search-hint-row.active { background: var(--paper-dim); }
.search-hint-thumb { width: 38px; height: 38px; border-radius: 6px; background: var(--paper-dim); flex-shrink: 0; overflow: hidden; }
.search-hint-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-hint-text { flex: 1; min-width: 0; }
.search-hint-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hint-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.search-hint-price { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--pine-dark); font-weight: 500; flex-shrink: 0; }
.search-hint-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.header-links { display: flex; align-items: center; gap: 16px; font-size: 13px; white-space: nowrap; }
.header-links a { opacity: 0.9; }
.header-links a:hover { opacity: 1; }

/* Generic dropdown (language selector, Account & Lists, and the All-menu reuses this too) */
.dropdown { position: relative; }
.dropdown-btn {
    background: none; border: none; color: var(--paper); font-family: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 4px; padding: 6px 4px; border-radius: var(--radius);
    opacity: 0.92;
}
.dropdown-btn:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.dropdown-btn .caret { font-size: 10px; opacity: 0.8; }
.dropdown-btn .globe-icon { font-size: 14px; }
.dropdown-btn .stacked { text-align: left; line-height: 1.3; }
.dropdown-btn .line1 { display: block; font-size: 11px; opacity: 0.8; }
.dropdown-btn .line2 { display: block; font-size: 13px; font-weight: 700; }

.dropdown-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(27,58,52,0.16); min-width: 170px; padding: 8px;
}
.dropdown-panel.open { display: block; }
.dropdown-panel a { display: block; padding: 8px 10px; border-radius: var(--radius); font-size: 13.5px; color: var(--ink); }
.dropdown-panel a:hover { background: var(--paper-dim); }

/* Returns & Orders - plain two-line link, no dropdown */
.stacked-link { display: flex; flex-direction: column; line-height: 1.3; color: var(--paper); opacity: 0.92; }
.stacked-link:hover { opacity: 1; }
.stacked-link .line1 { font-size: 11px; opacity: 0.8; }
.stacked-link .line2 { font-size: 13px; font-weight: 700; }

/* Cart */
.cart-link { display: flex; align-items: center; gap: 6px; color: var(--paper); opacity: 0.92; }
.cart-link:hover { opacity: 1; }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-icon { font-size: 22px; }
.cart-count {
    position: absolute; top: -6px; right: -8px; background: var(--marigold); color: var(--pine-dark);
    font-weight: 700; font-size: 11px; border-radius: 999px; padding: 1px 6px; line-height: 1.4;
}
.cart-link .line2 { font-size: 13px; font-weight: 700; }

/* ---------- Category strip ---------- */
.category-strip { background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.category-strip .container { display: flex; align-items: center; gap: 20px; overflow: visible; padding-top: 10px; padding-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.category-strip .container > a { white-space: nowrap; color: var(--ink-soft); }
.category-strip .container > a:hover { color: var(--pine); }

.all-menu { position: relative; flex-shrink: 0; }
.all-menu-btn {
    display: flex; align-items: center; gap: 6px; background: var(--pine); color: #fff;
    border: none; border-radius: var(--radius); padding: 7px 14px; font-weight: 700; font-size: 13px;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.all-menu-btn:hover { background: var(--pine-dark); }
.all-menu-btn .hamburger { font-size: 15px; line-height: 1; }
.all-menu-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(27,58,52,0.16); padding: 18px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px;
    min-width: 320px; max-width: 720px;
}
.all-menu-panel.open { display: grid; }
.all-menu-col-title { display: block; font-weight: 700; font-size: 13.5px; color: var(--pine-dark); margin-bottom: 8px; }
.all-menu-col ul { list-style: none; margin: 0; padding: 0; }
.all-menu-col li { margin-bottom: 6px; }
.all-menu-col li a { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.all-menu-col li a:hover { color: var(--pine); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 22px; max-width: 560px; line-height: 1.2; }
.hero p.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--marigold-dark); margin-bottom: 3px; font-weight: 500; }
.hero p.sub { color: var(--ink-soft); max-width: 480px; margin-top: 4px; font-size: 13px; }

/* ---------- Section heading ---------- */
.section { padding: 22px 0; }
.hero + .section { padding-top: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.section-head a.view-all { font-size: 13px; font-weight: 600; color: var(--pine); border-bottom: 1px solid var(--marigold); }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.category-card {
    background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 14px; text-align: center; font-weight: 600; font-size: 14px; transition: border-color .15s, transform .15s;
}
.category-card:hover { border-color: var(--pine); }

/* ---------- Homepage tile grid (category + thumbnail preview, like a store directory board) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile-title { font-size: 15px; margin-bottom: 12px; }
.tile-thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile-thumb { aspect-ratio: 1/1; background: var(--paper-dim); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-thumb-empty { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; color: var(--muted); }
.tile-see-more { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--pine); }
.tile-see-more:hover { text-decoration: underline; }

@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- Horizontal scroll carousel ---------- */
.carousel-wrap { position: relative; }
.carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 200px; scroll-snap-align: start; }

/* Compact variant - small icon strip (e.g. Recently Viewed) */
.carousel-track-compact { gap: 10px; }
.carousel-item-compact { flex: 0 0 76px; }
.mini-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mini-item-thumb {
    width: 60px; height: 60px; border-radius: var(--radius); background: var(--paper-dim);
    border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mini-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item-name {
    font-size: 11px; color: var(--ink-soft); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--pine-dark); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(27,58,52,0.12);
}
.carousel-arrow:hover { background: var(--paper-dim); }
.carousel-arrow-left { left: -14px; }
.carousel-arrow-right { right: -14px; }
@media (max-width: 640px) {
    .carousel-arrow { display: none; }
    .carousel-item { flex-basis: 44%; }
}

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .15s, transform .15s;
    height: 100%; /* fills the equal-height box given by the grid/carousel row, so price tags line up */
}
.product-card:hover { border-color: var(--pine); box-shadow: 0 6px 18px rgba(27,58,52,0.10); }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card .thumb { aspect-ratio: 1/1; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .name {
    font-weight: 600; font-size: 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px; /* reserves space for 2 lines even when the name is short - keeps every card's content height identical */
}
.product-card .brand { color: var(--muted); font-size: 12px; }
.product-card .unit-label { color: var(--muted); font-size: 11.5px; margin-top: -6px; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* Wishlist heart - overlays the top-left corner of the thumbnail */
.wishlist-heart-btn {
    position: absolute; top: 8px; left: 8px; z-index: 5; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 1px solid var(--line); color: var(--ink-soft);
    font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: color .15s, transform .1s;
}
.wishlist-heart-btn:hover { transform: scale(1.08); }
.wishlist-heart-btn.active { color: var(--danger); border-color: var(--danger); }

/* Quick add - overlays the top-right corner of the thumbnail */
.quick-add-btn {
    position: absolute; top: 8px; right: 8px; z-index: 5; padding: 5px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--pine); color: var(--pine); font-weight: 700; font-size: 12px;
    cursor: pointer; transition: background .15s, color .15s;
}
.quick-add-btn:hover { background: var(--pine); color: #fff; }
.quick-add-btn.added { background: var(--pine); color: #fff; border-color: var(--pine); }

/* ---------- Category feature carousel (larger cards, title on top) ---------- */
.cat-feature-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px;
    scrollbar-width: none;
}
.cat-feature-track::-webkit-scrollbar { display: none; }
.cat-feature-card {
    flex: 0 0 160px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center;
    text-align: center; background: var(--paper-dim); border: 1.5px solid var(--line); border-radius: 12px;
    padding: 14px 12px; gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-feature-card:hover { border-color: var(--pine); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27,58,52,0.10); }
.cat-feature-title {
    font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--pine-dark);
    line-height: 1.25; min-height: 38px; display: flex; align-items: center; justify-content: center;
}
.cat-feature-thumb { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-feature-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-feature-fallback { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 34px; color: var(--muted); }

@media (max-width: 640px) {
    .cat-feature-card { flex-basis: 128px; padding: 10px 8px; }
    .cat-feature-title { font-size: 13px; min-height: 32px; }
}

/* ---------- Promo banner row ---------- */
.promo-banner-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px;
    scrollbar-width: none;
}
.promo-banner-track::-webkit-scrollbar { display: none; }

.promo-banner-card {
    position: relative; border-radius: var(--radius); overflow: hidden; transition: transform .15s;
    flex: 0 0 450px; scroll-snap-align: start;
}
.promo-banner-card:hover { transform: translateY(-2px); }

/* Fallback layout - colored background + text, only used for a banner with no image uploaded */
.promo-banner-card:not(.promo-banner-image-only) { padding: 18px; min-height: 225px; display: flex; align-items: center; }
.promo-banner-text { position: relative; z-index: 2; max-width: 65%; }
.promo-banner-title { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.25; }
.promo-banner-subtitle { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* Image-only banners - the uploaded image shown as-is, no text/color overlay.
   Recommended upload size: 450x225px (2:1 ratio) - displays fully uncropped
   at that exact ratio; other ratios get minimally center-cropped via
   object-fit:cover rather than distorted or letterboxed with empty bars. */
.promo-banner-image-only { aspect-ratio: 450 / 225; display: block; }
.promo-banner-image-only img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
    .promo-banner-card { flex-basis: 78%; }
}

/* Signature element: price rendered as a die-cut price tag */
.price-tag {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    background: var(--marigold); color: var(--pine-dark); font-family: 'JetBrains Mono', monospace;
    font-weight: 500; font-size: 14px; padding: 4px 10px 4px 14px;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.price-tag::before {
    content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--paper);
}
.price-tag .mrp { text-decoration: line-through; color: var(--pine-dark); opacity: 0.55; font-size: 11px; margin-right: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: var(--radius); font-weight: 700; font-size: 13.5px;
    padding: 9px 16px; cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-accent { background: var(--marigold); color: var(--pine-dark); }
.btn-accent:hover { background: var(--marigold-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--pine); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ---------- Forms ---------- */
.form-page { max-width: 420px; margin: 60px auto; padding: 0 24px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    font-family: inherit; font-size: 14px; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: #FBEAE5; color: var(--danger); border: 1px solid #F0C6B8; }
.alert-success { background: #E6EFE9; color: var(--pine-dark); border: 1px solid #BFD8C9; }

/* ---------- Cart & checkout ---------- */
.cart-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .thumb { width: 72px; height: 72px; background: var(--paper-dim); border-radius: var(--radius); flex-shrink: 0; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .qty-input { width: 60px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.summary-box { background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: 'Archivo', sans-serif; }

/* ---------- Status badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-placed, .badge-confirmed, .badge-processing { background: #FDF1DE; color: var(--marigold-dark); }
.badge-dispatched, .badge-out_for_delivery { background: #E2EEF7; color: #2C6693; }
.badge-delivered { background: #E6EFE9; color: var(--pine-dark); }
.badge-cancelled, .badge-returned { background: #FBEAE5; color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-dark); color: var(--paper); margin-top: 60px; font-size: 13px; }

.back-to-top {
    display: block; width: 100%; background: var(--ink-soft); color: var(--paper); border: none;
    padding: 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.back-to-top:hover { background: var(--pine); }

/* Head Office + showroom address cards */
.footer-locations { padding: 40px 0 32px; border-bottom: 1px solid rgba(250,249,246,0.12); }
.footer-locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.footer-location-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(250,249,246,0.14); border-radius: 10px;
    padding: 18px; transition: border-color .15s, background .15s;
}
.footer-location-card:hover { border-color: var(--marigold); background: rgba(255,255,255,0.07); }
.footer-location-main { border-color: rgba(232,163,61,0.4); background: rgba(232,163,61,0.06); }
.footer-location-badge {
    display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--pine-dark); background: rgba(250,249,246,0.85); border-radius: 999px; padding: 2px 9px; margin-bottom: 10px;
}
.footer-location-badge-showroom { background: rgba(74,144,217,0.85); color: #fff; }
.footer-location-card h4 { font-family: 'Archivo', sans-serif; font-size: 14.5px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-location-address { color: rgba(250,249,246,0.75); font-size: 12.5px; line-height: 1.6; margin: 0 0 8px; }
.footer-location-phone { color: rgba(250,249,246,0.85); font-size: 12.5px; margin: 0; font-weight: 600; }

.footer-columns { padding: 36px 0; border-bottom: 1px solid rgba(250,249,246,0.12); }
.footer-columns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.footer-column h4 { color: var(--paper); font-size: 14px; margin-bottom: 12px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: rgba(250,249,246,0.75); font-size: 13px; }
.footer-column a:hover { color: #fff; text-decoration: underline; }

.footer-brand-row {
    padding: 20px 0; border-bottom: 1px solid rgba(250,249,246,0.12); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-brand-row .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Rating badge (real aggregate from product_reviews) + social icons */
.footer-social-block { min-width: 160px; }
.footer-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.footer-rating-stars { color: var(--marigold); letter-spacing: 1px; font-size: 15px; }
.footer-rating-value { font-weight: 700; color: #fff; }
.footer-rating-count { color: rgba(250,249,246,0.6); font-size: 11.5px; }
.footer-social-icons { display: flex; gap: 8px; margin-top: 10px; }
.footer-social-icon-btn {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: rgba(250,249,246,0.85);
    transition: background .15s, color .15s;
}
.footer-social-icon-btn svg { width: 16px; height: 16px; }
.footer-social-icon-btn:hover { background: var(--marigold); color: var(--pine-dark); }

.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { margin-bottom: 8px; color: rgba(250,249,246,0.75); font-size: 13px; }
.footer-contact-list a { color: rgba(250,249,246,0.75); }
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }

/* Payment method badges - real supported methods, not fabricated card-network logos */
.footer-payment-methods { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-payment-badge {
    font-size: 11px; font-weight: 600; color: rgba(250,249,246,0.8); border: 1px solid rgba(250,249,246,0.2);
    border-radius: 4px; padding: 3px 9px;
}
.footer-shop-name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px; }
.footer-logo-img { max-height: 44px; width: auto; display: inline-block; }

.footer-legal { padding: 18px 0 26px; text-align: center; }
.footer-legal-links { margin-bottom: 8px; font-size: 12.5px; }
.footer-legal-links a { color: rgba(250,249,246,0.7); }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal-links .dot { margin: 0 8px; color: rgba(250,249,246,0.4); }
.footer-copyright { color: rgba(250,249,246,0.55); font-size: 12px; }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--pine); text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

.pdp-grid {
    display: grid; grid-template-columns: 64px 360px 1fr 300px; gap: 28px; align-items: start;
}
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pdp-thumb-btn {
    width: 56px; height: 56px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-dim); padding: 0; cursor: pointer; overflow: hidden;
}
.pdp-thumb-btn.active { border-color: var(--pine); border-width: 2px; }
.pdp-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.pdp-main-image {
    aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--paper-dim); display: flex; align-items: center; justify-content: center;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-no-image { color: var(--muted); font-size: 13px; }

.pdp-brand { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.pdp-title { font-size: 24px; margin-bottom: 10px; line-height: 1.3; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13.5px; }
.pdp-rating .stars { color: var(--marigold-dark); letter-spacing: 1px; }
.pdp-rating .rating-value { font-weight: 600; }
.pdp-rating .rating-count { color: var(--pine); }

.pdp-price-block { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.pdp-discount { color: var(--danger); font-weight: 700; font-size: 16px; }
.pdp-price { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 500; color: var(--ink); }
.pdp-mrp-line { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pdp-mrp { text-decoration: line-through; }
.pdp-tax-note { font-size: 12px; color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.pdp-description { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.pdp-meta { font-size: 12.5px; color: var(--muted); }

.pdp-buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.pdp-stock { font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.pdp-stock.in-stock { color: var(--pine-dark); }
.pdp-stock.out-of-stock { color: var(--danger); }
.pdp-buy-form .field { margin-bottom: 12px; }
.pdp-buybox-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }

@media (max-width: 1000px) {
    .pdp-grid { grid-template-columns: 56px 1fr; grid-template-areas: "thumbs image" "info info" "buybox buybox"; }
    .pdp-thumbs { grid-area: thumbs; flex-direction: row; flex-wrap: wrap; }
    .pdp-main-image { grid-area: image; }
    .pdp-info { grid-area: info; margin-top: 16px; }
    .pdp-buybox { grid-area: buybox; margin-top: 16px; }
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- Recent search chips ---------- */
.search-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-chip {
    display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
    background: var(--paper-dim); border: 1px solid var(--line); color: var(--ink-soft);
    font-size: 13px; font-weight: 500;
}
.search-chip:hover { background: var(--pine); border-color: var(--pine); color: #fff; }

@media (max-width: 640px) {
    .site-header .container { flex-wrap: wrap; }
    .search-form { order: 3; width: 100%; }
    .search-category-select { max-width: 90px; }
    .hero h1 { font-size: 28px; }
    .all-menu-panel { left: -8px; min-width: 260px; max-width: calc(100vw - 32px); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------- Invoice modal ---------- */
.invoice-modal-backdrop {
    display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300;
    background: rgba(18,38,34,0.6); align-items: center; justify-content: center; padding: 24px;
}
.invoice-modal-backdrop.open { display: flex; }
.invoice-modal-box {
    background: #fff; border-radius: 10px; width: 100%; max-width: 820px; height: 88vh;
    display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,0.3); overflow: hidden;
}
.invoice-modal-header {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
    border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.invoice-modal-header h3 { font-size: 16px; }
.invoice-modal-actions { display: flex; align-items: center; gap: 8px; }
.invoice-modal-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 4px; }
.invoice-modal-close:hover { color: var(--ink); }
.invoice-modal-hint { font-size: 11.5px; color: var(--muted); padding: 8px 18px 0; margin: 0; flex-shrink: 0; }
.invoice-modal-body { flex: 1; min-height: 0; }
.invoice-modal-body iframe { width: 100%; height: 100%; border: none; }

/* ---------- Content + sidebar grid (used by checkout AND cart pages) ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.checkout-address-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 640px) {
    .invoice-modal-box { height: 92vh; }
    .invoice-modal-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
    .checkout-address-fields { grid-template-columns: 1fr; }
}
