/* ============================================
   AFFIRMATION SWIMWEAR — Global Stylesheet
   Palette:
     Background : #F2F2F2
     Purple     : #C793E2 (header/footer)
     Yellow     : #D6C90B (buttons, accents)
     Text Dark  : #353535
     Text Light : #FFFFFF
   Fonts: Quicksand (primary), Roboto (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F2F2F2;
  --purple:    #C793E2;
  --purple-80: rgba(199, 147, 226, 0.80);
  --purple-60: rgba(199, 147, 226, 0.60);
  --yellow:    #D6C90B;
  --yellow-h:  #b8ac09;
  --dark:      #353535;
  --white:     #FFFFFF;
  --card-bg:   #FFFFFF;
  --border:    #e0e0e0;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(53,53,53,.10);
  --transition: .22s ease;
  --font-main: 'Quicksand', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  padding: 8px 40px;
  font-size: .85rem;
  font-weight: 600;
  position: relative;
}
.announcement-bar .close-bar {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--dark); font-size: 1.1rem;
  cursor: pointer; line-height: 1;
}

/* ════════════════════════════════════════════
   HEADER — Grid: hamburger | logo | search | actions
   ════════════════════════════════════════════ */
header {
  background: var(--white);
  padding: 0 28px;
  height: 68px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-bottom: 1px solid var(--border);
}

.hamburger {
  grid-column: 1;
  background: none; border: none;
  color: var(--purple); font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--purple-60); }

/* Logo: dos imágenes lado a lado (sin texto) */
.header-logo {
  grid-column: 2;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; white-space: nowrap;
  height: 100%;
}
.header-logo-img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.header-search {
  grid-column: 3;
  display: flex;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  width: 100%; max-width: 520px;
  margin: 0 auto;
  border: 2px solid var(--purple);
}
.header-search input {
  flex: 1; border: none; outline: none;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: .9rem; color: var(--dark);
}
.header-search button {
  background: var(--yellow);
  border: none; padding: 8px 16px;
  cursor: pointer; color: var(--dark); font-size: 1rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--yellow-h); }

.header-actions {
  grid-column: 4;
  display: flex; align-items: center; gap: 14px;
}
.header-actions .icon-btn {
  position: relative;
  background: none; border: none;
  color: var(--purple); font-size: 1.3rem;
  cursor: pointer;
}
.icon-btn .badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--yellow); color: var(--dark);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Ícono de búsqueda — visible solo en móvil */
.mobile-search-btn { display: none; }

/* ── Dropdown pills (Currency / Lang) ── */
.hdr-dropdown {
  position: relative;
  display: inline-flex; align-items: center;
}
.hdr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: .82rem; font-weight: 600;
  padding: 5px 11px; border-radius: 20px;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.hdr-pill:hover, .hdr-pill.open { background: var(--purple-60); }
.hdr-chevron {
  transition: transform .2s;
  font-size: .65rem !important;
}
.hdr-pill.open .hdr-chevron { transform: rotate(180deg); }

.hdr-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  min-width: 190px; z-index: 500;
  display: none; padding: 6px 0; list-style: none;
}
.hdr-menu.open { display: block; }
.hdr-menu li button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none;
  text-align: left; padding: 9px 16px;
  font-family: var(--font-main);
  font-size: .85rem; color: var(--dark);
  cursor: pointer; transition: background var(--transition);
}
.hdr-menu li button:hover { background: var(--bg); }
.hdr-menu li button.selected { color: var(--purple); font-weight: 700; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 10px 32px;
  font-size: .82rem; color: #888;
}
.breadcrumb a { color: var(--purple); }
.breadcrumb span { margin: 0 6px; }

main { flex: 1; }

/* ────────────────────────────────
   HOME — Hero Slider
──────────────────────────────── */
.hero-slider {
  position: relative;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  margin: 20px 32px;
  overflow: hidden;
  min-height: 360px;
  background: #fff;
  display: flex; align-items: center;
}
.slider-track {
  display: flex; width: 100%;
  transition: transform .5s ease;
}
.slide { min-width: 100%; display: flex; align-items: center; }
.slide-img {
  flex: 1; min-height: 340px;
  background: var(--purple-60);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: #aaa;
}
.slide-img img { width: 100%; height: 340px; object-fit: cover; }
.slide:nth-child(1) .slide-img img { object-position: center 45%; }  /* rainbow */
.slide:nth-child(2) .slide-img img { object-position: center 80%; }  /* eye print */
.slide:nth-child(3) .slide-img img { object-position: center 45%; }  /* tropical close-up */
.slide-content {
  flex: 0 0 340px;
  padding: 40px 36px; text-align: center;
}
.slide-eyebrow {
  font-size: .8rem; font-weight: 700;
  color: var(--purple); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 10px;
}
.slide-title {
  font-size: 2rem; font-weight: 700;
  color: var(--dark); line-height: 1.2; margin-bottom: 8px;
}
.slide-sub { font-size: 1rem; color: #666; margin-bottom: 24px; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none; width: 38px; height: 38px;
  border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition); z-index: 2;
}
.slider-btn:hover { background: var(--yellow); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots {
  display: flex; justify-content: center; gap: 8px; padding: 14px 0;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: #ccc; cursor: pointer;
  transition: background var(--transition);
}
.slider-dots button.active { background: var(--purple); }

/* ── About Section ── */
.about-section {
  background: var(--purple-60);
  border-radius: var(--radius);
  margin: 0 32px 28px;
  display: flex; align-items: center;
  gap: 0; overflow: hidden;
}
.about-img {
  flex: 0 0 58%; min-height: 400px;
  background: var(--purple-80);
  display: flex; align-items: center; justify-content: center;
}
.about-img img { width: 100%; height: 400px; object-fit: cover; object-position: center 20%; }
.about-text {
  flex: 1; padding: 40px 32px; text-align: center;
}
.about-text .brand-logo-sm {
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  font-size: 1.3rem; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
.about-text .brand-logo-sm img { height: 36px; border-radius: 50%; }
.about-text h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 12px;
}
.about-text p {
  font-family: var(--font-body);
  font-size: .9rem; color: var(--dark); line-height: 1.6;
}

/* ────────────────────────────────
   PRODUCT CARDS & GRID
──────────────────────────────── */
.section-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--yellow); text-align: center;
  padding: 28px 0 18px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 0 32px 32px;
}
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(199,147,226,.3);
}
.card-img-wrap {
  position: relative;
  border: 2px solid var(--yellow);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; background: #eee;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.card-img-wrap img { width: 100%; height: 220px; object-fit: cover; }
.card-img-placeholder { color: #bbb; font-size: .8rem; text-align: center; }

.badge-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--yellow); color: var(--dark);
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.btn-wishlist {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.85);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--purple);
  transition: background var(--transition);
}
.btn-wishlist:hover { background: var(--yellow); }

