:root {
  --navy-950: #071529;
  --navy-900: #0b1f3a;
  --navy-800: #132c4f;
  --navy-700: #1e3f6e;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-900: #78350f;
  --whatsapp: #1fa855;
  --whatsapp-hover: #178c45;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-900: #0f172a;
  --text-700: #334155;
  --text-500: #64748b;
  --text-400: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 50px rgba(7, 21, 41, 0.22);

  --header-h: 64px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-900);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 84px; /* space for mobile floating cart bar */
}

body.no-scroll {
  overflow: hidden;
}

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

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
  body {
    padding-bottom: 0;
  }
}

/* ========================
   HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cash-pill {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 900px) {
  .cash-pill {
    display: inline-flex;
  }
}

.cash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-btn .btn-label {
  display: none;
}

@media (min-width: 640px) {
  .icon-btn .btn-label {
    display: inline;
  }
}

.mini-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--teal-600);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transition: background 0.15s ease, transform 0.12s ease;
}

.cart-trigger:hover {
  background: var(--teal-700);
}

.cart-trigger:active {
  transform: scale(0.97);
}

.cart-trigger-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
}

.cart-trigger-sep,
.cart-trigger-total {
  display: none;
}

@media (min-width: 480px) {
  .cart-trigger-sep,
  .cart-trigger-total {
    display: inline;
  }
}

/* ========================
   HERO BANNER
   ======================== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.24), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(245, 158, 11, 0.14), transparent 40%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  padding: 24px 0 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 32px 0 34px;
  }
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: #5eead4;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}

.hero-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  max-width: 560px;
}

.hero-desc strong {
  color: #fff;
}

.hero-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .hero-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.step-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.25);
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: #5eead4;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-card strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

.step-card span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}

/* ========================
   STICKY CONTROLS & CATEGORIES
   ======================== */
.controls-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-400);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-900);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
  border-color: var(--teal-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-700);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

@media (min-width: 640px) {
  .toolbar-right {
    width: auto;
  }
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-700);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-toggle:hover {
  border-color: var(--border-strong);
}

.filter-toggle.active {
  background: var(--teal-50);
  border-color: var(--teal-600);
  color: var(--teal-700);
}

.sort-wrap {
  flex: 1;
}

@media (min-width: 640px) {
  .sort-wrap {
    flex: initial;
  }
}

.sort-wrap select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-700);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sort-wrap select:focus {
  border-color: var(--teal-600);
}

/* Category Chips */
.category-strip-wrap {
  position: relative;
  margin: 0 -16px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .category-strip-wrap {
    margin: 0;
    padding: 0;
  }
}

.category-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-700);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cat-chip:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.cat-chip.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-500);
}

.cat-chip.active .cat-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ========================
   CATALOG GRID
   ======================== */
.catalog-section {
  padding: 18px 0 48px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.results-summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-500);
  font-weight: 500;
}

.reset-filters-btn {
  border: none;
  background: none;
  color: var(--teal-700);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.reset-filters-btn:hover {
  background: var(--teal-50);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  content-visibility: auto;
  contain-intrinsic-size: 260px 340px;
}

.product-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.product-card.in-cart {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25), var(--shadow-xs);
}

.card-media-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: none;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.card-media-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

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

.card-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f8fafc, #edf2f7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-500);
  padding: 12px;
  text-align: center;
}

.card-placeholder .ph-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.card-placeholder .ph-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-400);
}

.card-qty-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--teal-600);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.card-size-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body {
  padding: 11px 11px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-700);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title-btn {
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--text-900);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.32;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-title-btn:hover {
  color: var(--teal-700);
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.card-price span {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-500);
  margin-left: 2px;
}

.card-approx {
  font-size: 0.7rem;
  color: var(--text-400);
}

/* Add button & Qty Stepper */
.add-btn {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--navy-900);
  background: var(--navy-900);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.14s ease, transform 0.1s ease;
}

.add-btn:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.add-btn:active {
  transform: scale(0.98);
}

