/* ==========================================================
   ShopZone - main stylesheet
   ----------------------------------------------------------
   1. Variables & reset     6. Product cards       11. Account
   2. Utilities & buttons   7. Shop / filters      12. Content pages
   3. Header & navigation   8. Product page        13. Footer
   4. Drawer & toasts       9. Cart & checkout     14. Responsive
   5. Home page            10. Auth forms
   ========================================================== */
 
/* ---------- 1. Variables & reset ---------- */
:root {
    --navy-900: #0f1111;
    --navy-800: #131921;
    --navy-700: #232f3e;
    --navy-600: #37475a;
    --orange: #ff9900;
    --orange-light: #febd69;
    --yellow: #ffd814;
    --yellow-hover: #f7ca00;
    --buy: #ffa41c;
    --buy-hover: #fa8900;
    --link: #007185;
    --link-hover: #c7511f;
    --red: #cc0c39;
    --green: #067d62;
    --text: #0f1111;
    --muted: #565959;
    --border: #d5d9d9;
    --bg: #eaeded;
    --card: #ffffff;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 2px 6px rgba(15, 17, 17, .08);
    --shadow-lg: 0 10px 30px rgba(15, 17, 17, .15);
    --container: 1440px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
 
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
 
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 900px; }
.site-main { min-height: 60vh; padding-bottom: 40px; }
 
