
:root{
  --teal:#0a9f9b;--teal2:#12b8ae;--navy:#07172c;--ink:#0a1930;--muted:#667085;
  --line:#e6ebef;--cream:#fffdf9;--surface:#fff;--bg:#fbfcfd;--shadow:0 10px 30px rgba(16,24,40,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);transition:.25s ease;padding-bottom:0}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input{font:inherit}
.page-wrap{max-width:1480px;margin:0 auto;padding:0 38px 54px}

/* header */
.site-header{background:#fff;border-bottom:1px solid #eef1f3;position:sticky;top:0;z-index:50}
.header-grid{max-width:1480px;margin:auto;padding:18px 38px 0;display:grid;grid-template-columns:290px 1fr auto;grid-template-rows:58px 48px;gap:0 34px;align-items:center}
.site-brand{grid-row:1/3;align-self:start;width:285px;height:98px;overflow:hidden;display:flex;align-items:flex-start}
.site-brand img{width:285px;height:92px;object-fit:cover;object-position:center 54%;border-radius:0}
.header-search{display:flex;height:48px;border:1px solid #d9e2e7;border-radius:14px;overflow:hidden;box-shadow:0 3px 10px rgba(10,25,48,.05)}
.header-search input{border:0;outline:0;padding:0 20px;flex:1;color:#4a5568}
.header-search button{width:64px;border:0;background:linear-gradient(135deg,#0c8e8d,#0eb3aa);color:#fff;font-size:35px;align-self: self-end;cursor:pointer}
.header-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}
.theme-toggle{display:flex;background:#f4f6f7;padding:4px;border-radius:28px;box-shadow:inset 0 0 0 1px #e0e5e8}
.theme-toggle button{border:0;background:transparent;border-radius:24px;padding:10px 18px;font-weight:800;color:#344054;cursor:pointer}
html[data-theme="day"] .theme-toggle [data-set-theme="day"],html[data-theme="night"] .theme-toggle [data-set-theme="night"]{background:linear-gradient(135deg,#08a19c,#12bbb1);color:white;box-shadow:0 4px 12px rgba(15,160,153,.25)}
.cart-icon,.user-icon{font-size:25px;position:relative;padding:7px;color:#07172c}
.cart-icon b{position:absolute;top:0;right:-2px;background:#00a29b;color:#fff;border-radius:50%;font-size:10px;width:18px;height:18px;display:grid;place-items:center}
.login-text{font-size:14px;font-weight:700}
.join-btn{background:#0db4aa;color:white;padding:12px 18px;border-radius:10px;font-weight:800}
.desktop-nav{grid-column:2/4;align-self:end;height:48px;display:flex;align-items:flex-end;gap:42px}
.desktop-nav a{padding:0 0 15px;font-size:14px;font-weight:700;border-bottom:2px solid transparent}
.desktop-nav a:first-child{color:#049e99;border-color:#12b8ae}

.hero-shell{margin-top:16px;position:relative;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);height:420px}
.hero{position:absolute;inset:0;display:grid;grid-template-columns:40% 60%;overflow:hidden;background:#eaf8fa}
.hero-copy{z-index:3;padding:45px 0 32px 34px;align-self:center}
.hero-copy h1{font-size:46px;line-height:1.02;margin:0 0 20px;letter-spacing:-1.2px}
.hero-copy h1 span{color:#0b9f99}
.hero-copy p{font-size:18px;line-height:1.55;margin:0 0 22px}
.hero-cta{display:inline-flex;align-items:center;gap:18px;background:linear-gradient(135deg,#0a8e8c,#12b9af);color:#fff;padding:14px 24px;border-radius:12px;font-weight:800}
.social-proof{display:flex;align-items:center;gap:12px;margin-top:24px}
.avatar-stack{display:flex}
.avatar-stack i{width:34px;height:34px;border-radius:50%;background:white;border:2px solid #fff;display:grid;place-items:center;margin-left:-7px;font-style:normal;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.avatar-stack i:first-child{margin-left:0}
.social-proof strong,.social-proof small{display:block}
.social-proof small{font-size:12px;color:#4b5563;margin-top:2px}
.hero-art{position:relative;overflow:hidden}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#eaf8fa 0%,rgba(234,248,250,.15) 30%,transparent 60%)}
.night-layer{opacity:0;pointer-events:none}
html[data-theme="night"] .day-layer{opacity:0;pointer-events:none}
html[data-theme="night"] .night-layer{opacity:1;pointer-events:auto}
html[data-theme="night"] .hero{background:#001729;color:#fff}
html[data-theme="night"] .hero-art:after{background:linear-gradient(90deg,#001729 0%,rgba(0,23,41,.2) 30%,transparent 62%)}
html[data-theme="night"] .social-proof small{color:#b9cad4}
html[data-theme="night"] .hero-copy h1 span{color:#1ed1c5}

.popular-searches{display:flex;align-items:center;gap:12px;padding:14px 20px;background:#fff;border-radius:0 0 15px 15px;box-shadow:0 8px 18px rgba(16,24,40,.05)}
.popular-searches strong{font-size:13px}
.popular-searches a{font-size:12px;background:#f5f7f8;border-radius:18px;padding:8px 14px}

.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:22px;margin-top:18px}
.home-main{min-width:0}
.value-strip,.side-card,.category-ref,.product-card-ref{background:#fff;border:1px solid #e5e9ec;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.value-strip{display:grid;grid-template-columns:repeat(4,1fr);border-radius:16px;overflow:hidden}
.value-strip article{display:flex;align-items:center;gap:16px;padding:25px 20px;border-right:1px solid #e6e9eb}
.value-strip article:last-child{border-right:0}
.value-icon{font-size:30px}
.orange{color:#ff7600}.blue{color:#0f8ac0}.green{color:#45a62a}
.value-strip strong,.value-strip small{display:block}.value-strip strong{font-size:14px}.value-strip small{font-size:12px;line-height:1.55;color:#667085;margin-top:5px}

.section-block{margin-top:24px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 8px 12px}
.section-title h2{font-size:21px;margin:0;letter-spacing:-.4px}
.section-title a{font-size:12px;color:#00a29c;font-weight:800}
.category-grid-ref{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.category-ref{border-radius:14px;text-align:center;padding:10px 10px 15px;min-height:158px}
.category-image{height:84px;border-radius:10px;background:#f3f8f8;display:grid;place-items:center;font-size:46px;margin-bottom:10px}
.category-ref strong,.category-ref small{display:block}.category-ref strong{font-size:13px}.category-ref small{font-size:11px;color:#667085;margin-top:5px}

.deal-row{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.product-card-ref{position:relative;border-radius:14px;overflow:hidden}
.discount{position:absolute;z-index:2;top:12px;left:12px;background:#10b79f;color:#fff;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:800}
.product-photo{height:160px;background:#fff;display:grid;place-items:center;padding:18px}
.product-photo img{max-height:135px;max-width:100%;object-fit:contain}
.product-info{padding:12px 14px 15px}
.product-info h3{font-size:13px;line-height:1.32;margin:0 0 10px;min-height:34px}
.price-line{display:flex;align-items:baseline;gap:10px}.price-line strong{font-size:18px;color:#ff0d00;}.price-line s{font-size:11px;font-weight:bold;color:#98a2b3}
.store-rating{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:11px}.store-rating span{color:#009b94;font-weight:700}.store-rating b{font-weight:600;color:#dde3f0}

.home-side{display:flex;flex-direction:column;gap:16px}
.side-card{border-radius:15px;padding:18px}
.section-title.compact{margin:0 0 15px}
.shop-grid-ref{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
.shop-grid-ref a{height:52px;border-radius:10px;display:grid;place-items:center;background:#fff}
.shop-grid-ref img{max-height:38px;max-width:95px;object-fit:contain}
.shop-grid-ref strong{font-size:16px}
.how-ref h2{font-size:20px;margin:0 0 16px}
.how-ref article{display:flex;gap:12px;margin:14px 0}
.how-ref article b{width:25px;height:25px;border-radius:50%;background:#09a59e;color:#fff;display:grid;place-items:center;flex:0 0 25px;font-size:12px}
.how-ref strong,.how-ref small{display:block}.how-ref strong{font-size:12px}.how-ref small{font-size:10px;color:#667085;line-height:1.45;margin-top:3px}

.flash{max-width:1480px;margin:12px auto;padding:12px 16px;border-radius:10px;background:#fff5d8}
.mobile-bottom{display:none}

/* Night */
html[data-theme="night"]{--bg:#00131f;--surface:#061f30;--ink:#f8fbff;--muted:#9db4c1;--line:#12384b}
html[data-theme="night"] body{background:#00131f;color:#f7fbff}
html[data-theme="night"] .site-header{background:#00192a;border-bottom-color:#11384a}
html[data-theme="night"] .header-search{border-color:#15465a;background:#062436}
html[data-theme="night"] .header-search input{background:#062436;color:#e8f4f8}
html[data-theme="night"] .site-brand img{filter:saturate(1.05)}
html[data-theme="night"] .desktop-nav a,html[data-theme="night"] .login-text,html[data-theme="night"] .cart-icon,html[data-theme="night"] .user-icon{color:#edf7fb}
html[data-theme="night"] .popular-searches,html[data-theme="night"] .value-strip,html[data-theme="night"] .side-card,html[data-theme="night"] .category-ref,html[data-theme="night"] .product-card-ref{background:#062436;border-color:#15465a;color:#f7fbff}
html[data-theme="night"] .popular-searches a,html[data-theme="night"] .category-image{background:#0b3144;color:#e9f8fb}
html[data-theme="night"] .value-strip article{border-right-color:#15465a}
html[data-theme="night"] .value-strip small,html[data-theme="night"] .category-ref small,html[data-theme="night"] .how-ref small{color:#9bb4bf}
html[data-theme="night"] .product-photo{background:#eaf2ee}
html[data-theme="night"] .shop-grid-ref a{background:#fff;color:#0b192a}
html[data-theme="night"] .theme-toggle{background:#082c3e;box-shadow:inset 0 0 0 1px #174a5d}
html[data-theme="night"] .theme-toggle button{color:#cce0e8}

@media(max-width:1100px){
  .header-grid{grid-template-columns:220px 1fr auto;padding-left:20px;padding-right:20px;gap:18px}
  .site-brand{width:215px}.site-brand img{width:215px}
  .desktop-nav{gap:22px}
  .hero-shell{height:390px}
  .hero-copy{padding-left:35px}.hero-copy h1{font-size:38px}
  .home-grid{grid-template-columns:1fr}.home-side{display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  body{padding-bottom:68px}
  .site-header{position:relative}
  .header-grid{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;padding:10px 14px 8px;gap:8px}
  .site-brand{width:180px;height:55px;grid-row:auto}.site-brand img{width:180px;height:55px;object-fit:cover}
  .header-actions{gap:8px}.theme-toggle button{padding:7px 10px;font-size:11px}.login-text,.join-btn{display:none}
  .cart-icon,.user-icon{font-size:21px;padding:4px}
  .header-search{grid-column:1/3;grid-row:2;height:42px}.header-search input{font-size:12px;padding-left:12px}
  .desktop-nav{display:none}
  .page-wrap{padding:0 10px 28px}
  .hero-shell{height:300px;margin-top:8px;border-radius:12px}
  .hero{grid-template-columns:53% 47%}
  .hero-copy{padding:22px 0 18px 18px}
  .hero-copy h1{font-size:25px;line-height:1.08;margin-bottom:10px}
  .hero-copy p{font-size:11px;line-height:1.45;margin-bottom:12px}
  .hero-cta{padding:9px 12px;font-size:11px;border-radius:8px}
  .social-proof{margin-top:12px;gap:8px}.avatar-stack i{width:24px;height:24px;font-size:12px}.social-proof strong{font-size:10px}.social-proof small{font-size:8px}
  .hero-art img{object-position:60% center}
  .popular-searches{overflow:auto;border-radius:0 0 10px 10px;padding:8px 10px;gap:7px}.popular-searches strong{font-size:9px}.popular-searches a{font-size:8px;padding:6px 8px;white-space:nowrap}
  .home-grid{display:block;margin-top:10px}
  .value-strip{grid-template-columns:repeat(4,1fr);border-radius:10px}
  .value-strip article{display:block;text-align:center;padding:12px 5px;border-right:1px solid #e6e9eb}
  .value-icon{font-size:20px}.value-strip strong{font-size:9px}.value-strip small{font-size:7px;line-height:1.25}
  .section-block{margin-top:18px}.section-title h2{font-size:16px}.section-title a{font-size:10px}
  .category-grid-ref{grid-template-columns:repeat(3,1fr);gap:8px}.category-ref{min-height:115px;padding:7px}.category-image{height:62px;font-size:33px}.category-ref strong{font-size:10px}.category-ref small{font-size:8px}
  .deal-row{grid-template-columns:repeat(2,1fr);gap:8px}.product-card-ref:nth-child(n+5){display:none}.product-photo{height:115px;padding:12px}.product-photo img{max-height:90px}.product-info{padding:9px}.product-info h3{font-size:10px}.price-line strong{font-size:14px}.store-rating{font-size:9px}
  .home-side{display:none}
  .mobile-bottom{position:fixed;z-index:100;bottom:0;left:0;right:0;height:64px;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid #e4e8eb;box-shadow:0 -5px 18px rgba(0,0,0,.07)}
  .mobile-bottom a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:18px}.mobile-bottom small{font-size:9px}.mobile-bottom a:first-child{color:#00a29b}
  html[data-theme="night"] .mobile-bottom{background:#061f30;border-top-color:#15465a}
}


/* =========================================================
   V1.6 – Unified styling for all remaining pages
   ========================================================= */

.page-hero-small{
  margin:22px 0 18px;
  padding:28px 30px;
  border-radius:18px;
  background:
    linear-gradient(110deg,rgba(255,255,255,.97),rgba(239,251,250,.92)),
    url('/assets/hero-day.jpg') center/cover;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
.page-hero-small h1{margin:3px 0 6px;font-size:34px;letter-spacing:-.8px}
.page-hero-small p{margin:0;color:var(--muted);line-height:1.6}
.page-hero-small .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;color:var(--teal);font-weight:900}
.page-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
html[data-theme="night"] .page-hero-small{
  background:
    linear-gradient(110deg,rgba(3,28,44,.96),rgba(4,38,56,.9)),
    url('/assets/hero-night.jpg') center/cover;
  border-color:#15465a;
}

.card,.table-wrap,.notice,.searchbox,.form-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 8px 24px rgba(16,24,40,.06);
}
.card{padding:20px}
.notice{padding:14px 16px;color:var(--muted);line-height:1.55}
.muted{color:var(--muted); font-size:13px; padding-top:10px}
.section{margin-top:24px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 16px}
.section-head h1{margin:3px 0 0;font-size:32px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.metric{font-size:42px;font-weight:900;letter-spacing:-1.5px;margin-top:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#0a9f9b,#13bbb1);color:#fff}
.btn:hover{filter:brightness(.98)}
.btn.dark{background:linear-gradient(135deg,#087f7f,#0eb6aa);color:#fff}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.small{padding:8px 11px;border-radius:8px;font-size:12px}
.btn.danger{background:#d92d20}
.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e6f8f6;color:#058d87;font-size:11px;font-weight:900}
.badge.best{background:#e8f7ed;color:#15803d}
.danger-badge{background:#fee4e2;color:#b42318}
.searchbox{display:flex;overflow:hidden;padding:0}
.searchbox input{min-width:0;flex:1;border:0;outline:0;padding:14px 16px;background:transparent;color:var(--ink)}
.searchbox button{border-radius:0}
.field{display:grid;gap:7px;margin-bottom:14px;font-size:13px;font-weight:700}
.field input,.field select,.field textarea,select{
  width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  border-radius:10px;padding:12px 13px;outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#13b5ae;box-shadow:0 0 0 3px rgba(19,181,174,.12)}
.form-card{max-width:560px;margin:36px auto;padding:28px}
.form-card h1{margin-top:0;font-size:30px}
.form-card p{line-height:1.6}
.auth-wrap{display:grid;grid-template-columns:1.05fr .95fr;max-width:1060px;margin:34px auto;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--surface)}
.auth-art{min-height:620px;background:url('/assets/hero-art-day.jpg') center/cover;position:relative}
.auth-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(2,83,86,.3))}
.auth-panel{padding:48px}
.auth-panel .form-card{margin:0;padding:0;box-shadow:none;border:0;max-width:none;background:transparent}
html[data-theme="night"] .auth-art{background-image:url('/assets/hero-art-night.jpg')}

.product-grid-modern{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.product-tile{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  box-shadow:0 8px 20px rgba(16,24,40,.05);transition:.18s ease;display:block
}
.product-tile:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,24,40,.09)}
.product-tile .thumb{height:180px;background:#f2f7f7;display:grid;place-items:center;padding:20px}
.product-tile .thumb img{max-width:100%;max-height:150px;object-fit:contain}
.product-tile .body{padding:14px 15px 16px}
.product-tile h3{font-size:14px;line-height:1.38;margin:5px 0 10px;min-height:39px}
.product-tile .price{font-weight:900;font-size:19px}
.product-tile .meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:14px}

.compare-list{display:grid;gap:12px}
.compare-card{
  display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:18px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;
  box-shadow:0 7px 18px rgba(16,24,40,.05)
}
.compare-card img{width:100px;height:90px;object-fit:contain;background:#f4f8f7;border-radius:10px;padding:8px}
.compare-card h3{margin:4px 0;font-size:16px}
.compare-card .price-big{font-size:24px;font-weight:900;white-space:nowrap}
.compare-card .compare-actions{text-align:right;display:grid;gap:8px}

.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.store-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 8px 20px rgba(16,24,40,.05)}
.store-logo-box{height:92px;border-radius:12px;background:#fff;display:grid;place-items:center;margin-bottom:13px;padding:10px}
.store-logo-box img{max-height:65px;max-width:150px;object-fit:contain}
.store-card h3{margin:0 0 6px}.store-card small{color:var(--muted)}

.product-detail{
  display:grid;grid-template-columns:minmax(300px,40%) 1fr;gap:34px;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow)
}
.product-detail .product-image{height:420px;background:#f5f8f7;border-radius:16px;display:grid;place-items:center;padding:28px}
.product-detail .product-image img{max-height:360px;max-width:100%;object-fit:contain}
.product-detail h1{font-size:36px;line-height:1.12;margin:10px 0 14px}
.product-detail .brandline{color:var(--teal);font-weight:800}
.offer-cards{display:grid;gap:12px}
.offer-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.offer-card .offer-price{font-size:22px;font-weight:900}

.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.plan-card{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.plan-card.featured{border-color:#0cb0a8;box-shadow:0 12px 30px rgba(12,176,168,.15)}
.plan-card h2{margin:10px 0}.plan-price{font-size:30px;font-weight:900;margin:10px 0}.plan-card ul{padding-left:19px;color:var(--muted);line-height:1.8}

.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;min-width:720px}
th,td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:13px;vertical-align:top}
th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:rgba(12,159,155,.04)}
tr:last-child td{border-bottom:0}

.tabs{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.tabs a,.tabs button{padding:10px 14px;border-radius:9px;border:1px solid var(--line);background:var(--surface);font-weight:800;color:var(--ink)}
.admin-split{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.action-row{display:flex;gap:7px;flex-wrap:wrap}
.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-form select{width:auto;padding:7px 9px}

.admin-nav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:20px}
.admin-nav-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 7px 18px rgba(16,24,40,.05)}
.admin-nav-card b{display:block;font-size:28px;margin-bottom:12px}.admin-nav-card strong{display:block}.admin-nav-card small{color:var(--muted)}

html[data-theme="night"] .card,
html[data-theme="night"] .table-wrap,
html[data-theme="night"] .notice,
html[data-theme="night"] .searchbox,
html[data-theme="night"] .form-card,
html[data-theme="night"] .product-tile,
html[data-theme="night"] .compare-card,
html[data-theme="night"] .store-card,
html[data-theme="night"] .product-detail,
html[data-theme="night"] .offer-card,
html[data-theme="night"] .plan-card,
html[data-theme="night"] .admin-nav-card{background:#062436;border-color:#15465a}
html[data-theme="night"] .product-tile .thumb,
html[data-theme="night"] .compare-card img,
html[data-theme="night"] .product-detail .product-image{background:#eaf2ee}
html[data-theme="night"] th{background:#092c3e}
html[data-theme="night"] .btn.ghost,html[data-theme="night"] .tabs a{color:#e8f5f8;border-color:#1b4c5e;background:#082c3e}
html[data-theme="night"] .field input,html[data-theme="night"] .field select,html[data-theme="night"] .field textarea,html[data-theme="night"] select{background:#082c3e;border-color:#1b4c5e;color:#eef9fb}

@media(max-width:900px){
  .auth-wrap{grid-template-columns:1fr}.auth-art{min-height:260px}.auth-panel{padding:28px}
  .product-detail{grid-template-columns:1fr}.product-detail .product-image{height:300px}
  .admin-split{grid-template-columns:1fr}
}
@media(max-width:760px){
  .page-hero-small{padding:20px;display:block}.page-hero-small h1{font-size:26px}.page-hero-actions{margin-top:14px}
  .compare-card{grid-template-columns:72px 1fr}.compare-card img{width:70px;height:66px}.compare-card .compare-actions{grid-column:1/3;text-align:left;display:flex;justify-content:space-between;align-items:center}
  .offer-card{grid-template-columns:1fr}.offer-card .offer-price{font-size:20px}
  .two-col{grid-template-columns:1fr}
}


/* V1.8 responsive hero artwork — preserve full images, never crop */
.responsive-hero-art{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px 12px 0;
  background:transparent;
}
.responsive-hero-art picture{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.responsive-hero-art img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center !important;
}
.responsive-hero-art:after{display:none !important}

.admin-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.admin-media-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.admin-media-card h2{font-size:17px;margin:0 0 6px}
.admin-media-preview{height:210px;background:#eef5f4;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:10px;margin:12px 0;overflow:hidden}
.admin-media-preview.mobile{height:300px}
.admin-media-preview img{width:100%;height:100%;object-fit:contain;object-position:center}
.admin-media-card input[type=file]{width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);margin-bottom:10px}
html[data-theme="night"] .admin-media-card{background:#062436;border-color:#15465a}
html[data-theme="night"] .admin-media-preview{background:#031824}
@media(max-width:760px){
  .hero-shell{height:auto;min-height:0;overflow:visible}
  .hero{position:relative;display:flex;flex-direction:column;min-height:0}
  .hero.night-layer{display:none}
  html[data-theme="night"] .day-layer{display:none}
  html[data-theme="night"] .night-layer{display:flex}
  .hero-copy{order:1;width:100%;padding:22px 18px 14px}
  .responsive-hero-art{order:2;width:100%;height:auto;min-height:0;padding:0 10px 14px}
  .responsive-hero-art picture{height:auto}
  .responsive-hero-art img{width:100%;height:auto;max-height:560px;object-fit:contain !important}
  .admin-media-grid{grid-template-columns:1fr}
}
/* v1.7.5 */
.site-brand img{width:var(--logo-desktop,300px)!important;height:auto!important;max-width:100%;object-fit:contain}
.global-back{margin:14px 0 16px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:9px 15px;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(16,24,40,.05)}
.category-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px;margin:20px 0}
.category-card-real{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px;text-align:center;box-shadow:0 7px 20px rgba(16,24,40,.05);transition:.18s}
.category-card-real:hover{transform:translateY(-2px)}
.category-real-image{height:130px;background:#f4f8f7;border-radius:12px;display:grid;place-items:center;padding:12px;margin-bottom:9px}
.category-real-image img{max-width:100%;max-height:110px;object-fit:contain}.category-card-real strong{display:block;font-size:15px}.category-card-real small{display:block;color:var(--muted);margin-top:5px}
.subcategory-strip{display:flex;gap:10px;overflow:auto;padding:4px 0 18px}.subcategory-strip a{min-width:130px;border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:10px;text-align:center;font-weight:800}.subcategory-strip img{width:70px;height:60px;object-fit:contain;display:block;margin:auto auto 6px}
.recommended-box{padding:16px 18px;border:1px solid #71d5b1;background:#ecfff7;border-radius:14px;margin-bottom:18px;color:#075d44}.recommended-box p{margin:6px 0 0}
.admin-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.admin-media-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}.admin-media-preview{height:160px;background:#f2f7f7;border-radius:12px;display:grid;place-items:center;margin:12px 0;padding:10px}.admin-media-preview img{max-width:100%;max-height:140px;object-fit:contain}.admin-media-card form{display:grid;gap:9px}.media-settings{padding:20px;margin-bottom:18px}
html[data-theme="night"] .category-card-real,html[data-theme="night"] .admin-media-card,html[data-theme="night"] .media-settings,html[data-theme="night"] .global-back{background:#062436;border-color:#15465a}html[data-theme="night"] .recommended-box{background:#07392f;color:#baf6df;border-color:#16745c}
@media(max-width:760px){.site-brand img{width:var(--logo-mobile,160px)!important}.category-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-real-image{height:115px}}


/* =========================================================
   v1.7.5.3 — Theme-aware Back button
   ========================================================= */
.global-back{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:16px 0 4px;
  padding:9px 14px;
  min-height:38px;
  border:1px solid rgba(10,159,155,.22);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#f4fbfa);
  color:#087f7b;
  font-weight:800;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(10,25,48,.07);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease,color .16s ease;
}
.global-back:hover{
  transform:translateY(-1px);
  background:#ecfbf9;
  border-color:rgba(10,159,155,.42);
  box-shadow:0 9px 20px rgba(10,25,48,.10);
}
.global-back:active{transform:translateY(0)}
.global-back:focus-visible{
  outline:3px solid rgba(18,184,174,.22);
  outline-offset:2px;
}
.global-back .back-arrow{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,#0a9f9b,#13bbb1);
  color:#fff;
  font-size:15px;
  box-shadow:0 4px 10px rgba(10,159,155,.22);
}

html[data-theme="night"] .global-back{
  background:linear-gradient(180deg,#0a3043,#072638);
  color:#dffbf8;
  border-color:#1b5366;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
}
html[data-theme="night"] .global-back:hover{
  background:#0b3a4d;
  border-color:#257084;
  color:#ffffff;
}
html[data-theme="night"] .global-back .back-arrow{
  background:linear-gradient(135deg,#11a9a3,#1ad1c4);
  color:#001a25;
}

@media(max-width:760px){
  .global-back{
    margin:10px 0 2px;
    padding:8px 12px;
    min-height:36px;
    font-size:12px;
  }
  .global-back .back-arrow{
    width:22px;
    height:22px;
    font-size:14px;
  }
}


/* =========================================================
   v1.7.6 — Admin Visual Customizer
   ========================================================= */
.customizer-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}
.customizer-sidebar{position:sticky;top:84px;padding:12px}
.customizer-nav{display:grid;gap:6px}
.customizer-tab{border:0;background:transparent;color:var(--muted);text-align:left;padding:11px 12px;border-radius:10px;font-weight:800;cursor:pointer}
.customizer-tab:hover,.customizer-tab.active{background:rgba(10,159,155,.10);color:#078984}
.safe-status{margin-top:14px;padding:12px;border-radius:11px;background:#ecfff7;border:1px solid #8bdfc1;display:grid;gap:4px;color:#075d44}
.safe-status span{font-size:12px;line-height:1.4}
.customizer-main{min-width:0}
.customizer-panel{margin-bottom:18px}
.customizer-panel.card{padding:20px}
.mode-switch{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.mode-switch label{display:flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:9px 13px;background:var(--surface);font-weight:800}
.hint{font-weight:500;color:var(--muted);font-size:12px}
.warning-box{padding:11px 13px;border-radius:10px;background:#fff6db;border:1px solid #f2d77e;color:#725506;margin:12px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.preview-theme-toggle{display:flex;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface)}
.preview-theme-toggle button{border:0;background:transparent;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer;color:var(--muted)}
.preview-theme-toggle button.active{background:#0aa39d;color:white}
.hero-live-preview{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:16px;align-items:end;margin-bottom:20px}
.preview-browser{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;box-shadow:0 12px 30px rgba(12,32,55,.09)}
.preview-header{height:58px;display:flex;align-items:center;gap:14px;padding:8px 14px;border-bottom:1px solid #e7eeee;font-size:11px;color:#10253b}
.preview-header img{height:auto;object-fit:contain}
.preview-search{height:28px;flex:1;border:1px solid #dce8e8;border-radius:999px;background:#f8fbfb}
.preview-hero{min-height:180px;background-repeat:no-repeat;background-color:#eef8f7}
.preview-phone{width:180px;border:7px solid #15202b;border-radius:28px;padding:7px;background:#111;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.preview-phone-screen{border-radius:17px;overflow:hidden;background:white}
.preview-phone-screen>img{display:block;margin:8px auto;height:auto;object-fit:contain}
.preview-phone-screen>div{background-repeat:no-repeat;background-color:#eef8f7}
.hero-live-preview[data-theme-preview="night"] .preview-browser,.hero-live-preview[data-theme-preview="night"] .preview-phone-screen{background:#001b2a;color:white}
.hero-live-preview[data-theme-preview="night"] .preview-header{background:#002335;border-color:#164455;color:#eaf7f8}
.hero-live-preview[data-theme-preview="night"] .preview-search{background:#072f40;border-color:#185063}
.drop-zone{border:1.5px dashed #93c9c5;border-radius:11px;padding:13px;display:grid;place-items:center;gap:3px;text-align:center;cursor:pointer;background:rgba(10,159,155,.04);transition:.15s}
.drop-zone:hover,.drop-zone.dragging{background:rgba(10,159,155,.11);border-color:#0aa39d}
.drop-zone input{position:absolute;opacity:0;pointer-events:none;width:1px!important;height:1px}
.drop-zone span{font-weight:800;color:#087f7b}.drop-zone small{color:var(--muted)}
.drop-zone.compact{padding:9px}
.upload-meta{min-height:18px;color:var(--muted);font-size:11px;line-height:1.4}
.category-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:13px}
.category-admin-card{border:1px solid var(--line);border-radius:14px;padding:11px;background:var(--surface);display:grid;gap:9px}
.category-admin-card h3{font-size:14px;margin:0}
.category-live-card{border:1px solid var(--line);border-radius:13px;padding:8px;text-align:center;background:var(--surface)}
.category-live-image{height:105px;background:#f1f7f6;border-radius:9px;display:grid;place-items:center;padding:8px;margin-bottom:7px}
.category-live-image img{max-width:100%;max-height:92px;object-fit:contain}
.backup-list{display:grid;gap:9px}
.backup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:11px 13px}
.backup-row>div{display:grid;gap:2px}.backup-row small{color:var(--muted)}
.empty-state{padding:22px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
html[data-theme="night"] .customizer-sidebar,html[data-theme="night"] .customizer-panel.card,html[data-theme="night"] .category-admin-card,html[data-theme="night"] .category-live-card,html[data-theme="night"] .mode-switch label{background:#062436;border-color:#15465a}
html[data-theme="night"] .safe-status{background:#07392f;color:#baf6df;border-color:#16745c}
html[data-theme="night"] .category-live-image{background:#031824}
@media(max-width:900px){.customizer-layout{grid-template-columns:1fr}.customizer-sidebar{position:static}.customizer-nav{grid-template-columns:repeat(3,1fr)}.customizer-tab{text-align:center}.hero-live-preview{grid-template-columns:1fr}.preview-phone{margin:auto}}
@media(max-width:620px){.customizer-nav{grid-template-columns:repeat(2,1fr)}.section-head{align-items:flex-start;flex-direction:column}.hero-live-preview{display:block}.preview-phone{margin:15px auto}.category-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v1.7.6.2 stable header actions and section-local controls */
.desktop-nav a.nav-active{color:#009f9a!important;border-bottom:2px solid #00aaa5!important}
.header-action-link{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:42px;color:var(--ink);text-decoration:none;line-height:1}
.header-action-icon{width:var(--mp-header-icon-size,22px);height:var(--mp-header-icon-size,22px);display:grid;place-items:center}
.header-action-icon svg,.header-action-icon img{width:100%;height:100%;object-fit:contain;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-action-label{font-size:var(--mp-header-label-size,11px);font-weight:800;white-space:nowrap}
.header-action-link:hover{color:#00a7a1}
.site-brand img,#themeLogo{width:var(--mp-logo-desktop,300px)!important;max-width:100%;height:auto}
.hero-shell{height:var(--mp-hero-desktop-h,420px)}
.responsive-hero-art img,.hero-art img{object-fit:var(--mp-hero-fit,contain)!important}
.category-card-grid{grid-template-columns:repeat(auto-fill,minmax(var(--mp-cat-card-min,165px),1fr))}
.category-real-image{height:var(--mp-cat-img-h,130px)}
.category-real-image img{max-height:var(--mp-cat-img-max,110px);object-fit:contain}

.section-control-layout{display:grid;grid-template-columns:minmax(240px,330px) minmax(0,1fr);gap:16px;align-items:start;margin:14px 0 18px}
.section-controls{padding:15px}
.section-controls form{display:grid;gap:10px}
.section-mini-preview{min-height:160px;border:1px solid var(--line);border-radius:15px;background:var(--surface);display:grid;place-items:center;padding:18px}
.mini-brand-header{width:100%;display:flex;align-items:center;justify-content:center;gap:24px;border:1px solid var(--line);border-radius:12px;padding:14px}
.mini-brand-header>img{width:min(45%,220px);height:auto}
.mini-action{display:flex;flex-direction:column;align-items:center;gap:3px}
.mini-action svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.mini-action small{font-weight:800;font-size:10px}
.hero-small-preview>div{width:100%;height:180px;border-radius:12px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#eef8f7}
.mini-category-card{width:170px;border:1px solid var(--line);border-radius:13px;padding:10px;text-align:center}
.mini-category-card>div{height:100px;border-radius:9px;background:#edf6f5;margin-bottom:8px}
.mini-category-card strong,.mini-category-card small{display:block}
@media(max-width:760px){
 .site-brand img,#themeLogo{width:var(--mp-logo-mobile,190px)!important}
 .hero-shell{height:var(--mp-hero-mobile-h,520px)}
 .header-action-label{display:block}
 .section-control-layout{grid-template-columns:1fr}
}


/* =========================================================
   v1.7.6.2.1 — Mobile header overflow fix ONLY
   Keeps search, Saved and Account fully inside the viewport.
   ========================================================= */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .header-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-brand {
    grid-area: brand;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .site-brand img,
  #themeLogo {
    display: block;
    width: min(var(--mp-logo-mobile, 190px), 52vw) !important;
    max-width: 150% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .header-actions {
    grid-area: actions;
    min-width: 0;
    max-width: 46vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .theme-toggle {
    flex: 0 1 auto;
    min-width: 0;
  }

  .theme-toggle button {
    min-width: 0 !important;
    padding: 6px 7px !important;
    font-size: 10px !important;
    white-space: nowrap;
  }

  .header-action-link {
    flex: 0 0 auto;
    min-width: 34px;
    max-width: 48px;
    padding: 3px 2px;
  }

  .header-action-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
  }

  .header-action-label {
    display: block;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px !important;
    line-height: 1.1;
  }

  .header-search {
    grid-area: search;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .header-search form,
  .header-search .search-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex;
  }

  .header-search input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    box-sizing: border-box;
  }

  .header-search button {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .header-grid {
    padding-left: 8px;
    padding-right: 8px;
    gap: 7px;
  }

  .site-brand img,
  #themeLogo {
    width: min(var(--mp-logo-mobile, 190px), 48vw) !important;
  }

  .header-actions {
    max-width: 49vw;
    gap: 3px;
  }

  .theme-toggle button {
    padding: 5px 5px !important;
    font-size: 9px !important;
  }

  .header-action-link {
    min-width: 31px;
    max-width: 42px;
  }

  .header-action-label {
    max-width: 42px;
    font-size: 8.5px !important;
  }

  .header-action-icon {
    width: 18px !important;
    height: 18px !important;
  }
}


/* =========================================================
   v1.7.6.2.2 — 1200px site width + mobile value strip fix
   CSS-only / stable
   ========================================================= */

/* Unified desktop content width */
.page-wrap,
.header-grid,
.flash {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep the 1200px layout comfortable without excessive side padding */
@media (min-width: 761px) {
  .page-wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .header-grid {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Mobile must remain full-width regardless of desktop max width */
@media (max-width: 760px) {
  .page-wrap,
  .header-grid,
  .flash {
    width: 100% !important;
    max-width: 100% !important;
  }

  /*
   Hero becomes normal document flow on mobile.
   This guarantees everything after it starts only after the
   complete hero image/copy has finished rendering.
  */
  .hero-shell {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-bottom: 12px !important;
  }

  .hero {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .responsive-hero-art {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .responsive-hero-art picture {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .responsive-hero-art img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  /*
   Value strip / home content must form a new stacking context
   after the hero instead of appearing beneath overlapping artwork.
  */
  .home-grid {
    position: relative !important;
    z-index: 3 !important;
    clear: both !important;
    display: block !important;
    margin-top: 12px !important;
  }

  .value-strip {
    position: relative !important;
    z-index: 4 !important;
    clear: both !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .popular-searches {
    position: relative !important;
    z-index: 4 !important;
  }
}


/* =========================================================
   v1.7.6.2.3 — Targeted fixes only
   ========================================================= */

/* 1. Current-page navigation: remove hard-coded Home selection. */
.desktop-nav a:first-child{
  color:inherit !important;
  border-bottom-color:transparent !important;
}
.desktop-nav a.nav-active,
.desktop-nav a[aria-current="page"]{
  color:#049e99 !important;
  border-bottom:2px solid #12b8ae !important;
}

.mobile-bottom a:first-child{
  color:inherit !important;
}
.mobile-bottom a{
  position:relative;
}
.mobile-bottom a.nav-active,
.mobile-bottom a[aria-current="page"]{
  color:#00a29b !important;
  font-weight:900;
}
.mobile-bottom a.nav-active::before,
.mobile-bottom a[aria-current="page"]::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:34px;
  height:3px;
  border-radius:0 0 4px 4px;
  background:#00aaa5;
}

/* 2. Shops page — readable text in Night mode. */
html[data-theme="night"] .store-card{
  color:#f7fbff !important;
}
html[data-theme="night"] .store-card h3,
html[data-theme="night"] .store-card p,
html[data-theme="night"] .store-card strong{
  color:#f7fbff !important;
}
html[data-theme="night"] .store-card small{
  color:#a8c0cc !important;
}
html[data-theme="night"] .store-logo-box{
  background:#0b3144 !important;
  color:#f7fbff !important;
}
html[data-theme="night"] .store-logo-box strong{
  color:#f7fbff !important;
}

/* 4. Top Shops — 12 shops fit compactly, highest indexed offers first via SQL. */
.shop-grid-ref{
  grid-template-columns:1fr 1fr;
  gap:10px 10px;
}
.shop-grid-ref a{
  height:46px;
  min-height:46px;
  padding:5px 7px;
}
.shop-grid-ref img{
  max-height:32px;
  max-width:90px;
}
.shop-grid-ref strong{
  font-size:13px;
  line-height:1.15;
  text-align:center;
}

/* 5. Hero sizing is controlled by Appearance settings.
      Desktop 420 default; Mobile 320 default; Contain means no crop. */
.hero-shell{
  height:var(--mp-hero-desktop-h,420px) !important;
}
.responsive-hero-art img,
.hero-art img{
  object-fit:var(--mp-hero-fit,contain) !important;
}

/* 6. Value strip — slightly shorter on desktop/tablet ONLY. */
@media(min-width:761px){
  .value-strip article{
    padding-top:18px !important;
    padding-bottom:18px !important;
  }
}

/* Mobile hero: exact Admin height and normal containment.
   This override intentionally comes after v1.7.6.2.2 mobile flow rules. */
@media(max-width:760px){
  .hero-shell{
    position:relative !important;
    display:block !important;
    height:var(--mp-hero-mobile-h,320px) !important;
    min-height:var(--mp-hero-mobile-h,320px) !important;
    overflow:hidden !important;
    margin-bottom:12px !important;
  }
  .hero{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
  }
  .responsive-hero-art,
  .hero-art{
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  .responsive-hero-art picture{
    display:block !important;
    width:100% !important;
    height:100% !important;
  }
  .responsive-hero-art img,
  .hero-art img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    object-fit:var(--mp-hero-fit,contain) !important;
  }
}

/* Align How It Works bottom with Popular Deals - desktop only */
@media (min-width: 901px) {
  .home-side .how-ref {
    max-height: 310px;
    overflow: hidden;
  }

  .home-side .how-ref article {
    margin: 5px 0;
  }

  .home-side .how-ref h2 {
    margin-bottom: 8px;
  }
}

@media (min-width: 1025px) {
    .responsive-hero-art {
        height: 100% !important;
        padding: 0 !important;
    }

    .responsive-hero-art picture {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .responsive-hero-art img {
        display: block !important;
        width: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Rounded corners for MauriPrice header logo only */
.site-brand img,
.site-brand #themeLogo {
    border-radius: 14px !important;
}

.product-best-store{
    display:flex;
    align-items:center;
    gap:7px;
    margin:8px 0;
    font-size:12px;
    line-height:1.3;
}

.product-best-store img{
    width:26px;
    height:26px;
    object-fit:contain;
    border-radius:6px;
    background:#fff;
    padding:2px;
    flex:0 0 auto;
}

.product-best-store strong{
    font-weight:800;
}

@media(max-width:560px){

    .product-best-store{
        font-size:11px;
        gap:5px;
    }

    .product-best-store img{
        width:22px;
        height:22px;
    }

}

/* Clean MauriPrice browse filters */
.browse-filters{
    display:grid;
    grid-template-columns:1fr 1fr 1fr auto;
    gap:10px;
    align-items:center;
    margin:0 0 22px;
}

.browse-filters select{
    width:100%;
    min-height:44px;
    padding:10px 36px 10px 12px;
    border-radius:11px;
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--ink);
    font:inherit;
}

.filter-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    min-height:44px;
    white-space:nowrap;
}

.filter-check{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.filter-check input{
    width:17px;
    height:17px;
    margin:0;
}

.filter-clear-link{
    color:#0aa9a3;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
}

.filter-clear-link:hover{
    text-decoration:underline;
}


/* Tablet */
@media(max-width:900px){

    .browse-filters{
        grid-template-columns:1fr 1fr;
    }

    .filter-actions{
        justify-content:space-between;
    }

}
*/

/* Mobile 
@media(max-width:560px){

    .browse-filters{
        grid-template-columns:1fr;
        gap:8px;
    }

    .browse-filters select{
        min-height:46px;
    }

    .filter-actions{
        width:100%;
        justify-content:space-between;
        padding:2px 4px;
    }

}*/

/* FINAL mobile homepage hero layout */
@media(max-width:760px){

  .hero-copy{
    width:100%;
    display:grid !important;
    grid-template-columns:auto auto;
    justify-content:center;
    align-items:center;
    column-gap:18px;
    text-align:center !important;
    padding:18px 16px 14px !important;
  }

  .hero-copy h1{
    grid-column:1 / -1;
    max-width:380px;
    margin:0 auto 18px !important;
    text-align:center !important;
    font-size:clamp(31px,8.2vw,41px) !important;
    line-height:1.06 !important;
  }

  .hero-copy p{
    grid-column:1 / -1;
    max-width:360px;
    margin:0 auto 24px !important;
    text-align:center !important;
    font-size:15px !important;
    line-height:1.55 !important;
  }

  .hero-cta{
    grid-column:1;
    display:inline-flex !important;
    width:auto !important;
    margin:0 !important;
    padding:10px 16px !important;
    white-space:nowrap;
  }

  .social-proof{
    grid-column:2;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 !important;
    width:auto !important;
    max-width:none !important;
    text-align:left !important;
  }

  .social-proof strong{
    font-size:13px !important;
    white-space:nowrap;
  }

  .social-proof small{
    font-size:10px !important;
  }
}

.filter-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.filter-actions .btn{
    white-space:nowrap;
}

@media(max-width:760px){

    .filter-actions{
        width:100%;
    }

    .filter-actions .btn{
        padding:10px 14px;
    }

}
/* FINAL FIX: homepage hero title only — MOBILE ONLY */
@media (max-width:760px){
    .hero-shell .hero .hero-copy > h1{
        grid-column:1 / -1 !important;
        width:100% !important;
        max-width:none !important;
        margin:0 0 18px 0 !important;
        padding:0 !important;
        text-align:center !important;
        justify-self:stretch !important;

        /* Slightly larger title */
        font-size:clamp(32px,8.5vw,42px) !important;
        line-height:1.06 !important;
    }
}

/* FINAL MOBILE HOMEPAGE HERO ALIGNMENT */
@media (max-width:760px){

  .hero-shell .hero .hero-copy{
    width:100% !important;
    display:grid !important;
    grid-template-columns:auto auto !important;
    justify-content:center !important;
    justify-items:center !important;
    align-items:center !important;
    column-gap:16px !important;
    padding:18px 16px 16px !important;
    text-align:center !important;
  }

  .hero-shell .hero .hero-copy > h1{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:390px !important;
    margin:0 auto 16px !important;
    text-align:center !important;
    font-size:clamp(32px,8.5vw,42px) !important;
    line-height:1.06 !important;
  }

  .hero-shell .hero .hero-copy > p{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:370px !important;
    margin:0 auto 22px !important;
    text-align:center !important;
    font-size:15px !important;
    line-height:1.5 !important;
  }

  .hero-shell .hero .hero-cta{
    grid-column:1 !important;
    justify-self:end !important;
    margin:0 !important;
    width:auto !important;
  }

  .hero-shell .hero .social-proof{
    grid-column:2 !important;
    justify-self:start !important;
    display:flex !important;
    align-items:center !important;
    text-align:left !important;
    margin:0 !important;
    width:auto !important;
  }

}
