/* =========================================================
   COMPONENTS — Creaciones Alejandra
   Navbar, cards, botones, forms, tabs, swatches, carrito
   ========================================================= */

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 81, 127, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-xlight);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.btn-ghost:hover::after { transform: scaleX(1); }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

.btn-full { width: 100%; }

/* ===========================
   TOPBAR
   =========================== */
.topbar {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0.5rem var(--container-pad);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.topbar p { margin: 0; color: rgba(255,255,255,0.9); }

.topbar a { color: var(--color-primary-light); font-weight: 500; }

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

/* ===========================
   NAVBAR
   =========================== */
#nav-toggle { display: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--container-pad);
  gap: var(--space-4);
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

/* ===========================
   SEARCH PANEL (icon → dropdown below navbar)
   =========================== */
.navbar-search-panel {
  display: none;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-white);
  padding: 1.5rem 0 1.25rem;
  box-shadow: 0 8px 24px rgba(113, 63, 122, 0.08);
}

#search-toggle:checked ~ .navbar .navbar-search-panel {
  display: block;
  animation: searchSlide 0.22s ease;
}

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

.search-panel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-panel-row .search-bar-lg {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
}

.search-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--color-border-light);
  flex-shrink: 0;
}

.search-close-btn:hover {
  background: var(--color-bg-blush);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.search-suggestions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.search-suggestions span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.search-suggestions a {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--color-bg-blush);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.search-suggestions a:hover {
  background: var(--color-primary-xlight);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Active state for search icon button */
#search-toggle:checked ~ .navbar .search-trigger {
  background: var(--color-bg-blush);
  color: var(--color-primary);
}

/* Backdrop (clicking outside closes search) */
.search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  cursor: default;
}

#search-toggle:checked ~ .search-backdrop {
  display: block;
}

/* Icons */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: all var(--transition);
  position: relative;
}

.navbar-icon-btn:hover {
  background: var(--color-bg-blush);
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav drawer overlay (mobile) */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 36, 0.5);
  z-index: calc(var(--z-nav) - 1);
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#nav-toggle:checked ~ .nav-drawer-overlay { display: block; }

/* Slide-in drawer (mobile) */
.navbar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  z-index: calc(var(--z-nav) + 2);
  overflow-y: auto;
  flex-direction: column;
  display: flex;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 6px 0 32px rgba(45, 27, 36, 0.18);
  padding: 0 0 3rem;
  -webkit-overflow-scrolling: touch;
}

#nav-toggle:checked ~ .navbar .navbar-menu {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-blush);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drawer-logo img { height: 28px; width: auto; }

.drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  flex-shrink: 0;
}

.drawer-close:hover {
  background: var(--color-primary-xlight);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Nav items */
.nav-item {
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  min-height: 50px;
}

.nav-link:hover { color: var(--color-primary); }

.nav-link svg { transition: transform var(--transition); flex-shrink: 0; }

/* Mobile toggle */
.dropdown-toggle { display: none; }

.dropdown-toggle:checked ~ .nav-link svg { transform: rotate(180deg); }

/* Mobile subcategory image grid */
.mobile-subcat-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--color-bg-blush);
}

.dropdown-toggle:checked ~ .mobile-subcat-grid { display: grid; }

.mobile-subcat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
}

.mobile-subcat-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.mobile-subcat-card:hover img { transform: scale(1.03); }

.mobile-subcat-card span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
}

/* Mega menu hidden on mobile */
.mega-menu { display: none; }

