/* =============================================
   FICHA DE PRODUCTO - Estilo Gameria
   Archivo: /themes/classic/assets/css/product.css
   ============================================= */

/* ── Fuentes ── */
body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.product-page,
.product-page * {
  font-family: 'Montserrat', sans-serif;
}

/* ── Variables ── */
:root {
  --color-primary: #08a48f;
  --color-primary-light: #e0f2f1;
  --color-text: #123341;
  --color-text-light: #666;
  --color-border: #e0e0e0;
  --color-price: #123341;
  --color-price-old: #999;
}

/* ── Breadcrumb fondo verde ── */
#wrapper .breadcrumb-wrapper,
.breadcrumb-wrapper {
  background-color: var(--color-primary);
  padding: 8px 0;
  width: 100%;
}
#wrapper .breadcrumb-wrapper .breadcrumb,
.breadcrumb-wrapper .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0 15px;
}
#wrapper .breadcrumb-wrapper .breadcrumb a,
#wrapper .breadcrumb-wrapper .breadcrumb span,
.breadcrumb-wrapper .breadcrumb a,
.breadcrumb-wrapper .breadcrumb span {
  color: #fff !important;
}
.breadcrumb-wrapper .breadcrumb .separator {
  color: rgba(255,255,255,0.6) !important;
}

/* ── Layout principal ── */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}
.product-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.product-col-images {
  flex: 0 0 50%;
  max-width: 50%;
}
.product-col-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Referencia ── */
.product-reference {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ── Título ── */
.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

/* ── Iconos características ── */
.product-features-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.feature-badge img {
  filter: brightness(0) invert(1);
}

/* ── Descripción corta ── */
.product-description-short {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

/* ── Precio + Marca ── */
.product-price-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}
.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-price);
}
.product-price-old {
  font-size: 1rem;
  color: var(--color-price-old);
  text-decoration: line-through;
  margin-right: 8px;
}
.product-brand-logo {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}
.product-brand-logo img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: none;
}

/* ── Formulario ── */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Cantidad + Botón ── */
.qty-cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Touchspin [−] [1] [+] ── */
#product .product-quantity .qty {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 48px;
  border-radius: 30px;
  border: 2px solid var(--color-primary);
  overflow: hidden;
  width: fit-content;
}
#product .product-quantity .bootstrap-touchspin {
  display: contents;
  box-shadow: none !important;
}
#product .product-quantity .input-group-addon {
  display: none !important;
}
#product .product-quantity .input-group-btn-vertical {
  display: contents;
}
#product .product-quantity .bootstrap-touchspin-down {
  order: 0;
  position: static !important;
  width: 35px;
  height: 48px;
  border: none !important;
  background: transparent !important;
  font-size: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#product .product-quantity #quantity_wanted {
  order: 1;
  flex: 1;
  min-width: 40px;
  height: 48px;
  text-align: center;
  border: none !important;
  border-left: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  font-size: 20px;
  font-weight: 500;
  background: transparent;
  -moz-appearance: textfield;
}
#product .product-quantity #quantity_wanted::-webkit-outer-spin-button,
#product .product-quantity #quantity_wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
#product .product-quantity .bootstrap-touchspin-up {
  order: 2;
  position: static !important;
  width: 35px;
  height: 48px;
  border: none !important;
  background: transparent !important;
  font-size: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#product .product-quantity .bootstrap-touchspin-down i,
#product .product-quantity .bootstrap-touchspin-up i {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0 !important;
  line-height: 1;
}
#product i.material-icons.touchspin-up::after {
  content: "+";
  font-size: 24px;
  color: var(--color-primary);
  font-family: sans-serif;
  font-style: normal;
}
#product .bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
  content: "−";
  font-size: 24px;
  color: var(--color-primary);
  font-family: sans-serif;
  font-style: normal;
}

/* ── Botón añadir al carrito ── */
.add-to-cart {
  flex: 1;
  height: 48px;
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}
.add-to-cart:hover {
  background-color: #007a7a !important;
}
.add-to-cart:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
}

/* ── Iconos envío inline ── */
.extra_info_product {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}
.carrier_info,
.seguro_info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}
.carrier_info img,
.seguro_info img {
  width: 24px;
  height: auto;
}
.carrier_info span,
.seguro_info span {
  font-size: 11px;
  color: #123341;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

/* ── Redes sociales ── */
.product-social-sharing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.social-label {
  color: var(--color-text-light);
  font-weight: 600;
}

/* ── Tabs (container_tabs) ── */
.container_tabs {
  margin-left: calc((-50vw) + 50%);
  width: 100vw;
  box-shadow: 0px 2px 13px 0 rgba(0,0,0,0.24);
  background-color: #f3f5f5;
  padding: 16.5px;
  margin-bottom: 10px;
  margin-top: 40px;
}
.container_content_tabs {
  margin-left: calc((-50vw) + 50%);
  width: 100vw;
  background: white;
}
.container_tabs .nav-tabs {
  display: flex;
  justify-content: center;
  border: none !important;
  background: transparent;
}
.container_tabs .nav-item {
  display: inline-block;
  float: none;
}
.container_tabs .nav-item a.nav-link {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.9px;
  text-align: center;
  color: #123341;
  border: none;
}
.container_tabs .nav-item a.nav-link.active {
  background: none !important;
  border: none !important;
  font-weight: bold;
  color: var(--color-primary);
}
.container_tabs .nav-item a.nav-link:hover {
  border: none;
  color: var(--color-primary);
}

/* ── Contenido tabs ── */
.product-description {
  padding: 20px 0;
}
.product-description p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.product-description * {
  font-size: 16px;
  font-weight: 300;
  line-height: 2.12;
  letter-spacing: 0.8px;
  color: #123341;
  font-family: 'Montserrat', sans-serif;
}

/* ── Características agrupadas ── */
#product-details-footer {
  padding: 20px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  padding: 20px 0;
}
div#product-details-footer span.container_feature {
  display: block;
  line-height: 2;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
span.feature_title {
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 5px;
}

/* ── Producto no disponible ── */
.product-unavailable {
  color: #e53935;
  font-weight: 600;
}

/* ── Productos relacionados ── */
.product-accessories {
  margin-top: 40px;
}
.related-products-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    gap: 20px;
  }
  .product-col-images,
  .product-col-info {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .product-name {
    font-size: 1.3rem;
  }
  .product-price {
    font-size: 1.3rem;
  }
  .container_tabs,
  .container_content_tabs {
    margin-left: 0;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
