/* =========================================================================
   INNOVATIVE PTY GRAPHICS — CATALOG RESPONSIVE STYLES (V16)
   ========================================================================= */

:root {
  --blue: #118cff;
  --cyan: #00d4ff;
  --bg: #020407;
  --panel: #060a0f;
  --line: #1c2e3d;
  --muted: #cbd5e1;
  --text-muted: #cbd5e1;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

a {
  color: inherit;
  text-decoration: none;
}
a:visited {
  color: inherit;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: "League Spartan", sans-serif;
  overflow-x: hidden;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  height: 80px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 4, 7, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}
.mobile-drawer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.mobile-drawer-logo-img {
  height: 28px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}

.desktop-nav { display: flex; gap: 2vw; margin: auto; }
.desktop-nav a { font-size: 0.86rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 0; }
.desktop-nav a.active, .desktop-nav a:hover { color: #fff; }

.top-actions { display: flex; align-items: center; gap: 12px; }

/* Language Selector Desktop */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.lang-selector:hover {
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  user-select: none;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: #05090f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  gap: 8px;
  color: var(--blue);
}
.search-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.86rem;
  width: 180px;
}
.cart-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 140, 255, 0.12);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(17, 140, 255, 0.1);
  border: 1px solid rgba(17, 140, 255, 0.35);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.mobile-menu-btn span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* Mobile Navigation Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(4, 8, 14, 0.98);
  border-left: 1px solid rgba(17, 140, 255, 0.3);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, var(--safe-top)) 20px max(24px, var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}
.mobile-drawer-backdrop.active .mobile-drawer { transform: translateX(0); }

.mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-drawer-brand { font-size: 1.25rem; font-weight: 900; font-style: italic; color: #fff; }
.mobile-drawer-brand span { color: var(--blue); }
.mobile-drawer-close { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; color: #fff; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.mobile-drawer-links { display: flex; flex-direction: column; gap: 6px; margin: 20px 0; }
.mobile-nav-link { display: flex; align-items: center; padding: 13px 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 800; color: #dce5ed; text-decoration: none; min-height: 48px; }
.mobile-nav-link:hover, .mobile-nav-link.active { background: rgba(17, 140, 255, 0.12); color: #fff; }

.mobile-drawer-footer { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-drawer-cta { display: flex; align-items: center; justify-content: center; padding: 13px 16px; border-radius: 8px; font-size: 0.84rem; font-weight: 800; min-height: 48px; text-decoration: none; text-align: center; }
.mobile-drawer-cta.primary { background: linear-gradient(135deg, var(--blue), #0060ba); color: #fff; }
.mobile-drawer-cta.whatsapp { background: rgba(37, 211, 102, 0.14); border: 1px solid #25D366; color: #25D366; }

.mobile-drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(17, 140, 255, 0.08);
  border: 1px solid rgba(17, 140, 255, 0.25);
  border-radius: 8px;
  margin: 10px 0;
}
.mobile-drawer-lang .lang-btn-mob {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}
.mobile-drawer-lang .lang-btn-mob.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.catalog-hero {
  padding: 40px 4vw 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 10% 20%, rgba(17, 140, 255, 0.08), transparent 30%);
}
.catalog-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 900; line-height: 0.9; }
.catalog-hero p { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

.hero-benefits { display: flex; gap: 24px; }
.hero-benefits div { display: flex; flex-direction: column; font-size: 0.82rem; }
.hero-benefits b { color: var(--cyan); font-size: 0.85rem; }
.hero-benefits span { color: var(--muted); font-size: 0.78rem; }

.mobile-filter-bar {
  display: none;
  padding: 14px 4vw;
  background: #04080e;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
}
.mobile-search-box {
  display: flex;
  align-items: center;
  background: #060c14;
  border: 1px solid rgba(17, 140, 255, 0.4);
  border-radius: 8px;
  padding: 0 14px;
  gap: 10px;
  min-height: 48px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.mobile-search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17, 140, 255, 0.2);
}
.mobile-search-box span {
  color: var(--cyan);
  font-size: 1.15rem;
  user-select: none;
}
.mobile-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.90rem;
  font-family: inherit;
  padding: 12px 0;
}
.mobile-search-box input::placeholder {
  color: #94a3b8;
  font-size: 0.84rem;
}
.btn-toggle-filters {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(17, 140, 255, 0.14);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 48px;
  cursor: pointer;
}

.catalog-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 4vw 60px; }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; height: max-content; position: sticky; top: 96px; }
.filters h3 { font-size: 0.86rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; margin-bottom: 14px; }
.filters label { display: block; font-size: 0.82rem; font-weight: 700; color: #cbd5e1; margin: 12px 0 6px; }
.filters select { width: 100%; background: #04070c; border: 1px solid var(--line); border-radius: 8px; color: #fff; padding: 12px 14px; font-size: 0.86rem; min-height: 48px; outline: none; }

.side-group { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.side-group h4 { font-size: 0.78rem; color: #cbd5e1; margin-bottom: 8px; letter-spacing: 0.06em; font-weight: 800; }
.side-item, .style-filter { background: transparent; border: 1px solid transparent; color: #cbd5e1; border-radius: 6px; padding: 9px 12px; font-size: 0.82rem; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; min-height: 42px; align-items: center; }
.side-item:hover, .side-item.active, .style-filter:hover, .style-filter.active { background: rgba(17, 140, 255, 0.14); border-color: rgba(17, 140, 255, 0.4); color: #fff; }

.clear { width: 100%; margin-top: 18px; background: rgba(255, 60, 60, 0.1); border: 1px solid rgba(255, 60, 60, 0.35); color: #fca5a5; border-radius: 8px; padding: 11px; font-size: 0.82rem; font-weight: 800; cursor: pointer; min-height: 44px; }

.catalog-main { min-width: 0; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; color: #cbd5e1; }
.catalog-tools select { background: #05090f; border: 1px solid var(--line); color: #fff; border-radius: 6px; padding: 8px 12px; margin-left: 8px; font-size: 0.82rem; }

/* Desktop: drawer completamente invisible */
@media (min-width: 1025px) {
  .mobile-drawer-backdrop,
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-drawer-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.product:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(17, 140, 255, 0.22);
}

.media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(17, 140, 255, 0.08) 0%, rgba(3, 7, 13, 0.98) 75%), #03060c;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
  user-select: none;
  pointer-events: none;
}

.product:hover .media img {
  transform: scale(1.03);
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--blue), #005bb0);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  text-transform: uppercase;
}

/* Prevenir cualquier badge huérfano o texto no deseado */
.product-badges {
  display: none !important;
}

.body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.category-line {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.body h3 {
  font-size: 1.04rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.body-fitment {
  color: #cbd5e1;
  font-size: 0.80rem;
  font-weight: 600;
  margin: 2px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-note {
  color: var(--cyan) !important;
  font-size: 0.76rem;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.body-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ==========================================================================
   PRODUCT CARD PRICE (PRECIOS REALES & ALINEACIÓN VISUAL UNIFORME)
   ========================================================================== */
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
  margin: 4px 0 12px;
  line-height: 1.2;
}

.product-card-price .price-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.product-card-price.has-sale .price-val.price-sale {
  color: var(--cyan);
  font-size: 1.32rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.product-card-price .price-old {
  font-size: 0.92rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  opacity: 0.85;
}

.product-card-price .price-from-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.product-card-price .price-quote-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  min-height: 26px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  transition: all 0.2s ease;
}

.view {
  border: 1px solid var(--line);
  color: #dce5ed;
  background: rgba(255, 255, 255, 0.04);
}

.view:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.buy {
  border: 1px solid var(--blue);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0060ba);
}

.buy:hover {
  background: linear-gradient(135deg, #2499ff, var(--blue));
  box-shadow: 0 4px 14px rgba(17, 140, 255, 0.4);
}

.more { display: block; margin: 2rem auto 0; padding: 12px 28px; border-radius: 8px; background: #04080e; border: 1px solid var(--blue); color: #fff; font-size: 0.82rem; font-weight: 800; cursor: pointer; min-height: 48px; }

.social-float-container { position: fixed; right: 22px; bottom: max(22px, var(--safe-bottom, 22px)); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.social-float { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 30px; font-size: 0.72rem; font-weight: 800; color: #fff; background: rgba(3, 7, 13, 0.92); border: 1px solid rgba(17, 140, 255, 0.4); text-decoration: none; min-height: 44px; cursor: pointer; transition: all 0.25s ease; }
.social-float:hover { transform: translateY(-2px); border-color: var(--blue); background: rgba(17, 140, 255, 0.2); box-shadow: 0 10px 30px rgba(17, 140, 255, 0.35); }
.whatsapp-float { width: 60px !important; height: 60px !important; min-width: 60px !important; min-height: 60px !important; max-width: 60px !important; max-height: 60px !important; border-radius: 50% !important; background: #25D366 !important; border: none !important; color: #ffffff !important; padding: 0 !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 211, 102, 0.35) !important; cursor: pointer !important; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease !important; flex-shrink: 0 !important; text-decoration: none !important; }
.whatsapp-float svg { width: 34px !important; height: 34px !important; fill: #ffffff !important; display: block !important; pointer-events: none !important; transition: transform 0.22s ease !important; }
.whatsapp-float:hover { background: #20bd5a !important; transform: translateY(-3px) scale(1.05) !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(37, 211, 102, 0.55) !important; }
.whatsapp-float:hover svg { transform: scale(1.06) !important; }
.whatsapp-float:active { transform: translateY(-1px) scale(0.98) !important; }

@media (max-width: 768px) {
  .social-float-container {
    right: 14px !important;
    bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    gap: 14px !important;
  }
  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
  .whatsapp-float svg {
    width: 29px !important;
    height: 29px !important;
  }
  .ai-launcher,
  .ai-chat-launcher {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .ai-launcher .ai-label,
  .ai-chat-launcher .ai-label {
    display: none !important;
  }
  .ai-launcher .ai-sparkle,
  .ai-chat-launcher .ai-sparkle {
    margin: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.ai-chat {
  position: fixed;
  right: 14px;
  bottom: max(78px, calc(var(--safe-bottom, 16px) + 72px));
  width: min(340px, calc(100vw - 28px));
  height: 500px;
  max-height: calc(100dvh - 120px);
  z-index: 98;
  background: rgba(4, 9, 15, 0.98);
  border: 1px solid var(--blue);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  display: none;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}
.ai-chat.open { display: grid; }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.ai-head button { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.ai-messages { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 0.82rem; line-height: 1.35; }
.msg.bot { background: #08101a; border: 1px solid var(--line); align-self: flex-start; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; }
.quick-row { display: flex; gap: 6px; padding: 0 12px 8px; }
.quick-row button { background: #05090f; border: 1px solid var(--line); color: var(--cyan); border-radius: 16px; padding: 6px 10px; font-size: 0.7rem; cursor: pointer; }
.ai-form { display: grid; grid-template-columns: 1fr 44px; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.ai-form input { background: #03060a; border: 1px solid var(--line); border-radius: 6px; color: #fff; padding: 8px 12px; font-size: 16px; }
.ai-form button { background: var(--blue); border: none; border-radius: 6px; color: #fff; cursor: pointer; }

@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 900px) {
  .topbar {
    height: 60px;
    height: calc(60px + var(--safe-top, 0px));
    padding: var(--safe-top, 0px) max(12px, var(--safe-right, 12px)) 0 max(12px, var(--safe-left, 12px));
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .logo {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .brand-logo-img {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 125px !important;
    object-fit: contain;
    display: block;
  }
  .top-actions {
    gap: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .top-actions .search-wrap {
    display: none;
  }
  .cart-top {
    padding: 6px 11px;
    font-size: 0.68rem;
    min-height: 34px;
    height: 34px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    gap: 4px;
  }
  .mobile-menu-btn {
    display: flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 6px;
    gap: 4px;
    padding: 0;
  }
  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
  }
  .catalog-shell {
    grid-template-columns: 1fr;
    padding: 16px 14px 90px;
  }
  .mobile-filter-bar {
    display: flex;
    padding: 10px 14px;
    gap: 8px;
  }
  .mobile-search-box {
    min-height: 44px;
    padding: 0 12px;
  }
  .btn-toggle-filters {
    min-height: 46px;
    padding: 10px;
    font-size: 0.84rem;
    border-radius: 8px;
  }
  .filters {
    display: none;
    position: static;
    margin-bottom: 16px;
  }
  .filters.open {
    display: block;
  }
  .catalog-tools {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product {
    border-radius: 10px;
  }
  .media {
    padding: 10px 12px;
  }
  .body {
    padding: 12px;
  }
  .product-card-price {
    min-height: 26px;
    margin: 4px 0 10px;
    gap: 6px;
  }
  .product-card-price .price-val {
    font-size: 1.15rem;
  }
  .product-card-price.has-sale .price-val.price-sale {
    font-size: 1.18rem;
  }
  .actions {
    gap: 6px;
    padding-top: 8px;
  }
  .actions a {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 0.82rem;
  }
  .hero-benefits {
    display: none;
  }
}

@media (max-width: 580px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .catalog-hero {
    padding: 18px 14px 12px;
  }
  .catalog-hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
    line-height: 0.95;
  }
  .catalog-hero p {
    font-size: 0.88rem;
    margin-top: 4px;
  }
  .catalog-shell {
    padding: 12px 14px 90px !important;
  }
  .catalog-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .catalog-tools div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .catalog-tools select {
    flex: 1;
    max-width: 180px;
    min-height: 36px;
  }
  .actions a {
    min-height: 44px;
    font-size: 0.84rem;
  }
  .side-item, .style-filter {
    min-height: 44px;
  }
  .clear {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .cart-top span {
    display: none;
  }
  .cart-top {
    min-width: 36px;
    width: 36px;
    padding: 6px 8px;
    font-size: 0.95rem;
  }
}
