/* ============================================================
   ORBIT — premium electronics store
   Palette: white / light gray / graphite. Minimal, calm, no noise.
   ============================================================ */

:root{
  --white:#ffffff;
  --gray-50:#fafafa;
  --gray-100:#f4f5f6;
  --gray-150:#eef0f1;
  --gray-200:#e6e8ea;
  --gray-300:#d6d9dc;
  --gray-400:#b7bbc0;
  --gray-500:#8d9095;
  --gray-600:#65686d;
  --ink:#1c1d1f;
  --ink-soft:#3a3c40;
  --graphite:#2b2d31;
  --graphite-dark:#161719;
  --line:#e5e7e9;
  --radius-sm:8px;
  --radius:14px;
  --radius-lg:22px;
  --shadow-sm:0 1px 2px rgba(20,20,22,.04), 0 1px 1px rgba(20,20,22,.03);
  --shadow-md:0 10px 30px -12px rgba(20,20,22,.16);
  --shadow-lg:0 22px 60px -20px rgba(20,20,22,.22);
  --container:1240px;
  --header-h:64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* the [hidden] attribute must always win over component display rules
   (e.g. .modal-backdrop{display:flex}) — without !important, equal-specificity
   class rules declared later in the cascade silently defeat [hidden]. */
[hidden]{display:none !important;}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4,h5,p{margin:0;}
input,textarea,select{font-family:inherit;font-size:16px;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:10px 16px;border-radius:0 0 8px 0;z-index:1000;
}
.skip-link:focus{left:0;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:999px;border:1px solid transparent;
  font-size:15px;font-weight:600;cursor:pointer;transition:transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}
.btn-primary{background:var(--graphite);color:#fff;}
.btn-primary:hover{background:var(--ink);box-shadow:var(--shadow-md);}
.btn-ghost{background:var(--white);color:var(--ink);border-color:var(--gray-300);}
.btn-ghost:hover{border-color:var(--ink);}
.btn-lg{padding:15px 28px;font-size:16px;}
.btn-block{width:100%;}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:200;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.header-top-inner{
  display:flex;align-items:center;gap:22px;height:var(--header-h);
}
.burger{
  display:none;flex-direction:column;justify-content:center;gap:4px;
  width:38px;height:38px;border:none;background:transparent;cursor:pointer;flex-shrink:0;
}
.burger span{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s var(--ease), opacity .2s var(--ease);}

.brand{display:flex;align-items:center;gap:9px;flex-shrink:0;}
.brand-logo{width:34px;height:34px;object-fit:contain;}
.brand-name{font-size:19px;font-weight:800;letter-spacing:.5px;color:var(--ink);}

.main-nav{display:flex;align-items:center;gap:2px;flex-shrink:0;}
.main-nav a{
  padding:9px 12px;border-radius:999px;font-size:14.5px;font-weight:500;color:var(--ink-soft);
  transition:background .15s var(--ease), color .15s var(--ease);
}
.main-nav a:hover{background:var(--gray-100);color:var(--ink);}

.header-search{flex:1;min-width:0;}
.header-search form{position:relative;}
.header-search input{
  width:100%;height:42px;border-radius:999px;border:1px solid var(--gray-200);background:var(--gray-100);
  padding:0 44px 0 18px;font-size:14.5px;color:var(--ink);transition:border-color .15s var(--ease), background .15s var(--ease);
}
.header-search input:focus{outline:none;border-color:var(--gray-400);background:var(--white);}
.header-search button{
  position:absolute;right:4px;top:4px;width:34px;height:34px;border-radius:50%;border:none;background:transparent;
  color:var(--gray-600);display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.header-search button:hover{background:var(--gray-200);color:var(--ink);}

.search-suggest{
  position:absolute;top:calc(100% + 8px);left:0;right:0;background:var(--white);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);border:1px solid var(--line);overflow:hidden;max-height:420px;overflow-y:auto;z-index:50;
}
.search-suggest a{display:flex;align-items:center;gap:12px;padding:10px 14px;font-size:14px;}
.search-suggest a:hover{background:var(--gray-100);}
.search-suggest img{width:38px;height:38px;object-fit:contain;background:var(--gray-100);border-radius:8px;flex-shrink:0;}
.search-suggest .ss-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.search-suggest .ss-price{color:var(--gray-600);font-weight:600;font-size:13px;flex-shrink:0;}

.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.icon-btn{
  position:relative;width:42px;height:42px;border-radius:50%;border:1px solid var(--gray-200);background:var(--white);
  display:flex;align-items:center;justify-content:center;color:var(--ink);cursor:pointer;transition:background .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover{background:var(--gray-100);}
.icon-badge{
  position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--graphite);color:#fff;
  font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;
}
.header-cta{width:auto;padding:0 18px;border-radius:999px;gap:8px;background:var(--graphite);color:#fff;border-color:var(--graphite);}
.header-cta:hover{background:var(--ink);}
.cta-label{font-size:14px;font-weight:600;}

.mobile-search{display:none;padding:10px 24px 12px;}
.mobile-search form{position:relative;}
.mobile-search input{
  width:100%;height:42px;border-radius:999px;border:1px solid var(--gray-200);background:var(--gray-100);
  padding:0 44px 0 16px;font-size:15px;
}
.mobile-search button{position:absolute;right:4px;top:4px;width:34px;height:34px;border-radius:50%;border:none;background:transparent;color:var(--gray-600);}

/* nav drawer (mobile category menu) */
.nav-drawer{position:fixed;inset:0;z-index:300;display:none;}
.nav-drawer.is-open{display:block;}
.nav-drawer-backdrop{position:absolute;inset:0;background:rgba(20,20,22,.4);}
.nav-drawer-panel{
  position:absolute;top:0;left:0;bottom:0;width:82%;max-width:340px;background:var(--white);
  box-shadow:var(--shadow-lg);display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .25s var(--ease);
}
.nav-drawer.is-open .nav-drawer-panel{transform:translateX(0);}
.nav-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);font-weight:700;font-size:16px;}
.nav-drawer-head button{width:34px;height:34px;border-radius:50%;border:none;background:var(--gray-100);font-size:20px;cursor:pointer;}
.nav-drawer-list{flex:1;overflow-y:auto;padding:10px 8px;}
.nav-drawer-list a{display:block;padding:13px 14px;border-radius:12px;font-size:15.5px;font-weight:500;color:var(--ink-soft);}
.nav-drawer-list a:active,.nav-drawer-list a:hover{background:var(--gray-100);color:var(--ink);}
.nav-drawer-list .ndl-count{color:var(--gray-500);font-weight:500;font-size:13px;float:right;}

/* ============================================================
   HERO
   ============================================================ */
.hero{background:linear-gradient(180deg,var(--gray-50) 0%, var(--white) 100%);border-bottom:1px solid var(--line);overflow:hidden;}
.hero-inner{
  display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px;
  padding:64px 24px 56px;
}
.hero-eyebrow{font-size:13.5px;font-weight:700;color:var(--gray-600);text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px;}
.hero-copy h1{font-size:46px;line-height:1.08;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin-bottom:18px;}
.hero-sub{font-size:17px;line-height:1.55;color:var(--ink-soft);max-width:520px;margin-bottom:28px;}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:36px;}
.hero-stats{display:flex;gap:32px;flex-wrap:wrap;}
.hero-stats div{display:flex;flex-direction:column;gap:2px;}
.hero-stats strong{font-size:22px;font-weight:800;color:var(--ink);}
.hero-stats span{font-size:13px;color:var(--gray-600);}