/* Desktop nav — fila única unificada */
@media (min-width: 1024px) {
  /* Navbar se convierte en fila flex */
  .navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow-nav);
  }

  /* display:contents convierte navbar-top en elemento fantasma:
     sus hijos (logo, actions) pasan a ser hijos directos del flex de .navbar */
  .navbar-top.container {
    display: contents;
  }

  .nav-hamburger { display: none; }

  /* Logo: primer elemento a la izquierda */
  .navbar-logo {
    order: 1;
    padding: 0.85rem 0;
    margin-right: 2rem;
    flex-shrink: 0;
  }

  /* Nav: ocupa el espacio central */
  .navbar-menu {
    /* Reset mobile drawer styles */
    position: static;
    transform: none;
    transition: none;
    width: auto;
    max-width: none;
    height: auto;
    overflow-y: visible;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    /* Unified row layout */
    order: 2;
    flex: 1;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    /* Stretch to full navbar height — cierra el gap con el mega menu */
    align-self: stretch;
    align-items: stretch;
  }

  /* Nav items se estiran al alto del navbar */
  .nav-item,
  .nav-item--mega {
    display: flex;
    align-items: center;
  }

  /* Anula las restricciones de .container en el menú */
  .navbar-menu.container {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  /* Íconos: último elemento a la derecha */
  .navbar-actions {
    order: 3;
    padding: 0.85rem 0;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Panel de búsqueda ocupa fila completa debajo */
  .navbar-search-panel {
    order: 4;
    flex: 0 0 100%;
    border-top: 1px solid var(--color-border-light);
  }

  .nav-item { position: relative; }

  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
  }

  .nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
  }

  /* Dropdown desktop */
  .dropdown-toggle { display: none; }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: var(--space-3) 0;
    z-index: var(--z-nav);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
  }

  .nav-item:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    min-height: auto;
  }

  /* Hide mobile-only elements */
  .drawer-header { display: none; }
  .mobile-subcat-grid { display: none !important; }

  /* ===========================
     MEGA MENU (desktop)
     =========================== */
  .nav-item { border-bottom: none; }

  .nav-item--mega { position: static; }

  .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% - 1px); /* -1px sube el panel para tocar el navbar sin gap */
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 2px solid var(--color-primary-light);
    box-shadow: 0 16px 48px rgba(113, 63, 122, 0.13);
    z-index: var(--z-nav);
  }

  .nav-item--mega:hover .mega-menu {
    display: block;
    animation: megaSlide 0.22s ease;
  }

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

  .mega-menu-inner {
    display: flex;
    align-items: flex-start;
    padding: 1.75rem 0 2rem;
    gap: 0;
  }

  /* Izquierda: lista de subcategorías */
  .mega-col-links {
    width: 200px;
    flex-shrink: 0;
    padding-right: 1.75rem;
    border-right: 1px solid var(--color-border-light);
    margin-right: 2rem;
  }

  .mega-col-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.85rem;
  }

  .mega-cat-link {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.83rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: all var(--transition);
    border-bottom: 1px solid var(--color-border-light);
  }

  .mega-cat-link:hover {
    color: var(--color-primary);
    padding-left: 0.4rem;
  }

  .mega-cat-link:last-of-type { border-bottom: none; }

  .mega-cat-link--all {
    color: var(--color-primary);
    font-weight: 500;
    border-bottom: none;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }

  /* Derecha: tarjetas con fotos */
  .mega-col-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .mega-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform var(--transition);
  }

  .mega-card:hover { transform: translateY(-3px); }

  .mega-card-img {
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-blush);
  }

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

  .mega-card:hover .mega-card-img img { transform: scale(1.06); }

  .mega-card-label {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
  }
}

/* ===========================
   PRODUCT CARD
   =========================== */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  position: relative;
}

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

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-blush);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-card__body {
  padding: var(--space-4);
}

.product-card__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card__title a:hover { color: var(--color-primary); }

.product-card__price {
  margin-bottom: var(--space-3);
}

.product-card__swatches {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.product-card__btn {
  width: 100%;
}

/* ===========================
   COLOR SWATCHES
   =========================== */
.swatch {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  outline-offset: 2px;
}

.swatch:hover,
.swatch.active {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
}

.swatch--lg {
  width: 32px;
  height: 32px;
}

/* Size pills */
.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
  color: var(--color-text-muted);
}

.size-pill:hover,
.size-pill.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-xlight);
}

/* ===========================
   FORMULARIOS
   =========================== */
