:root {
  --black:   #111111;
  --red:     #F21B2D;
  --green:   #86B83F;
  --blue:    #1D3F9A;
  --white:   #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #9A9A9A;
  --gray-600: #555555;
  --bg:      #FFFFFF;
  --text:    #111111;
  --card-bg: #FFFFFF;
  --border:  #E8E8E8;
}

[data-theme="dark"] {
  --black:   #E8E8E8;
  --red:     #F21B2D;
  --green:   #86B83F;
  --blue:    #4A8FE0;
  --white:   #1A1A2E;
  --gray-100: #222244;
  --gray-200: #2A2A4A;
  --gray-400: #8888AA;
  --gray-600: #AAAACC;
  --bg:      #12121E;
  --text:    #E8E8E8;
  --card-bg: #1A1A2E;
  --border:  #2A2A4A;
}

[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a1a2e 0%, #222244 100%); }
[data-theme="dark"] .hero-slider { border-color: var(--border); }
[data-theme="dark"] .pdf-catalog { background: linear-gradient(180deg, #1a1a2e 0%, #1e1e3a 100%); }
[data-theme="dark"] .mid-banner { background: #0a0a14; }
[data-theme="dark"] .toast { background: #2a2a4a; color: var(--text); }
[data-theme="dark"] .product-empty-img { background: var(--gray-100); }
[data-theme="dark"] .product-empty-img strong { color: var(--gray-400); }
[data-theme="dark"] .hero::after { background: linear-gradient(90deg, transparent, rgba(74,143,224,.05), rgba(134,184,63,.05), rgba(29,63,154,.08)); }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--bg); }

/* ── TOP BAR ── tricolor brand strip */
.topbar {
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  text-align: center;
  padding: 8px 20px;
  letter-spacing: .5px;
  position: relative;
}
.topbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%);
}
.topbar a { color: var(--blue); text-decoration: underline; font-weight: 700; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 40px; height: 72px; gap: 32px;
  box-shadow: 0 8px 24px rgba(17,17,17,.06);
}
header::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%);
}
.logo-img {
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 2px 4px;
}
.logo-img-tag {
  height: 70px; width: auto;
  object-fit: contain;
  display: block;
}

nav { display: flex; gap: 20px; flex: 1; }
nav a {
  font-size: 14px; font-weight: 600; color: var(--black);
  text-decoration: none; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
nav a:nth-child(3n+1):hover { border-color: var(--red);   color: var(--red);   }
nav a:nth-child(3n+2):hover { border-color: var(--green); color: var(--green); }
nav a:nth-child(3n+3):hover { border-color: var(--blue);  color: var(--blue);  }

.header-right { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center;
  border: 2px solid var(--black); border-radius: 24px;
  overflow: hidden; height: 40px;
}
.search-box input {
  border: none; outline: none; padding: 0 12px;
  font-family: 'Outfit', sans-serif; font-size: 13px;
  width: 150px; background: transparent;
}
.search-box button {
  background: var(--blue); border: none; cursor: pointer;
  padding: 0 10px; height: 100%; color: var(--white); font-size: 14px;
  transition: background .2s;
}
.search-box button:hover { background: var(--red); }
/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; height: 3px; border-radius: 2px;
  background: var(--black); transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 201;
  width: 280px; max-width: 80vw;
  background: var(--white); padding: 24px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--gray-600); margin-bottom: 24px; display: block;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  display: block; padding: 12px 8px; border-radius: 6px;
  font-size: 15px; font-weight: 600; color: var(--black);
  text-decoration: none; transition: background .15s;
}
.mobile-menu-links a:hover { background: var(--gray-100); }
.mobile-menu-links a:active { background: var(--gray-200); }

.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--black); position: relative;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  transition: color .2s;
}
.icon-btn:hover { color: var(--blue); }
.icon-btn.active { color: var(--red); }
.icon-btn .badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 40px; font-size: 13px; color: var(--gray-400);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.breadcrumb span { color: var(--black); font-weight: 600; }