.hero-art{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;max-width:420px;margin:0 auto;}
.hero-art-ring{
  position:absolute;inset:6%;border-radius:50%;border:1.5px solid var(--gray-300);
  animation:orbit-spin 34s linear infinite;
}
.hero-art-ring::before{
  content:"";position:absolute;top:-5px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--graphite);
}
.hero-art-logo{width:62%;height:62%;object-fit:contain;filter:drop-shadow(0 20px 40px rgba(20,20,22,.14));}
@keyframes orbit-spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){.hero-art-ring{animation:none;}}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section{padding:56px 0;}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;}
.section-head h2{font-size:26px;font-weight:800;letter-spacing:-.01em;color:var(--ink);}
.section-kicker{font-size:12.5px;font-weight:700;color:var(--gray-600);text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;}
.section-link{font-size:14px;font-weight:600;color:var(--ink-soft);padding:8px 4px;flex-shrink:0;}
.section-link:hover{color:var(--ink);}
.section-note{color:var(--gray-600);font-size:14.5px;margin:-10px 0 24px;max-width:640px;}

/* category grid */
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.category-card{
  display:flex;flex-direction:column;justify-content:space-between;gap:22px;
  background:var(--gray-50);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:22px 20px;min-height:150px;transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);background:var(--white);}
