/* =====================
   ACORDEÓN
   ===================== */
.beshop-product-accordions {
  margin-top: 32px;
}

.beshop-accordion {
  border-bottom: 0.5px solid var(--beshop-line);
}

.beshop-accordion-title {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.beshop-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beshop-text);
  cursor: pointer;
  text-align: left;
}

.beshop-accordion-header svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.beshop-accordion-header[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.beshop-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--beshop-text);
}

.beshop-accordion-body.is-open {
  padding-bottom: 20px;
}

/* =====================
   TABS CLÁSICOS
   ===================== */
.tabs {
  margin-top: 32px;
}

.tabs .nav-tabs {
  border-bottom: 0.5px solid var(--beshop-line);
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tabs .nav-tabs .nav-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beshop-text-muted);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tabs .nav-tabs .nav-link:hover {
  color: var(--beshop-text);
}

.tabs .nav-tabs .nav-link.active {
  color: var(--beshop-text);
  border-bottom-color: var(--beshop-primary);
}

.tabs .tab-content {
  padding-top: 24px;
}

.tabs .tab-pane {
  display: none;
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--beshop-text);
}

.tabs .tab-pane.active {
  display: block;
}

/* =====================
   VARIANTES
   ===================== */


   .product-variants .radio-label{
     border: 1px solid var(--beshop-line);
   }
   .product-variants .input-radio:checked+.radio-label{
     border: 1px solid var(--beshop-primary);
   }
   .product-variants .input-radio:hover+.radio-label{
     border: 1px solid var(--beshop-primary);
   }
/* =====================
   DATA SHEET (compartido)
   ===================== */
.data-sheet {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}

.data-sheet dt.name {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beshop-text-muted);
}

.data-sheet dd.value {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--beshop-text);
  margin: 0;
}
.product-container{
  margin-bottom: 4em;
}
#product #content{
  max-width: 650px;
}

.product-info-col{
  max-width: 750px;
}


/* ============================================================
   Ficha de producto
   Movido desde el custom.sass de la web (v1.4.0)
   ============================================================ */
@charset "UTF-8";
#product .breadcrumb {
  margin: 0 0 32px;
  padding: 0 40px;
  background: none;
}
#product .breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  row-gap: 2px;
}
#product .breadcrumb li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beshop-text-muted); /* text-subtle no llega al contraste mínimo */
  white-space: nowrap;
}
#product .breadcrumb li a {
  color: var(--beshop-text-muted);
  text-decoration: none;
}
#product .breadcrumb li a:hover {
  color: var(--beshop-text);
}
#product .breadcrumb li::after {
  content: "·";
  margin-left: 6px;
  color: var(--beshop-line);
}
#product .breadcrumb li:last-child::after {
  display: none;
}
#product .breadcrumb li:last-child a {
  color: var(--beshop-text);
}
/* Separación entre columnas solo cuando están lado a lado (desde md); en móvil
   las columnas se apilan y el padding desplazaba todo a la izquierda */
@media (min-width: 768px) {
  #product #content {
    padding-right: 48px;
  }
}
#product .product-cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: var(--beshop-product-ratio, 1);
}
#product .product-cover picture, #product .product-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#product .product-cover:hover .layer {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}
#product .product-images {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
#product .thumb-container {
  cursor: pointer;
}
#product .thumb-container .thumb {
  display: block;
  border: 0.5px solid var(--beshop-line);
  transition: border-color 0.2s ease;
}
#product .thumb-container:hover .thumb,
#product .thumb-container .thumb.selected {
  border-color: var(--beshop-primary);
}
#product h1.h1 {
  font-family: var(--beshop-font-primary), serif;
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--beshop-text);
  margin: 0 0 20px;
  line-height: 1.2;
}
#product #product-details .label {
  font-size: 14px;
  font-weight: 400;
}
#product .product-prices {
  margin-bottom: 24px;
}
#product .current-price-value {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: 16;
  font-weight: 400;
  color: var(--beshop-text);
  letter-spacing: 0.02em;
}
#product .tax-shipping-delivery-label {
  font-size: var(--fs-2xs);
  color: var(--beshop-text);
  font-weight: 300;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
