/* ============================================================
   Double A International — Master Stylesheet
   Apple-inspired design system. Clean, spacious, precise.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --navy: #0a2540;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.14);

  --maxw: 1180px;
  --nav-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 820px; }

.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-sm { padding: clamp(48px, 7vw, 80px) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: var(--white); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: none;
}
.bg-dark .eyebrow { color: #2997ff; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.07; }

.display {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.h-section {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.08;
}
.h-sub {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--text-2);
  font-weight: 400;
}
.muted { color: var(--text-2); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.03); }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-light:hover { background: #f5f5f7; transform: scale(1.03); }
.btn-outline { border: 1px solid currentColor; color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.bg-dark .btn-outline { color: #fff; }
.bg-dark .btn-outline:hover { background: #fff; color: var(--text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 400;
  transition: gap 0.25s var(--ease);
}
.link-arrow::after { content: "›"; font-size: 20px; line-height: 1; transition: transform 0.25s var(--ease); }
.link-arrow:hover { gap: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s var(--ease);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-logo img { height: 30px; width: auto; border-radius: 6px; }
.nav-logo span b { font-weight: 600; }
.nav-logo span { font-size: 17px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  color: #1d1d1fcc;
  font-weight: 400;
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-cta {
  font-size: 14px !important;
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 980px;
  transition: background 0.2s var(--ease) !important;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; width: 30px; height: 30px; position: relative; }
.nav-toggle span {
  position: absolute; left: 5px; right: 5px; height: 1.5px; background: var(--text);
  transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { bottom: 11px; }
.nav-toggle.open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { bottom: 14px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,80,0.78) 0%, rgba(15,35,80,0.68) 40%, rgba(10,25,60,0.85) 100%);
  z-index: -1;
}
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(40px, 7.5vw, 82px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin-bottom: 22px;
}
.hero .lead { color: rgba(255,255,255,0.92); font-size: clamp(19px, 2.4vw, 27px); margin: 0 auto 36px; max-width: 660px; }
.hero .btn-row { justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 13px; letter-spacing: 0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ""; width: 22px; height: 22px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: 0.5; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 24px 84px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,0.6), rgba(10,20,40,0.78)); z-index: -1; }
.page-banner h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 700; margin-bottom: 14px; }
.breadcrumb { font-size: 15px; color: rgba(255,255,255,0.85); display: flex; gap: 10px; justify-content: center; align-items: center; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--accent); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.split-body h2 { margin-bottom: 18px; }
.split-body .lead { margin-bottom: 24px; }
.split.reverse .split-media { order: 2; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 3/2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 22px; margin-bottom: 10px; }
.card-body p { color: var(--text-2); font-size: 16px; line-height: 1.5; flex: 1; }
.card-body .link-arrow { margin-top: 18px; }

/* feature card (icon) */
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, #0071e3, #42a5ff);
  color: #fff;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 16px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.bg-dark .stat-num { color: #fff; }