.category-card-icon{width:38px;height:38px;border-radius:10px;background:var(--white);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink);}
.category-card-text{display:flex;flex-direction:column;gap:4px;}
.category-card-title{display:block;font-size:16px;font-weight:700;color:var(--ink);}
.category-card-count{display:block;font-size:13px;color:var(--gray-600);}

/* product row (horizontal on mobile) */
.product-row{
  display:grid;grid-template-columns:repeat(5,1fr);gap:16px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card{
  position:relative;display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:var(--gray-300);}
.product-card-media{
  position:relative;aspect-ratio:1/1;background:var(--white);display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.product-card-media img{width:82%;height:82%;object-fit:contain;transition:transform .35s var(--ease);}
.product-card:hover .product-card-media img{transform:scale(1.05);}
.product-card-badge{
  position:absolute;top:10px;left:10px;background:var(--graphite);color:#fff;font-size:11px;font-weight:700;
  padding:5px 10px;border-radius:999px;letter-spacing:.02em;
}
.product-card-fav{
  position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:none;background:rgba(255,255,255,.9);
  display:flex;align-items:center;justify-content:center;color:var(--gray-600);cursor:pointer;backdrop-filter:blur(6px);
  transition:color .15s var(--ease), transform .15s var(--ease);
}
.product-card-fav:hover{transform:scale(1.08);color:var(--ink);}
.product-card-fav.is-active{color:#c0392b;}
.product-card-body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1;}
.product-card-brand{font-size:11.5px;font-weight:700;color:var(--gray-500);text-transform:uppercase;letter-spacing:.05em;}
.product-card-name{
  font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;
}
.product-card-specs{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px;}
.product-card-specs span{font-size:11px;color:var(--gray-600);background:var(--gray-100);padding:3px 8px;border-radius:999px;}
.product-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px;gap:8px;}
.product-card-price{font-size:17px;font-weight:800;color:var(--ink);}
.product-card-avail{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--gray-600);}
.product-card-avail i{width:6px;height:6px;border-radius:50%;background:#3c8a54;display:inline-block;}
.product-card-cta{
  border:none;background:var(--gray-100);color:var(--ink);width:36px;height:36px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s var(--ease), color .15s var(--ease);
}
.product-card-cta:hover{background:var(--graphite);color:#fff;}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-section{background:var(--gray-50);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.benefit-card{display:flex;flex-direction:column;gap:10px;}
.benefit-card svg{color:var(--ink);margin-bottom:4px;}
.benefit-card h3{font-size:15.5px;font-weight:700;color:var(--ink);}
.benefit-card p{font-size:13.5px;color:var(--gray-600);line-height:1.5;}

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.catalog-head{padding:32px 24px 8px;}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--gray-500);margin-bottom:14px;}
.breadcrumbs a{color:var(--gray-600);}
.breadcrumbs a:hover{color:var(--ink);}
.breadcrumbs span.sep{color:var(--gray-400);}
.catalog-head h1{font-size:30px;font-weight:800;letter-spacing:-.01em;margin-bottom:6px;}
.catalog-count{color:var(--gray-600);font-size:14px;}

.catalog-layout{display:grid;grid-template-columns:260px 1fr;gap:32px;align-items:flex-start;padding-top:20px;padding-bottom:60px;}

.filters-toggle{
  display:none;align-items:center;gap:8px;width:100%;padding:12px 16px;border-radius:999px;border:1px solid var(--gray-300);
  background:var(--white);font-weight:600;font-size:14.5px;cursor:pointer;margin-bottom:16px;
}

