:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,0.8);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-img {
  width: 170px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.nav a:hover { color: var(--text); }

.cart-btn,
.icon-btn,
.modal-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
}

.cart-btn {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.icon-btn,
.modal-close {
  width: 42px;
  height: 42px;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 span { color: var(--accent); }

.hero-copy p {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points div {
  padding: 12px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.btn {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,0.22);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--text);
  border-color: var(--line);
}

.btn.full { width: 100%; }

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hero-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card-main {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-card h3,
.hero-card h4 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card h4 { font-size: 22px; }

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card strong {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  color: var(--accent);
}

.card-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-image {
  aspect-ratio: 1 / 1;
  background: #eef2f7;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body { padding: 22px; }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-category,
.badge,
.product-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.product-category,
.product-chip {
  background: #eff6ff;
  color: var(--accent);
}

.badge {
  background: #f3f4f6;
  color: #475569;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-price {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.product-actions button { flex: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-copy,
.contact-form {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-list small {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
}

.contact-list strong {
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.checkout-form input,
.checkout-form textarea,
.qty-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}

.contact-form textarea,
.checkout-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: #94a3b8;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* CART */
.cart-drawer,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.cart-drawer.active,
.product-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-overlay,
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(520px, 100%);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--line);
  padding: 26px;
  overflow-y: auto;
  box-shadow: -20px 0 40px rgba(15,23,42,0.08);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head small { color: var(--muted); }
.cart-head h3 { margin: 4px 0 0; font-size: 28px; }

.cart-items {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}

.cart-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-item-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #dc2626;
  font-weight: 700;
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form h4 {
  margin: 0 0 6px;
  font-size: 22px;
}

/* MODAL */
.modal-card {
  position: relative;
  width: min(1120px, calc(100% - 24px));
  margin: 30px auto;
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.12);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.main-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 1 / 1;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbs img.active { border-color: var(--accent); }

.modal-content h3 {
  font-size: 38px;
  margin: 16px 0 12px;
}

.modal-price {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
}

.modal-desc {
  color: var(--muted);
  line-height: 1.9;
}

.spec-list {
  margin: 20px 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.qty-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.qty-row label { color: var(--muted); }

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 44px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 34px;
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-logo-img {
  width: 180px;
  height: auto;
}

.footer-column h4 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover { color: var(--text); }

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.hidden { display: none !important; }

@media (max-width: 1200px) {
  .hero-grid,
  .contact-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card-row,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 7vw, 54px);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 20px);
  }

  .header-inner {
    min-height: 74px;
  }

  .logo-img {
    width: 135px;
  }

  .hero {
    padding: 36px 0 26px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .hero-copy p,
  .section-head p,
  .contact-copy p {
    font-size: 15px;
  }

  .hero-actions,
  .product-actions,
  .modal-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .product-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-body,
  .contact-copy,
  .contact-form,
  .hero-card {
    padding: 22px;
  }

  .cart-panel {
    width: 100%;
    padding: 18px;
  }

  .cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
  }

  .cart-item > .remove-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .modal-card {
    padding: 18px;
    margin: 12px auto;
    border-radius: 24px;
  }

  .modal-content h3 {
    font-size: 28px;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}