:root{
  --bg:#f4f8ff;
  --surface:#ffffff;
  --surface-2:#eef5ff;
  --border:#d8e5ff;
  --text:#10233f;
  --muted:#5f738f;
  --primary:#0a66ff;
  --primary-2:#0e4fc9;
  --success:#1ba97f;
  --danger:#ff4d6d;
  --shadow:0 12px 30px rgba(18, 68, 160, .10);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#f9fbff 0%,#eef5ff 100%);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1400px,calc(100% - 32px));margin:0 auto}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav{
  min-height:84px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:20px;
  align-items:center;
}
.brand{display:flex;align-items:center;gap:14px}
.brand__logo{
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(135deg,#0a66ff,#0e4fc9);
  color:#fff;display:grid;place-items:center;font-weight:800;
  box-shadow:var(--shadow);
}
.brand__name{font-size:1.4rem;font-weight:800}
.brand__tag{font-size:.82rem;color:var(--muted)}
.nav__links{display:flex;gap:24px;justify-content:center}
.nav__links a{font-weight:600;color:#2a3f5f}
.nav__actions{display:flex;align-items:center;gap:12px}
.search{
  background:#f2f7ff;border:1px solid var(--border);border-radius:16px;
  padding:0 14px;display:flex;align-items:center;min-height:48px;
}
.search input{
  border:none;background:transparent;outline:none;min-width:340px;color:var(--text)
}
.icon-btn{
  width:46px;height:46px;border-radius:14px;border:1px solid var(--border);
  background:#fff;cursor:pointer;display:grid;place-items:center;font-size:1.1rem;
}
.cart-btn{position:relative}
.badge{
  position:absolute;top:-6px;right:-6px;background:var(--danger);color:#fff;
  width:24px;height:24px;border-radius:999px;display:grid;place-items:center;
  font-size:.78rem;font-weight:700;border:2px solid #fff;
}

.page{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:28px;
  padding:30px 0 42px;
}

.filters,.catalog,.cart-drawer{
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.filters{
  border-radius:24px;
  padding:22px;
  align-self:start;
  position:sticky;
  top:108px;
}
.filters__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.filters__header h2{margin:0;font-size:1.4rem}
.filter-block{padding:18px 0;border-top:1px solid #edf3ff}
.filter-block:first-of-type{border-top:none}
.filter-block__title{font-weight:800;margin-bottom:14px;font-size:1rem}
.filter-block label{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:11px 0;color:#233b5e;font-weight:500;
}
.filter-block input[type="checkbox"],
.filter-block input[type="radio"]{
  width:18px;height:18px;accent-color:var(--primary);margin-right:10px;flex:0 0 auto;
}
.filter-block label span{color:var(--muted);font-size:.92rem}
.range-box{padding-top:4px}
.range-box input[type="range"]{width:100%;accent-color:var(--primary)}
.range-values{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:var(--muted)}
.range-values strong{color:var(--primary)}
.filters__actions{display:flex;flex-direction:column;gap:10px;padding-top:6px}

.catalog{
  border-radius:24px;
  padding:24px;
}
.catalog__toolbar{
  display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px
}
.catalog__toolbar h1{margin:0 0 6px;font-size:2rem}
.catalog__toolbar p{margin:0;color:var(--muted)}
.toolbar-actions select{
  min-width:240px;height:50px;border-radius:14px;padding:0 14px;
  border:1px solid var(--border);background:#fff;color:var(--text);outline:none;
}

.promo-banner{
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:22px;border-radius:22px;margin-bottom:24px;
  background:linear-gradient(135deg,#0a66ff,#08378f);
  color:#fff;
}
.promo-banner h3{margin:8px 0 8px;font-size:1.4rem}
.promo-banner p{margin:0;opacity:.88}
.promo-badge{
  display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;
  background:rgba(255,255,255,.15);font-size:.85rem;font-weight:700
}

.brands-strip{
  border:1px solid var(--border);
  background:linear-gradient(180deg,#f8fbff,#eff5ff);
  border-radius:20px;
  padding:18px;
  margin-bottom:24px;
}
.brands-strip__header h3{
  margin:0 0 6px;
  font-size:1.1rem;
}
.brands-strip__header p{
  margin:0 0 14px;
  color:var(--muted);
}
.brands-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}
.brand-pill{
  min-height:58px;
  display:grid;
  place-items:center;
  border-radius:16px;
  border:1px solid #d9e7ff;
  background:#fff;
  font-weight:800;
  color:#1e4da1;
  letter-spacing:.08em;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.product-card{
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 28px rgba(20,78,172,.12)}
.product-card__media{
  position:relative;height:220px;padding:18px;
  background:linear-gradient(180deg,#dff0ff,#f7fbff);
}
.product-card__media img{
  width:100%;height:100%;object-fit:cover;border-radius:18px;
}
.tag-row{
  position:absolute;left:18px;top:18px;display:flex;gap:8px;flex-wrap:wrap
}
.tag{
  padding:7px 10px;border-radius:999px;font-size:.8rem;font-weight:800;color:#fff
}
.tag--sale{background:var(--danger)}
.tag--new{background:var(--success)}
.favorite-btn{
  position:absolute;right:18px;top:18px;width:42px;height:42px;border-radius:12px;
  border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.92);cursor:pointer
}
.product-card__body{padding:18px}
.product-card__title{font-size:1.15rem;font-weight:800;margin:0 0 8px}
.product-card__meta{color:var(--muted);font-size:.95rem;line-height:1.5;margin-bottom:10px}
.rating{color:#ffb400;font-size:.95rem;font-weight:700;margin-bottom:12px}
.price-row{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px}
.price{font-size:1.6rem;font-weight:800}
.old-price{color:#8a99b2;text-decoration:line-through;font-weight:600}
.specs{
  display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px
}
.spec{
  padding:8px 10px;background:#f3f7ff;border:1px solid #e2ecff;border-radius:10px;
  font-size:.82rem;font-weight:700;color:#33507d
}
.card-actions{display:flex;gap:10px}
.btn{
  border:none;border-radius:14px;min-height:46px;padding:0 18px;font-weight:700;cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.btn--secondary{background:#eef4ff;color:#1e4da1;border:1px solid var(--border)}
.btn--white{background:#fff;color:#0b4dbe}
.btn--full{width:100%}

.drawer-overlay{
  position:fixed;inset:0;background:rgba(6,22,52,.45);
  opacity:0;pointer-events:none;transition:.25s ease;z-index:80
}
.drawer-overlay.is-open{opacity:1;pointer-events:auto}
.cart-drawer{
  position:fixed;right:0;top:0;height:100vh;width:min(420px,100%);
  z-index:90;transform:translateX(100%);transition:.28s ease;
  display:flex;flex-direction:column;border-radius:0
}
.cart-drawer.is-open{transform:translateX(0)}
.cart-drawer__header,.cart-drawer__footer{
  padding:20px;border-bottom:1px solid #edf3ff
}
.cart-drawer__footer{border-top:1px solid #edf3ff;border-bottom:none;margin-top:auto}
.cart-drawer__header{display:flex;align-items:center;justify-content:space-between}
.cart-drawer__header h2{margin:0}
.cart-drawer__body{padding:18px;overflow:auto}
.empty-cart{
  min-height:260px;display:grid;place-items:center;text-align:center;color:var(--muted)
}
.empty-cart__icon{font-size:3rem}
.cart-item{
  display:grid;grid-template-columns:84px 1fr auto;gap:12px;align-items:center;
  padding:12px;border:1px solid var(--border);border-radius:16px;margin-bottom:12px
}
.cart-item img{width:84px;height:84px;object-fit:cover;border-radius:14px}
.cart-item h4{margin:0 0 5px;font-size:1rem}
.cart-item p{margin:0;color:var(--muted);font-size:.9rem}
.qty-box{
  display:flex;align-items:center;gap:8px;margin-top:8px
}
.qty-btn{
  width:28px;height:28px;border:none;border-radius:8px;background:#edf4ff;cursor:pointer;font-weight:800
}
.remove-link{
  margin-top:10px;display:inline-block;color:#c53454;font-size:.88rem;font-weight:700;cursor:pointer
}
.cart-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.cart-total span{color:var(--muted)}
.cart-total strong{font-size:1.4rem}

.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:70;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#27d366,#129c4a);
  color:#fff;
  box-shadow:0 18px 35px rgba(18,156,74,.28);
  font-weight:800;
}
.whatsapp-float span{
  font-size:1.2rem;
}
.whatsapp-float small{
  font-size:.92rem;
}

.mobile-only,.search--mobile{display:none}

@media (max-width: 1180px){
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav__links{display:none}
  .search input{min-width:240px}
  .brands-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 900px){
  .page{grid-template-columns:1fr}
  .filters{
    position:fixed;left:0;top:0;height:100vh;width:min(380px,92vw);z-index:95;border-radius:0;
    transform:translateX(-100%);transition:.28s ease;overflow:auto
  }
  .filters.is-open{transform:translateX(0)}
  .mobile-only,.search--mobile{display:block}
  .search--desktop{display:none}
  .catalog{padding:18px}
  .catalog__toolbar{flex-direction:column;align-items:stretch}
  .toolbar-actions select{width:100%}
  .promo-banner{flex-direction:column;align-items:flex-start}
}
@media (max-width: 640px){
  .container{width:min(100% - 20px,1400px)}
  .nav{grid-template-columns:1fr auto;gap:10px;padding:10px 0}
  .brand__tag{display:none}
  .products-grid{grid-template-columns:1fr}
  .product-card__media{height:200px}
  .catalog__toolbar h1{font-size:1.55rem}
  .brands-grid{grid-template-columns:repeat(2,1fr)}
  .whatsapp-float small{display:none}
  .whatsapp-float{padding:14px}
}


.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.product-card__media-link,
.product-card__body a{
  text-decoration:none;
  color:inherit;
}
.breadcrumb{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.95rem;
  margin-bottom:18px;
}
.breadcrumb a{color:#2a5cb8}