#product .short-description {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--beshop-text);
  line-height: 1.9;
  margin-bottom: 28px;
}
#product .short-description p {
  margin: 0;
}
#product .product-variants {
  margin-bottom: 28px;
}
#product .product-variants .product-variants-item .control-label {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beshop-text);
  display: block;
  margin-bottom: 10px;
}
#product .product-variants select.form-control-select {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--beshop-text);
  background: var(--beshop-bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230e0e0e' stroke-width='1' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 0.5px solid var(--beshop-line);
  border-radius: var(--beshop-radius-field, 0);
  padding: 9px 36px 9px 12px;
  appearance: none;
  cursor: pointer;
  min-width: 120px;
  transition: border-color 0.2s ease;
}
#product .product-variants select.form-control-select:hover, #product .product-variants select.form-control-select:focus {
  border-color: var(--beshop-primary);
}
#product .product-add-to-cart {
  margin-bottom: 28px;
}
#product .control-label {
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beshop-text);
  display: block;
  margin-bottom: 10px;
}
#product .product-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#product .qty .quantity-nav {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--beshop-line-strong);
  background: var(--beshop-bg-card);
}
#product .qty .quantity-button {
  width: 40px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: 300;
  cursor: pointer;
  color: var(--beshop-text);
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}
#product .qty .quantity-button:hover {
  background: var(--beshop-primary);
  color: var(--beshop-primary-contrast);
}
/* Más específico que la norma de formularios (#wrapper input) para no duplicar el borde */
#product #wrapper .qty .quantity-nav input[type=number],
#product .qty input[type=number] {
  width: 48px;
  border-radius: 0 !important;
  height: 46px !important;
  padding: 0 !important;
  text-align: center;
  background: transparent !important;
  border: none !important;
  border-left: 1px solid var(--beshop-line-strong) !important;
  border-right: 1px solid var(--beshop-line-strong) !important;
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--beshop-text);
  -moz-appearance: textfield;
}
#product .qty input[type=number]::-webkit-outer-spin-button, #product .qty input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
#product .add {
  display: flex;
  align-items: center;
  gap: 10px;
}
#product .add .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 80px !important;
  background: var(--beshop-primary);
  color: var(--beshop-primary-contrast);
  border: 1px solid var(--beshop-primary);
  border-radius: var(--beshop-radius-btn, 0);
  font-family: var(--beshop-font-secondary), sans-serif;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
#product .add .add-to-cart i {
  font-size: var(--fs-md);
}
#product .add .add-to-cart:hover {
  background: var(--beshop-bg-card);
  color: var(--beshop-text);
}
#product .wishlist-button-product {
  width: 46px;
  height: 46px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
  box-shadow: none;
}
#product .wishlist-button-product i {
  font-size: var(--fs-md);
  color: var(--beshop-text);
}
#product .wishlist-button-product i:hover {
  border-color: var(--beshop-primary);
}

/* ============================================================
   Zoom de la ficha (product-images-modal.tpl): panel blanco a
   pantalla completa que baja como un telón al abrir y sube al cerrar
   ============================================================ */