.filters-panel{position:sticky;top:calc(var(--header-h) + 20px);display:flex;flex-direction:column;gap:26px;padding-bottom:20px;}
.filters-panel-head{display:none;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);font-weight:700;}
.filters-panel-head button{width:34px;height:34px;border-radius:50%;border:none;background:var(--gray-100);font-size:20px;}

.filter-group h4{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--gray-600);margin-bottom:12px;}
.filter-list{display:flex;flex-direction:column;gap:2px;}
.filter-list-scroll{max-height:260px;overflow-y:auto;padding-right:4px;}
.filter-chip{
  display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;
  font-size:14px;color:var(--ink-soft);cursor:pointer;transition:background .15s var(--ease), color .15s var(--ease);border:none;background:transparent;text-align:left;width:100%;
}
.filter-chip:hover{background:var(--gray-100);}
.filter-chip.is-active{background:var(--graphite);color:#fff;}
.filter-chip.is-active .filter-chip-count{color:rgba(255,255,255,.7);}
.filter-chip-count{color:var(--gray-500);font-size:12.5px;flex-shrink:0;}

.price-range{display:flex;align-items:center;gap:8px;}
.price-range input{
  width:100%;min-width:0;height:40px;border-radius:10px;border:1px solid var(--gray-300);padding:0 10px;font-size:14px;
}
.price-range span{color:var(--gray-400);}

.catalog-main{min-width:0;}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap;}
.catalog-toolbar-count{font-size:14px;color:var(--gray-600);}
.sort-select{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--gray-600);}
.sort-select select{
  border:1px solid var(--gray-300);border-radius:10px;padding:8px 10px;font-size:13.5px;color:var(--ink);background:var(--white);
}

.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.active-filter-tag{
  display:flex;align-items:center;gap:6px;background:var(--gray-100);border-radius:999px;padding:6px 8px 6px 12px;font-size:13px;color:var(--ink-soft);
}
.active-filter-tag button{border:none;background:var(--gray-300);color:var(--ink);width:18px;height:18px;border-radius:50%;font-size:12px;cursor:pointer;line-height:1;}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.catalog-empty{padding:60px 0;text-align:center;color:var(--gray-600);font-size:15px;}

.pagination{display:flex;justify-content:center;gap:6px;margin-top:36px;}
.pagination button{
  min-width:38px;height:38px;padding:0 10px;border-radius:10px;border:1px solid var(--gray-200);background:var(--white);
  font-size:14px;font-weight:600;color:var(--ink-soft);cursor:pointer;
}
.pagination button.is-active{background:var(--graphite);color:#fff;border-color:var(--graphite);}
.pagination button:disabled{opacity:.4;cursor:default;}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:8px 24px 40px;align-items:flex-start;}

.product-gallery{position:sticky;top:calc(var(--header-h) + 20px);}
.product-gallery-main{
  position:relative;aspect-ratio:1/1;background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:12px;
}
.product-gallery-main img{width:78%;height:78%;object-fit:contain;}
.gallery-fav{
  position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.92);
  display:flex;align-items:center;justify-content:center;color:var(--gray-600);cursor:pointer;box-shadow:var(--shadow-sm);
}
.gallery-fav.is-active{color:#c0392b;}
.product-gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;}
.product-gallery-thumbs button{
  width:68px;height:68px;border-radius:12px;border:1.5px solid var(--line);background:var(--white);padding:6px;cursor:pointer;
}
.product-gallery-thumbs button.is-active{border-color:var(--ink);}
.product-gallery-thumbs img{width:100%;height:100%;object-fit:contain;}

