:root {
  --hero-color: #e8c4c4;
  --hero-hover: #d9afaf;
  --primary-color: #1f1f1f;
  --primary-hover: #3a3a3a;
  --primary-soft: #fbf1f1;
  --primary-border: #c99a9a;
  --bg-color: #ffffff;
  --text-color: #222222;
  --muted-color: #555555;
  --border-color: #e6e6e6;
  --success-color: #2e7d5b;
  --accent-red: #8c3b45;
  --topbar-bg: #f5e1e1;
  --topbar-text: #4a3a3a;
  --logo-color: #4a3f3f;
}

/* BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.container {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  padding: 0 20px;
  flex: 1;
  background: #ffffff;
}

.container.wide {
  max-width: 1400px;
}

.hidden {
  display: none !important;
}

#belleza {
  scroll-margin-top: 130px;
}

#product-grid {
  scroll-margin-top: 90px;
}

/* Letra tipo dibujada / caligráfica para "Belleza" */
.script-word,
.belleza-script {
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* BOTONES */
.btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

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

/* Botón Ver Detalles: ovalado como estaba */
.btn-fuchsia {
  background: var(--hero-color);
  color: #1f1f1f;
  border: none;
  border-radius: 25px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-portada,
.drawer-continue-btn,
.btn-submit-order {
  background: var(--hero-color);
  color: #1f1f1f;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-portada {
  padding: 9px 18px;
  font-size: 14px;
  display: inline-block;
}

/* Botón dentro de "También te podría gustar": ovaladito como estaba */
.side-product-btn {
  align-self: flex-end;
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-portada:hover,
.drawer-continue-btn:hover,
.btn-submit-order:hover {
  background: var(--hero-hover);
}

.side-product-btn:hover {
  background: var(--primary-hover);
}

/* Botón Realizar pedido: cuadrado / en punta como pediste */
.btn-buy-now-custom {
  width: 100%;
  height: 46px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy-now-custom:hover {
  background: var(--primary-hover);
}

.btn-submit-order {
  width: 100%;
  height: 46px;
  font-size: 15px;
  margin-top: 15px;
}

.btn-disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
}

.badge-agotado {
  display: inline-block;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

/* BARRA SUPERIOR Y ENCABEZADO */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: var(--hero-color);
  color: #1f1f1f;
  border-bottom: 1px solid var(--primary-border);
  padding: 11px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar-track {
  display: flex;
  width: max-content;
  animation: letrero-corrido 45s linear infinite;
  will-change: transform;
}

.top-bar-group {
  display: flex;
  flex-shrink: 0;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 95px;
  line-height: 1.3;
}

.top-bar .free-word {
  color: #6e2a35;
}

@keyframes letrero-corrido {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.header-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: var(--logo-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-red);
}

.has-sub > a::after {
  content: " ▾";
  font-size: 11px;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 6px;
  list-style: none;
  z-index: 120;
}

.submenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.submenu a:hover {
  background: var(--hero-color);
  color: #1f1f1f;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  display: block;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 28px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  z-index: 130;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: rgba(31, 31, 31, 0.6);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

.cart-btn-icon {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 5px 0 5px 5px;
  color: #1f1f1f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.cart-btn-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  stroke: #1f1f1f;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #1f1f1f;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 6px;
  font-weight: 700;
}

/* PORTADA */
.hero {
  background: var(--hero-color);
  border-bottom: 1px solid var(--primary-border);
  padding: 26px 20px;
  text-align: center;
  color: #1f1f1f;
  width: 100%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--primary-border);
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.hero-badge strong {
  color: var(--accent-red);
}

.hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f1f1f;
}

.hero p {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.hero-checks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.hero-checks span::before {
  content: "✓ ";
  color: var(--accent-red);
}

/* Botón Ver productos de portada: ovalado como estaba */
.hero-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  padding: 11px 26px;
  min-width: 0;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}

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

/* PORTADA TIPO VITRINA ADAPTADA A TU PALETA */
.hero.hero-showcase {
  padding: 36px 20px;
  text-align: left;
  background: linear-gradient(135deg, #f7e4e4 0%, var(--hero-color) 55%, #e2b8b8 100%);
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy .hero-badge {
  margin-bottom: 14px;
  padding: 8px 18px;
}

.hero-copy h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.55;
  color: #2c2424;
  margin-bottom: 18px;
  max-width: 500px;
}

.hero-showcase .hero-checks {
  justify-content: flex-start;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-secondary-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1.5px solid #1f1f1f;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s;
}

.hero-secondary-link:hover {
  background: #1f1f1f;
  color: #ffffff;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1f1f1f;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 34px rgba(74, 58, 58, 0.18);
  aspect-ratio: 16 / 10;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #1f1f1f;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  border-left: 4px solid var(--accent-red);
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hero-stat-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
  margin-top: 2px;
}

.hero-stat-top {
  top: 14px;
  left: 14px;
}

.hero-stat-bottom {
  top: 14px;
  right: 14px;
}

.hero-review-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(31, 31, 31, 0.9);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-stars {
  color: #f4b400;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.hero-review-card p {
  font-size: 12.5px;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

/* CATÁLOGO */
.catalog-heading {
  text-align: center;
  color: #1f1f1f;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-subbanner {
  text-align: center;
  color: var(--accent-red);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 29px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(140px, calc(25% - 14px)), 1fr));
  gap: 12px;
  margin-top: 20px;
  background: #ffffff;
}

.card {
  border: none;
  padding: 8px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.card h3 {
  font-size: 14px;
  margin: 8px 0 4px;
  color: #1f1f1f;
  font-weight: 700;
}

.card .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-red);
  margin: 4px 0;
}

.price-old {
  color: #888888;
  text-decoration: line-through;
  font-weight: 400;
}

.card .price-old {
  font-size: 13px;
  margin-right: 6px;
}

.detail-right .price-old {
  font-size: 16px;
  margin-right: 8px;
}

.card-free-ship {
  font-size: 11px;
  font-weight: 700;
  color: var(--success-color);
  margin: 0 0 4px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

/* DETALLE DEL PRODUCTO */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 36px;
  background: #ffffff;
  padding: 24px;
}

.detail-left.sticky-img {
  position: sticky;
  top: 150px;
  align-self: start;
}

.detail-left img,
.detail-left.sticky-img > img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 165px);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

.detail-category-tag {
  display: inline-block;
  background: var(--hero-color);
  color: #1f1f1f;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-right h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 6px;
  line-height: 1.2;
}

.detail-subtitle {
  font-size: 14px;
  color: #1f1f1f;
  font-weight: 700;
  margin: 0 0 10px;
}

.detail-right .price {
  font-size: 26px;
  color: var(--accent-red);
  font-weight: 700;
  margin: 10px 0 15px;
}

.detail-cod-note {
  font-size: 14px;
  color: var(--muted-color);
  margin: -5px 0 15px;
}

/* OFERTA */
.promo-box {
  position: relative;
  margin: 14px 0 16px;
  max-width: 440px;
}

.promo-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px 6px 6px;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s;
}

.promo-opt img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
}

