/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #0A1628;
  --navy:    #0E2A47;
  --blue:    #0077B6;
  --cyan:    #00C6E0;
  --aqua:    #E0F7FA;
  --sun:     #FFB703;
  --coral:   #FF5252;
  --leaf:    #00B894;
  --sand:    #FFF8EE;
  --white:   #FFFFFF;
  --mist:    #F4F7FA;
  --slate:   #64748B;
  --border:  #E2E8F0;
  --radius:  20px;
  --shadow:  0 4px 24px rgba(10,22,40,0.08);
  --shadow-lg: 0 16px 48px rgba(10,22,40,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--mist);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
.font-display { font-family: 'Syne', sans-serif; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 0;
}

.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 80%, rgba(0,198,224,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(255,183,3,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,119,182,0.12) 0%, transparent 70%);
}

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
  text-align: center; padding-bottom: 56px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,198,224,0.15);
  border: 1px solid rgba(0,198,224,0.35);
  color: var(--cyan);
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px;
  border-radius: 999px; margin-bottom: 24px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800; line-height: 1.05;
  color: var(--white);
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--sun); }

.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 400; line-height: 1.6;
  margin-top: 16px; max-width: 520px; margin-left: auto; margin-right: auto;
}

.hero-stats {
  display: flex; justify-content: center;
  gap: 12px; margin-top: 36px; flex-wrap: wrap;
}

.hero-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px; padding: 14px 24px;
  text-align: center; min-width: 110px;
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--white); line-height: 1;
}

.hero-stat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.hero-wave {
  position: relative; z-index: 2;
  line-height: 0; margin-top: -2px;
}
.hero-wave svg { display: block; width: 100%; }

/* ── STICKY NAV ── */
.sticky-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(10,22,40,0.06);
}

.nav-top {
  max-width: 1280px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}

.search-wrap { flex: 1; position: relative; }
.search-wrap .icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--slate); font-size: 16px; pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
#search-input:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,198,224,0.15);
}
#search-input::placeholder { color: #94a3b8; }

#sort-select {
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748B' d='M5 7L0.5 2.5h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s;
}
#sort-select:focus { outline: none; border-color: var(--cyan); }

#results-label {
  font-size: 12px; font-weight: 600;
  color: var(--slate); white-space: nowrap; flex-shrink: 0;
}

/* ── TABS ── */
.tabs-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 16px 12px;
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--aqua);
}
.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,119,182,0.3);
}

/* ── MAIN ── */
.catalog-main {
  max-width: 1280px; margin: 0 auto;
  padding: 36px 16px 60px;
}

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 6px;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.5px; line-height: 1.1;
}

.section-sub { font-size: 14px; color: var(--slate); margin-top: 4px; }

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ── GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,119,182,0.2);
}

.card-img-zone {
  position: relative;
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 640px) { .card-img-zone { height: 190px; } }

.card-img-zone img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.product-card:hover .card-img-zone img { transform: scale(1.08); }

.card-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}

.card-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; color: var(--white);
  z-index: 2; white-space: nowrap;
  backdrop-filter: blur(4px);
}

.card-stock-pill {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(8px); z-index: 2;
}
.stock-ok    { background: rgba(0,184,148,0.85); color: white; }
.stock-low   { background: rgba(255,183,3,0.9); color: var(--ink); }
.stock-order { background: rgba(255,82,82,0.85); color: white; }

.card-body {
  padding: 14px 14px 0;
  flex: 1; display: flex; flex-direction: column;
}

.card-sku {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 4px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--navy); line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) { .card-title { font-size: 14px; } }

.card-desc {
  font-size: 12px; color: var(--slate);
  line-height: 1.55; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.spec-chip {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--aqua); color: var(--blue);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}

.card-footer {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px 14px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
@media (min-width: 640px) { .price-amount { font-size: 22px; } }

.price-unit {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #94a3b8;
  margin-top: 2px;
}

.order-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  background: var(--navy); color: var(--white);
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  padding: 9px 16px; border-radius: 12px;
  transition: background .18s, transform .15s, box-shadow .18s;
  white-space: nowrap;
}
.order-btn:hover {
  background: var(--blue);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,119,182,0.35);
}
.order-btn:active { transform: scale(0.97); }
.wa-icon { font-size: 14px; }