.form-group {
  position: relative;
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--transition);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 81, 127, 0.12);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E7B87' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.form-check-label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Radio buttons */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 56px;
}

.form-radio:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg-blush);
}

.form-radio input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.form-radio input[type="radio"]:checked ~ * { color: var(--color-primary); }

/* Error state */
.form-input.error,
.form-select.error {
  border-color: #e74c3c;
}

.form-error {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: var(--space-1);
}

/* ===========================
   TABS CSS-ONLY
   =========================== */
.tabs { width: 100%; }

.tab-inputs { display: none; }

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: var(--space-6);
  gap: 0;
  overflow-x: auto;
}

.tab-label {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tab-label:hover { color: var(--color-primary); }

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

#tab1:checked ~ .tabs .tab-label[for="tab1"],
#tab2:checked ~ .tabs .tab-label[for="tab2"],
#tab3:checked ~ .tabs .tab-label[for="tab3"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

#tab1:checked ~ .tabs #panel1,
#tab2:checked ~ .tabs #panel2,
#tab3:checked ~ .tabs #panel3 {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   QUANTITY CONTROL
   =========================== */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 44px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--color-bg-blush);
  color: var(--color-primary);
}

.qty-input {
  width: 48px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  outline: none;
  background: none;
  color: var(--color-text);
  pointer-events: none;
}

/* ===========================
   IMAGE GALLERY (CSS lightbox)
   =========================== */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-blush);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--color-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .gallery {
    flex-direction: row-reverse;
  }

  .gallery-main {
    flex: 1;
  }

  .gallery-thumbs {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    padding-right: var(--space-2);
  }

  .gallery-thumb {
    width: 80px;
    height: 80px;
  }
}

/* ===========================
   PAYMENT METHOD CARDS
   =========================== */
.payment-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-option:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg-blush);
}

.payment-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-xlight);
}

.payment-option-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.payment-option-body {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

.payment-option.active .payment-option-body {
  display: block;
}

/* Bank data box */
.bank-data {
  background: var(--color-bg-blush);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

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

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

.bank-data-label { color: var(--color-text-muted); font-weight: 300; }

.bank-data-value { font-weight: 500; }

/* ===========================
   ORDER SUMMARY CARD
   =========================== */
.order-summary {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.order-summary-header {
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-blush);
  border-bottom: 1px solid var(--color-border-light);
}

.order-summary-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

.order-summary-body { padding: var(--space-5); }

.order-summary-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.order-summary-item:last-of-type { border-bottom: none; }

.order-summary-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.order-summary-item-info {
  flex: 1;
}

.order-summary-item-title {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: var(--space-1);
}

.order-summary-item-variant {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.order-summary-item-price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.order-summary-totals {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: var(--space-2) 0;
  color: var(--color-text-muted);
}

.order-summary-row.total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
}

.order-summary-row.total .price--sale {
  font-size: 1.1rem;
}

/* ===========================
   PROGRESS STEPS (Checkout)
   =========================== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
  padding: var(--space-4) 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  flex: 1;
  max-width: 160px;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(50% + 18px);
  top: 18px;
  width: calc(100% - 36px);
  height: 2px;
  background: var(--color-border);
}

.progress-step.done:not(:last-child)::after,
.progress-step.active:not(:last-child)::after {
  background: var(--color-primary-light);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  background: var(--color-white);
  z-index: 1;
  transition: all var(--transition);
}

.progress-step.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(245, 81, 127, 0.2);
}

.progress-step.done .step-circle {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: none;
}

.progress-step.active .step-label {
  color: var(--color-primary);
  display: block;
}

@media (min-width: 640px) {
  .step-label { display: block; }
}

/* ===========================
   NOTIFICATION / TOAST
   =========================== */
.notification {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.notification--info {
  background: var(--color-primary-xlight);
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-hover);
}

.notification--success {
  background: #f0faf0;
  border: 1px solid var(--color-success);
  color: #4a7c59;
}

/* ===========================
   TAG chips
   =========================== */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-blush);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--color-primary-xlight);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}