/* ── CATEGORY NAV ── */
.cat-nav {
  padding: 16px 40px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  white-space: nowrap; padding: 8px 18px;
  border: 2px solid var(--gray-200); border-radius: 24px;
  font-size: 13px; font-weight: 500; color: var(--black);
  text-decoration: none; cursor: pointer;
  transition: all .2s; background: var(--white);
}
.cat-chip:hover {
  border-color: var(--blue); background: var(--blue); color: var(--white);
}
.cat-chip.active {
  border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 700;
}

/* ── HERO STRIP ── */
.hero {
  color: var(--black); overflow: hidden; position: relative;
  margin: 0;
  min-height: auto;
}
.hero-slider-only {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.hero-slider-full {
  width: 100%; height: 580px; max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.hero-slide {
  position: absolute; inset: 0;
  display: none;
}
.hero-slide.active { display: block; }
.hero-slider img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.btn-primary {
  display: inline-block;
  background: var(--black); color: var(--white);
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--black);
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  border: 2px solid var(--black);
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.hero-card {
  width: 155px; background: var(--white);
  border-top: 3px solid transparent;
  border-radius: 12px; padding: 20px; text-align: center;
  box-shadow: 0 12px 28px rgba(17,17,17,.08); transition: transform .2s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card:nth-child(1) { border-top-color: var(--red); }
.hero-card:nth-child(2) { border-top-color: var(--green); }
.hero-card:nth-child(3) { border-top-color: var(--blue); }
.hero-card .icon { font-size: 38px; margin-bottom: 10px; }
.hero-card .label { font-size: 13px; font-weight: 600; color: var(--gray-600); }

/* ── TOOLBAR ── */
.toolbar {
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  gap: 16px; flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.product-count { font-size: 14px; color: var(--gray-600); }
.product-count strong { color: var(--black); font-size: 18px; font-weight: 700; }
.filter-btn {
  border: 2px solid var(--black); border-radius: 8px;
  padding: 8px 18px; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--white); display: flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.filter-btn:hover { background: var(--black); color: var(--white); }
.sort-select {
  border: 2px solid var(--gray-200); border-radius: 8px;
  padding: 8px 14px; font-family: 'Outfit', sans-serif;
  font-size: 14px; cursor: pointer; background: var(--white);
  outline: none; transition: border-color .2s;
}
.sort-select:focus { border-color: var(--black); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 0; min-height: 60vh;
}

/* ── SIDEBAR ── */
.sidebar {
  border-right: 1px solid var(--gray-200);
  padding: 28px 24px; position: sticky; top: 78px;
  height: fit-content; max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.filter-group h4 .toggle { font-size: 18px; font-weight: 300; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--gray-600);
  transition: color .2s;
}
.filter-option:hover { color: var(--black); }
.filter-option input[type=checkbox] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--blue);
}
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gray-200); cursor: pointer; flex-shrink: 0;
}
.price-range {
  display: flex; gap: 10px; align-items: center; margin-top: 10px;
}
.price-range input[type=number] {
  border: 2px solid var(--gray-200); border-radius: 6px;
  padding: 6px 10px; width: 80px; font-family: 'Outfit', sans-serif;
  font-size: 13px; outline: none;
}
.price-range input:focus { border-color: var(--green); }

/* ── SKELETON LOADER ── */
.grid-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding: 28px 32px; }
.grid-skeleton.hidden { display: none; }
.sk-card { border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); }
.sk-img { height: 200px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: sk-shimmer 1.4s infinite; }
.sk-line { height: 14px; margin: 12px 16px 0; border-radius: 4px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: sk-shimmer 1.4s infinite; }
.sk-line--short { width: 40%; }
.sk-line--medium { width: 65%; }
.sk-line:last-child { margin-bottom: 16px; }
@keyframes sk-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── PRODUCT GRID ── */
.product-grid {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-content: start;
}