/* ── BADGE COLORS ── */
.badge-pool   { background: rgba(0,119,182,0.85); }
.badge-cover  { background: rgba(0,184,148,0.85); }
.badge-chem   { background: rgba(255,82,82,0.85); }
.badge-pump   { background: rgba(124,58,237,0.85); }
.badge-toy    { background: rgba(255,183,3,0.9); color: var(--ink) !important; }
.badge-tent   { background: rgba(217,119,6,0.85); }
.badge-ladder { background: rgba(0,184,148,0.85); }
.badge-sand   { background: rgba(146,64,14,0.85); }
.badge-default{ background: rgba(0,119,182,0.85); }

/* ── BG GRADIENTS FOR FALLBACK ── */
.bg-blue   { background: linear-gradient(135deg, #dbeafe, #bae6fd); }
.bg-teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.bg-green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.bg-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bg-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.bg-pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.bg-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.bg-red    { background: linear-gradient(135deg, #fee2e2, #fecaca); }

/* ── SKELETON ── */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* ── FADE IN ── */
.fade-in { animation: fadeUp .35s cubic-bezier(.22,.61,.36,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--navy); margin-bottom: 8px;
}
.empty-sub { font-size: 14px; color: var(--slate); }
.reset-btn {
  display: inline-block; margin-top: 20px;
  background: var(--blue); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 10px 24px; border-radius: 12px;
  border: none; cursor: pointer;
  transition: background .18s;
}
.reset-btn:hover { background: var(--navy); }

/* ── PROMO BANNER ── */
.promo-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px 64px;
}

.promo-banner {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}

.promo-decoration { position: absolute; pointer-events: none; inset: 0; overflow: hidden; }
.promo-deco-circle-1 {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,224,0.15), transparent 70%);
  top: -80px; left: -60px;
}
.promo-deco-circle-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,0.1), transparent 70%);
  bottom: -120px; right: -80px;
}
.promo-deco-sun {
  position: absolute; right: 40px; top: -20px;
  font-size: 160px; opacity: 0.06; line-height: 1;
  transform: rotate(20deg); user-select: none;
}

.promo-content { position: relative; z-index: 2; }
.promo-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 8px;
}
.promo-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -0.5px;
}
.promo-sub { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 8px; }

/* ── PROMO ACTIONS CONTAINER ── */
.promo-actions {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 12px; flex-shrink: 0;
  min-width: 260px;
}

/* Base style for individual structural action buttons */
.promo-banner .promo-cta {
  display: inline-flex; align-items: center; gap: 12px;
  width: 100%; justify-content: flex-start;
  padding: 14px 24px; border-radius: 14px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}

/* Brand SVG Alignments inside banner actions */
.brand-svg-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; display: inline-block; }

/* Action Button Color Palettes */
.wa-btn { background: #25D366; color: #fff; }
.wa-btn:hover { background: #20ba59; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

.insta-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.insta-btn:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,39,67,0.3); }

.phone-btn { background: var(--blue); color: #fff; }
.phone-btn:hover { background: var(--cyan); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,198,224,0.3); }

/* Added missing 2GIS brand design token */
.dg-btn { background: #22B14C; color: #fff; }
.dg-btn:hover { background: #1b943e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,177,76,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.45);
  text-align: center; padding: 40px 24px;
  font-size: 13px; line-height: 1.8;
}
footer strong { color: rgba(255,255,255,0.8); }
footer .foot-emoji { font-size: 28px; margin-bottom: 12px; }

/* ── SCROLL REVEAL (Lightweight) ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MEDIA QUERIES ── */
@media (max-width: 992px) {
  .promo-banner { flex-direction: column; align-items: stretch; }
  .promo-actions { width: 100%; margin-top: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 0; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 12px 16px; min-width: 90px; }
  .hero-stat-num { font-size: 22px; }
  .promo-banner { padding: 32px 24px; }
  .card-img-zone { height: 150px; }
  .price-amount { font-size: 18px; }
  .order-btn { padding: 8px 12px; font-size: 11px; }
  .order-btn .wa-icon { display: none; }
}

/* ── SEO CONTENT SECTION ── */
.seo-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.seo-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 16px;
}

/* optional for multiple blocks */
.seo-content + .seo-content {
  margin-top: 40px;
}