.promo-opt .po-qty {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-opt .po-prices {
  text-align: right;
  line-height: 1.2;
}

.promo-opt .po-old {
  display: block;
  font-size: 13px;
  color: #888888;
  text-decoration: line-through;
}

.promo-opt .po-price {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-red);
}

.promo-opt.active {
  border: 2px solid var(--primary-color);
  background: var(--primary-soft);
  padding: 5px 11px 5px 5px;
}

/* ACCIONES DETALLE */
.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 440px;
}

.row-qty-add {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.qty-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  width: 105px;
  height: 46px;
  background: #ffffff;
  padding: 0 6px;
}

.qty-control-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 15px;
  color: #1f1f1f;
  font-weight: 700;
}

.qty-control-btn:hover {
  color: #000000;
}

#detail-qty-input {
  width: 30px;
  text-align: center;
  border: none;
  font-size: 14px;
  background: transparent;
  outline: none;
  font-weight: 700;
  color: #1f1f1f;
}

/* Botón Agregar al carrito: cuadrado / en punta como pediste */
.btn-add-cart-custom {
  flex: 1;
  height: 46px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart-custom:hover {
  background: #f5f5f5;
}

/* BOTÓN FLOTANTE */
.floating-buy {
  position: fixed;
  left: 40px;
  bottom: 24px;
  z-index: 90;
  background: transparent;
  padding: 0;
  width: 220px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.floating-buy.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-buy .btn-buy-now-custom {
  height: 46px;
  border-radius: 0;
  font-size: 14px;
  animation: parpadeo 2.2s ease-in-out infinite;
}

.floating-buy .btn-buy-now-custom:hover,
.floating-buy .btn-buy-now-custom:disabled {
  animation: none;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(1.02); }
}

/* SIDEBAR DETALLE ("También te podría gustar"): fondo gris medio sin líneas, tarjetas blancas */
.detail-sidebar {
  background: #efefef;
  border: none;
  border-radius: 14px;
  margin-top: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.detail-sidebar h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 2px 0 0 2px;
  border: none;
}

#side-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
}