.product-card {
  border-radius: 12px; overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: box-shadow .25s, transform .2s;
  border: 1px solid var(--gray-200);
  position: relative;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.11);
  transform: translateY(-3px);
}
.product-img {
  width: 100%; aspect-ratio: 1;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative; overflow: hidden;
}
.product-img img.prod-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .prod-photo { transform: scale(1.06); }
.product-img .prod-emoji {
  position: relative; z-index: 1;
  font-size: 72px;
  display: none;
}
.product-img .hover-img {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); opacity: 0;
  transition: opacity .3s; font-size: 26px; color: #fff;
  z-index: 2;
}
.product-card:hover .hover-img { opacity: 1; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.badge-new     { background: var(--blue);  color: var(--white); }
.badge-sale    { background: var(--red);   color: var(--white); }
.badge-popular { background: var(--green); color: var(--white); }
.wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--white); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s;
}
.wishlist-btn:hover { transform: scale(1.1); }
.product-empty-img {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-400); font-size: 13px; text-align: center;
  padding: 20px; background: var(--gray-100);
}
.product-empty-img strong { color: var(--gray-600); font-size: 14px; }
.product-info { padding: 14px 16px 16px; }
.product-cod {
  font-size: 11px; color: var(--gray-400); font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px;
}
.dist-price { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.4; margin-bottom: 4px; }
.product-desc { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; line-height: 1.4; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--black); }
.product-price .old { font-size: 13px; font-weight: 400; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; }
.stars { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.stars .s { color: #F5A623; font-size: 13px; }
.stars .count { font-size: 12px; color: var(--gray-400); margin-left: 4px; }
.add-btn {
  background: var(--black); color: var(--white); border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--green); transform: scale(1.1); }

/* ── BANNER MID ── */
.mid-banner {
  margin: 0 32px 28px;
  background: var(--black);
  border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--white); gap: 20px;
  position: relative; overflow: hidden;
}
.mid-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%);
}
.mid-banner h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.mid-banner p { font-size: 14px; opacity: .75; max-width: 400px; line-height: 1.5; }
.mid-banner .discount {
  font-size: 64px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.12);
}

/* -- PDF CATALOG -- */
.pdf-catalog {
  padding: 34px 40px 28px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.pdf-catalog-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.pdf-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--red); text-transform: uppercase; margin-bottom: 6px;
}
.pdf-catalog h2 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.pdf-catalog p { color: var(--gray-600); line-height: 1.55; max-width: 740px; }
.pdf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dark {
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: transform .15s, background .2s;
}
.btn-dark:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn-light {
  background: var(--white); color: var(--black); border: 2px solid var(--gray-200);
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: border-color .2s, transform .15s;
}
.btn-light:hover { border-color: var(--black); transform: translateY(-2px); }
.pdf-frame-wrap {
  border: 2px solid var(--black); border-radius: 8px; overflow: hidden;
  background: var(--white); padding: 18px;
}
.pdf-frame { width: 100%; height: min(72vh, 760px); min-height: 520px; border: 0; display: block; }

.pdf-summary-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 14px;
}
.pdf-summary-card {
  border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 16px; background: var(--white);
}
.pdf-summary-card strong { display: block; font-size: 22px; margin-bottom: 4px; }
.pdf-summary-card span { color: var(--gray-600); font-size: 13px; line-height: 1.4; }
.pdf-category-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pdf-category-list span {
  border: 1px solid var(--gray-200); border-radius: 999px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; background: var(--white);
}
.quote-note { font-size: 12px; color: var(--gray-600); margin-top: 8px; }

/* ── FOOTER ── */
footer {
  background: var(--white); color: var(--black);
  padding: 56px 40px 32px; margin-top: 60px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 58px; width: auto; object-fit: contain; display: block; }
.footer-logo span.r { color: var(--red); }
.footer-logo span.g { color: var(--green); }
.footer-logo span.b { color: var(--blue); }
footer p { font-size: 14px; color: var(--gray-600); line-height: 1.6; max-width: 300px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px; color: var(--gray-600);
}
.footer-col a {
  display: block; color: var(--black); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color .2s;
}
.footer-col:nth-child(2) a:hover { color: var(--red); }
.footer-col:nth-child(3) a:hover { color: var(--green); }
.footer-col:nth-child(4) a:hover { color: var(--blue); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--gray-200); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--gray-600); flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  color: var(--gray-600); text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.social-links a:nth-child(1):hover { color: var(--red); }
.social-links a:nth-child(2):hover { color: var(--red); }
.social-links a:nth-child(3):hover { color: var(--green); }
.social-links a:nth-child(4):hover { color: var(--red); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--black); color: var(--white);
  padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--green);
}
.toast.show { opacity: 1; transform: translateY(0); }