#product .product-cover .layer {
  border: 0;
  padding: 0;
  color: #fff;
}
#product .product-cover .layer:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
.beshop-zoom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beshop-bg-card);
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .6s;
}
.beshop-zoom.is-open {
  visibility: visible;
  transform: none;
  transition: transform .6s cubic-bezier(.76, 0, .24, 1), visibility 0s;
}
html.beshop-zoom-lock {
  overflow: hidden;
}
.beshop-zoom__slides {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px 96px;
  list-style: none;
}
.beshop-zoom__slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.beshop-zoom__slide.is-active {
  display: flex;
}
.beshop-zoom__slide picture {
  display: contents;
}
.beshop-zoom__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.beshop-zoom__close,
.beshop-zoom__arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--beshop-text);
  cursor: pointer;
  transition: opacity .2s ease;
}
.beshop-zoom__close:hover,
.beshop-zoom__arrow:hover {
  opacity: .6;
}
.beshop-zoom__close:focus-visible,
.beshop-zoom__arrow:focus-visible {
  outline: 1px solid currentColor;
}
.beshop-zoom__close {
  top: 16px;
  right: 16px;
}
.beshop-zoom__arrow {
  top: 50%;
  transform: translateY(-50%);
}
.beshop-zoom__arrow--prev {
  left: 24px;
}
.beshop-zoom__arrow--next {
  right: 24px;
}
.beshop-zoom__counter {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: var(--text-small, 12px);
  letter-spacing: .2em;
  color: var(--beshop-text);
  pointer-events: none; /* en móvil está a la altura de las flechas: que no tape sus clics */
}
@media (max-width: 767px) {
  .beshop-zoom__slides {
    padding: 64px 0;
  }
  .beshop-zoom__close {
    top: 8px;
    right: 8px;
  }
  .beshop-zoom__arrow {
    top: auto;
    bottom: 8px;
    transform: none;
  }
  .beshop-zoom__arrow--prev {
    left: 8px;
  }
  .beshop-zoom__arrow--next {
    right: 8px;
  }
  .beshop-zoom__counter {
    bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .beshop-zoom,
  .beshop-zoom.is-open {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   Zoom al pasar el ratón (Producto › Zoom). La foto sigue abriendo la ventana al pulsarla.
   ------------------------------------------------------------------ */
#product .beshop-zoom-mode--inner,
#product .beshop-zoom-mode--side {
  cursor: zoom-in;
}
/* Con zoom al pasar el ratón no hace falta la lupa encima de la foto */
#product .beshop-zoom-mode--inner .layer .zoom-in,
#product .beshop-zoom-mode--side .layer .zoom-in {
  display: none;
}
#product .beshop-zoom-mode--inner .layer,
#product .beshop-zoom-mode--side .layer {
  background: none !important;
  cursor: zoom-in;
}
/* Dentro de la foto: la imagen grande encima, siguiendo el ratón */
.beshop-hzoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--beshop-bg-card);
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.beshop-hzoom.is-visible {
  opacity: 1;
}
/* Recuadro al lado: fuera de la foto, encima de la columna de información */
.beshop-hzoom--side {
  inset: auto;
  z-index: 50;
  border: 1px solid var(--beshop-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.beshop-hzoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--beshop-line-strong);
  opacity: 0;
  pointer-events: none;
}
#product .product-cover.is-zooming .beshop-hzoom-lens {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .beshop-hzoom { transition: none; }
}

/* ------------------------------------------------------------------
   Galería (Producto › Galería); «bottom» son las reglas de arriba
   ------------------------------------------------------------------ */
@media (min-width: 768px) {
  /* Miniaturas a la izquierda, en columna con scroll si no caben al alto de la foto */
  #product .beshop-gallery--left {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  #product .beshop-gallery--left > .product-cover {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }
  #product .beshop-gallery--left > .js-qv-mask {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    position: relative;
  }
  #product .beshop-gallery--left .product-images {
    position: absolute;
    inset: 0;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  #product .beshop-gallery--left .thumb-container .thumb {
    width: 100%;
    height: auto;
    margin: 0;
  }
  #product .beshop-gallery--left > :not(.product-cover):not(.js-qv-mask) {
    grid-column: 1 / -1;
  }
  /* Las etiquetas (Nuevo, -20%...) sobre la foto, no sobre las miniaturas */
  #product .page-content:has(.beshop-gallery--left) .product-flags {
    left: 96px;
  }

  /* Una grande y el resto en dos columnas; si sobra una, a todo el ancho */
  #product .beshop-gallery--grid .beshop-gallery-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #product .beshop-gallery--grid .beshop-gallery-item:first-child,
  #product .beshop-gallery--grid .beshop-gallery-item:nth-child(even):last-child {
    grid-column: 1 / -1;
  }

  /* Todas grandes, una debajo de otra */
  #product .beshop-gallery--stack .beshop-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Con la galería larga, los datos del producto se quedan a la vista al bajar */
  #product .beshop-gallery-row--grid > .product-info-col,
  #product .beshop-gallery-row--stack > .product-info-col {
    position: sticky;
    top: calc(var(--beshop-sticky-offset, 0px) + 24px);
    align-self: flex-start;
  }
}
#product .beshop-gallery-item {
  margin-bottom: 0;
}
/* Móvil: las fotos se pasan deslizando; se asoma la siguiente para que se vea que hay más */
@media (max-width: 767.98px) {
  #product .beshop-gallery-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  #product .beshop-gallery-list::-webkit-scrollbar {
    display: none;
  }
  #product .beshop-gallery-item {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
  #product .beshop-gallery-item:only-child {
    flex-basis: 100%;
  }
}