/* ---------- 2. Utilities & buttons ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.text-accent { color: var(--link-hover); }
.text-success { color: var(--green); }
.text-danger { color: var(--red) !important; }
.text-warning { color: #b12704; }
 
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-round { border-radius: 100px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-primary { background: var(--yellow); border-color: #fcd200; color: var(--text); }
.btn-primary:hover { background: var(--yellow-hover); color: var(--text); }
.btn-cart { background: var(--yellow); border-color: #fcd200; color: var(--text); }
.btn-cart:hover { background: var(--yellow-hover); color: var(--text); }
.btn-buy { background: var(--buy); border-color: #ff8f00; color: var(--text); }
.btn-buy:hover { background: var(--buy-hover); color: var(--text); }
.btn-dark { background: var(--navy-700); color: #fff; }
.btn-dark:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; border-color: var(--border); color: var(--text); box-shadow: 0 2px 5px rgba(213,217,217,.5); }
.btn-light:hover { background: #f7fafa; color: var(--text); }
.btn-link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 500; }
.btn-link:hover { color: var(--link-hover); text-decoration: underline; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
 
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-warning { background: #fff4e5; color: #b45309; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-primary { background: #ede9fe; color: #6d28d9; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-muted { background: #f1f5f9; color: #475569; }
.badge-dark { background: var(--navy-700); color: #fff; }
 
.card { background: var(--card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
 
.stars { color: var(--orange); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
 
/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #a6a6a6; border-radius: var(--radius);
    background: #fff; box-shadow: 0 1px 2px rgba(15,17,17,.12) inset; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: #e77600; box-shadow: 0 0 0 3px rgba(228,121,17,.25); }
input:disabled { background: #f3f4f6; color: var(--muted); }
.is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: 13px; display: block; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
 
/* Alerts */
.flash-wrap { margin-top: 14px; }
.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius);
    margin-bottom: 12px; border: 1px solid; background: #fff; font-size: 14px;
}
.alert i { margin-top: 3px; }
.alert span { flex: 1; }
.alert-success { border-color: #b7e4c7; background: #f0fdf4; color: #14532d; }
.alert-error { border-color: #f5c2c7; background: #fef2f2; color: #7f1d1d; }
.alert-info { border-color: #bae6fd; background: #f0f9ff; color: #0c4a6e; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #78350f; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; }
 
/* ---------- 3. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-main { background: var(--navy-800); color: #fff; }
.header-row { display: flex; align-items: center; gap: 14px; height: 64px; }
 
.logo { display: flex; align-items: center; gap: 8px; color: #fff; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; }
.logo:hover { border-color: #fff; color: #fff; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: var(--navy-800);
    display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.logo-text span { color: var(--orange); }
 
.deliver-to { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.deliver-to:hover { border-color: #fff; }
.deliver-to small, .header-link small { display: block; color: #ccc; font-size: 12px; line-height: 1.1; }
.deliver-to strong, .header-link strong { font-size: 14px; line-height: 1.2; }
 
.search-bar { flex: 1; display: flex; height: 42px; border-radius: var(--radius); overflow: hidden; background: #fff; min-width: 0; }
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.search-bar select {
    width: auto; max-width: 140px; border: 0; border-radius: 0; background: #e6e6e6; color: #555; font-size: 13px;
    padding: 0 10px; box-shadow: none; border-right: 1px solid #cdcdcd; cursor: pointer;
}
.search-bar select:focus { box-shadow: none; }
.search-bar input { flex: 1; border: 0; border-radius: 0; box-shadow: none !important; padding: 0 12px; min-width: 0; }
.search-bar button { width: 50px; border: 0; background: var(--orange-light); color: var(--navy-800); font-size: 18px; cursor: pointer; }
.search-bar button:hover { background: #f3a847; }
 
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-link, .icon-link, .cart-link { color: #fff; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; display: block; }
.header-link:hover, .icon-link:hover, .cart-link:hover { border-color: #fff; color: #fff; }
.icon-link { position: relative; font-size: 22px; }
.count-badge {
    position: absolute; top: 0; right: -2px; background: var(--orange); color: var(--navy-800);
    font-size: 11px; font-weight: 800; border-radius: 100px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px;
}
.cart-link { display: flex; align-items: flex-end; gap: 4px; }
.cart-icon { position: relative; font-size: 28px; line-height: 1; }
.cart-count {
    position: absolute; top: -8px; left: 50%; transform: translateX(-30%); color: var(--orange);
    font-size: 15px; font-weight: 800;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: translateX(-30%) scale(1.5); } }
 
.account-menu { position: relative; }
.account-dropdown {
    position: absolute; right: 0; top: 100%; width: 240px; background: #fff; color: var(--text); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50;
}
.account-dropdown::before { content: ""; position: absolute; top: -8px; right: 30px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.account-menu:hover .account-dropdown, .account-menu:focus-within .account-dropdown { opacity: 1; visibility: visible; transform: none; }
.account-dropdown a:not(.btn) { display: flex; gap: 10px; align-items: center; padding: 7px 6px; color: var(--text); font-size: 14px; border-radius: 6px; }
.account-dropdown a:not(.btn):hover { background: #f3f4f6; color: var(--link-hover); }
.account-dropdown a i { width: 18px; color: var(--muted); }
.account-dropdown p { text-align: center; margin: 8px 0 0; }
.account-dropdown hr { margin: 10px 0; }
 
.icon-btn { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 6px; display: none; }
 
.header-nav { background: var(--navy-700); }
.nav-row { display: flex; align-items: center; gap: 2px; height: 40px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a, .nav-all {
    color: #fff; font-size: 14px; padding: 6px 10px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; background: none; cursor: pointer;
}
.nav-row a:hover, .nav-all:hover, .nav-row a.active { border-color: #fff; color: #fff; }
.nav-all { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.nav-deal { color: var(--orange-light) !important; font-weight: 600; }
.nav-promo { margin-left: auto; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-promo i { color: var(--orange); }
 
/* ---------- 4. Drawer & toasts ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; visibility: hidden; transition: .25s; z-index: 200; }
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 86vw; background: #fff; z-index: 201;
    transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-head { background: var(--navy-700); color: #fff; padding: 16px 20px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; }
.drawer-head i { font-size: 26px; }
.drawer-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
.drawer-body h4 { padding: 18px 24px 6px; margin: 0; font-size: 17px; border-top: 1px solid var(--border); }
.drawer-body h4:first-child { border-top: 0; }
.drawer-body a { display: flex; align-items: center; gap: 12px; padding: 11px 24px; color: var(--text); font-size: 14px; }
.drawer-body a:hover { background: #eaeded; }
.drawer-body a i:first-child { width: 20px; color: var(--muted); }
.drawer-body .arrow { margin-left: auto; color: #999; font-size: 12px; }
 
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--navy-700); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; font-size: 14px;
    animation: toastIn .3s ease;
}
.toast i { font-size: 18px; color: #4ade80; }
.toast.error i { color: #f87171; }
.toast a { color: var(--orange-light); font-weight: 600; margin-left: auto; white-space: nowrap; }
.toast.hide { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
 
/* ---------- 5. Home page ---------- */
.hero { position: relative; max-width: var(--container); margin: 0 auto; }
.slider { position: relative; overflow: hidden; aspect-ratio: 1500 / 450; background: var(--navy-700); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); z-index: 2; pointer-events: none; }
.slider-btn {
    position: absolute; top: 0; bottom: 30%; width: 70px; z-index: 3; background: none; border: 0; color: #fff; font-size: 34px;
    cursor: pointer; opacity: .8; transition: .2s;
}
.slider-btn:hover { opacity: 1; background: rgba(255,255,255,.08); }
.slider-btn.prev { left: 0; } .slider-btn.next { right: 0; }
.slider-dots { position: absolute; bottom: 34%; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .2s; }
.slider-dots button.active { background: #fff; width: 26px; border-radius: 10px; }
 
.home-wrap { position: relative; z-index: 4; margin-top: -7%; }
.category-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.category-cards:has(> :nth-child(4):last-child), .category-cards:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
.cat-card {
    background: #fff; padding: 20px; display: flex; flex-direction: column; color: var(--text); border-radius: 4px;
    transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.cat-card h3 { font-size: 21px; font-weight: 700; }
.cat-img { aspect-ratio: 16 / 10; background: #f7f8f8; overflow: hidden; border-radius: 4px; margin-bottom: 10px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card p { color: var(--muted); font-size: 13px; margin: 0 0 10px; flex: 1; }
.cat-card .link { color: var(--link); font-size: 13px; font-weight: 600; }
 
.section-box { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 4px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; font-weight: 700; margin: 0; }
.see-all { font-size: 14px; font-weight: 600; white-space: nowrap; }
 
.countdown { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; }
.countdown span { color: var(--muted); margin-right: 4px; }
.countdown b { background: var(--red); color: #fff; padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
 
.scroller { position: relative; }
.scroller-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroll-btn {
    position: absolute; top: 35%; z-index: 2; width: 44px; height: 90px; background: rgba(255,255,255,.95); border: 1px solid var(--border);
    box-shadow: var(--shadow); cursor: pointer; font-size: 18px; border-radius: 4px; opacity: 0; transition: .2s;
}
.scroller:hover .scroll-btn { opacity: 1; }
.scroll-btn.left { left: -6px; } .scroll-btn.right { right: -6px; }
 
.deal-item { flex: 0 0 210px; scroll-snap-align: start; color: var(--text); }
.deal-item:hover { color: var(--text); }
.deal-img { background: #f7f7f7; border-radius: 6px; aspect-ratio: 1; overflow: hidden; margin-bottom: 10px; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .3s; }
.deal-item:hover .deal-img img { transform: scale(1.05); }
.deal-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.deal-badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 3px; }
.deal-label { color: var(--red); font-size: 12px; font-weight: 700; }
.deal-price { font-weight: 700; font-size: 15px; }
.deal-price s { color: var(--muted); font-weight: 400; font-size: 12px; }
.deal-name { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
 
.mini-item { flex: 0 0 180px; scroll-snap-align: start; color: var(--text); position: relative; }
.mini-item img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: #f7f7f7; }
.mini-item .rank { position: absolute; top: 6px; left: 6px; background: var(--orange); color: var(--navy-800); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.mini-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.mini-price { font-weight: 700; margin-top: 2px; }
.mini-item:hover { color: var(--link-hover); }
 
.promo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.promo { border-radius: var(--radius-lg); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; position: relative; }
.promo h3 { font-size: 24px; font-weight: 800; }
.promo p { margin: 0 0 18px; }
.promo .eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; display: block; margin-bottom: 8px; }
.promo-icon { font-size: 90px; opacity: .25; }
.promo-dark { background: linear-gradient(135deg, var(--navy-700), #0f172a); color: #fff; }
.promo-dark .eyebrow { color: var(--orange); }
.promo-dark p { color: #cbd5e1; }
.promo-light { background: linear-gradient(135deg, #fff7e6, #ffe2b3); }
.promo-light .eyebrow { color: #b45309; }
 
.signin-nudge { background: #fff; text-align: center; padding: 30px; border-top: 1px solid var(--border); border-radius: 4px; }
.signin-nudge p { margin: 0 0 10px; font-weight: 600; }
.signin-nudge .btn { min-width: 240px; }
.signin-nudge small { display: block; margin-top: 8px; }
 
/* ---------- 6. Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
    background: #fff; border: 1px solid #e7e7e7; border-radius: var(--radius); position: relative; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s; overflow: hidden;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-thumb { background: #f7f8f8; aspect-ratio: 1; display: block; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .35s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.product-title {
    color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.35; margin: 2px 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
.product-title:hover { color: var(--link-hover); }
.product-rating { display: flex; align-items: center; gap: 6px; }
.rating-count { color: var(--link); font-size: 13px; }
.product-price { margin: 6px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 21px; font-weight: 700; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.delivery-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; flex: 1; }
.delivery-note i { color: var(--link); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tag-sale { background: var(--red); color: #fff; }
.tag-deal { background: var(--navy-700); color: #fff; top: 38px; }
.wish-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 16px; color: var(--muted); transition: .2s;
}
.wish-btn:hover { color: var(--red); transform: scale(1.1); }
.wish-btn.active { color: var(--red); }
.btn-cart.added { background: #c8f7c5; border-color: #8fd18a; }
 
/* ---------- 7. Shop / filters ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb i { font-size: 9px; }
.breadcrumb span { color: var(--text); }
.results-bar {
    background: #fff; padding: 10px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.results-bar p { margin: 0; font-size: 14px; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sort-form select { width: auto; padding: 6px 10px; border-radius: 8px; background: #f0f2f2; font-size: 13px; }
.filter-toggle { display: none; }
 
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.filters { background: #fff; padding: 16px; border-radius: 4px; position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 15px; margin-bottom: 8px; }
.radio-row, .check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.radio-row input, .check-row input { accent-color: var(--orange); width: 16px; height: 16px; }
.rating-row .stars { font-size: 15px; }
.price-inputs { display: flex; gap: 6px; align-items: center; }
.price-inputs input { padding: 6px 8px; font-size: 13px; }
.price-quick { display: flex; flex-direction: column; margin-top: 8px; }
.price-quick a { font-size: 13px; color: var(--text); padding: 3px 0; }
.price-quick a:hover { color: var(--link-hover); }
.page-title { font-size: 26px; font-weight: 700; }
.results .page-title { margin-bottom: 4px; }
.results > p.muted { margin-top: 0; margin-bottom: 16px; }
 
.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); font-size: 14px;
}
.pagination a:hover { background: #f7fafa; }
.pagination .current { border-color: var(--text); font-weight: 700; }
.pagination .disabled { color: #aaa; }
.pagination .dots { border: 0; background: none; }
 
.empty-state { background: #fff; text-align: center; padding: 60px 20px; border-radius: var(--radius-lg); }
.empty-state > i { font-size: 56px; color: #c4c9cc; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }
.empty-state .btn { margin: 4px; }
.empty-state .huge { font-size: 110px; font-weight: 800; color: var(--orange); margin: 0; }
 
/* ---------- 8. Product page ---------- */
.product-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 280px; gap: 30px; background: #fff; padding: 24px; border-radius: 4px; }
.gallery { display: flex; gap: 12px; position: sticky; top: 120px; align-self: start; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { width: 60px; height: 60px; padding: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; }
.thumb.active, .thumb:hover { border-color: #e77600; box-shadow: 0 0 0 2px rgba(228,121,17,.4); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-image { flex: 1; position: relative; border-radius: var(--radius); overflow: hidden; background: #f7f8f8; aspect-ratio: 1; cursor: zoom-in; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .15s ease-out; }
.main-image.zooming img { transform: scale(2); }
.zoom-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); margin: 0; }
 
.product-details h1 { font-size: 24px; font-weight: 600; margin: 4px 0 8px; }
.brand-link { font-size: 14px; }
.rating-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rating-line .stars { font-size: 15px; }
.rating-num { font-weight: 600; }
.deal-pill { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 8px; }
.price-block { display: flex; align-items: flex-start; gap: 12px; }
.price-off { color: var(--red); font-size: 28px; font-weight: 300; }
.price-big { font-size: 30px; font-weight: 600; }
.offer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.offer { text-align: center; font-size: 12px; color: var(--link); }
.offer i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f0f2f2; color: var(--navy-600); font-size: 18px; margin: 0 auto 6px; }
.spec-mini { font-size: 14px; border-collapse: collapse; }
.spec-mini th { text-align: left; padding: 4px 30px 4px 0; font-weight: 700; }
.about-title { font-size: 17px; margin-top: 18px; }
.feature-list { padding-left: 20px; margin: 0; }
.feature-list li { margin-bottom: 6px; font-size: 14px; }
 
.buy-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; align-self: start; position: sticky; top: 120px; }
.buy-box .price-big { font-size: 26px; }
.buy-box .delivery { font-size: 14px; }
.deliver-loc { font-size: 13px; color: var(--link); }
.stock { font-size: 17px; margin: 10px 0; }
.stock.in { color: var(--green); }
.stock.out { color: var(--red); }
.stock.small { font-size: 13px; margin: 2px 0; }
.buy-form label { font-size: 14px; font-weight: 600; }
.buy-form .btn { margin-top: 10px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #f0f2f2; margin-top: 6px; }
.qty-control button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty-control button:hover { background: #e3e6e6; }
.qty-control input { width: 54px; height: 36px; text-align: center; border: 0; border-radius: 0; box-shadow: none; padding: 0; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control.small button { width: 30px; height: 30px; } .qty-control.small input { width: 42px; height: 30px; }
.seller-info { width: 100%; font-size: 13px; margin: 16px 0; border-collapse: collapse; }
.seller-info th { text-align: left; color: var(--muted); font-weight: 500; padding: 3px 10px 3px 0; }
.wish-btn-lg.active i { color: var(--red); }
 
.product-tabs { background: #fff; margin: 20px 0; border-radius: 4px; }
.tab-buttons { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-buttons button { padding: 16px 24px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 600; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tab-buttons button.active { color: var(--text); border-bottom-color: var(--orange); }
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; max-width: 800px; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.spec-table th { background: #f3f3f3; width: 220px; font-weight: 600; }
 
.reviews-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.big-rating { display: flex; align-items: center; gap: 10px; }
.big-rating .stars { font-size: 20px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; color: var(--link); }
.bar-row span:first-child { width: 48px; }
.bar-row span:last-child { width: 36px; text-align: right; }
.bar { flex: 1; height: 20px; background: #f0f2f2; border: 1px solid #e3e6e6; border-radius: 4px; overflow: hidden; }
.bar div { height: 100%; background: var(--orange); }
.review-form input, .review-form textarea { margin-bottom: 10px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 10px; }
.star-input input { display: none; }
.star-input label { font-size: 26px; color: #d1d5db; cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--orange); }
.review { padding: 16px 0; border-bottom: 1px solid #eee; }
.review-user { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 22px; background: var(--orange); color: var(--navy-800); }
.review-head { display: flex; align-items: center; gap: 8px; }
.review p { margin: 6px 0; font-size: 14px; }
 
/* ---------- 9. Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; margin-top: 20px; }
.cart-box { background: #fff; padding: 20px 24px; border-radius: 4px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.cart-head h1 { font-size: 28px; font-weight: 500; margin: 0; }
.price-label { text-align: right; color: var(--muted); font-size: 14px; margin: 4px 0; }
.cart-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-img { background: #f7f8f8; border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-name { color: var(--text); font-size: 17px; font-weight: 500; display: block; margin-bottom: 4px; }
.cart-name:hover { color: var(--link-hover); }
.cart-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.cart-actions .sep { color: #ddd; }
.cart-price { text-align: right; font-size: 18px; }
.cart-price small { display: block; font-size: 12px; }
.cart-subtotal-line { text-align: right; font-size: 18px; margin: 12px 0 0; }
.cart-summary { background: #fff; padding: 20px; border-radius: 4px; }
.cart-summary.sticky { position: sticky; top: 120px; }
.cart-summary h3 { font-size: 18px; }
.cart-summary .btn { margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.summary-row.total { font-size: 18px; font-weight: 700; color: #b12704; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.secure-note { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.ship-progress { margin-bottom: 14px; font-size: 13px; }
.ship-progress .bar { height: 8px; border-radius: 10px; margin-top: 6px; }
.ship-progress .bar div { background: var(--green); }
 
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.checkout-steps span:not(.line) { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.checkout-steps .done { color: var(--green); }
.checkout-steps .current { color: var(--text); }
.checkout-steps .line { width: 60px; height: 2px; background: var(--border); }
.checkout-steps .line.done { background: var(--green); }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.checkout-main .card h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-size: 14px; }
.info-card { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 16px 20px; }
.info-card i { font-size: 20px; color: var(--link); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: .15s; }
.pay-option:hover { background: #fafafa; }
.pay-option:has(input:checked) { border-color: #e77600; background: #fffaf3; box-shadow: 0 0 0 2px rgba(228,121,17,.2); }
.pay-option input { accent-color: var(--orange); width: 18px; height: 18px; }
.pay-option > i { font-size: 24px; color: var(--navy-600); width: 30px; text-align: center; }
.pay-option small { display: block; color: var(--muted); }
.review-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eee; }
.review-item:last-child { border-bottom: 0; }
.review-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; background: #f7f8f8; }
.review-item > div { flex: 1; }
.review-item p { margin: 2px 0; }
.review-price { font-weight: 700; white-space: nowrap; }
 
.success-card { text-align: center; }
.success-card .review-item, .success-card .summary-row { text-align: left; }
.success-card h3 { text-align: left; margin-top: 24px; }
.success-card .btn-row { justify-content: center; }
.success-icon { font-size: 70px; color: var(--green); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; text-align: left; }
.order-meta div { background: #f7f8f8; padding: 12px 14px; border-radius: var(--radius); }
.order-meta small { display: block; color: var(--muted); font-size: 12px; }
 
/* ---------- 10. Auth forms ---------- */
.auth-wrap { max-width: 380px; margin: 30px auto; padding: 0 16px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.auth-card h1 { font-size: 28px; font-weight: 500; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-pass { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px; }
.strength { height: 4px; background: #eee; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.strength div { height: 100%; width: 0; transition: .3s; }
.auth-divider { text-align: center; position: relative; margin: 24px 0 14px; font-size: 13px; color: var(--muted); }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e7e7e7; }
.auth-divider span { background: var(--bg); padding: 0 10px; position: relative; }
.demo-box { background: #fffaf0; border: 1px dashed var(--orange); border-radius: var(--radius); padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
 
/* ---------- 11. Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-nav { background: #fff; border-radius: var(--radius-lg); padding: 12px; position: sticky; top: 120px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.account-user small { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--text); border-radius: var(--radius); font-size: 14px; }
.account-nav a i { width: 18px; color: var(--muted); }
.account-nav a:hover { background: #f3f4f6; }
.account-nav a.active { background: #fff4e0; font-weight: 600; }
.account-nav a.active i { color: var(--orange); }
.account-content h1 { font-size: 26px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.stat-card > i { width: 46px; height: 46px; border-radius: 12px; background: #fff4e0; color: var(--orange); display: grid; place-items: center; font-size: 20px; }
.stat-card strong { display: block; font-size: 20px; }
.stat-card small { color: var(--muted); }
.account-tiles, .help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.help-cards { grid-template-columns: repeat(4, 1fr); margin-top: -40px; position: relative; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; color: var(--text); transition: .15s; }
.tile:hover { background: #f7fafa; color: var(--text); box-shadow: var(--shadow); }
.tile > i { font-size: 26px; color: var(--orange); width: 32px; }
.tile strong { display: block; }
.tile small { color: var(--muted); }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.order-card.compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
.order-card.compact small { display: block; color: var(--muted); font-size: 12px; }
.order-card-head { background: #f0f2f2; padding: 12px 18px; display: flex; gap: 30px; font-size: 13px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.order-card-head small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.order-card-head .right { margin-left: auto; text-align: right; }
.order-card-body { padding: 16px 18px; }
.order-status-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.track { display: flex; gap: 0; font-size: 12px; flex: 1; max-width: 520px; }
.track span { flex: 1; text-align: center; padding-top: 14px; position: relative; color: #9ca3af; }
.track span::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: #e5e7eb; }
.track span::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #e5e7eb; }
.track span.on { color: var(--green); font-weight: 600; }
.track span.on::before, .track span.on::after { background: var(--green); }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #eee; margin-top: 6px; }
form.inline { display: inline-block; margin-top: 6px; }
.narrow-form { max-width: 460px; }
 
/* ---------- 12. Content pages ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); color: #fff; padding: 50px 0 80px; text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; }
.page-hero p { color: #cbd5e1; margin: 0; }
.content-page { background: #fff; padding: 30px 40px; border-radius: var(--radius-lg); margin-top: -40px; position: relative; }
.content-page h2 { margin-top: 30px; font-size: 22px; }
.content-page p { color: #333; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.contact-info p { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.contact-info i { color: var(--orange); width: 18px; margin-top: 3px; }
 
/* ---------- 13. Footer ---------- */
.site-footer { color: #ddd; margin-top: 30px; }
.back-to-top { display: block; background: var(--navy-600); color: #fff; text-align: center; padding: 15px; font-size: 13px; font-weight: 600; }
.back-to-top:hover { background: #485769; color: #fff; }
.footer-features { background: var(--navy-700); border-bottom: 1px solid #3a4553; }
.features-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature i { font-size: 28px; color: var(--orange); }
.feature strong { display: block; color: #fff; }
.feature small { color: #aab3bf; }
.footer-main { background: var(--navy-700); padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col > a { display: block; color: #ddd; font-size: 14px; padding: 4px 0; }
.footer-col > a:hover { color: var(--orange-light); text-decoration: underline; }
.footer-about p { font-size: 14px; color: #aab3bf; }
.logo-footer { display: inline-flex; margin-bottom: 10px; padding-left: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 8px; }
.contact-list i { color: var(--orange); width: 16px; margin-top: 4px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-600); color: #fff; display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--orange); color: var(--navy-800); }
.footer-newsletter p { font-size: 14px; color: #aab3bf; }
.newsletter-form { display: flex; gap: 6px; }
.newsletter-form input { border: 0; }
.payment-icons { display: flex; gap: 12px; font-size: 32px; margin-top: 20px; color: #aab3bf; }
.footer-bottom { background: var(--navy-800); padding: 16px 0; font-size: 13px; }
.bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bottom-row p { margin: 0; }
.bottom-row a { color: #ddd; margin-left: 16px; }
 
/* ---------- 14. Responsive ---------- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-page { grid-template-columns: 1fr 1fr; }
    .buy-box { grid-column: 2; position: static; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-about, .footer-newsletter { grid-column: span 3; }
}
 
@media (max-width: 992px) {
    .hide-md { display: none !important; }
    .icon-btn { display: block; }
    .header-row { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 8px; }
    .header-actions { margin-left: auto; }
    .search-bar { order: 10; flex-basis: 100%; }
    .nav-all { display: none; }
    .home-wrap { margin-top: -3%; }
    .category-cards { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-toggle { display: inline-flex; }
    .filters { display: none; position: static; max-height: none; }
    .filters.open { display: block; }
    .product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
    .product-page { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .buy-box { grid-column: auto; }
    .cart-layout, .checkout-layout, .account-layout, .contact-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .cart-summary.sticky { position: static; }
    .reviews-layout { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .help-cards, .account-tiles { grid-template-columns: repeat(2, 1fr); }
    .features-row { grid-template-columns: repeat(2, 1fr); }
    .order-meta { grid-template-columns: repeat(2, 1fr); }
    .promo-strip { grid-template-columns: 1fr; }
}
 
@media (max-width: 640px) {
    body { font-size: 14px; }
    .container { padding: 0 12px; }
    .hide-sm { display: none !important; }
    .logo-text { font-size: 19px; }
    .search-bar select { display: none; }
    .slider { aspect-ratio: 16 / 8; }
    .slide img { object-position: left center; }
    .slider-btn { display: none; }
    .home-wrap { margin-top: 0; }
    .category-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cat-card { padding: 12px; }
    .cat-card h3 { font-size: 15px; }
    .cat-card p { display: none; }
    .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 13px; min-height: 35px; }
    .price-now { font-size: 17px; }
    .section-box { padding: 14px; }
    .results-bar { flex-direction: column; align-items: stretch; }
    .results-tools { justify-content: space-between; }
    .product-page { padding: 14px; gap: 18px; }
    .gallery { flex-direction: column-reverse; }
    .thumbs { flex-direction: row; overflow-x: auto; }
    .offer-row { grid-template-columns: repeat(2, 1fr); }
    .cart-item { grid-template-columns: 90px 1fr; gap: 12px; }
    .cart-price { grid-column: 2; text-align: left; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .stat-cards, .help-cards, .account-tiles { grid-template-columns: 1fr; }
    .help-cards { margin-top: -30px; }
    .features-row { grid-template-columns: 1fr 1fr; gap: 14px; }
    .feature i { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about, .footer-newsletter { grid-column: span 2; }
    .content-page { padding: 20px; }
    .order-card-head { gap: 14px; }
    .order-card-head .right { margin-left: 0; text-align: left; }
    .order-meta { grid-template-columns: 1fr 1fr; }
    .page-hero h1 { font-size: 26px; }
    .checkout-steps .line { width: 20px; }
    #toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { max-width: none; }
}
 
/* ===== Smaller header (my changes) ===== */
.header-row { height: 52px; gap: 10px; }
.logo-mark { width: 28px; height: 28px; font-size: 16px; border-radius: 7px; }
.logo-text { font-size: 19px; }
.search-bar { height: 36px; }
.search-bar button { width: 44px; font-size: 16px; }
.deliver-to strong, .header-link strong { font-size: 13px; }
.deliver-to small, .header-link small { font-size: 11px; }
.cart-icon { font-size: 24px; }
.cart-count { font-size: 13px; }
.icon-link { font-size: 19px; }
.nav-row { height: 34px; }
.nav-row a, .nav-all { font-size: 13px; padding: 4px 8px; }
.nav-promo { font-size: 12px; }
.filters, .gallery, .buy-box, .account-nav, .cart-summary.sticky { top: 100px; }
@media (max-width: 992px) {
    .header-row { height: auto; padding-top: 6px; padding-bottom: 8px; }
}
 
/* ===== Turn off pinch-to-zoom ===== */
html, body { touch-action: pan-x pan-y; }
input, select, textarea { font-size: 16px; }
 
/* ===== Compact header + full banner on phones (my changes) ===== */
.mobile-only { display: none; }
@media (max-width: 640px) {
    .site-header { box-shadow: 0 2px 6px rgba(0,0,0,.25); }
    .header-row { flex-wrap: wrap; gap: 4px 6px; padding-top: 6px; padding-bottom: 8px; }
    .menu-toggle { font-size: 20px; padding: 4px 6px; }
    .logo { padding: 2px 4px; gap: 6px; }
    .logo-mark { width: 26px; height: 26px; font-size: 15px; border-radius: 6px; }
    .logo-text { font-size: 18px; }
    .header-actions { margin-left: auto; gap: 2px; flex-wrap: nowrap; }
    .account-menu .header-link small,
    .account-menu .header-link strong { display: none; }
    .mobile-only { display: inline-block; font-size: 21px; line-height: 1; }
    .account-dropdown { display: none; }
    .cart-link { padding: 4px 6px; }
    .cart-icon { font-size: 23px; }
    .search-bar { height: 38px; }
    .nav-row { height: 34px; }
    .nav-row a { font-size: 13px; padding: 4px 8px; }
 
    /* show the whole banner, not a cut piece */
    .slider { aspect-ratio: 1500 / 450; }
    .slide img { object-fit: cover; object-position: center; }
    .slider::after { display: none; }
    .slider-dots { bottom: 6px; }
    .slider-dots button { width: 7px; height: 7px; }
    .slider-dots button.active { width: 18px; }
    .home-wrap { margin-top: 12px; }
}
 
/* ===== Make typed text visible in the search bar & footer newsletter (my changes) ===== */
input, select, textarea { color: #0f1111; }
.search-bar input::placeholder, .newsletter-form input::placeholder { color: #6b7280; }
