/* ============================================================================
   MARTIN VRUINE SHOP (martinvruine.shop)
   Adaptación Exacta del Sistema de Diseño y Paleta de https://martinvruine.es
   Tipografías: "Bebas Neue" (Display) & "Barlow" (Sans)
   Paleta: Warm Espresso Dark + Amber Gold Primary + Metallic Silver Brand
   ============================================================================ */

:root {
  /* Variables Exactas extraídas de https://martinvruine.es */
  --radius: 0.25rem;
  --background: oklch(14% 0.01 40);
  --foreground: oklch(95% 0.02 80);
  --card: oklch(19% 0.015 40);
  --card-foreground: oklch(95% 0.02 80);
  --popover: oklch(19% 0.015 40);
  --popover-foreground: oklch(95% 0.02 80);
  --primary: oklch(75% 0.16 65);
  --primary-foreground: oklch(14% 0.01 40);
  --secondary: oklch(55% 0.19 28);
  --secondary-foreground: oklch(97% 0.01 80);
  --muted: oklch(22% 0.015 40);
  --muted-foreground: oklch(68% 0.03 70);
  --accent: oklch(55% 0.19 28);
  --accent-foreground: oklch(97% 0.01 80);
  --destructive: oklch(60% 0.22 27);
  --border: oklch(30% 0.02 40);
  --input: oklch(30% 0.02 40);
  --ring: oklch(75% 0.16 65);

  /* Acabado Metálico Oficial de martinvruine.es */
  --silver-light: oklch(97% 0.003 250);
  --silver-mid: oklch(76% 0.008 250);
  --silver-dark: oklch(48% 0.012 250);
  --gradient-metal: linear-gradient(
    175deg,
    var(--silver-light) 0%,
    var(--silver-mid) 28%,
    var(--silver-light) 43%,
    var(--silver-dark) 52%,
    var(--silver-mid) 65%,
    var(--silver-light) 82%,
    var(--silver-mid) 100%
  );
  --gradient-fade: linear-gradient(
    to top,
    oklch(14% 0.01 40) 5%,
    oklch(14% 0.01 40 / 0.4) 50%,
    transparent
  );

  /* Compatibilidad con variables de componentes de la tienda */
  --bg-obsidian: var(--background);
  --bg-carbon: oklch(16.5% 0.012 40);
  --bg-card: var(--card);
  --bg-card-hover: var(--muted);
  --bg-glass: color-mix(in oklab, var(--background) 90%, transparent);

  --chrome-bright: var(--foreground);
  --chrome-silver: var(--foreground);
  --chrome-muted: var(--muted-foreground);

  --accent-gold-paypal: var(--primary);
  --accent-emerald: var(--primary);

  --border-subtle: var(--border);
  --border-chrome: var(--primary);
  --shadow-card: 0 18px 40px -12px rgba(0, 0, 0, 0.78);
  --shadow-chrome: 0 0 26px color-mix(in oklab, var(--primary) 22%, transparent);

  --radius-sm: var(--radius);
  --radius-md: calc(var(--radius) + 2px);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1152px; /* max-w-6xl como en martinvruine.es */

  --font-sans: "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bebas Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
}

