/* ==========================================================================
   TIENDA OFICIAL MÍTICO COFFEE - ESTILOS E-COMMERCE
   Tour del Café - World's Coffee & Cycling Festival
   ========================================================================== */

:root {
  --store-bg: #0e0d0c;
  --store-card-bg: rgba(26, 24, 23, 0.85);
  --store-card-border: rgba(255, 255, 255, 0.08);
  --store-card-hover-border: rgba(211, 84, 0, 0.4);
  --store-accent: #d35400;
  --store-accent-hover: #e67e22;
  --store-gold: #f39c12;
  --store-green: #4a6741;
  --store-text: #fafafa;
  --store-text-muted: rgba(250, 250, 250, 0.65);
}

html, body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* =========================================
   HEADER & BOTÓN DEL CARRITO
   ========================================= */
.store-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--store-text);
  padding: 8px 16px;
  border-radius: 25px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.store-cart-btn:hover {
  background: rgba(211, 84, 0, 0.2);
  border-color: var(--store-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.store-cart-count {
  background: var(--store-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(211, 84, 0, 0.6);
}

/* =========================================
   HERO BANNER DE LA TIENDA
   ========================================= */
.store-hero {
  position: relative;
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(211, 84, 0, 0.12) 0%, rgba(14, 13, 12, 1) 75%), #0e0d0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
}

.store-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.store-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(211, 84, 0, 0.15);
  border: 1px solid rgba(211, 84, 0, 0.35);
  color: #f39c12;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.store-hero-title {
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.store-hero-logo {
  display: block;
  margin: 0 auto;
  max-width: 420px;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.store-hero-logo:hover {
  transform: scale(1.02);
}

.store-hero-desc {
  font-size: 1.1rem;
  color: var(--store-text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Trust badges bar */
.store-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(250, 250, 250, 0.8);
  font-weight: 500;
}

.trust-item svg {
  color: #e67e22;
  flex-shrink: 0;
}

/* =========================================
   BARRA DE FILTROS, BÚSQUEDA Y CATEGORÍAS
   ========================================= */
.store-controls-section {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(14, 13, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.store-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.category-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 250, 250, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.category-pill-btn.active {
  background: var(--store-accent);
  border-color: var(--store-accent);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(211, 84, 0, 0.4);
}

/* Search and Sort controls */
.store-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  justify-content: flex-end;
}

.store-search-box {
  position: relative;
  min-width: 220px;
  max-width: 320px;
  flex-grow: 1;
}

.store-search-box input {
  width: 100%;
  background: rgba(26, 24, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 14px 8px 36px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.store-search-box input:focus {
  border-color: var(--store-accent);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.2);
}

.store-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(250, 250, 250, 0.4);
  pointer-events: none;
}

.store-sort-select {
  background: rgba(26, 24, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.store-sort-select:focus {
  border-color: var(--store-accent);
}

/* =========================================
   GRID DE PRODUCTOS
   ========================================= */
.store-products-section {
  padding: 40px 0 80px;
  min-height: 500px;
}

.products-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--store-text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Product Card */
.product-card {
  background: var(--store-card-bg);
  border: 1px solid var(--store-card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--store-card-hover-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(211, 84, 0, 0.15);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #141211;
  overflow: hidden;
  cursor: pointer;
}

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

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

/* Badges */
.product-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-badge-tag.badge-oferta {
  background: #c0392b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5);
}

.product-badge-tag.badge-single-origin {
  background: var(--store-accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(211, 84, 0, 0.4);
}

.product-badge-tag.badge-drips {
  background: #27ae60;
  color: #ffffff;
}

.product-badge-tag.badge-bundles {
  background: #8e44ad;
  color: #ffffff;
}

.product-badge-tag.badge-accessories {
  background: #2c3e50;
  color: #ffffff;
}

/* Quickview button over image */
.product-quickview-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(18, 18, 18, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card:hover .product-quickview-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-quickview-btn:hover {
  background: var(--store-accent);
  border-color: var(--store-accent);
}

/* Product Info Content */
.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--store-accent-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-title:hover {
  color: var(--store-accent-hover);
}

/* Sensory tasting chips */
.product-sensory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sensory-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(250, 250, 250, 0.7);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.product-origin-meta {
  font-size: 12px;
  color: rgba(250, 250, 250, 0.55);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Variant Selector inside card */
.product-variant-selector {
  margin-top: auto;
  margin-bottom: 14px;
}

.product-variant-select {
  width: 100%;
  background: rgba(14, 13, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-variant-select:focus {
  border-color: var(--store-accent);
}

/* Price and Action button */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.product-compare-price {
  font-size: 11px;
  color: rgba(250, 250, 250, 0.4);
  text-decoration: line-through;
  white-space: nowrap;
}

.btn-add-cart {
  background: var(--store-accent);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--store-accent-hover);
  box-shadow: 0 0 12px rgba(211, 84, 0, 0.4);
  transform: translateY(-1px);
}

/* =========================================
   CARRITO DE COMPRAS SLIDE-OVER (DRAWER)
   ========================================= */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #141211;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: rgba(250, 250, 250, 0.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.cart-close-btn:hover {
  color: #ffffff;
}

/* Free shipping meter */
.free-shipping-box {
  padding: 12px 24px;
  background: rgba(211, 84, 0, 0.1);
  border-bottom: 1px solid rgba(211, 84, 0, 0.2);
  font-size: 12px;
  color: rgba(250, 250, 250, 0.9);
}

.shipping-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f39c12, #27ae60);
  width: 0%;
  transition: width 0.3s ease;
}

/* Cart Items List */
.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--store-text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e1c1a;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--store-text-muted);
  margin-bottom: 8px;
}

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

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: rgba(211, 84, 0, 0.3);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: rgba(250, 250, 250, 0.4);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.15s ease;
  position: absolute;
  top: 0;
  right: 0;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

/* Cart Footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #100f0e;
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--store-text-muted);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.btn-checkout-primary {
  width: 100%;
  background: var(--store-accent);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.btn-checkout-primary:hover {
  background: var(--store-accent-hover);
  transform: translateY(-1px);
}

.btn-checkout-epayco {
  width: 100%;
  background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(211, 84, 0, 0.35);
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

.btn-checkout-epayco:hover {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.5);
  transform: translateY(-2px);
}

.btn-checkout-epayco:active {
  transform: translateY(0);
}

.cart-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.payment-method-chip {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.btn-checkout-secondary-wa {
  width: 100%;
  background: transparent;
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-checkout-secondary-wa:hover {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #ffffff;
}

.btn-checkout-whatsapp {
  width: 100%;
  background: #27ae60;
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-checkout-whatsapp:hover {
  background: #2ecc71;
}

/* =========================================
   MODAL DE CHECKOUT: FACTURACIÓN Y ENVÍO
   ========================================= */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-container {
  background: #181615;
  border: 1px solid rgba(211, 84, 0, 0.3);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1f1c1a;
  position: sticky;
  top: 0;
  z-index: 10;
}

.checkout-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-modal-title h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--store-text);
  margin: 0;
  letter-spacing: 0.5px;
}

.checkout-modal-title span {
  font-size: 12px;
  background: rgba(211, 84, 0, 0.15);
  border: 1px solid rgba(211, 84, 0, 0.3);
  color: #e67e22;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.checkout-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.checkout-modal-close:hover {
  color: #ffffff;
}

.checkout-modal-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

@media (max-width: 820px) {
  .checkout-modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }
}

/* Columna de Formulario */
.checkout-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e67e22;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.checkout-step-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checkout-field-full {
  grid-column: span 2;
}

.checkout-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.checkout-field-group label span.req {
  color: #e74c3c;
  margin-left: 2px;
}

.checkout-input,
.checkout-select {
  background: #131211;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fafafa;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.checkout-input:focus,
.checkout-select:focus {
  border-color: #d35400;
  box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2);
  background: #171514;
}

.checkout-input.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.checkout-field-row {
  display: flex;
  gap: 10px;
}

.checkout-doc-type {
  width: 90px;
  flex-shrink: 0;
}

/* Columna Resumen de la Orden */
.checkout-summary-section {
  background: #131211;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkout-summary-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #fafafa;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-summary-items {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding-right: 4px;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.checkout-summary-item-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-summary-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-summary-item-variant {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.checkout-summary-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #e67e22;
}

.checkout-totals-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 18px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.checkout-total-row.final {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
}

.checkout-shipping-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.checkout-shipping-badge.free {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.checkout-shipping-badge.standard {
  background: rgba(211, 84, 0, 0.15);
  color: #e67e22;
}

.btn-submit-epayco {
  width: 100%;
  background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(211, 84, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-submit-epayco:hover {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.55);
  transform: translateY(-1px);
}

.btn-submit-epayco:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.checkout-security-notice {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.checkout-security-notice strong {
  color: #e67e22;
}

/* =========================================
   MODAL DE VISTA RÁPIDA / FICHA DE CAFÉ
   ========================================= */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quickview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quickview-modal {
  background: #181615;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  animation: zoomModalIn 0.3s ease-out;
}

@keyframes zoomModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.quickview-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.quickview-close-btn:hover {
  background: var(--store-accent);
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  padding: 30px;
}

@media (max-width: 768px) {
  .quickview-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Gallery inside modal */
.modal-gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: #100f0e;
  margin-bottom: 12px;
}

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

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--store-accent);
  opacity: 1;
}

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

/* Specs table inside modal */
.coffee-specs-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.coffee-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coffee-specs-table td {
  padding: 8px 10px;
}

.coffee-specs-table td:first-child {
  color: var(--store-text-muted);
  width: 35%;
  font-weight: 500;
}

.coffee-specs-table td:last-child {
  color: #ffffff;
  font-weight: 600;
}

/* Toast notification */
.store-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #27ae60;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================
   SECCIÓN DESTACADA EN EL HOME (index.html)
   ========================================= */
.home-store-section {
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(211, 84, 0, 0.15) 0%, rgba(18, 18, 18, 1) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 90px 0;
  overflow: hidden;
}

.home-store-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.home-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

@media (max-width: 1080px) {
  .home-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .home-store-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.home-store-cta {
  text-align: center;
}

/* =========================================
   CONTROL DE INVENTARIO Y ALERTAS DE STOCK
   ========================================= */
.btn-add-cart.btn-disabled,
.btn-add-cart:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(250, 250, 250, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.product-badge-outofstock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(192, 57, 43, 0.9);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(231, 76, 60, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.quickview-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.quickview-stock-alert.ok {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.quickview-stock-alert.low {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.35);
  animation: pulse-low 2s infinite ease-in-out;
}

.quickview-stock-alert.out {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

@keyframes pulse-low {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.99); }
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(211, 84, 0, 0.15);
  border: 1px solid rgba(211, 84, 0, 0.35);
  border-radius: 4px;
  color: var(--store-accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-link:hover {
  background: var(--store-accent);
  color: #ffffff;
}

/* =========================================
   COLECCIÓN RESILIENCIA & SISTEMA DE PRE-VENTA
   ========================================= */

/* Pill de Colección Resiliencia */
.category-pill-resiliencia {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.25), rgba(46, 204, 113, 0.15)) !important;
  border-color: rgba(243, 156, 18, 0.5) !important;
  color: #f1c40f !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(243, 156, 18, 0.2);
}

.category-pill-resiliencia.active,
.category-pill-resiliencia:hover {
  background: linear-gradient(135deg, #d35400, #e67e22) !important;
  color: #ffffff !important;
  border-color: #f39c12 !important;
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.4);
}

/* Banner de Causa Social */
.resiliencia-banner-box {
  background: radial-gradient(circle at top right, rgba(211, 84, 0, 0.18), transparent 70%),
              linear-gradient(135deg, rgba(28, 25, 23, 0.95), rgba(18, 16, 15, 0.98));
  border: 1px solid rgba(243, 156, 18, 0.35);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.resiliencia-banner-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #f39c12, #2ecc71);
}

.resiliencia-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-tag-resiliencia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-tag-expo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
}

.resiliencia-banner-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.resiliencia-banner-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 250, 250, 0.8);
  margin: 0;
  max-width: 900px;
}

.resiliencia-banner-text strong {
  color: #f39c12;
}

/* Badge Pre-Venta en Tarjetas */
.product-badge.badge-preorder {
  background: linear-gradient(135deg, #d35400, #f39c12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.5) !important;
  animation: pulse-preorder 2.5s infinite ease-in-out;
}

@keyframes pulse-preorder {
  0%, 100% { box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4); }
  50% { box-shadow: 0 4px 18px rgba(243, 156, 18, 0.7); }
}

/* Alerta de Pre-Venta en Modal */
.quickview-stock-alert.preorder {
  background: rgba(211, 84, 0, 0.18);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Aviso de Despacho y Causa en Modal */
.modal-preorder-notice-box {
  background: rgba(211, 84, 0, 0.1);
  border-left: 3px solid #f39c12;
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
}

.modal-preorder-dispatch {
  font-size: 13px;
  font-weight: 700;
  color: #f39c12;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.modal-preorder-cause {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.75);
  margin: 0;
}

/* Botón de Pre-Venta */
.btn-preorder-cta {
  background: linear-gradient(135deg, #d35400, #e67e22) !important;
  color: #ffffff !important;
  border: 1px solid #f39c12 !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(211, 84, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-preorder-cta:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(211, 84, 0, 0.55);
}

/* Selector Jerárquico de Variantes (Hombre/Mujer, Color, Talla) */
.hierarchical-selector-wrap {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hierarchical-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hierarchical-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono, monospace);
  color: var(--store-text-muted);
  display: flex;
  justify-content: space-between;
}

.hierarchical-label span.active-val {
  color: #ffffff;
  font-weight: 700;
  text-transform: none;
}

.hierarchical-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hierarchical-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(250, 250, 250, 0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hierarchical-btn:hover {
  border-color: rgba(243, 156, 18, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hierarchical-btn.active {
  background: rgba(211, 84, 0, 0.25);
  border-color: #f39c12;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(211, 84, 0, 0.3);
}

.hierarchical-btn .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
}

.color-dot.azul { background: #1e3799; }
.color-dot.gris { background: #718093; }
.color-dot.blanco { background: #f5f6fa; }

/* Badges en Carrito y Checkout */
.cart-item-preorder-badge,
.checkout-preorder-notice {
  font-size: 11px;
  font-weight: 600;
  color: #f39c12;
  background: rgba(211, 84, 0, 0.15);
  border: 1px solid rgba(211, 84, 0, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   MODAL DE AUTENTICACIÓN: PANEL DE INVENTARIO
   ========================================================================== */
.inv-auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 13, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.inv-auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.inv-auth-modal-card {
  background: #161413;
  border: 1px solid rgba(211, 84, 0, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(211, 84, 0, 0.18);
  text-align: center;
  position: relative;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-auth-modal-overlay.active .inv-auth-modal-card {
  transform: translateY(0) scale(1);
}

.inv-auth-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(250, 250, 250, 0.5);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.inv-auth-modal-close:hover {
  color: #fafafa;
}

.inv-auth-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(211, 84, 0, 0.3));
}

.inv-auth-modal-title {
  font-family: var(--store-font-heading, 'Cinzel', serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.inv-auth-modal-subtitle {
  font-size: 13px;
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.45;
  margin-bottom: 22px;
}

.inv-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inv-auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.inv-auth-input {
  width: 100%;
  background: #1e1b19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fafafa;
  padding: 12px 42px 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  letter-spacing: 1.5px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inv-auth-input:focus {
  border-color: #d35400;
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.25);
}

.inv-auth-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(250, 250, 250, 0.5);
  padding: 4px;
}

.inv-auth-eye-btn:hover {
  color: #fafafa;
}

.inv-auth-error {
  background: rgba(231, 76, 60, 0.14);
  border: 1px solid rgba(231, 76, 60, 0.38);
  color: #ff6b6b;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.inv-auth-submit-btn {
  background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
  border: 1px solid rgba(243, 156, 18, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inv-auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.5);
}

.inv-auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVE & MOBILE-FIRST EN TIENDA (< 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Hero de la Tienda */
  .store-hero {
    padding: 100px 16px 40px;
  }

  .store-hero-logo {
    width: 90%;
    max-width: 320px;
  }

  .store-hero-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .store-trust-bar {
    gap: 14px;
    padding-top: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .trust-item {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Barra de Filtros, Búsqueda y Orden */
  .store-controls-section {
    position: static; /* Evitar que tape la pantalla en móviles pequeños */
    padding: 12px 16px;
  }

  .store-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .category-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 8px;
    gap: 6px;
  }

  .category-pill-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 40px;
  }

  .store-tools {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .store-search-box {
    min-width: 100%;
    max-width: 100%;
  }

  .store-search-box input,
  .store-sort-select {
    width: 100%;
    min-height: 48px !important;
    font-size: 16px !important; /* Previene auto-zoom en iOS */
    border-radius: 8px;
  }

  /* Grid de Productos */
  .store-products-section {
    padding: 24px 16px 60px;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .products-count-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
  }

  .product-quickview-btn {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    font-size: 11px;
    padding: 6px 12px;
  }

  .product-btn-add {
    min-height: 48px !important;
    width: 100% !important;
    font-size: 15px !important;
  }

  /* Drawer del Carrito en Móvil */
  .cart-drawer {
    width: 100% !important;
    max-width: 100vw !important;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-items-container {
    padding: 16px;
  }

  .cart-footer {
    padding: 18px 16px 24px;
  }

  .btn-checkout-epayco,
  .btn-checkout-secondary-wa,
  .btn-checkout-primary,
  .btn-checkout-whatsapp {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
  }

  /* Modal de Checkout */
  .checkout-modal-overlay {
    padding: 12px;
  }

  .checkout-modal-container {
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    border-radius: 12px;
  }

  .checkout-modal-header {
    padding: 16px;
  }

  .checkout-modal-body {
    padding: 16px;
    gap: 20px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .checkout-field-full {
    grid-column: span 1 !important;
  }

  .checkout-input,
  .checkout-select {
    font-size: 16px !important; /* Previene auto-zoom en iOS Safari */
    min-height: 48px !important;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .checkout-field-row {
    flex-direction: column;
    gap: 10px;
  }

  .checkout-doc-type {
    width: 100% !important;
  }

  .btn-submit-epayco {
    min-height: 50px !important;
    width: 100% !important;
    font-size: 16px !important;
    justify-content: center;
  }

  /* Modal de Autenticación de Inventario */
  .inv-auth-modal-card {
    width: 92% !important;
    max-width: 95vw !important;
    padding: 24px 18px !important;
    border-radius: 12px !important;
  }

  .inv-auth-input {
    font-size: 16px !important;
    min-height: 48px !important;
  }

  .inv-auth-submit-btn {
    min-height: 48px !important;
    width: 100% !important;
    font-size: 15px !important;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