.product-info{display:flex;flex-direction:column;gap:4px;}
.product-brand{font-size:13px;font-weight:700;color:var(--gray-500);text-transform:uppercase;letter-spacing:.06em;}
.product-info h1{font-size:28px;font-weight:800;letter-spacing:-.01em;line-height:1.2;margin:6px 0 8px;}
.product-sku{font-size:13px;color:var(--gray-500);margin-bottom:14px;}
.product-availability{
  display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:#2e6b41;
  background:#eef7f0;padding:8px 14px;border-radius:999px;width:fit-content;margin-bottom:18px;
}
.product-availability i{width:8px;height:8px;border-radius:50%;background:#3c8a54;display:inline-block;}
.product-price{font-size:34px;font-weight:800;color:var(--ink);margin-bottom:16px;}
.product-short-desc{font-size:15px;line-height:1.6;color:var(--ink-soft);margin-bottom:24px;max-width:520px;}
.product-cta-row{display:flex;gap:12px;margin-bottom:28px;flex-wrap:wrap;}
.product-quick-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;padding-top:22px;border-top:1px solid var(--line);}
.product-quick-specs .qs-row{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;padding:6px 0;border-bottom:1px dashed var(--gray-200);}
.product-quick-specs .qs-label{color:var(--gray-600);}
.product-quick-specs .qs-value{color:var(--ink);font-weight:600;text-align:right;}

.product-tabs-wrap{padding:20px 24px 10px;}
.product-advantages{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:48px;}
.adv-card{background:var(--gray-50);border:1px solid var(--line);border-radius:var(--radius);padding:20px;}
.adv-card h4{font-size:15px;font-weight:700;margin-bottom:8px;color:var(--ink);}
.adv-card p{font-size:13.5px;line-height:1.55;color:var(--gray-600);}

.product-tabs{max-width:900px;}
.product-tabs-nav{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:24px;}
.tab-btn{
  padding:12px 4px;margin-right:26px;border:none;background:none;font-size:15px;font-weight:600;color:var(--gray-500);
  cursor:pointer;position:relative;top:1px;border-bottom:2px solid transparent;
}
.tab-btn.is-active{color:var(--ink);border-bottom-color:var(--ink);}
.tab-panel{display:none;font-size:15px;line-height:1.7;color:var(--ink-soft);}
.tab-panel.is-active{display:block;}
.specs-table{width:100%;border-collapse:collapse;}
.specs-table tr{border-bottom:1px solid var(--gray-150);}
.specs-table td{padding:11px 4px;font-size:14px;vertical-align:top;}
.specs-table td:first-child{color:var(--gray-600);width:44%;}
.specs-table td:last-child{color:var(--ink);font-weight:600;}

