/* =====================================================================
   IIS Shop stylesheet - palette sampled from logo.jpg
   Soft silver + warm gray with a peach accent.
   Professional look: metallic gradients, glass header, soft depth.
   ===================================================================== */
:root {
    color-scheme: light;
    /* Brand blue (from logo) */
    --navy: #0b2f6b;
    --navy-deep: #071f47;
    --steel: #1e6fe0;
    --steel-light: #4f92f0;
    --sky: #8fbaf6;

    /* Accent orange (from logo) */
    --orange: #d1521a;
    --amber: #d6702e;
    --orange-dark: #ad3f12;
    --price-orange: #d1521a;

    /* Neutrals — light: white / snow / light gray (cool neutral) */
    --gray-050: #fbfcfe;
    --gray-100: #f4f6fa;
    --gray-200: #e8ecf3;
    --gray-300: #d5dbe6;
    --gray-500: #7a869a;
    --gray-700: #414b5a;
    --ink: #131a26;
    --white: #ffffff;        /* card/surface */
    --pure-white: #ffffff;
    --silver: #d5dbe6;
    --silver-light: #e8ecf3;
    --page-bg: #d7dce4;      /* silver page */

    --ok: #1e9e5a;
    --no: #d13b2b;

    --grad-blue: linear-gradient(135deg, #0b2f6b 0%, #1e6fe0 60%, #4f92f0 100%);
    --grad-orange: linear-gradient(135deg, #d6702e 0%, #d1521a 60%, #ad3f12 100%);
    --grad-chrome: linear-gradient(180deg, #ffffff 0%, #e8ecf3 100%);
    --grad-silver: linear-gradient(180deg, #f4f6fa 0%, #d5dbe6 100%);
    --shadow-sm: 0 2px 10px rgba(19,26,38,.06);
    --shadow: 0 10px 30px rgba(19,26,38,.10);
    --shadow-lg: 0 22px 50px rgba(19,26,38,.16);
    --radius: 16px;
    --radius-sm: 10px;
}

/* Dark mode: only darkens the scrollable body/page. Cards, header and nav keep their light-theme look. */
html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #12161c;   /* dark scrollable body */
}
/* Make text that sits directly on the page (not inside cards) readable on the dark body */
html[data-theme="dark"] body { color: #eef2f8; }
html[data-theme="dark"] .home-intro h2,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .empty-state h2,
html[data-theme="dark"] .detail-info h1 { color: #eef2f8; }
html[data-theme="dark"] .home-intro p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .result-meta,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .detail-info .subtitle,
html[data-theme="dark"] .detail-info .desc,
html[data-theme="dark"] .pagination .page-status { color: #c4ccd8; }

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Global mobile guard: prevent horizontal overflow on phones */
html { overflow-x: hidden; }
body { max-width: 100%; }
img, svg { max-width: 100%; }

h1, h2, h3, .header-hero h1, .home-intro h2, .section-head h2, .detail-info h1, .product-card h3, .list-item .info h3, .feature h3 {
    font-family: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: .005em;
}

/* Futuristic heading font on prices + nav brand for a cohesive look */
.product-card .price, .list-item .side .price, .detail-info .price-tag {
    font-family: 'Sora', system-ui, sans-serif;
}

a { color: var(--steel); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

.site-main { min-height: 60vh; }

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

::selection { background: var(--orange); color: #fff; }

/* === Header === */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--grad-orange);
    color: #fff;
    box-shadow: 0 4px 18px rgba(209,82,26,.35);
    padding-bottom: 10px;
    border-bottom: none;
}
/* subtle circuit / dot texture like the logo backdrop */
.site-header::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}

/* Header utility bar */
.header-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(0, 680px) 1fr;
    align-items: center;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: .8rem 1.25rem;
}
.brand-logo { display: flex; align-items: center; flex: 0 0 auto; justify-self: start; }
.brand-logo img { height: 52px; width: auto; border-radius: 8px; }

.header-search {
    width: 100%;
    display: flex;
    background: var(--pure-white);
    border: 2px solid var(--silver);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within { border-color: #35507f; box-shadow: 0 0 0 4px rgba(53,80,127,.15); }
.header-search .hs-cat {
    flex: 0 0 auto;
    max-width: 170px;
    border: 0;
    border-right: 1px solid var(--silver);
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: .9rem;
    padding: .7rem .8rem;
    cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a869a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    padding-right: 1.6rem;
    outline: none;
}
.header-search input {
    flex: 1 1 auto;
    border: 0; outline: 0;
    padding: .7rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    background: transparent;
    color: var(--ink);
}
.header-search button {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: .4rem;
    border: 0; cursor: pointer;
    padding: 0 1.1rem;
    font-weight: 700; font-size: .9rem;
    color: #fff;
    background: linear-gradient(180deg, #35507f 0%, #24365c 100%);
    transition: background .2s ease;
}
.header-search button:hover { background: linear-gradient(180deg, #3d588c 0%, #2c4169 100%); }
.header-search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; justify-self: end; }
.header-action {
    display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
    color: #fff; font-size: .72rem; font-weight: 700;
    letter-spacing: .03em;
}
.header-action svg { width: 24px; height: 24px; }
.header-action:hover { color: var(--navy); }
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.05rem; height: 1.05rem; margin-left: .28rem; padding: 0 .28rem;
    border-radius: 999px; background: var(--orange); color: #fff;
    font-size: .62rem; font-weight: 800; line-height: 1;
}

/* Category bar (full-width navy strip, content capped at 1200px) */
.main-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem 1rem;
    background: var(--grad-blue);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -4px 12px rgba(0,0,0,.28);
    border-radius: 10px;
}
.main-nav a {
    color: #eef1f7;
    font-weight: 600;
    font-size: .86rem;
    letter-spacing: .02em;
    padding: .4rem .8rem;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main-nav .nav-all {
    background: linear-gradient(180deg, #35507f 0%, #24365c 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.main-nav .nav-all:hover { background: linear-gradient(180deg, #3d588c 0%, #2c4169 100%); }
.main-nav .nav-plain { margin-left: auto; color: #c7d0e2; font-weight: 600; }
.main-nav .nav-plain + .nav-plain { margin-left: .25rem; }

/* === Footer === */
.site-footer {
    margin-top: 4rem;
    background: var(--grad-blue);
    color: rgba(255,255,255,.75);
    position: relative;
}
.site-footer::before {
    content: "";
    display: block; height: 4px;
    background: var(--grad-orange);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: .25rem; max-width: 320px; }
.footer-brand strong { color: #fff; font-size: 1.15rem; letter-spacing: .02em; }
.footer-brand span { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.footer-qr img { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 4px; display: block; }
.footer-qr span { color: rgba(255,255,255,.55); font-size: .78rem; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .92rem; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
    text-align: center;
    padding: 1.1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
    position: relative;
    overflow: hidden;
}
/* sheen sweep on hover */
.btn::before {
    content: "";
    position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.btn:hover::before { left: 130%; }

.btn-primary {
    background: var(--grad-orange);
    color: #fff;
    box-shadow: 0 8px 20px rgba(209,82,26,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(209,82,26,.42); color: #fff; }

.btn-navy {
    background: var(--grad-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(22,39,74,.28);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22,39,74,.4); color: #fff; }

.btn-whatsapp {
    background: linear-gradient(135deg, #4ee06e 0%, #25d366 55%, #1ebe57 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37,211,102,.32);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.45); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--steel); color: var(--steel); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; border-radius: 8px; }

/* === Marquee banner === */
.marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--white);
    border-bottom: 4px solid transparent;
    border-image: var(--grad-orange) 1;
}
.marquee::before, .marquee::after {
    content: "";
    position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-slide {
    flex: 0 0 auto;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem .6rem;
}
.marquee-slide img {
    height: 100%; width: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* === Home intro === */
.home-intro { text-align: center; padding: 3rem 1rem 1rem; max-width: 720px; margin: 0 auto; }
.home-intro h2 {
    color: var(--navy);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: .6rem;
}
.home-intro p { color: var(--gray-700); font-size: 1.05rem; }
.home-cta { text-align: center; padding: 2rem 1rem 3.5rem; }

/* === Section header === */
.section-head { text-align: center; padding: 3rem 1rem 1.75rem; }
.section-head h2 {
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    display: inline-block;
    position: relative;
}
.section-head h2::after {
    content: "";
    display: block;
    width: 70px; height: 4px; border-radius: 4px;
    margin: .6rem auto 0;
    background: var(--grad-orange);
}
.section-head p { color: var(--gray-700); margin-top: .5rem; }

/* === Search bar === */
.search-bar {
    display: flex;
    gap: .6rem;
    max-width: 680px;
    margin: 25px auto 2.5rem;
    padding: 0 1.25rem;
}
.search-bar input {
    flex: 1;
    padding: .95rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--steel-light);
    box-shadow: 0 0 0 4px rgba(209,82,26,.25);
}
.search-bar select {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 240px;
    padding: .95rem 2.6rem .95rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    line-height: normal;
    color: var(--ink);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23968f88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.search-bar select:hover {
    border-color: var(--silver-light);
}
.search-bar select:focus {
    outline: none;
    border-color: var(--steel-light);
    box-shadow: 0 0 0 4px rgba(209,82,26,.25);
}

/* === Product CARD layout === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
    padding: 0 1.25rem 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background: var(--white);
    border: 2px solid #bcd4f5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card .thumb {
    aspect-ratio: 4 / 3;
    background: var(--grad-chrome);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { color: var(--navy); font-size: 1.08rem; font-weight: 700; margin-bottom: .15rem; line-height: 1.3; }
.product-card .sub { color: var(--gray-500); font-size: .82rem; margin-bottom: .7rem; }
.product-card .price {
    font-weight: 800; font-size: 1.3rem; margin-bottom: .9rem;
    color: var(--price-orange);
}
.product-card .btn { margin-top: auto; }
/* When a card has an inline add-to-cart form, it takes the bottom slot and the
   View button follows it with a small gap. */
.product-card .card-add-form { margin-top: auto; }
.product-card .card-add-form + .btn { margin-top: .5rem; }

/* stock pills */
.stock {
    font-size: .74rem; font-weight: 800;
    padding: .28rem .7rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: .35rem;
    text-transform: uppercase; letter-spacing: .04em;
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { background: rgba(21,154,87,.12); color: var(--ok); }
.stock.out { background: rgba(209,59,43,.12); color: var(--no); }

/* === Product LIST layout (after search) === */
.result-meta { max-width: 1000px; margin: 0 auto 1.25rem; padding: 0 1.25rem; color: var(--gray-700); font-size: .92rem; }
.result-meta a { font-weight: 600; color: var(--orange); }
.product-list { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem 3.5rem; display: flex; flex-direction: column; gap: 1rem; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3.5rem;
    flex-wrap: wrap;
}
.pagination .page-status {
    font-weight: 700;
    color: var(--ink);
    font-size: .95rem;
    letter-spacing: .02em;
}

.list-item {
    display: flex;
    gap: 1.35rem;
    align-items: center;
    background: var(--white);
    border: 2px solid #bcd4f5;
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    cursor: pointer;
}
.list-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--sky); }
.list-item .thumb {
    flex: 0 0 130px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--grad-chrome);
}
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info h3 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.list-item .info p { color: var(--gray-700); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .side { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.list-item .side .price {
    font-weight: 800; font-size: 1.15rem;
    color: var(--price-orange);
}

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--gray-500); }
.empty-state h2 { color: var(--navy); margin-bottom: .5rem; }

/* === Product DETAIL page === */
.product-detail {
    max-width: 1100px; margin: 2.5rem auto; padding: 0 1.25rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.gallery .main-image {
    aspect-ratio: 1 / 1;
    background: var(--grad-chrome);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.gallery .main-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: .65rem; margin-top: .9rem; flex-wrap: wrap; }
.gallery .thumbs img {
    width: 74px; height: 74px; object-fit: cover; border-radius: 10px;
    border: 2px solid var(--gray-200); cursor: pointer; transition: border-color .2s ease, transform .2s ease;
}
.gallery .thumbs img:hover { transform: translateY(-2px); }
.gallery .thumbs img.active { border-color: var(--orange); }

.detail-info h1 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.detail-info .subtitle { color: var(--gray-500); font-size: 1.05rem; margin-top: .35rem; margin-bottom: 1.25rem; }
.detail-info .price-tag {
    font-size: 2.4rem; font-weight: 800; margin: 1rem 0;
    color: var(--price-orange);
}
.detail-info .desc { color: var(--gray-700); margin: 1.25rem 0 1.75rem; white-space: pre-line; line-height: 1.75; }
.detail-info .meta-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.spec-link {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.25rem;
    font-weight: 700; color: var(--orange);
}
.spec-link:hover { color: var(--orange); }

/* === Responsive === */
@media (max-width: 760px) {
    .header-bar { display: flex; flex-wrap: wrap; gap: .75rem; }
    .header-bar { padding: .7rem 1rem; }
    .brand-logo img { height: 44px; }
    .header-actions { gap: .75rem; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .header-search .hs-cat { max-width: 120px; font-size: .82rem; }
    .header-actions { margin-left: auto; }
    .main-nav { gap: .25rem; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .main-nav { border-radius: 0; padding: .5rem .75rem; white-space: nowrap; }
    .main-nav a { flex: 0 0 auto; }
    .main-nav .nav-plain { margin-left: .25rem; }
    .header-action { font-size: .68rem; }
    .header-action svg { width: 22px; height: 22px; }
    .product-detail { grid-template-columns: 1fr; gap: 2rem; }
    .list-item { flex-wrap: wrap; }
    .list-item .thumb { flex: 0 0 90px; height: 72px; }
    .list-item .side { width: 100%; text-align: left; align-items: flex-start; flex-direction: row; justify-content: space-between; }
    .footer-inner { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .brand-logo { justify-content: center; }
    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; }
    .search-bar select { width: 100%; max-width: none; }
    .detail-actions .btn { flex: 1 1 auto; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; padding: 0 1rem 2.5rem; }
    .product-card .body { padding: .85rem .9rem 1rem; }
    .product-card h3 { font-size: .98rem; }
    .product-card .price { font-size: 1.15rem; }
    .detail-info .price-tag { font-size: 1.9rem; }
}

/* === Home feature strip === */
.features {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.feature {
    background: var(--white);
    border: 2px solid #bcd4f5;
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ficon {
    width: 54px; height: 54px; margin: 0 auto .85rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--grad-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22,39,74,.25);
}
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { color: var(--navy); font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.feature p { color: var(--gray-500); font-size: .88rem; }

/* Light/Dark toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: .8rem;
    box-shadow: var(--shadow-sm);
}
.theme-toggle button {
    border: 0; cursor: pointer;
    padding: .3rem .6rem;
    background: transparent;
    color: var(--gray-500);
    line-height: 1;
}
.theme-toggle .sep { color: var(--gray-300); padding: 0 .1rem; }
.theme-toggle button.active { color: #fff; background: var(--steel); }
/* position: top-right, just under the sticky header shadow */
.theme-toggle-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: .6rem 1.25rem 0;
    display: flex;
    justify-content: flex-end;
}

/* === Account page card surface ===
   The logged-in profile card uses background:var(--surface, #fff). --surface was
   never defined, so it fell back to white in dark mode while its text inherited the
   light body colour (#eef2f8) — making the text invisible. Define --surface per theme
   so the card is white on light and dark on dark; inherited text stays readable in both.
   No heading/label overrides here on purpose: broadly recolouring .site-main h3/strong
   would break product-card headings that use var(--navy). */
:root { --surface: #ffffff; }
html[data-theme="dark"] { --surface: #1e242f; }

/* =====================================================================
   Cart grid + checkout form  (presentation only — added for the
   shopping-cart-checkout UI enhancement)
   ===================================================================== */

/* --- Cart toolbar (strip above the grid) --- */
.cart-toolbar {
    background: var(--grad-chrome);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* --- Cart grid --- */
.cart-grid {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
}
.cart-grid-head,
.cart-row {
    display: grid;
    grid-template-columns: 2.4fr 1fr 2fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.cart-grid-head {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
}
.cart-row {
    background: var(--white);
}

.cart-name { font-weight: 400; color: var(--ink); font-size: .85rem; }
.cg-item .sub { font-weight: 700; color: var(--ink); font-size: .85rem; }
.cart-warn { color: var(--no); font-size: .85rem; margin-top: .35rem; }

.cg-price, .cg-total { font-weight: 600; color: var(--ink); }
.cg-total { text-align: right; font-weight: 800; }
.cart-grid-head .cg-price, .cart-grid-head .cg-total { color: #fff; }

.cg-qty {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
}
.cart-qty-form {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-wrap: nowrap;
}
.cart-remove-form { margin-top: 0; }
.cart-qty-input {
    width: 72px;
    padding: .5rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
}

.cart-grid-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    font-weight: 700;
    border-top: 2px solid var(--gray-300);
}
.cart-subtotal-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
}

.cart-checkout-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* --- Checkout delivery-address form --- */
.checkout-form label { display: block; margin-top: 1rem; }
.checkout-form label span,
.checkout-form .field-label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--ink);
}
.checkout-form input[type=text],
.checkout-form input[type=email],
.checkout-form input[type=tel],
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--steel-light);
    box-shadow: 0 0 0 4px rgba(209,82,26,.25);
}
.checkout-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23968f88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.6rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.checkout-form textarea { min-height: 90px; resize: vertical; }

/* --- Responsive: stack cart rows on small screens --- */
@media (max-width: 680px) {
    .cart-grid-head { display: none; }
    .cart-row { grid-template-columns: 1fr; gap: .5rem; }
    .cart-row .cg-price::before,
    .cart-row .cg-qty::before,
    .cart-row .cg-total::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--gray-700);
    }
    .cg-total { text-align: left; }
    .cg-qty { flex-wrap: wrap; }
    .cart-grid-foot { flex-direction: row; }
}

/* --- Floating WhatsApp button (site-wide, bottom-left) --- */
.whatsapp-fab {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #4ee06e 0%, #25d366 55%, #1ebe57 100%);
    box-shadow: 0 8px 22px rgba(37,211,102,.45);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.whatsapp-fab:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37,211,102,.55);
    filter: brightness(1.05);
}
.whatsapp-fab svg { display: block; }
@media (max-width: 480px) {
    .whatsapp-fab { width: 50px; height: 50px; left: 1rem; bottom: 1rem; }
    .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* --- Cart courier-fee informational note --- */
.cart-courier-note {
    margin-top: 1.25rem;
    padding: .85rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: .9rem;
    line-height: 1.5;
}
.cart-courier-note strong { color: var(--ink); }

/* === Payment-page customer review (star rating + comment) === */
.review-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}
.review-form h3 {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

/* Classic reverse-radio + label technique: rows laid out right-to-left so
   :hover / :checked can fill the hovered star and every star before it. */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: .15rem;
    margin: .25rem 0 .9rem;
}
.star-rating input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.star-rating label {
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-300);
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.star-rating label:hover {
    transform: scale(1.1);
}
/* Fill the hovered/checked star and all that visually precede it (to its
   left). Because the row is reversed, "previous siblings in the DOM" are the
   stars to the right, so ~ label targets the lower-value stars correctly. */
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5b301;
}
/* Keyboard focus visibility for accessibility. */
.star-rating input[type="radio"]:focus + label {
    outline: 2px solid var(--steel);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-form textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto .9rem;
    padding: .65rem .8rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    resize: vertical;
}
.review-form textarea:focus {
    outline: none;
    border-color: var(--steel);
}

.review-thanks {
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--ok);
    font-weight: 700;
}
.review-error {
    margin-top: 1rem;
    padding: .7rem .9rem;
    background: rgba(209,59,43,.1);
    border-radius: 8px;
    color: var(--no);
    font-size: .9rem;
}

/* --- Logged-in welcome bar (below the header) --- */
.welcome-bar {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.welcome-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem 1.25rem;
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 600;
}
