/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES - MEAT DELI CHILE (LIGHT & RED THEME)
   Diseño Editorial B2B Profesional, Limpio y de Alto Contraste
   Inspirado en componentes modernos de 21st.dev (Glass Navbar & B2B Cards)
   ========================================================================== */

body.product-detail-body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* ==========================================================================
   HEADER / NAVBAR MODERNO (GLASSMORPHISM & PILL ISLAND NAVIGATION)
   ========================================================================== */
.product-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.product-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Branding */
.product-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.product-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-brand-text {
  display: flex;
  flex-direction: column;
}

.product-brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: 0.5px;
}

.product-brand-title span {
  color: #C72429;
}

.product-brand-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Cápsula Flotante de Navegación */
.product-nav-island {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 4px 6px;
  gap: 4px;
}

@media (max-width: 860px) {
  .product-nav-island {
    display: none;
  }
}

.product-nav-item {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.product-nav-item:hover {
  color: #C72429;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-nav-item.active {
  color: #0f172a;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Botón Carrito */
.product-cart-btn-pill {
  background: linear-gradient(135deg, #C72429, #a81c20);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(199, 36, 41, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-cart-btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199, 36, 41, 0.35);
}

.product-cart-count-badge {
  background: #ffffff;
  color: #C72429;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */
.product-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Breadcrumbs */
.breadcrumbs-nav {
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #64748b;
}

.breadcrumbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-item a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs-item a:hover {
  color: #C72429;
  text-decoration: underline;
}

.breadcrumbs-item[aria-current="page"] {
  color: #0f172a;
  font-weight: 700;
}

.breadcrumbs-separator {
  color: #cbd5e1;
  user-select: none;
}

/* Layout 2 Columnas */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Galería de Producto */
.product-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.product-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
}

.product-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-main-image-wrap:hover img {
  transform: scale(1.03);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.product-thumb-btn {
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-btn:hover {
  border-color: rgba(199, 36, 41, 0.5);
  transform: scale(1.04);
}

.product-thumb-btn.active {
  border-color: #C72429;
  box-shadow: 0 0 0 2px rgba(199, 36, 41, 0.2);
}

/* Columna de Información y Compra */
.product-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.product-sku-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.product-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.12;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.product-short-desc {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Tarjeta de Precios B2B 100% Vertical */
.product-pricing-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #C72429;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-header-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-main-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0;
}

.price-amount-val {
  font-size: 2.8rem;
  font-weight: 900;
  color: #C72429;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
}

.price-suffix-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.price-tax-detail {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-tax-detail strong {
  color: #0f172a;
}

.price-divider {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 4px 0 6px 0;
}

.pricing-pvp-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
}

.pricing-pvp-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.markup-pill {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.pricing-pvp-disclaimer {
  font-size: 0.76rem;
  color: #78350f;
  margin-top: 6px;
  line-height: 1.45;
}

/* Acciones de Compra */
.product-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.qty-control-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-control-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  color: #0f172a;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 52px;
  background: #ffffff;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #0f172a;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  height: 38px;
}

.btn-add-cart-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #C72429;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(199, 36, 41, 0.25);
}

.btn-add-cart-main:hover {
  background: #a81c20;
  transform: translateY(-1px);
}

.btn-quote-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-quote-wa:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

/* Tarjeta de Condiciones B2B */
.b2b-conditions-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
}

.b2b-conditions-card strong {
  color: #0f172a;
}

/* Ficha Técnica y Especificaciones Factuales */
.product-specs-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.specs-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  border-bottom: 2px solid #C72429;
  padding-bottom: 8px;
  display: inline-block;
  letter-spacing: -0.5px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.spec-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #C72429;
  border-radius: 10px;
  padding: 18px 20px;
}

.spec-item-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #C72429;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item-val {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.55;
}

.spec-item-sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 6px;
}

/* Métodos de Preparación */
.prep-methods-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prep-methods-list li {
  font-size: 0.9rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabla Nutricional Limpia */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.88rem;
}

.nutrition-table th, .nutrition-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.nutrition-table th {
  color: #64748b;
  font-weight: 600;
  width: 45%;
}

.nutrition-table td {
  color: #0f172a;
  font-weight: 700;
}

.nutrition-table tr:nth-child(even) {
  background: #f8fafc;
}

/* ==========================================================================
   SECCIÓN EXCLUSIVA DE OPCIÓN AL POR MAYOR (CAJA MASTER)
   ========================================================================== */
.wholesale-featured-section {
  margin-top: 40px;
}

.wholesale-pack-card {
  background: #ffffff;
  border: 2px solid #C72429;
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(199, 36, 41, 0.08);
}

@media (max-width: 820px) {
  .wholesale-pack-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

.wholesale-pack-img-col {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wholesale-pack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wholesale-pack-card:hover .wholesale-pack-img {
  transform: scale(1.03);
}

.wholesale-badge-top {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.wholesale-pack-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.wholesale-pack-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.wholesale-pack-pricing {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wholesale-price-main {
  font-size: 2.2rem;
  font-weight: 900;
  color: #C72429;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wholesale-price-neto-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 6px;
}

.wholesale-price-unit {
  font-size: 0.95rem;
  color: #15803d;
  font-weight: 700;
  margin-top: 6px;
}

.wholesale-price-bruto {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 4px;
}

.wholesale-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-wholesale-pack-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #C72429;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-wholesale-pack-primary:hover {
  background: #a81c20;
}

.btn-wholesale-pack-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-wholesale-pack-wa:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

/* ==========================================================================
   LIGHTBOX MODAL DE FOTOS (AMPLIACIÓN EN 1 CLIC)
   ========================================================================== */
.product-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.lightbox-content-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-main-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #C72429;
}