.card-body {
  background: var(--purple-60);
  padding: 12px 14px 14px;
  flex: 1; display: flex; flex-direction: column;
}
.stock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-80); color: var(--white);
  font-size: .75rem; font-weight: 600;
  padding: 3px 12px; border-radius: 20px; margin-bottom: 8px;
}
.stock-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
}
.card-title {
  font-size: .95rem; font-weight: 700;
  color: var(--dark); margin-bottom: 2px;
}
.card-price { font-size: .9rem; color: var(--dark); margin-bottom: 8px; }
.card-colors { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.color-dot {
  width: 22px; height: 22px; border-radius: 5px;
  border: 2px solid rgba(0,0,0,.12); cursor: pointer;
}
.see-sizes {
  font-size: .75rem; color: var(--dark);
  font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  margin-bottom: 8px;
  background: none; border: none; padding: 0;
}
.see-sizes:hover { text-decoration: underline; }

/* ── Botones de talla en tarjeta ── */
.card-sizes {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.card-size-btn {
  min-width: 36px; height: 34px; padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.25);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}
.card-size-btn:hover:not(:disabled) {
  border-color: var(--yellow); background: var(--yellow);
}
.card-size-btn.selected {
  background: var(--yellow); border-color: var(--yellow-h);
  color: var(--dark);
  box-shadow: 0 0 0 2px rgba(214,201,11,.4);
}
.card-size-btn.size-out {
  opacity: .38; cursor: not-allowed; text-decoration: line-through;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 7px;
  font-family: var(--font-main);
  font-weight: 700; font-size: .88rem;
  border: none; border-radius: 30px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 10px 22px;
}
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-h); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: #b87dd4; }
.btn-outline { background: transparent; border: 2px solid var(--yellow); color: var(--dark); }
.btn-outline:hover { background: var(--yellow); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.view-more-wrap { text-align: center; padding: 0 32px 36px; }

/* ════════════════════════════════════════════
   BEST SELLING CAROUSEL (solo activo en móvil)
   ════════════════════════════════════════════ */
.best-selling-wrap {
  position: relative;
}
.carousel-arrow {
  display: none; /* oculto en desktop; el grid normal no necesita flechas */
}

/* ────────────────────────────────
   STORE PAGE
──────────────────────────────── */
.store-hero {
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  margin: 16px 32px; padding: 28px 32px;
  text-align: center; background: var(--white);
}
.store-hero h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.store-hero p  { color: #666; font-size: .9rem; margin-top: 4px; }

.store-layout {
  display: flex; gap: 24px;
  padding: 0 32px 40px; align-items: flex-start;
}
.filter-sidebar {
  flex: 0 0 200px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
}
.filter-sidebar h4 {
  font-size: .85rem; font-weight: 700; color: var(--dark);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em;
}
.filter-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

/* Línea amarilla separadora entre secciones de filtro */
.filter-divider {
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 4px 0 20px;
}
.filter-list label {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; cursor: pointer; color: var(--dark);
}
.filter-list input[type="checkbox"] { accent-color: var(--yellow); width: 14px; height: 14px; }
.filter-list a { font-size: .82rem; color: var(--dark); font-weight: 600; cursor: pointer; }
.filter-list a:hover { color: var(--purple); }
.price-range { margin-bottom: 20px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--yellow); }
.price-display {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: var(--dark); margin-top: 4px;
}
.store-products { flex: 1; }
.store-toolbar {
  display: flex; justify-content: space-between;
  gap: 12px; align-items: center; margin-bottom: 16px;
}
.store-toolbar select {
  font-family: var(--font-main);
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .83rem; background: var(--white); cursor: pointer;
  height: 36px;
  box-sizing: border-box;
}

/* Botón "Filter" — oculto en desktop, visible solo en móvil */
.filter-toggle-btn {
  display: none;
  align-items: center; gap: 7px;
  font-family: var(--font-main);
  font-weight: 700; font-size: .83rem;
  background: var(--purple);
  color: var(--white);
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  height: 36px;
  box-sizing: border-box;
  cursor: pointer;
}

/* Botón cerrar (X) del panel de filtros — oculto en desktop */
.filter-close-btn {
  display: none;
}

/* Overlay oscuro detrás del panel de filtros móvil */
.filter-overlay {
  display: none;
}
.pagination {
  display: flex; justify-content: center;
  gap: 8px; padding: 24px 0 8px; flex-wrap: wrap;
}
.pagination button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  font-family: var(--font-main); font-size: .88rem;
  transition: all var(--transition);
}
.pagination button.active,
.pagination button:hover { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }

/* ────────────────────────────────
   PRODUCT DETAIL
──────────────────────────────── */
.product-detail {
  display: flex; gap: 40px;
  padding: 20px 32px 40px; align-items: flex-start;
}
.product-gallery {
  flex: 0 0 42%; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
}
.product-gallery img { width: 100%; object-fit: cover; }
.product-info { flex: 1; }
.product-info h1 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.product-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.size-label { font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.size-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.size-btn {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  font-family: var(--font-main); font-size: .82rem; font-weight: 600;
  transition: all var(--transition);
}
.size-btn:hover, .size-btn.active { background: var(--yellow); border-color: var(--yellow); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-control {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 30px; overflow: hidden;
  width: fit-content;
}
.qty-control button {
  width: 34px; height: 34px; border: none;
  background: var(--white); font-size: 1.1rem;
  cursor: pointer; transition: background var(--transition);
}
.qty-control button:hover { background: var(--yellow); }
.qty-control button:disabled {
  opacity: .4;
  cursor: not-allowed;
  background: var(--white);
}
.qty-control button:disabled:hover { background: var(--white); }
.qty-control span { width: 36px; text-align: center; font-weight: 600; font-size: .9rem; }
.product-extras { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; font-size: .82rem; color: #555; }
.product-extras a { color: var(--purple); font-weight: 600; }
.payment-badges { display: flex; align-items: center; gap: 8px; margin: 10px 0 20px; font-size: .78rem; color: #888; }
.product-description { padding: 28px 32px 40px; border-top: 1.5px solid var(--border); margin: 0 32px; }
.product-description h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.product-description p { font-family: var(--font-body); font-size: .9rem; color: #555; line-height: 1.7; margin-bottom: 10px; }
.product-description a { color: var(--purple); font-weight: 600; }
.size-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .85rem; }
.size-table th { background: var(--purple-60); padding: 8px 12px; text-align: center; font-weight: 700; color: var(--dark); border: 1px solid var(--border); }
.size-table td { padding: 7px 12px; text-align: center; border: 1px solid var(--border); font-family: var(--font-body); }
.related-section { padding: 10px 32px 40px; }
.related-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 18px; }

/* ════════════════════════════════════════════
   FIX: tabla de medidas (size-table) en móvil
   Los valores en pulgadas (ej. "31.5–33.9") son
   más largos que los de cm (ej. "80–86") y fuerzan
   overflow horizontal en pantallas angostas.
   Permitimos wrap de texto y reducimos tamaño.
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
  .product-description .size-table {
    table-layout: fixed;
    width: 100% !important;
    max-width: 100% !important;
  }
  .product-description .size-table th,
  .product-description .size-table td {
    padding: 6px 4px;
    font-size: .72rem;
    white-space: normal;
    word-break: break-word;
  }
}

/* ────────────────────────────────
   CART PAGE
──────────────────────────────── */
.cart-layout { display: flex; gap: 28px; padding: 20px 32px 40px; align-items: flex-start; }
.cart-items { flex: 1; }
.cart-items h1 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.cart-item-check { width: 18px; height: 18px; accent-color: var(--yellow); flex-shrink: 0; }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; background: #eee; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .9rem; font-weight: 700; color: var(--dark); }
.cart-item-info p  { font-size: .8rem; color: #777; margin-top: 2px; }
.cart-item-price { font-size: .95rem; font-weight: 700; white-space: nowrap; }
/* Trash: pastilla roja pequeña, no un icono suelto */
.btn-trash {
  background: #fff0f0;
  border: 1.5px solid #f5a0a0;
  border-radius: 8px;
  color: #c00;
  font-size: .9rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.btn-trash:hover { background: #ffe0e0; border-color: #c00; }
.cart-summary {
  flex: 0 0 300px; background: var(--white);
  border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); position: sticky; top: 80px;
}
.cart-summary h3 { font-size: 1rem; font-weight: 700; color: var(--dark); display: flex; justify-content: space-between; margin-bottom: 6px; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; padding: 14px 0; border-top: 1.5px solid var(--border); margin-bottom: 6px; }
.cart-summary .tax-note { font-size: .75rem; color: #888; margin-bottom: 18px; }
.cart-summary .zelle-info { font-size: .8rem; color: #555; text-align: center; margin-top: 8px; }

/* ── Shipping notice en cart summary ── */
.shipping-notice-cart {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e1;
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: .8rem;
  color: var(--dark);
  line-height: 1.5;
}
.shipping-notice-cart i {
  color: var(--yellow-h);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.shipping-notice-cart p { margin: 0; }
.shipping-notice-cart strong { font-weight: 700; }

/* ── Cart Drawer ── */
.cart-drawer {
  position: fixed; right: 0; top: 0;
  width: 340px; height: 100vh; background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,.18);
  z-index: 200; transform: translateX(100%);
  transition: transform .3s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  background: var(--purple); color: var(--white);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 1.1rem;
}
.drawer-header button { background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-footer { padding: 16px 20px; border-top: 1.5px solid var(--border); }

/* ────────────────────────────────
   CHECKOUT
──────────────────────────────── */
.checkout-layout { display: flex; gap: 32px; padding: 24px 32px 40px; align-items: flex-start; }
.checkout-form { flex: 1; }
.checkout-form h2 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.checkout-order-summary { flex: 0 0 310px; background: var(--white); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.checkout-order-summary h3 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.shopify-btn { background: var(--dark); color: var(--white); border-radius: 10px; padding: 14px 20px; font-size: 1rem; font-weight: 700; width: 100%; border: none; cursor: pointer; font-family: var(--font-main); margin-bottom: 14px; transition: background var(--transition); }
.shopify-btn:hover { background: #1a1a1a; }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #aaa; font-size: .82rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-main); font-size: .88rem; transition: border-color var(--transition); }
.form-group input:focus { outline: none; border-color: var(--purple); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.payment-card-box { background: var(--dark); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px; }
.payment-card-box .form-group input { background: #2a2a2a; border-color: #444; color: var(--white); }
.payment-card-box label { color: #aaa; }

/* ── Shipping notice en checkout (strong) ── */
.shipping-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: .82rem;
  color: var(--dark);
  line-height: 1.5;
}
.shipping-notice i { color: var(--yellow-h); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.shipping-notice-title { font-weight: 700; margin-bottom: 2px; font-size: .85rem; }
.shipping-notice-text { margin: 0; }
.shipping-notice-strong {
  border-color: #e6a800;
  background: #fffbea;
}
.shipping-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: var(--dark);
  margin-bottom: 16px;
  cursor: pointer;
  line-height: 1.4;
}
.shipping-confirm-check input[type="checkbox"] {
  accent-color: var(--yellow);
  width: 15px; height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ────────────────────────────────
   FOOTER
──────────────────────────────── */
footer { background: var(--purple); color: var(--white); padding: 40px 32px 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 28px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; font-size: .85rem; }
.footer-col ul li a:hover { text-decoration: underline; }
.footer-col .contact-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 8px; }
.footer-socials { display: flex; gap: 10px; margin-top: 10px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--yellow); color: var(--dark); border-radius: 8px; font-size: 1rem; transition: background var(--transition); }
.footer-socials a:hover { background: var(--yellow-h); }
.footer-bottom { text-align: center; font-size: .78rem; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }

/* ────────────────────────────────
   MOBILE NAV DRAWER
──────────────────────────────── */
.mobile-nav {
  position: fixed; left: 0; top: 0;
  width: 280px; height: 100vh; background: var(--white);
  z-index: 300; transform: translateX(-100%);
  transition: transform .3s ease; padding: 24px 20px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 299; display: none; }
.mobile-overlay.open { display: block; }
.mobile-nav .close-nav { background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-bottom: 20px; }
.mobile-nav a {
  display: block; padding: 11px 0;
  font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid var(--border); color: var(--dark);
}

/* ── Mobile Search Panel ── */
.mobile-search-panel {
  position: fixed; left: 0; top: 0; right: 0;
  background: var(--purple);
  z-index: 310;
  transform: translateY(-100%);
  transition: transform .3s ease;
  padding: 18px 16px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.mobile-search-panel.open { transform: translateY(0); }
.mobile-search-panel .close-nav {
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer; margin-bottom: 14px;
  color: var(--white);
  display: flex;
}

.mobile-nav-search {
  display: flex;
  align-items: stretch;
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
}
.mobile-nav-search button {
  order: -1;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.mobile-nav-search button:hover { background: var(--yellow-h); }
.mobile-nav-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 16px;
  font-family: var(--font-main);
  font-size: .92rem;
  color: var(--dark);
  background: transparent;
}

.mobile-search-panel .mobile-nav-search {
  margin-bottom: 0;
}

.mobile-nav-search-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  text-decoration: none;
}
.mobile-nav-search-link:hover { color: var(--purple); }

.mobile-nav-divider { height: 1px; background: var(--border); margin: 12px 0; }
.mobile-nav-section { padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-nav-label { font-size: .78rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.mobile-nav-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-opt { background: var(--bg); border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 14px; font-family: var(--font-main); font-size: .82rem; font-weight: 600; color: var(--dark); cursor: pointer; transition: all var(--transition); }
.mobile-opt:hover { border-color: var(--purple); color: var(--purple); }
.mobile-opt.active { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  header {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    min-height: 58px;
    height: auto !important;
  }
  .hamburger { order: 1; flex-shrink: 0; }

  .header-logo {
    order: 2;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: auto;
  }
  .header-logo-img { height: 32px; max-height: 32px; flex-shrink: 1; }
  .logo-wordmark { max-width: 38vw; width: auto; object-fit: contain; }
  .logo-icon { width: auto; max-width: 32px; }

  .header-actions { order: 3; gap: 10px; flex-shrink: 0; }
  .header-search { display: none !important; }
  .mobile-search-btn { display: flex; }
  .hdr-dropdown { display: none; }

  /* Hero */
  .hero-slider { margin: 12px 16px; flex-direction: column; min-height: auto; }
  .slide { flex-direction: column; }
  .slide-img { min-height: 200px; width: 100%; }
  .slide-img img { height: 200px; }
  .slide:nth-child(1) .slide-img img { object-position: center 15%; }
  .slide:nth-child(2) .slide-img img { object-position: center 85%; }
  .slide:nth-child(3) .slide-img img { object-position: center 35%; }
  .slide-content { flex: none; width: 100%; padding: 24px 20px 28px; text-align: center; }
  .slide-title { font-size: 1.5rem; }

  /* About */
  .about-section { flex-direction: column; margin: 0 16px 20px; }
  .about-img { width: 100%; min-height: 180px; }

  /* ── Grilla de productos: 2 columnas compactas ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px 24px;
    gap: 10px;
    background: transparent;
  }
  /* Dentro de store-layout el padding ya viene del contenedor — no duplicar */
  .store-layout .products-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .products-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Borde amarillo perimetral con box-shadow — no afecta el layout */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .product-card {
    border-radius: 10px;
    box-shadow: 0 0 0 1.5px var(--yellow);
  }

  /* Imagen cuadrada (aspect-ratio 1:1) */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-img-wrap {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px 10px 0 0;
    border: none;
  }
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Card body más compacto */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-body {
    padding: 8px 9px 10px;
  }

  /* Stock pill */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .stock-pill {
    font-size: .65rem;
    padding: 2px 8px;
    margin-bottom: 5px;
  }
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .stock-pill .dot {
    width: 6px; height: 6px;
  }

  /* Nombre (máx 2 líneas) */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-title {
    font-size: .78rem;
    line-height: 1.2;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Precio */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-price {
    font-size: .76rem;
    margin-bottom: 5px;
  }

  /* Colores */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-colors {
    gap: 4px;
    margin-bottom: 5px;
  }
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .color-dot {
    width: 16px; height: 16px; border-radius: 4px;
  }

  /* "See more sizes" */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .see-sizes {
    font-size: .65rem;
    margin-bottom: 5px;
  }

  /* Botones de talla — mantienen estilo original, solo tamaño reducido */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-sizes {
    gap: 3px;
    margin-bottom: 6px;
  }
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .card-size-btn {
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    font-size: .64rem;
    border-radius: 8px;
  }

  /* Badge NEW */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .badge-new {
    font-size: .60rem;
    padding: 2px 7px;
    top: 6px; left: 6px;
  }

  /* Wishlist */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .btn-wishlist {
    width: 24px; height: 24px;
    font-size: .76rem;
    top: 5px; right: 5px;
  }

  /* Botón Add to Cart — mantiene border-radius: 30px y estética original */
  .products-grid:not(#bestSellingGrid):not(#suggestGrid) .btn-full {
    padding: 8px 10px;
    font-size: .78rem;
  }

  /* ── Best Selling: carrusel 1 tarjeta centrada ── */
  #bestSellingGrid, #suggestGrid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0;
    scrollbar-width: none;
  }
  #bestSellingGrid::-webkit-scrollbar, #suggestGrid::-webkit-scrollbar { display: none; }
  #bestSellingGrid .product-card, #suggestGrid .product-card {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    scroll-snap-align: center;
    margin: 0 16px;
    box-sizing: border-box;
  }
  #bestSellingGrid .card-img-wrap, #suggestGrid .card-img-wrap { min-height: 200px; aspect-ratio: unset; }
  #bestSellingGrid .card-img-wrap img, #suggestGrid .card-img-wrap img { height: 210px; width: 100%; object-fit: cover; }

  .best-selling-wrap { padding: 0; }
  .carousel-arrow {
    display: flex;
    position: absolute;
    top: 140px;
    z-index: 5;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 1rem;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }

  /* Store */
  .store-layout { flex-direction: column; padding: 0 16px 32px; }
  .filter-sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    background: var(--white);
    z-index: 320;
    overflow-y: auto;
    padding: 24px 20px 32px;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform .3s ease;
  }
  .filter-sidebar.open { transform: translateY(0); }
  .filter-close-btn {
    display: flex;
    align-items: center; justify-content: center;
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
  }
  .filter-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 319;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .filter-overlay.open { opacity: 1; pointer-events: auto; }
  .filter-sidebar.open #filterForm { margin-top: 36px; }
  .filter-toggle-btn { display: flex; }

  /* Product detail */
  .product-detail { flex-direction: column; padding: 12px 16px 32px; }
  .product-gallery { width: 100%; }

  /* Cart */
  .cart-layout { flex-direction: column; padding: 12px 16px 32px; }
  .cart-summary { width: 100%; position: static; padding: 16px 14px; }

  .cart-item {
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-start;
    padding: 12px;
    position: static;
  }
  .cart-item-check { order: 1; margin-top: 4px; flex-shrink: 0; }
  .cart-item-img   { order: 2; width: 68px; height: 68px; flex-shrink: 0; }
  .cart-item-info  { order: 3; flex: 1 1 0; min-width: 0; }
  .cart-item-info h4 { font-size: .85rem; white-space: normal; }
  .cart-item-price {
    order: 4;
    flex: 1;
    text-align: right;
    font-size: .9rem;
    align-self: center;
  }
  .btn-trash {
    order: 5;
    position: static;
    width: 32px; height: 32px;
    font-size: .85rem;
    align-self: center;
  }

  /* Checkout */
  .checkout-layout { flex-direction: column; padding: 12px 16px 32px; }
  .checkout-order-summary { width: 100%; position: static; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Misc */
  .breadcrumb { padding: 8px 16px; }
  .store-hero { margin: 12px 16px; }
  .related-section, .product-description { padding: 16px 16px 28px; margin: 0; }
  .view-more-wrap { padding: 24px 16px 28px; }
  .section-title { padding: 20px 0 14px; }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 16px 24px;
    gap: 10px;
  }

  .shipping-notice-cart {
    font-size: .78rem;
    padding: 9px 10px;
  }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 20px; }
  .store-layout .products-grid { padding-left: 0; padding-right: 0; }
  .slide-title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ────────────────────────────────
   GRID ROW SEPARATOR (línea amarilla)
──────────────────────────────── */
.grid-row-sep {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 4px 0;
}

.sep-2 { display: none; }
.sep-3 { display: block; }

@media (max-width: 768px) {
  .sep-3 { display: none; }
  .sep-2 { display: block; }
}

/* ── Botón contacto admin ── */
.btn-contact {
  background: var(--purple-60); border: 1.5px solid #7B4FA6; border-radius: 20px;
  padding: 5px 14px; font-family: var(--font-main);
  font-size: .78rem; font-weight: 700; color: #7B4FA6;
  cursor: pointer; transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-contact:hover { background: #7B4FA6; color: #fff; }

/* ── Contact Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 26px 26px 22px;
}
.modal-box h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 4px; display: flex; align-items: center; gap: 10px;
}
.modal-box h3 i { color: #7B4FA6; }
.modal-sub { font-size: .8rem; color: #888; margin-bottom: 18px; }
.modal-box .form-group { margin-bottom: 14px; }
.modal-box label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--dark); margin-bottom: 5px;
}
.modal-box select, .modal-box input, .modal-box textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .87rem;
  background: var(--bg); color: var(--dark);
}
.modal-box select:focus, .modal-box input:focus, .modal-box textarea:focus {
  outline: none; border-color: var(--purple); background: var(--white);
}
.modal-box textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
}
.modal-noemail {
  background: #fff8e1; border-left: 4px solid #D6C90B;
  padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: .85rem;
  color: #5b4d00; line-height: 1.5;
}
#contactMsg { font-size: .82rem; margin-top: 4px; display: none; }

/* ════════════════════════════════════════════
   ACCOUNT PAGE
   ════════════════════════════════════════════ */

/* ── Account Layout ── */
.account-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.account-sidebar {
  flex: 0 0 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.account-sidebar .user-pill {
  background: var(--purple);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-sidebar .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.account-sidebar .user-info p:first-child {
  font-weight: 700; font-size: .9rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}
.account-sidebar .user-info p:last-child {
  font-size: .72rem; color: rgba(255,255,255,.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}
.account-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  font-size: .87rem; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a i { width: 18px; text-align: center; color: var(--purple); font-size: .9rem; }
.account-nav a:hover { background: var(--bg); }
.account-nav a.active { background: var(--purple-60); color: var(--dark); font-weight: 700; }
.account-nav a.active i { color: var(--dark); }
.account-nav a.danger { color: #c00; }
.account-nav a.danger i { color: #c00; }
.account-nav a.danger:hover { background: #fff5f5; }
.account-nav .nav-divider {
  padding: 6px 18px;
  font-size: .68rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.account-nav a.admin-link i { color: #D6C90B; }
.account-nav a.admin-link:hover { background: #fffde7; }
.account-nav a.admin-link.active { background: #fffde7; }

/* ── Main Content ── */
.account-main { flex: 1; min-width: 0; }

.account-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px;
  margin-bottom: 20px;
}
.account-card-title {
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.account-card-title i { color: var(--purple); }

/* ── Stats row ── */
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--purple-60);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-align: center;
}
.stat-box .num { font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.stat-box .lbl { font-size: .75rem; color: #666; margin-top: 2px; }

/* ── Quick actions grid ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.qa-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--yellow);
  border: none; border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-main); font-weight: 700;
  font-size: .87rem; color: var(--dark);
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.qa-btn:hover { background: var(--yellow-h); transform: translateY(-2px); }
.qa-btn i { font-size: 1.1rem; width: 22px; text-align: center; }

/* ── Orders table ── */
.orders-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.orders-table thead tr { background: var(--purple-60); }
.orders-table th {
  padding: 11px 14px; text-align: left;
  font-weight: 700; color: var(--dark);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--bg); }

.order-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
}
.status-pending   { background: #fff3cd; color: #856404; }
.status-paid      { background: #cfe2ff; color: #084298; }
.status-confirmed { background: #d1e7dd; color: #0a5230; }
.status-shipped   { background: #cfe2ff; color: #084298; }
.status-delivered { background: #d1e7dd; color: #0a5230; }
.status-cancelled { background: #f8d7da; color: #842029; }

.btn-view-order {
  background: var(--yellow); border: none; border-radius: 20px;
  padding: 5px 14px; font-family: var(--font-main);
  font-size: .78rem; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: background var(--transition);
  text-decoration: none;
}
.btn-view-order:hover { background: var(--yellow-h); }

.btn-deliver {
  background: #7B4FA6; border: none; border-radius: 20px;
  padding: 5px 14px; font-family: var(--font-main);
  font-size: .78rem; font-weight: 700; color: #fff;
  cursor: pointer; transition: background var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn-deliver:hover { background: #5e3a80; }
.btn-deliver:disabled { opacity: .5; cursor: not-allowed; }

/* ── Admin stats ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.admin-stat {
  background: var(--purple-60);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.admin-stat .num { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.admin-stat .lbl { font-size: .72rem; color: #666; margin-top: 2px; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center;
}
.filter-bar select, .filter-bar input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .85rem;
  background: var(--bg); color: var(--dark);
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none; border-color: var(--purple);
}

/* ── Form styles ── */
.account-form .form-row { display: flex; gap: 14px; }
.account-form .form-row .form-group { flex: 1; }
.account-form .form-group { margin-bottom: 16px; }
.account-form .form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--dark); margin-bottom: 5px;
}
.account-form .form-group input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .88rem;
  transition: border-color var(--transition);
  background: var(--bg);
}
.account-form .form-group input:focus {
  outline: none; border-color: var(--purple);
  background: var(--white);
}
.form-hint { font-size: .75rem; color: #888; margin-top: 4px; }

/* ── Password toggle ── */
.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { padding-right: 42px !important; width: 100%; }
.pass-toggle {
  position: absolute; right: 12px;
  background: none; border: none;
  color: #aaa; cursor: pointer;
  font-size: .95rem; padding: 0;
  display: flex; align-items: center;
  transition: color var(--transition);
}
.pass-toggle:hover { color: var(--purple); }

/* ── Safety section ── */
.safety-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1.5px solid var(--border); gap: 16px;
}
.safety-row:last-child { border-bottom: none; padding-bottom: 0; }
.safety-row .info p:first-child { font-weight: 700; font-size: .9rem; color: var(--dark); }
.safety-row .info p:last-child  { font-size: .78rem; color: #888; margin-top: 2px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 24px; color: #888; }
.empty-state i { font-size: 2.5rem; color: var(--purple); margin-bottom: 14px; display: block; }
.empty-state p { font-size: .9rem; margin-bottom: 16px; }

/* ── Account responsive ── */
@media (max-width: 768px) {
  .account-wrap { flex-direction: column; padding: 16px 16px 40px; gap: 18px; }
  .account-sidebar { flex: none; width: 100%; position: static; }
  .account-stats { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   ADMIN ORDERS — Mobile card layout
   ════════════════════════════════════════════ */

/* Cards móvil: base oculta (se muestra solo en móvil abajo) */
.admin-order-cards { display: none; }

/* Cada card */
.aoc {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}

/* Fila superior: número de orden + badge de status */
.aoc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.aoc-order-num {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
}

/* Fila del cliente */
.aoc-customer {
  font-size: .85rem;
  margin-bottom: 6px;
}
.aoc-customer strong { color: var(--dark); }
.aoc-customer span  { color: #888; font-size: .78rem; display: block; }

/* Fila productos + total */
.aoc-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .8rem;
  color: #666;
  margin-bottom: 12px;
  gap: 8px;
}
.aoc-products {
  flex: 1;
  line-height: 1.4;
}
.aoc-total {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  white-space: nowrap;
}

/* Fila de acciones */
.aoc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aoc-actions .btn-contact,
.aoc-actions .btn-deliver,
.aoc-actions .btn-view-order {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 90px;
}

/* ════════════════════════════════════════════
   FIX DEFINITIVO: tabla vs cards admin — móvil
   Usamos .admin-table-wrap en el div contenedor
   de la tabla para evitar conflictos de
   especificidad con display:table implícito.
   ════════════════════════════════════════════ */

/* Base: tabla visible, cards ocultas */
.admin-table-wrap  { display: block; }
.admin-order-cards { display: none;  }

/* Móvil: ocultar tabla, mostrar cards */
@media (max-width: 768px) {
  .admin-table-wrap  { display: none  !important; }
  .admin-order-cards {
    display: flex   !important;
    flex-direction: column;
    gap: 12px;
  }

  /* Cards compactas */
  .aoc { padding: 11px 12px 10px; }
  .aoc-order-num { font-size: .85rem; }
  .aoc-customer  { font-size: .8rem; }
  .aoc-meta      { font-size: .75rem; margin-bottom: 10px; }
  .aoc-total     { font-size: .88rem; }
  .aoc-actions .btn-contact,
  .aoc-actions .btn-deliver,
  .aoc-actions .btn-view-order {
    font-size: .74rem;
    padding: 4px 10px;
  }
}

/* Desktop: asegurar que tabla sea visible y cards ocultas */
@media (min-width: 769px) {
  .admin-table-wrap  { display: block !important; }
  .admin-order-cards { display: none  !important; }
}

/* Fix: tabla vs cards admin — forzar visibilidad correcta */
.admin-table-wrap {
  display: block !important;
}
.admin-order-cards {
  display: none !important;
}

@media (max-width: 768px) {
  .admin-table-wrap {
    display: none !important;
  }
  .admin-order-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
}

/* ════════════════════════════════════════════
   ORDER DETAIL TABLE (customer-facing "View Order")
   En desktop se ve como tabla normal (heredado de
   .orders-table). En móvil se transforma en cards
   apiladas usando data-label como etiqueta, sin
   tocar la paleta/estética del resto del sitio.
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .order-detail-table thead { display: none; }

  .order-detail-table,
  .order-detail-table tbody {
    display: block;
    width: 100%;
  }

  .order-detail-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    position: relative;
  }
  .order-detail-table tr:last-child { margin-bottom: 0; }

  /* Celda de imagen: ocupa su propio espacio a la izquierda, sin label */
  .order-detail-table .odt-img-cell {
    flex: 0 0 auto;
    padding: 0 !important;
    border: none !important;
    order: 1;
  }

  /* Nombre del producto: ocupa el ancho restante junto a la imagen */
  .order-detail-table .odt-name-cell {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    order: 2;
    font-size: .88rem;
    white-space: normal;
  }

  /* Resto de celdas: Size / Qty / Price / Subtotal → fila propia con etiqueta */
  .order-detail-table td:not(.odt-img-cell):not(.odt-name-cell) {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    padding: 0 !important;
    border: none !important;
    background: var(--bg);
    border-radius: 8px;
    padding: 8px 10px !important;
    font-size: .82rem;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .order-detail-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 8px;
  }

  /* Subtotal destaca un poco más, como en el ejemplo de referencia */
  .order-detail-table td[data-label="Subtotal"] {
    background: var(--purple-60);
    font-weight: 700;
  }
  .order-detail-table td[data-label="Subtotal"]::before {
    color: var(--dark);
  }
}

/* ════════════════════════════════════════════
   ORDERS LIST TABLE (Dashboard "Recent Orders"
   y Purchase History). En móvil se apila como
   cards, igual estética que order-detail-table.
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .orders-table-list thead { display: none; }

  .orders-table-list,
  .orders-table-list tbody {
    display: block;
    width: 100%;
  }

  .orders-table-list tr {
    display: block;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .orders-table-list tr:last-child { margin-bottom: 0; }

  .orders-table-list td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0 !important;
    border: none !important;
    font-size: .85rem;
  }

  .orders-table-list td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 10px;
  }

  /* La celda "Product" puede ser larga: que el texto se alinee a la derecha y envuelva bien */
  .orders-table-list td[data-label="Product"] span,
  .orders-table-list td[data-label="Product"] {
    text-align: right;
  }

  /* Última celda (botón View): ocupa todo el ancho, sin label, separada con borde */
  .orders-table-list td:last-child {
    justify-content: center;
    padding-top: 12px !important;
    margin-top: 4px;
    border-top: 1px solid var(--border) !important;
  }
  .orders-table-list td:last-child a {
    width: 100%;
    text-align: center;
  }
}

/* ════════════════════════════════════════════
   ACCOUNT DROPDOWN (header) — logueado e invitado
   Usa las clases ya presentes en header.php:
   .hdr-account-menu, .hdr-account-info, etc.
   ════════════════════════════════════════════ */

/* La tarjeta del dropdown en sí (hereda position/box-shadow de .hdr-menu,
   pero damos ancho propio porque el contenido es más rico que un simple listado) */
.hdr-account-menu {
  min-width: 240px;
  padding: 16px 0 8px;
}

/* ── Bloque superior: avatar + nombre + email (usuario logueado) ── */
.hdr-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
}
.hdr-account-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-account-text { min-width: 0; }
.hdr-account-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.hdr-account-email {
  font-size: .75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin-top: 1px;
}

/* Línea separadora entre el bloque de info y los links */
.hdr-account-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 6px;
}

/* ── Links de acción (Manage Account, Track Order, Log Out) ── */
.hdr-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background var(--transition);
}
.hdr-account-link:hover { background: var(--bg); }
.hdr-account-link i { color: var(--purple); width: 16px; text-align: center; }

.hdr-account-logout {
  color: #c00;
}
.hdr-account-logout i { color: #c00; }
.hdr-account-logout:hover { background: #fff5f5; }

/* ── Versión invitado (no logueado) ── */
.hdr-account-guest {
  padding: 16px 18px 14px;
  text-align: center;
}
.hdr-guest-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.hdr-guest-text {
  font-size: .8rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 14px;
}
.hdr-account-guest .btn {
  margin-bottom: 8px;
}
.hdr-guest-secondary {
  background: var(--white);
  border: 2px solid var(--yellow);
}
.hdr-guest-secondary:hover { background: var(--bg); }

/* ════════════════════════════════════════════
   FIX: alineación sidebar vs account-card en móvil
   Fuerza mismo box-sizing y ancho completo del
   contenedor padre, evitando desfases por sticky
   o box-shadow heredado del layout de escritorio.
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .account-sidebar,
  .account-main,
  .account-card {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .account-sidebar {
    position: static !important;
  }
}

/* ════════════════════════════════════════════
   PRODUCT DESCRIPTION — centrado en desktop
   En móvil no se toca (queda como estaba, alineado
   a la izquierda con el padding normal del bloque).
   ════════════════════════════════════════════ */
@media (min-width: 769px) {
  .product-description-centered {
    text-align: center;
  }
  /* Los párrafos quedan centrados, pero limitamos su ancho
     para que no se vean líneas demasiado largas y difíciles de leer */
  .product-description-centered p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Las tablas se centran como bloque, conservando su propio max-width */
  .product-description-centered table {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ════════════════════════════════════════════
   POSITIVE AFFIRMATION PAGE
   ════════════════════════════════════════════ */
.affirm-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  text-align: center;
}
.affirm-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 14px;
}
.affirm-intro {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}
.affirm-of-day {
  font-size: .95rem;
  color: #777;
  margin-bottom: 16px;
}
.affirm-card {
  position: relative;
  background: var(--purple-60);
  border-radius: var(--radius);
  padding: 60px 40px;
  overflow: hidden;
}
.affirm-corner {
  position: absolute;
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.affirm-corner.tl { top: 14px;    left: 14px;  }
.affirm-corner.tr { top: 14px;    right: 14px; transform: scaleX(-1); }
.affirm-corner.bl { bottom: 14px; left: 14px;  transform: scaleY(-1); }
.affirm-corner.br { bottom: 14px; right: 14px; transform: scale(-1,-1); }
.affirm-quote, .affirm-sub { position: relative; z-index: 1; }

.affirm-quote {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow-h);
  line-height: 1.35;
  margin-bottom: 18px;
  transition: opacity .25s ease;
}
.affirm-quote::before,
.affirm-quote::after { content: '\201C'; }
.affirm-quote::after { content: '\201D'; }
.affirm-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}
.affirm-refresh-btn {
  margin-top: 18px;
}
.affirm-divider {
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  max-width: 320px;
  margin: 32px auto 0;
}
.affirm-tagline {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 600;
  margin: 32px 0 24px;
}
.affirm-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.affirm-logo-box img { height: 48px; }

@media (max-width: 768px) {
  .affirm-wrap h1 { font-size: 1.5rem; }
  .affirm-card { padding: 40px 22px; }
  .affirm-quote { font-size: 1.3rem; }
  .affirm-corner { width: 56px; height: 56px; opacity: .45; }
}