.side-product-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px;
}

.side-product-card img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  flex-shrink: 0;
}

.side-product-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border: none;
}

.side-product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  border: none;
}

.side-product-head p {
  font-size: 12px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.3;
  margin: 0;
}

.side-product-head span {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
}

/* ENTREGA ESTIMADA: sin contenedor, línea fina gris, camioncito que avanza una vez */
.delivery-box {
  border: none;
  border-radius: 0;
  padding: 14px 0 6px;
  background: transparent;
  margin-top: 6px;
}

.delivery-track {
  position: relative;
  height: 26px;
  margin-bottom: 8px;
}

.dt-line {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 13px;
  height: 1px;
  background: #d6d6d6;
}

.dt-fill {
  display: none;
}

.dt-dot {
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #bdbdbd;
  background: #ffffff;
  transform: translateX(-50%);
}

.dt-d1 {
  left: 16.66%;
  border-color: #1f1f1f;
  background: #1f1f1f;
}

.dt-d2 {
  left: 50%;
}

.dt-d3 {
  left: 83.33%;
}

.dt-truck {
  position: absolute;
  top: 1px;
  left: 83.33%;
  transform: translateX(-50%);
  color: #1f1f1f;
  background: #ffffff;
  padding: 0 3px;
  line-height: 0;
  animation: camion-avanza 1.8s ease-in-out 0.5s 1 both;
}

@keyframes camion-avanza {
  from { left: 50%; }
  to { left: 83.33%; }
}

.delivery-write {
  display: block;
  min-height: 26px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #8a8a8a;
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 4px;
}

.delivery-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
}

.delivery-steps small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: #8a8a8a;
  margin-top: 3px;
  min-height: 15px;
}

/* DESCRIPCIÓN Y ACORDEÓN */
.detail-short {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-color);
  max-width: 440px;
}

.detail-short p {
  margin-bottom: 12px;
}

.acc {
  border: none;
  border-top: 1px solid var(--border-color);
  background: transparent;
}

.acc:last-of-type {
  border-bottom: 1px solid var(--border-color);
}

.acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f1f1f;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  user-select: none;
}