.search-inline input {
  border: 2px solid var(--gray-200); border-radius: 8px;
  padding: 9px 16px; font-family: 'Outfit', sans-serif;
  font-size: 14px; outline: none; width: 280px;
  transition: border-color .2s;
}
.search-inline input:focus { border-color: var(--blue); }
.badge-cat {
  background: rgba(0,0,0,.55); color: var(--white);
  font-size: 10px; max-width: calc(100% - 54px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-cat-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; background: none; border: none;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 13px;
  color: var(--gray-600); transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.sidebar-cat-btn:hover { background: var(--gray-100); color: var(--black); }
.sidebar-cat-btn.active {
  background: var(--black); color: var(--white); font-weight: 700;
  border-left: 3px solid var(--red);
}
.cat-count { font-size: 11px; opacity: .55; }
.filter-group { margin-top:24px; }
.filter-group h4 { font-size:14px; font-weight:600; color:var(--text); margin-bottom:8px; cursor:pointer; user-select:none; display:flex; align-items:center; justify-content:space-between; }
.filter-group h4 .toggle { font-size:14px; color:var(--gray-400); }
.filter-label { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--gray-600); padding:3px 0; cursor:pointer; }
.filter-label input { accent-color:var(--red); }
.filter-group.collapsed > :not(h4) { display:none; }
input[type=range] { accent-color: var(--blue); }

/* ── CART DRAWER ── */
/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.product-modal {
  position: fixed; top: 50%; left: 50%; z-index: 401;
  transform: translate(-50%, -50%) scale(.92);
  width: 520px; max-width: 90vw; max-height: 85vh;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: var(--white); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.modal-content { padding: 0; overflow-y: auto; }
.modal-img {
  width: 100%; aspect-ratio: 1; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 24px; }
.modal-body .product-cod { font-size: 12px; color: var(--gray-400); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.modal-body h2 { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.modal-body .modal-desc { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.modal-body .modal-cat { display: inline-block; background: var(--gray-100); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; margin-bottom: 16px; }
.modal-body .modal-price { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-body .modal-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.modal-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer;
  background: var(--black); color: var(--white);
  transition: background .2s;
}
.modal-btn:hover { background: var(--blue); }

.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: 380px; max-width: 90vw;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 700; }
.cart-drawer-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--gray-600); padding: 4px;
}
.cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}
.cart-empty {
  text-align: center; padding: 40px 0; color: var(--gray-400); font-size: 14px;
}
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-200);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cod { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-desc { font-size: 11px; color: var(--gray-400); }
.cart-item-qty {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.cart-item-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gray-200); background: var(--white);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-item-qty button:hover { background: var(--gray-100); }
.cart-item-qty span {
  font-size: 14px; font-weight: 700; min-width: 20px; text-align: center;
}
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 16px; padding: 4px;
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--red); }
.cart-drawer-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-200);
}
.cart-total { font-size: 14px; font-weight: 600; color: var(--gray-600); margin-bottom: 12px; text-align: center; }

@media (max-width: 1050px) {
  .search-inline input { width: 180px; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  header { padding: 0 20px; gap: 16px; }
  .logo-img-tag { height: 42px; max-width: 150px; }
  .search-box input { width: 140px; }
  nav { display: none; }
  .header-right { gap: 10px; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-grid { padding: 20px; gap: 16px; }
  .grid-skeleton { padding: 20px; gap: 16px; }
  .hero-slider-only { margin: 0; border-radius: 0; }
  .hero-slider-full { height: 320px; }
  .hero-slider img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .breadcrumb, .cat-nav, .toolbar, .pdf-catalog { padding-left: 20px; padding-right: 20px; }
  .pdf-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  header { height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .logo-img-tag { height: 38px; max-width: 138px; }
  .header-right { width: 100%; justify-content: space-between; gap: 10px; }
  .search-box { flex: 1; min-width: 0; }
  .search-box input { width: 100%; min-width: 0; }
  .icon-btn span:not(.badge) { display: none; }
  .pdf-summary-grid { grid-template-columns: 1fr; }
}