.qty-stepper {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-600);
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  overflow: hidden;
}

.qty-stepper button {
  height: 100%;
  border: none;
  background: transparent;
  color: var(--teal-700);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease;
}

.qty-stepper button:hover {
  background: var(--teal-100);
}

.qty-stepper .qty-val {
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy-900);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
}

.empty-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.empty-state p {
  margin: 0 auto 18px;
  color: var(--text-500);
  max-width: 400px;
  font-size: 0.9rem;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 24px 0;
  color: var(--text-700);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--amber-100);
  color: var(--amber-900);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ========================
   MOBILE FLOATING CART BAR
   ======================== */
.mobile-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 38;
}

@media (min-width: 768px) {
  .mobile-cart-bar {
    display: none !important;
  }
}

.mobile-cart-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(7, 21, 41, 0.35);
  cursor: pointer;
}

.mobile-cart-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mobile-cart-badge {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--teal-600);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
}

.mobile-cart-meta {
  text-align: left;
  line-height: 1.2;
}

.mobile-cart-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.mobile-cart-meta span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.74);
}

.mobile-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #5eead4;
}

/* ========================
   DRAWER & BACKDROP
   ======================== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 41, 0.56);
  backdrop-filter: blur(3px);
  z-index: 50;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 470px;
  background: var(--surface);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.22s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(28px); opacity: 0.85; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.drawer-back-btn,
.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer-back-btn:hover,
.close-btn:hover {
  background: var(--border);
  color: var(--text-900);
}

.drawer-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.d-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-400);
}

.d-step span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-500);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.d-step.active {
  color: var(--navy-900);
}

.d-step.active span {
  background: var(--navy-900);
  color: #fff;
}

.d-step.done {
  color: var(--teal-700);
}

.d-step.done span {
  background: var(--teal-600);
  color: #fff;
}

.d-step-line {
  flex: 1;
  max-width: 34px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.drawer-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
}

.empty-bag-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.drawer-empty h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.drawer-empty p {
  margin: 0 0 18px;
  color: var(--text-500);
  font-size: 0.88rem;
  max-width: 280px;
}

/* Cart Item Row */
.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-thumb .ph-icon {
  font-size: 1.5rem;
}

.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.3;
}

.cart-remove-btn {
  border: none;
  background: none;
  color: var(--text-400);
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
}

.cart-remove-btn:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-500);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.mini-stepper {
  display: inline-grid;
  grid-template-columns: 28px 32px 28px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  overflow: hidden;
  align-items: center;
}

.mini-stepper button {
  height: 100%;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
  cursor: pointer;
}

.mini-stepper button:hover {
  background: var(--border);
}

.mini-stepper span {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.cart-line-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--navy-900);
}

/* Drawer Footer & Totals */
.drawer-footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.totals-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-700);
  margin-bottom: 6px;
}

.total-row:last-child {
  margin-bottom: 0;
}

.free-tag {
  color: var(--teal-700);
  font-weight: 700;
}

.grand-total {
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-900);
}

.grand-total strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--navy-900);
}

.approx-row {
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-500);
  margin-top: 3px;
}

.min-order-warning {
  background: var(--amber-100);
  color: var(--amber-900);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.bag-footer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========================
   CREW DETAILS FORM
   ======================== */
.cash-notice-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: var(--amber-100);
  border: 1px solid #fde68a;
  color: var(--amber-900);
  margin-bottom: 16px;
}

.cash-notice-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.cash-notice-card strong {
  font-size: 0.86rem;
}

.cash-notice-card p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.38;
}

.details-form .form-group {
  margin-bottom: 13px;
}

.details-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-700);
  margin-bottom: 5px;
}

.details-form .req {
  color: var(--danger);
}

.details-form .opt {
  font-weight: 500;
  color: var(--text-400);
}

.details-form input,
.details-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-900);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.details-form input:focus,
.details-form textarea:focus {
  border-color: var(--teal-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 420px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-error {
  margin: 4px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.compact-total-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-700);
}

.compact-total-strip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
}

