/* ============================================================
   MAIN STYLES — Mobile-First | 320px → 3840px
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  /* Mobile: use svh so address bar doesn't cause jump */
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding-top: var(--nav-height);
}

@media (min-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    align-items: flex-end;
    padding-top: 0;
  }
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1),
              transform 6s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; transform: scale(1.0); }

.hero-slide-bg,
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-1,
.hero-slide-2,
.hero-slide-3,
.hero-slide-4 { background: #0F172A; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,15,30,0.4) 0%,
    rgba(10,15,30,0.5) 35%,
    rgba(10,15,30,0.75) 65%,
    rgba(10,15,30,0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: clamp(16px, 5vw, 64px);
  padding-top: clamp(32px, 6vw, 56px);
  padding-bottom: clamp(64px, 10vw, 80px);
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--amber);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fade-in-up 0.8s 0.2s both;
  align-self: flex-start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  animation: fade-in-up 0.8s 0.35s both;
}

@media (min-width: 768px) {
  .hero-title { margin-bottom: 16px; }
}

.hero-title-accent { color: var(--amber); }

.hero-subtitle {
  font-size: clamp(0.9375rem, 3vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 400;
  animation: fade-in-up 0.8s 0.5s both;
}

@media (min-width: 768px) {
  .hero-subtitle { margin-bottom: 36px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fade-in-up 0.8s 0.65s both;
}

.hero-actions .btn {
  flex: 1 1 calc(50% - 5px);
  min-width: 120px;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Hero social bar */
.hero-social-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-social-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-right: 4px;
}
.hero-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: #fff;
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .hero-social-btn { width: 42px; height: 42px; }
}
.hero-social-btn:hover { transform: translateY(-3px) scale(1.1); }
.hero-social-ig { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); box-shadow: 0 4px 16px rgba(131,58,180,0.35); }
.hero-social-fb { background: #1877F2; box-shadow: 0 4px 16px rgba(24,119,242,0.35); }
.hero-social-yt { background: #FF0000; box-shadow: 0 4px 16px rgba(255,0,0,0.35); }
.hero-social-wa { background: linear-gradient(135deg,#25D366,#128C7E); box-shadow: 0 4px 16px rgba(37,211,102,0.35); }

/* Hero carousel dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: clamp(16px, 5vw, 64px);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}
.hero-dot.active { width: 24px; background: var(--amber); }

/* Scroll indicator — hidden on mobile */
.hero-scroll { display: none; }
@media (min-width: 768px) {
  .hero-scroll {
    display: flex;
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fade-in-up 1s 1.2s both;
  }
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.5);
  border-radius: 3px;
  animation: scroll-bounce 1.5s infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.3; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   QUICK ACTION CARDS — 2-col mobile → 4-col desktop
   ============================================================ */
.quick-actions {
  background: var(--surface-2);
  padding-block: clamp(40px, 6vw, 80px);
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 3vw, 20px);
}
@media (min-width: 768px) {
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); }
}

.action-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 32px) clamp(14px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.action-card:hover::before { opacity: 1; }
.action-card-call::before  { background: linear-gradient(135deg,rgba(16,185,129,0.08),rgba(5,150,105,0.05)); }
.action-card-wa::before    { background: linear-gradient(135deg,rgba(37,211,102,0.08),rgba(18,140,126,0.05)); }
.action-card-dir::before   { background: linear-gradient(135deg,rgba(37,99,235,0.08),rgba(29,78,216,0.05)); }
.action-card-email::before { background: linear-gradient(135deg,rgba(245,158,11,0.08),rgba(217,119,6,0.05)); }
.action-card:hover.action-card-call  { border-color: rgba(16,185,129,0.2); }
.action-card:hover.action-card-wa    { border-color: rgba(37,211,102,0.2); }
.action-card:hover.action-card-dir   { border-color: rgba(37,99,235,0.2); }
.action-card:hover.action-card-email { border-color: rgba(245,158,11,0.2); }

.action-icon {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}
.action-card:hover .action-icon { transform: scale(1.12) rotate(-4deg); }
.action-icon-call  { background: linear-gradient(135deg,#10B981,#059669); box-shadow: 0 8px 20px rgba(16,185,129,0.3); }
.action-icon-wa    { background: linear-gradient(135deg,#25D366,#128C7E); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.action-icon-dir   { background: linear-gradient(135deg,#2563EB,#1D4ED8); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }
.action-icon-email { background: linear-gradient(135deg,#F59E0B,#D97706); box-shadow: 0 8px 20px rgba(245,158,11,0.3); }

.action-label {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2.5vw, 1.0625rem);
  font-weight: 600;
  color: var(--text-heading);
}
.action-sub {
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   COMPANY INTRO — stacked on mobile, side-by-side at 900px+
   ============================================================ */
.company-intro { background: var(--surface-1); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
}

.intro-visual {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grad-navy);
  max-height: 360px;
}
@media (min-width: 900px) {
  .intro-visual { max-height: none; }
}
.intro-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 10vw, 6rem);
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 16px);
  margin-top: 24px;
}
@media (min-width: 900px) {
  .intro-stats { margin-top: 32px; }
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 3vw, 20px);
  text-align: center;
  transition: all var(--transition-base);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}
.stat-number span { color: var(--amber); }
.stat-label { font-size: clamp(0.6875rem, 2vw, 0.8125rem); color: var(--text-muted); margin-top: 4px; }

.intro-features { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
@media (min-width: 768px) {
  .intro-features { gap: 20px; margin-top: 32px; }
}
.intro-feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: clamp(38px, 6vw, 44px);
  height: clamp(38px, 6vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(37,99,235,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.intro-feature:hover .feature-icon { background: var(--blue); color: #fff; transform: scale(1.08); }
.feature-text h4 {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.feature-text p { font-size: clamp(0.8125rem, 2vw, 0.875rem); color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   BRANDS — 1-col → 3-col
   ============================================================ */
.brands-section { background: var(--surface-2); }
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 3vw, 24px);
  margin-top: clamp(32px, 5vw, 48px);
}
@media (min-width: 600px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
}

.brand-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 28px);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.brand-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.brand-card:hover::after { transform: scaleX(1); }
.brand-endico::after    { background: var(--endico-orange); }
.brand-king-red::after  { background: var(--king-red); }
.brand-king-black::after{ background: #666; }

.brand-logo-area {
  width: clamp(100px, 25vw, 140px);
  height: clamp(70px, 18vw, 100px);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-spring);
  overflow: hidden;
}
.brand-card:hover .brand-logo-area { transform: scale(1.08); }
.brand-logo-area img { max-width: 100%; max-height: 100%; object-fit: contain; }

.brand-name { font-family: var(--font-display); font-size: clamp(1rem, 3vw, 1.125rem); font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.brand-desc { font-size: clamp(0.8125rem, 2vw, 0.875rem); color: var(--text-muted); line-height: 1.5; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.brand-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   PRODUCT CATALOGUE
   ============================================================ */
.catalogue-section { background: var(--surface-1); }

/* Search */
.search-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 24px;
}
.search-input {
  width: 100%;
  padding: 14px 52px 14px 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  outline: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.12), var(--shadow-md); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; padding: 4px;
  border-radius: var(--radius-full); transition: all var(--transition-fast);
  display: none; background: none; border: none;
}
.search-clear.visible { display: flex; }
.search-clear:hover { color: var(--red); background: rgba(239,68,68,0.1); }

/* Filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  font-weight: 600;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 38px;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(37,99,235,0.05); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

/* Category header */
.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.category-section-title { font-family: var(--font-display); font-size: clamp(1.0625rem, 3vw, 1.25rem); font-weight: 600; color: var(--text-heading); }
.category-count { font-size: 0.8125rem; color: var(--text-muted); background: var(--surface-3); padding: 3px 12px; border-radius: var(--radius-full); }
.category-group { margin-bottom: clamp(32px, 6vw, 56px); }

/* Results bar */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 10px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.875rem; color: var(--text-muted); }
.results-count span { color: var(--blue); font-weight: 600; }

/* Product grid — 2-col on mobile */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 3vw, 20px);
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Product card */
.product-card {
  background: var(--surface-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
  min-width: 0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(37,99,235,0.2); }

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 3vw, 16px);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-brand-badge { position: absolute; top: 10px; left: 10px; }
.product-wishlist {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all var(--transition-base);
  color: var(--text-muted);
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: var(--red); border-color: var(--red); }

.product-body {
  padding: clamp(12px, 3vw, 18px);
  display: flex; flex-direction: column;
  gap: clamp(5px, 1.5vw, 8px);
  flex: 1;
}
.product-code { font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-muted); letter-spacing: 0.05em; }
.product-name { font-family: var(--font-display); font-size: clamp(0.875rem, 2.5vw, 1rem); font-weight: 600; color: var(--text-heading); line-height: 1.3; }
.product-desc {
  font-size: clamp(0.75rem, 2vw, 0.8125rem); color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-specs-preview { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.spec-tag {
  font-family: var(--font-spec);
  font-size: 0.625rem;
  padding: 2px 7px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(5px, 2vw, 8px);
  padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 18px);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.product-actions .btn {
  padding: clamp(7px, 2vw, 9px) 8px;
  font-size: clamp(0.6875rem, 2vw, 0.8125rem);
  border-radius: var(--radius-lg);
  justify-content: center;
  gap: 5px;
  min-height: 36px;
}

/* No results */
.no-results { text-align: center; padding: clamp(48px, 8vw, 80px) 20px; color: var(--text-muted); }
.no-results-icon { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; opacity: 0.4; }
.no-results h3 { font-family: var(--font-display); font-size: clamp(1.0625rem, 3vw, 1.25rem); color: var(--text-heading); margin-bottom: 8px; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 20px);
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  max-width: 900px;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-2xl);
  transform: translateY(24px) scale(0.97);
  transition: all var(--transition-slow);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast); z-index: 1;
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Stack on mobile, side-by-side on tablet+ */
.modal-inner { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .modal-inner { grid-template-columns: 1fr 1fr; }
}

.modal-image-col {
  background: var(--surface-2);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(220px, 40vw, 400px);
}
@media (min-width: 640px) {
  .modal-image-col { border-radius: var(--radius-2xl) 0 0 var(--radius-2xl); }
}
.modal-image-col img { max-width: 100%; max-height: 380px; object-fit: contain; }

.modal-info-col {
  padding: clamp(20px, 4vw, 36px);
  display: flex; flex-direction: column; gap: clamp(14px, 3vw, 20px);
}
.modal-brand-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-product-name { font-family: var(--font-display); font-size: clamp(1.125rem, 4vw, 1.625rem); font-weight: 700; color: var(--text-heading); line-height: 1.25; }
.modal-product-code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted); padding: 4px 12px; background: var(--surface-3); border-radius: var(--radius-sm); display: inline-block; }
.modal-desc { font-size: clamp(0.875rem, 2.5vw, 0.9375rem); color: var(--text-body); line-height: 1.65; }