.stat-num .suffix { color: var(--accent); }
.bg-dark .stat-num .suffix { color: #2997ff; }
.stat-label { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.bg-dark .stat-label { color: #a1a1a6; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 70px); }
.logo-strip img { height: 46px; width: auto; object-fit: contain; opacity: 0.55; filter: grayscale(1); transition: all 0.3s var(--ease); }
.logo-strip img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll-x 32s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 42px; width: auto; opacity: 0.6; filter: grayscale(1); transition: all 0.3s; }
.marquee img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 9px 18px; border-radius: 980px; background: var(--bg-alt);
  font-size: 15px; font-weight: 500; color: var(--text);
  border: 1px solid var(--border-light);
}
.bg-dark .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #f5f5f7; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--text); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.gallery-filter button {
  padding: 9px 20px; border-radius: 980px; font-size: 15px; font-weight: 500;
  color: var(--text-2); background: var(--bg-alt); transition: all 0.25s var(--ease);
}
.gallery-filter button.active { background: var(--text); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff; opacity: 0; transition: opacity 0.35s var(--ease);
  background: linear-gradient(180deg, transparent 40%, rgba(10,20,40,0.82));
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h4 { font-size: 19px; margin-bottom: 4px; }
.gallery-item-overlay span { font-size: 14px; color: rgba(255,255,255,0.8); }
.gallery-item.hide { display: none; }

/* ---------- Blog ---------- */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 14px; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 14px; }
.post-body h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.post-body p { color: var(--text-2); font-size: 16px; flex: 1; }
.post-body .link-arrow { margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); height: 100%; }
.contact-card h3 { font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 16px; color: var(--text-2); }
.contact-row svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.contact-row a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer { background: #f5f5f7; color: var(--text-2); padding: 64px 0 30px; font-size: 14px; border-top: 1px solid var(--border-light); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 40px; border-radius: 8px; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; line-height: 1.6; }
.footer h4 { font-size: 15px; color: var(--text); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-contact div { margin-bottom: 12px; line-height: 1.5; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 1px solid var(--border-light); transition: all 0.25s var(--ease); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-social a:hover svg { color: #fff; }
.footer-social svg { width: 17px; height: 17px; color: var(--text-2); transition: color 0.25s; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom nav a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Mobile nav panel ---------- */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 999;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.4s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a { font-size: 24px; font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--border-light); letter-spacing: -0.01em; }
.mobile-menu .nav-cta { margin-top: 24px; text-align: center; font-size: 18px !important; padding: 14px; border-radius: 14px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .btn-row { width: 100%; }
  .hero .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Products
   ============================================================ */
.product-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.product-filter button {
  padding: 9px 20px; border-radius: 980px; font-size: 15px; font-weight: 500;
  color: var(--text-2); background: var(--bg-alt); transition: all 0.25s var(--ease);
}
.product-filter button:hover { color: var(--text); }
.product-filter button.active { background: var(--text); color: #fff; }

/* Compact catalog of small boxes that auto-fit the row */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; text-align: left; width: 100%;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-media { aspect-ratio: 1/1; background: #d8d9dd; display: grid; place-items: center; padding: 10px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-info h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.product-tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px;
}
.tag-poly { background: rgba(0,113,227,0.10); color: var(--accent); }
.tag-cvc  { background: rgba(10,37,64,0.08); color: var(--navy); }
.product-view { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.product-view::after { content: "›"; font-size: 16px; line-height: 1; transition: transform 0.25s var(--ease); }
.product-card:hover .product-view::after { transform: translateX(3px); }
.product-card.hide { display: none; }

/* ---- Product modal ---- */
.product-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.product-modal.open { display: block; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: saturate(120%) blur(14px); -webkit-backdrop-filter: saturate(120%) blur(14px); animation: pm-fade 0.3s var(--ease); }
.product-modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, calc(100% - 40px)); max-height: 88vh; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.04fr 1fr; animation: pm-pop 0.4s var(--ease);
}
.product-modal-media { background: #d8d9dd; display: grid; place-items: center; padding: 24px; }
.product-modal-media img { width: 100%; max-height: 76vh; object-fit: contain; }
.product-modal-body { padding: 48px 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; overflow-y: auto; }
.product-modal-body h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; line-height: 1.12; }
.product-modal-body > p { color: var(--text-2); font-size: 18px; line-height: 1.6; }
.pm-specs { display: grid; }
.pm-specs > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--border-light); font-size: 15px; }
.pm-specs dt { color: var(--text-3); }
.pm-specs dd { font-weight: 600; text-align: right; }
.product-modal-body .btn { align-self: flex-start; margin-top: 8px; }
.product-modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--text); font-size: 22px; line-height: 1;
  display: grid; place-items: center; z-index: 3; box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-modal-close:hover { background: #fff; transform: scale(1.06); }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-pop { from { opacity: 0; transform: translate(-50%, -47%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

@media (max-width: 820px) {
  .product-modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .product-modal-media { padding: 26px; }
  .product-modal-media img { max-height: 42vh; }
  .product-modal-body { padding: 30px 26px; justify-content: flex-start; }
  .product-modal-body > p { font-size: 16px; }
}