/* ========================
   ORDER CONFIRMATION
   ======================== */
.order-success-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
  margin-bottom: 14px;
}

.success-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-ready-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
}

.order-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.order-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.copy-id-btn {
  border: 1px solid var(--teal-600);
  background: #fff;
  color: var(--teal-700);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-id-btn:hover {
  background: var(--teal-50);
}

.confirm-instruction {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--text-700);
}

.message-preview-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f8fafc;
}

.message-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #eef2f6;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-700);
}

.msg-total-pill {
  background: var(--navy-900);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.message-preview-text {
  margin: 0;
  padding: 12px 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-900);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 290px;
  overflow-y: auto;
}

.whatsapp-setup-hint {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.76rem;
}

.confirm-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-secondary-row {
  display: flex;
  gap: 8px;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lg {
  height: 46px;
  font-size: 0.92rem;
}

.btn-sm {
  height: 46px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.flex-1 {
  flex: 1;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--navy-800);
}

.btn-accent {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-accent:hover:not(:disabled) {
  background: var(--teal-700);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 168, 85, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-secondary {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
  color: var(--text-900);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text-700);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-ghost-danger {
  background: transparent;
  color: var(--danger);
  border-color: #fecaca;
}

.btn-ghost-danger:hover {
  background: var(--danger-bg);
}

/* ========================
   MODALS (Quick View & Orders History)
   ======================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(7, 21, 41, 0.62);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 0.18s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.product-modal-card {
  max-width: 440px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.pm-media {
  width: 100%;
  height: 270px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px;
  display: grid;
  place-items: center;
}

.pm-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pm-info {
  padding: 18px 20px 20px;
}

.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pm-category,
.pm-size {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.pm-category {
  background: var(--bg);
  color: var(--text-700);
}

.pm-size {
  background: var(--teal-50);
  color: var(--teal-700);
}

.pm-brand {
  margin: 0 0 2px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-700);
}

.pm-info h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.pm-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-900);
}

.pm-approx {
  font-size: 0.84rem;
  color: var(--text-500);
}

.pm-cash-hint {
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--text-500);
}

.pm-action .add-btn,
.pm-action .qty-stepper {
  height: 44px;
  font-size: 0.94rem;
}

/* Orders History Modal */
.orders-modal-card {
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.orders-modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orders-modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.orders-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  background: var(--surface-subtle);
}

.history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.history-id {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.history-total {
  font-weight: 800;
  color: var(--teal-700);
  font-size: 0.92rem;
}

.history-meta {
  font-size: 0.8rem;
  color: var(--text-700);
  margin-bottom: 10px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions .btn {
  padding: 7px 11px;
  font-size: 0.78rem;
}

/* ========================
   TOASTS
   ======================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--navy-900);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s ease-out;
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.footer-admin-link:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: var(--surface-subtle);
}

/* Elección de moneda de pago (DKK / EUR / USD) */
.pay-currency { border: 0; padding: 0; margin: 4px 0 0; }
.pay-currency legend { font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-option { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1.5px solid #d6dde6; border-radius: 12px; cursor: pointer; text-align: center; font-size: 0.85rem; background: #fff; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option strong { font-size: 1rem; }
.pay-option:has(input:checked) { border-color: #0f766e; background: #ecfdf5; box-shadow: 0 0 0 2px rgba(15,118,110,.15); }
.pay-option:has(input:focus-visible) { outline: 2px solid #0f766e; outline-offset: 2px; }
.pay-hint { margin: 8px 0 0; font-size: 0.8rem; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 10px; }

/* Bloque de texto para SEO (Quiénes somos) */
.seo-about { padding: 28px 0 8px; color: #334155; }
.seo-about h2 { font-size: 1.15rem; margin: 0 0 8px; color: #0B1F3A; }
.seo-about p { font-size: 0.92rem; line-height: 1.6; margin: 0 0 10px; max-width: 820px; }