.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::marker { content: ""; }
.acc > summary::after { content: "+"; font-size: 15px; font-weight: 400; line-height: 1; color: #9a9a9a; }
.acc[open] > summary::after { content: "\2212"; }

.acc-body,
.acc-single .acc-body,
.acc-body p,
.acc-body div {
  font-weight: 400;
  color: #555555;
}

.acc-body {
  padding: 2px 2px 14px;
}

.acc-body img {
  max-width: 100%;
  height: auto;
}

.acc-single {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.acc-single .short-title {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1f1f1f;
  font-size: 14px;
  margin-bottom: 10px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #555555;
  font-weight: 400;
  margin: 4px 0 6px;
}

.specs-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  line-height: 1.4;
}

.specs-table tr:nth-child(odd) td { background: #fafafa; }
.specs-table td.spec-key { font-weight: 700; width: 42%; background: #f5f5f5; color: #1f1f1f; }

.detail-extra-img {
  max-width: 440px;
  margin-top: 16px;
}

.detail-extra-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.short-title,
.detail-desc-title,
.detail-description-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 10px;
}

.detail-desc-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.detail-description-box {
  margin-top: 24px;
  width: 100%;
}

.detail-description-box p,
.detail-description-box div {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-color);
}

/* CARRITO LATERAL (DRAWER) */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  color: #1f1f1f;
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #1f1f1f;
  font-weight: 700;
}

.cart-drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1f1f1f;
}

.drawer-summary-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px 4px;
  background: #ffffff;
}

.drawer-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 6px;
}

.drawer-row.drawer-grand {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.drawer-ship-val.free {
  color: var(--success-color);
  font-weight: 700;
}

.drawer-ship-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.drawer-checkout-btn {
  height: 45px;
}

.drawer-continue-btn {
  width: 100%;
  padding: 10px;
}

.cart-item {
  position: relative;
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

.cart-item-details {
  flex: 1;
  padding-right: 34px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f1f1f;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
}

.cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.cart-qty-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  background: #ffffff;
  height: 32px;
  padding: 0 4px;
}

.cart-qty-btn,
.cart-qty-box .qty-btn,
.cart-item .qty-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1f1f1f;
  width: 26px;
  height: 100%;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover,
.cart-qty-box .qty-btn:hover,
.cart-item .qty-btn:hover {
  color: #000000;
  background: #f5f5f5;
}

.cart-qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
}

.cart-remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #555555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: var(--accent-red);
}

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

/* CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) 380px;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

.checkout-form-side,
.checkout-summary-side {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.checkout-form-side {
  padding: 30px;
}

.checkout-summary-side {
  padding: 25px;
  height: fit-content;
}

.summary-toggle {
  display: none;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 12px;
  color: #1f1f1f;
}

.form-section-first {
  margin-top: 0;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #1f1f1f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  color: #1f1f1f;
  background: #ffffff;
}

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

textarea.form-control {
  resize: vertical;
  height: 80px;
}

/* TOTAL DESPLEGABLE */
.order-total-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.before-btn-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #1f1f1f;
  font-weight: 700;
  text-align: left;
}

.bbt-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
}

.bbt-left small {
  font-size: 12px;
}

.bbt-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.order-total-box.open .bbt-arrow {
  transform: rotate(180deg);
}

.bbt-amount {
  font-size: 18px;
}

.before-btn-breakdown {
  display: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.order-total-box.open .before-btn-breakdown {
  display: block;
}

.bbb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bbb-item:last-child {
  margin-bottom: 0;
}

.bbb-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bbb-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  flex-shrink: 0;
}

.bbb-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.3;
}

.bbb-item-qty {
  font-size: 11.5px;
  font-weight: 700;
  color: #1f1f1f;
}

.bbb-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
}

.bbb-sum {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.bbb-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
}

.bbb-row-total {
  font-size: 17px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 4px;
  margin-bottom: 0;
}

/* RESUMEN Y SUGERIDOS */
.summary-product-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 12px 8px 0 0;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-item-img-wrapper {
  position: relative;
}

.summary-item-img-wrapper img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.summary-item-qty {
  position: absolute;
  top: -9px;
  right: -9px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-sizing: content-box;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-item-name,
.summary-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
}

.summary-row.total {
  font-size: 18px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 10px;
}

.summary-shipping-val {
  font-weight: 700;
}

.checkout-addons {
  margin-top: 22px;
}

.checkout-summary-side .checkout-addons {
  margin-top: 20px;
}

.suggested-section {
  margin-top: 25px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.suggested-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f1f1f;
}