.modal-specs-table { width: 100%; border-collapse: collapse; font-family: var(--font-spec); font-size: clamp(0.8125rem, 2vw, 0.875rem); }
.modal-specs-table tr { border-bottom: 1px solid var(--border); }
.modal-specs-table tr:last-child { border-bottom: none; }
.modal-specs-table td:first-child { color: var(--text-muted); font-weight: 500; padding: 8px 12px 8px 0; width: 40%; vertical-align: top; }
.modal-specs-table td:last-child { color: var(--text-heading); font-weight: 500; padding: 8px 0; font-family: var(--font-mono); font-size: 0.8125rem; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.modal-actions .btn { justify-content: center; border-radius: var(--radius-lg); }

/* ============================================================
   PRODUCT CARD SLIDER
   ============================================================ */
.pcard-slider { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pcard-slides { position: relative; width: 100%; height: 100%; }
.pcard-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.pcard-slide.active { opacity: 1; pointer-events: auto; }
.pcard-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: rgba(15,23,42,0.65); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.product-image-wrap:hover .pcard-arrow { opacity: 1; }
.pcard-arrow:hover { background: rgba(37,99,235,0.8); }
.pcard-prev { left: 6px; } .pcard-next { right: 6px; }
.pcard-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 10; }
.pcard-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background var(--transition-fast), transform var(--transition-fast); }
.pcard-dot.active { background: #fff; transform: scale(1.3); }
.pcard-count-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(15,23,42,0.7); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.625rem; font-weight: 600;
  padding: 2px 7px; border-radius: var(--radius-full);
  letter-spacing: 0.04em; z-index: 10; pointer-events: none;
}