.related-section{padding-top:20px;}
.related-section h2{font-size:22px;font-weight:800;margin-bottom:20px;}
.recommend-section{border-top:1px solid var(--line);}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:var(--graphite-dark);color:#e9edf0;margin-top:40px;}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px;padding:56px 24px 40px;}
.footer-col h5{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#9aa0a6;margin-bottom:16px;}
.footer-col ul{display:flex;flex-direction:column;gap:10px;}
.footer-col a{font-size:14px;color:#c7ccd1;transition:color .15s var(--ease);}
.footer-col a:hover{color:#fff;}
.footer-col li{font-size:14px;color:#9aa0a6;}
.footer-brand .brand{margin-bottom:14px;}
.footer-brand .logo-slot{
  width:34px;height:34px;border-radius:50%;background:#eff2f4;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.footer-brand .logo-slot img{width:22px;height:22px;}
.footer-brand p{font-size:13.5px;line-height:1.6;color:#9aa0a6;max-width:280px;}
.footer-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 24px 26px;border-top:1px solid rgba(255,255,255,.08);
  font-size:12.5px;color:#7d838a;
}
.footer-disclaimer{max-width:460px;text-align:right;}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop{
  position:fixed;inset:0;z-index:400;background:rgba(20,20,22,.5);display:flex;align-items:center;justify-content:center;padding:20px;
  animation:fade-in .18s var(--ease);
}
@keyframes fade-in{from{opacity:0;}to{opacity:1;}}
.modal{
  position:relative;background:var(--white);border-radius:var(--radius-lg);padding:32px;width:100%;max-width:420px;
  box-shadow:var(--shadow-lg);
}
.modal-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;border:none;background:var(--gray-100);font-size:18px;cursor:pointer;}
.modal h3{font-size:20px;font-weight:800;margin-bottom:6px;}
.modal-product-line{font-size:13.5px;color:var(--gray-600);margin-bottom:20px;}
.modal form{display:flex;flex-direction:column;gap:14px;}
.modal label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink-soft);}
.modal input,.modal textarea{
  border:1px solid var(--gray-300);border-radius:10px;padding:11px 12px;font-size:15px;color:var(--ink);resize:vertical;
}
.modal input:focus,.modal textarea:focus{outline:none;border-color:var(--ink);}
.modal-hint{font-size:12px;color:var(--gray-500);text-align:center;margin-top:4px;}
.channel-field{display:flex;flex-direction:column;gap:8px;}
.channel-field-label{font-size:13px;font-weight:600;color:var(--ink-soft);}
.channel-select{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.channel-btn{
  padding:10px 6px;border-radius:10px;border:1.5px solid var(--gray-300);background:var(--white);
  font-size:13.5px;font-weight:600;color:var(--ink-soft);cursor:pointer;transition:border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.channel-btn:hover{border-color:var(--gray-400);}
.channel-btn.active{background:var(--graphite);border-color:var(--graphite);color:#fff;}
.modal-thanks{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:20px 0;color:var(--ink);}
.modal-thanks svg{color:#2e6b41;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .main-nav{display:none;}
  .burger{display:flex;}
  .category-grid{grid-template-columns:repeat(3,1fr);}
  .product-row{grid-template-columns:repeat(3,1fr);}
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .catalog-layout{grid-template-columns:1fr;}
  .filters-toggle{display:flex;}
  .filters-panel{
    position:fixed;inset:0;z-index:350;background:var(--white);transform:translateX(-100%);transition:transform .25s var(--ease);
    padding:0;overflow-y:auto;display:none;
  }
  .filters-panel.is-open{display:flex;transform:translateX(0);}
  .filters-panel-head{display:flex;}
  .filter-group{padding:0 20px;}
  .filters-panel .btn-ghost{margin:0 20px;width:calc(100% - 40px);}
  .filters-apply-mobile{display:block;margin:8px 20px 24px;width:calc(100% - 40px);}
  .hero-inner{grid-template-columns:1fr;padding-top:44px;}
  .hero-art{order:-1;max-width:280px;}
  .hero-copy h1{font-size:36px;}
  .product-layout{grid-template-columns:1fr;gap:28px;}
  .product-gallery{position:static;}
  .product-advantages{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:820px){
  .header-search{display:none;}
  .mobile-search{display:block;}
  .cta-label{display:none;}
  .header-cta{width:42px;padding:0;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:680px){
  .container{padding:0 16px;}
  .catalog-head{padding:22px 16px 4px;}
  .product-tabs-wrap{padding:14px 16px 4px;}
  .product-layout{padding:8px 16px 32px;}
  .category-grid{grid-template-columns:repeat(2,1fr);}
  .product-row{grid-template-columns:repeat(2,1fr);gap:12px;}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .benefits-grid{grid-template-columns:1fr 1fr;gap:20px;}
  .hero-copy h1{font-size:30px;}
  .hero-sub{font-size:15.5px;}
  .hero-stats{gap:20px;}
  .section{padding:40px 0;}
  .product-advantages{grid-template-columns:1fr;}
  .product-quick-specs{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:26px;padding:40px 16px 30px;}
  .footer-bottom{flex-direction:column;padding:16px 16px 22px;}
  .footer-disclaimer{text-align:left;}
  .product-info h1{font-size:23px;}
  .product-price{font-size:27px;}
  .btn{padding:12px 20px;}
  .header-top-inner{gap:10px;}
  .brand-name{display:none;}
}

@media (max-width:420px){
  .category-grid{grid-template-columns:1fr 1fr;}
  .product-row{grid-template-columns:1fr 1fr;}
  .product-grid{grid-template-columns:1fr 1fr;}
  .product-card-name{font-size:13.5px;}
  .product-card-price{font-size:15.5px;}
}

/* tap target comfort */
@media (hover:none){
  .btn, .icon-btn, .product-card-fav, .product-card-cta, .filter-chip{min-height:40px;}
}