.suggested-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 8px;
  gap: 4px;
}

.suggested-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
}

.suggested-info {
  flex: 1;
  margin: 0 10px;
  min-width: 0;
}

.suggested-info p {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 2px;
  line-height: 1.3;
}

.suggested-info span {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
}

/* Botón Añadir en "¿Quieres añadir algo más a tu pedido?": ovalado como estaba */
.suggested-add {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.suggested-add:hover {
  background: var(--primary-hover);
}

/* AVISOS */
.msg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.msg-overlay.active {
  display: flex;
}

.msg-box {
  background: #ffffff;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 24px 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-align: center;
  color: #1f1f1f;
  font-weight: 700;
}

.msg-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.msg-box p {
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.msg-box ul {
  list-style: none;
  margin: 8px 0 14px;
  text-align: left;
}

.msg-box li {
  font-size: 14px;
  padding: 8px 10px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 6px;
}

.msg-box .btn-buy-now-custom {
  margin-top: 6px;
}

/* PIE DE PÁGINA */
.site-footer {
  background: var(--hero-color);
  color: #1f1f1f;
  border-top: 1px solid var(--primary-border);
  text-align: center;
  padding: 44px 20px 22px;
  margin-top: 40px;
}

.site-footer h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.site-footer p {
  font-size: 15px;
  font-weight: 600;
}

.site-footer h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.site-footer a {
  color: #1f1f1f;
  text-decoration: underline;
  font-size: 15px;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1200px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--primary-border);
  font-size: 13px;
  font-weight: 600;
}

#footer-simple {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 10px; }

  .header-container { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 8px 14px; }
  .menu-toggle { display: flex; grid-column: 1; justify-self: start; }
  .logo { grid-column: 2; text-align: center; justify-self: center; font-size: 18px; letter-spacing: 0.14em; padding-left: 0.14em; }
  .nav-right { grid-column: 3; justify-self: end; gap: 6px; }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 6px 20px 12px;
    z-index: 110;
    text-align: left;
  }

  .nav-links.open { display: flex !important; }
  .nav-links > li { border-bottom: 1px solid var(--border-color); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 12px 0; font-size: 15px; font-weight: 700; }

  .submenu { position: static; display: none !important; border: none; box-shadow: none; padding: 0 0 6px 14px; }
  .has-sub:hover .submenu { display: none !important; }
  .has-sub.open .submenu { display: block !important; }
  .submenu a { padding: 10px 8px; }

  .detail-layout { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .detail-left.sticky-img { position: static; }
  .detail-left.sticky-img > img { max-height: none; }
  .detail-left { display: contents; }
  #detail-img { order: 1; }
  .detail-right { order: 2; }
  .detail-description-box { order: 3; margin-top: 0; }

  .floating-buy { left: 12px !important; right: 12px; bottom: 12px; width: auto; }

  .checkout-layout { grid-template-columns: 100%; gap: 20px; }
  .checkout-summary-side { order: -1; }
  .checkout-form-side, .checkout-summary-side { padding: 18px 12px; width: 100%; }
  .form-row { flex-direction: column; gap: 0; }

  .checkout-summary-side .summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
    text-align: left;
  }

  .summary-toggle .st-label { display: inline-flex; align-items: center; gap: 8px; }
  .summary-toggle .st-arrow { display: inline-block; font-size: 16px; transition: transform 0.25s; }
  .checkout-summary-side.open .st-arrow { transform: rotate(180deg); }
  .summary-body { display: none; margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--border-color); }
  .checkout-summary-side.open .summary-body { display: block; }
  .checkout-summary-side .summary-product-list { max-height: none; }
}

@media (max-width: 600px) {
  .top-bar { font-size: 12.5px; padding: 10px 0; }
  .top-bar-item { padding: 0 55px; }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar-track,
  .dt-fill,
  .dt-truck,
  .floating-buy .btn-buy-now-custom {
    animation: none;
    transition: none;
  }
}