/* =========================================================
   TEKNO — Estilos generales (compartido por todas las páginas)
   Cambiá los colores acá abajo para actualizar toda la web.
   ========================================================= */



:root {
  --color-primary: #ff5a36;
  --color-primary-hover: #e6461f;
  --color-primary-soft: #fff0ea;
  --color-background: #ffffff;
  --color-background-alt: #f7f6f4;
  --color-text: #14151a;
  --color-muted: #6b6f76;
  --color-border: #ebe9e6;
  --gradient-hero: radial-gradient(120% 100% at 78% 20%, #fde4d4 0%, #fdf1e8 32%, #ffffff 68%);
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 21, 26, 0.08);
  --shadow-lg: 0 20px 45px rgba(20, 21, 26, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
  animation: page-in 0.5s var(--ease);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.section__head p {
  color: var(--color-muted);
  margin-top: 10px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--color-background-alt);
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--color-muted);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.15s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:active { transform: scale(0.96); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 10px 24px rgba(255, 90, 54, 0.28);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-text);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 100px;
  width: auto;
  display: block;
}

.navbar__links {
  display: flex;
  gap: 28px;
}

.navbar__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.navbar__links a:hover { color: var(--color-text); }
.navbar__links a:hover::after { transform: scaleX(1); }

.navbar__links a.active {
  color: var(--color-text);
}

.navbar__links a.active::after {
  transform: scaleX(1);
}

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

.navbar__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.navbar__cart:hover { background: var(--color-primary-hover); }

.navbar__cart .badge {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.7rem;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}

.navbar__burger span {
  height: 2px;
  width: 22px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.navbar.is-open .navbar__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.is-open .navbar__burger span:nth-child(2) { opacity: 0; }
.navbar.is-open .navbar__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  background: var(--gradient-hero);
  padding: 84px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  opacity: 0;
  animation: hero-up 0.7s var(--ease) 0.05s forwards;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 30px;
  opacity: 0;
  animation: hero-up 0.7s var(--ease) 0.18s forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-up 0.7s var(--ease) 0.3s forwards;
}

@keyframes hero-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ilustración simple del hero (sin imágenes externas) */
.hero__art {
  position: relative;
  height: 320px;
  opacity: 0;
  animation: hero-up 0.8s var(--ease) 0.25s forwards;
}

.hero__blob {
  position: absolute;
  inset: 6% 12%;
  background: radial-gradient(circle at 55% 40%, rgba(255, 255, 255, 0.85), transparent 65%);
  border-radius: 50%;
}

.hero__card {
  position: absolute;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
}

.hero__card--phone {
  width: 150px;
  height: 300px;
  top: 4%;
  right: 35%;
  background: var(--color-text);
  color: var(--color-primary);
  font-size: 2.4rem;
}

.hero__card--watch {
  width: 92px;
  height: 92px;
  bottom: 6%;
  right: 55%;
  font-size: 1.7rem;
  animation-delay: 0.6s;
}

.hero__card--buds {
  width: 64px;
  height: 64px;
  top: 8%;
  left: 4%;
  font-size: 1.6rem;
  animation-delay: 1.1s;
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- BENEFICIOS ---------- */
.benefits {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit .icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.benefit h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.benefit p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ---------- CATEGORÍAS ---------- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.category-card span {
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- PRODUCTOS ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--color-primary-soft), var(--color-background-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 14px;
  border-radius: 12px;
  overflow: hidden;
}

.product-card__media img {
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 4px 18px 20px;
}

.product-card__body .cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-card__body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 6px 0;
}

.product-card__price {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.product-card__cta {
  width: 100%;
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card__cta:hover {
  background: var(--color-text);
  color: #fff;
}

/* Filtros de categoría (página de catálogo) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

/* ---------- TESTIMONIOS ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--color-background-alt);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.testimonial-card .stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  margin-bottom: 14px;
}

.testimonial-card .stars svg { width: 14px; height: 14px; }

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 18px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.testimonial-card__author strong {
  font-size: 0.86rem;
  display: block;
}

.testimonial-card__author span {
  font-size: 0.76rem;
  color: var(--color-muted);
}

/* ---------- CTA FINAL ---------- */
.cta-box {
  background: var(--color-background-alt);
  border-radius: 24px;
  padding: 56px 30px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--color-muted);
  margin-bottom: 24px;
}

/* ---------- CONTACTO ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.contact-channel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-channel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-channel .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.contact-channel h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-channel p {
  font-size: 0.86rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.contact-form {
  background: var(--color-background-alt);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.contact-form h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-form > p {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.88rem;
  background: #fff;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.76rem;
  color: var(--color-muted);
  margin-top: 10px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 44px 0 26px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.footer__brand p {
  font-size: 0.86rem;
  color: var(--color-muted);
  margin-top: 6px;
  max-width: 220px;
}

.footer__logo {
  display: block;
}

.footer__logo img {
  height: 80px;
  width: auto;
  display: block;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer__social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ---------- ANIMACIÓN AL HACER SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero h1, .hero p, .hero__actions, .hero__art {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__card { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }

  .navbar.is-open .navbar__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; height: 260px; }
  .hero__card--phone { width: 120px; height: 220px; font-size: 1.9rem; }
  .hero__card--watch { width: 76px; height: 76px; font-size: 1.4rem; }
  .hero__card--buds { width: 54px; height: 54px; font-size: 1.3rem; }

  .benefits__grid,
  .categories__grid,
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0; }
  .navbar__cart span:not(.badge) { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .benefits__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   STOCK, CARRITO Y MODAL DE PRODUCTO
   ========================================================= */

body.no-scroll { overflow: hidden; }

/* ---- Etiqueta de stock (tarjeta y modal) ---- */
.stock-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.product-card__media .stock-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.stock-tag--in {
  background: #e7f7ec;
  color: #1c8a4b;
}

.stock-tag--out {
  background: #fdeeee;
  color: #c73434;
}

.product-card { cursor: pointer; }

.product-card__cta:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.product-card__cta:disabled:hover {
  background: var(--color-background-alt);
  color: var(--color-text);
}

/* ---- Fondo oscuro compartido (modal y carrito) ---- */
.modal-backdrop,
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 26, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 90;
}

.modal-backdrop.is-open,
.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Ventana modal de producto ---- */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1;
  z-index: 2;
}

.product-modal__media {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary-soft), var(--color-background-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  min-height: 220px;
}

.product-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.product-modal__body .cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-modal__body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2px 0 4px;
}

.product-modal__desc {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 6px 0 10px;
}

.product-modal__price {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-text);
}

.qty-btn:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* ---- Panel lateral de carrito ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: #fff;
  z-index: 92;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  color: var(--color-muted);
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.cart-item__media {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--color-primary-soft), var(--color-background-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
}

.cart-item__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__body strong {
  font-size: 0.9rem;
}

.cart-item__price {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.cart-item__qty .qty-btn {
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
}

.cart-item__remove {
  align-self: flex-start;
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 4px;
}

.cart-item__remove:hover { color: var(--color-primary); }

.cart-drawer__footer {
  border-top: 1px solid var(--color-border);
  padding: 18px 22px 22px;
}

.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1rem;
}

.cart-drawer__total strong { font-size: 1.15rem; }

#cartCheckout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .product-modal {
    grid-template-columns: 1fr;
    width: 92vw;
  }
  .product-modal__media { min-height: 180px; }
}