/* ============================================================
   MODAL IMAGE SLIDER
   ============================================================ */
.modal-slider { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.modal-slides { position: relative; width: 100%; flex: 1; min-height: 240px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.modal-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.modal-slide.active { opacity: 1; pointer-events: auto; }
.modal-arrow {
  position: absolute; top: calc(50% - 30px); transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(15,23,42,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 20; transition: background var(--transition-fast);
}
.modal-arrow:hover { background: var(--blue); }
.modal-prev { left: 8px; } .modal-next { right: 8px; }
.modal-thumb-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 4px; }
.modal-thumb {
  width: 56px; height: 46px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); background: var(--surface-3);
  cursor: pointer; transition: border-color var(--transition-fast), transform var(--transition-fast);
  padding: 0; flex-shrink: 0;
}
.modal-thumb:hover { border-color: var(--blue-light); transform: scale(1.05); }
.modal-thumb.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,0.3); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--grad-navy);
  position: relative; overflow: hidden; text-align: center;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; left: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse,rgba(37,99,235,0.2) 0%,transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute;
  top: -30%; right: -10%; width: 50%; height: 160%;
  background: radial-gradient(ellipse,rgba(245,158,11,0.1) 0%,transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.15;
}
.cta-subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px; margin-inline: auto;
  margin-bottom: clamp(28px, 5vw, 40px); line-height: 1.6;
}

/* ============================================================
   FOOTER — 1-col → 4-col
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-top: clamp(48px, 7vw, 96px);
}
[data-theme="dark"] .footer { background: #080D1A; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo-name { font-family: var(--font-display); font-size: clamp(1.0625rem, 3vw, 1.25rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.footer-logo-name span { color: var(--amber); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base); text-decoration: none;
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color var(--transition-fast);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-links a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 12px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.footer-contact-item a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color var(--transition-fast);
  word-break: break-word; overflow-wrap: anywhere;
}
.footer-contact-item a:hover { color: #fff; }

.footer-hours { font-size: 0.8125rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-hours strong { color: rgba(255,255,255,0.8); }

.footer-bottom {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.8125rem; color: rgba(255,255,255,0.35);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { justify-content: space-between; }
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