section[id],
.hero,
.section {
  scroll-margin-top: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Clases de Identidad Visual de martinvruine.es */
.brand-metal,
.text-chrome {
  color: var(--silver-mid);
  background-image: var(--gradient-metal);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow,
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============================================================================
   1. BARRA SUPERIOR (ENVÍOS & PASARELA OFICIAL PAYPAL)
   ============================================================================ */
.topbar {
  background: oklch(11% 0.01 40);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 50%, transparent);
  padding: 0.14rem 0.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.paypal-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

/* ============================================================================
   2. NAVBAR STICKY (OPACO SIN TRANSPARENCIA)
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.25rem;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text-block {
  text-align: center;
}

.brand-text-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--silver-mid);
  background-image: var(--gradient-metal);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text-block span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-count {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================================
   3. BOTONES GENERALES (ESTILO .btn-primary y .btn-ghost DE MARTINVRIUNE.ES)
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-chrome,
.btn-paypal {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-chrome:hover,
.btn-paypal:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-outline-chrome {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
}

.btn-outline-chrome:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ============================================================================
   4. HERO PRINCIPAL (MARTIN VRUINE OFFICIAL STORE)
   ============================================================================ */
.hero {
  position: relative;
  padding: 1.15rem 0 2.25rem;
  background:
    radial-gradient(circle at 80% 25%, color-mix(in oklab, var(--primary) 12%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, color-mix(in oklab, var(--secondary) 10%, transparent) 0%, transparent 50%),
    var(--background);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 1rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.625;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

/* Tarjeta Derecha del Hero */
.hero-showcase-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 0.2rem;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
}

.hero-showcase-card:hover {
  border-color: var(--primary);
}

.hero-logo-spotlight {
  width: 138px;
  height: 138px;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-spotlight img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.showcase-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* ============================================================================
   5. CATÁLOGO Y FILTROS DE PRODUCTOS (#catalogo)
   ============================================================================ */
.section {
  padding: 1.15rem 0 3.5rem;
}

.section-alt {
  padding: 2.5rem 0 3.5rem;
  background-color: var(--bg-carbon);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.35rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.section-desc {
  color: var(--muted-foreground);
  font-size: 1.02rem;
}

/* Barra de Filtros de Categoría */
.filter-tabs-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-tab-btn {
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

.filter-tab-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Grid de Productos (2 productos por línea en ordenador, cajas 100% idénticas y compactas) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 162px;
  gap: 1.25rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 155px 1fr;
  height: 162px;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
}

.product-media {
  position: relative;
  width: 155px;
  height: 162px;
  background: oklch(12% 0.01 40);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: none;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-logo-stamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2px;
  z-index: 3;
}

.product-logo-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.16rem 0.45rem;
  border-radius: var(--radius);
}

.product-color-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  color: var(--foreground);
}

.black-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid var(--primary);
}

.product-body {
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 100%;
}

.product-cat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.12;
  margin: 0.15rem 0 0;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-compact-bar {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.product-detail-modal {
  max-width: 780px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.product-detail-img-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: oklch(12% 0.01 40);
  aspect-ratio: 4 / 5;
}

.product-detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin-bottom: 0.9rem;
}

.product-highlights {
  margin-bottom: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.product-highlights li {
  font-size: 0.82rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.product-highlights li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* Selector de Talla o Edición de Música */
.product-option-box {
  margin-bottom: 1.2rem;
}

.product-option-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 0.45rem;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-pill-btn {
  min-width: 42px;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.size-pill-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

.size-pill-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.edition-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

.edition-select:focus {
  border-color: var(--primary);
}

/* Reproductor Integrado de Pistas Reales en Tarjetas de Pendrive USB */
.usb-tracks-panel {
  margin-bottom: 1.2rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--border);
}

.usb-tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.usb-track-list {
  display: grid;
  gap: 0.4rem;
}

.usb-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.48rem 0.65rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.usb-track-item:hover {
  border-color: var(--primary);
}

.usb-track-item.playing {
  background: color-mix(in oklab, var(--primary) 14%, var(--card));
  border-color: var(--primary);
}

.usb-track-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.usb-track-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usb-track-sub {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.preview-play-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  padding: 0.36rem 0.72rem;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.preview-play-btn:hover {
  filter: brightness(1.08);
}

.preview-play-btn.active {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.usb-seek-wrap {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  display: none;
}

.usb-seek-wrap.visible {
  display: block;
}

.usb-seek-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.usb-seek-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 5px;
}

.product-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.current-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--primary);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================================================================
   6. SECCIÓN ESPECIAL PENDRIVES & SESIONES (#sesiones-usb)
   ============================================================================ */
.usb-feature-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.tracklist-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.track-row:last-child {
  border-bottom: none;
}

/* ============================================================================
   7. CARRITO LATERAL Y MODAL DE PAGO EXCLUSIVO PAYPAL
   ============================================================================ */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}

.close-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-item {
  display: flex;
  gap: 0.9rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.1rem 0.4rem;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
}

.drawer-footer {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 0.45rem;
}

.summary-line.total {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--foreground);
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

/* Modal de Checkout PayPal */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 94%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

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

.form-grid-2,
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.form-control,
.form-input {
  width: 100%;
  display: block;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  outline: none;
}

.form-control:focus,
.form-input:focus {
  border-color: var(--primary);
}

.paypal-exclusive-box {
  background: var(--background);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin: 1rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer idéntico al estilo de martinvruine.es */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer h4 {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1600;
  display: grid;
  gap: 0.5rem;
}

.toast {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.25rem;
    right: -1.25rem;
    background: var(--background);
    flex-direction: column;
    padding: 1rem 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border);
    z-index: 1050;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .usb-feature-banner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .products-grid,
  .form-grid-2,
  .form-row,
  .hero-highlights,
  .footer-grid,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-auto-rows: 150px;
  }

  .product-card {
    grid-template-columns: 125px 1fr;
    height: 150px;
  }

  .product-media {
    width: 125px;
    height: 150px;
  }
}
