/* =========================================================
   AUCTION - SINGLE PRODUCT
   ========================================================= */

/* -------------------------
   CONTENEDOR GENERAL
   ------------------------- */
body.nv-product-auction.single-product .product {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

body.nv-product-auction.single-product .product-entry-wrapper {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(420px, 680px);
  gap: 40px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

body.nv-product-auction.single-product .product-entry-wrapper.is-width-constrained {
  width: 100% !important;
  max-width: 100% !important;
}

body.nv-product-auction.single-product .product-entry-wrapper > * {
  min-width: 0;
}

/* -------------------------
   COLUMNA IZQUIERDA - GALERÍA
   ------------------------- */
body.nv-product-auction.single-product .woocommerce-product-gallery {
  grid-column: 1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.nv-product-auction.single-product .ct-product-gallery-container,
body.nv-product-auction.single-product .flexy-container,
body.nv-product-auction.single-product .flexy,
body.nv-product-auction.single-product .flexy-view,
body.nv-product-auction.single-product .flexy-items,
body.nv-product-auction.single-product .flexy-item {
  width: 100% !important;
  max-width: 100% !important;
}

/* Solo imagen principal, no miniaturas */
body.nv-product-auction.single-product .flexy-view figure.ct-media-container,
body.nv-product-auction.single-product .flexy-view .ct-media-container {
  width: 100% !important;
  max-width: 100% !important;
}

body.nv-product-auction.single-product .flexy-view img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

body.nv-product-auction.single-product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
}

body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills {
  margin-top: 12px;
}

/* -------------------------
   COLUMNA DERECHA - PANEL
   ------------------------- */
body.nv-product-auction.single-product .summary.entry-summary {
  grid-column: 2;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: static !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Evitar sticky raro de Blocksy */
body.nv-product-auction.single-product .product.sticky-summary .summary.entry-summary {
  position: static !important;
  top: auto !important;
}

/* -------------------------
   TÍTULO Y PRECIO
   ------------------------- */
body.nv-product-auction.single-product .summary .product_title {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
}

body.nv-product-auction.single-product .summary .price {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
}

body.nv-product-auction.single-product .summary .price .nv-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

body.nv-product-auction.single-product .summary .price .amount,
body.nv-product-auction.single-product .summary .price .woocommerce-Price-amount.amount {
  display: inline-flex;
  align-items: baseline;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: #bb3742;
}

body.nv-product-auction.single-product .summary .price .woocommerce-Price-currencySymbol {
  font-size: 0.8em;
}

body.nv-product-auction.single-product .summary .price .nv-price-currency-code {
  display: inline-block;
  margin-left: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* -------------------------
   BLOQUES DE TEXTO MENORES
   ------------------------- */
body.nv-product-auction.single-product .summary .stock {
  margin: 0 0 14px;
  font-size: 16px;
}

body.nv-product-auction.single-product #yith_wcact_reserve_and_overtime {
  margin-bottom: 14px;
}

body.nv-product-auction.single-product .yith_wcact_does_not_have_reserve_price {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

body.nv-product-auction.single-product .yith-wcact-max-bidder {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

/* -------------------------
   CONTADOR
   ------------------------- */
body.nv-product-auction.single-product .yith-wcact-time-left-main {
  margin: 24px 0;
}

body.nv-product-auction.single-product .yith-wcact-container-timeleft {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
}

body.nv-product-auction.single-product .ywcact-time-left {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

body.nv-product-auction.single-product .yith-wcact-timer-auction {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  align-items: stretch;
}

body.nv-product-auction.single-product .yith-wcact-timeleft {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

body.nv-product-auction.single-product .yith-wcact-number {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

body.nv-product-auction.single-product .yith-wcact-number-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.nv-product-auction.single-product .ywcact-auction-end-date {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: #4b5563;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .auction_bid.button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
}

/* -------------------------
   OCULTAR BLOQUE ADICIONAL
   ------------------------- */
body.nv-product-auction.single-product .ct-product-additional-info {
  display: none !important;
}

/* -------------------------
   FORMULARIO DE PUJA
   ------------------------- */
body.nv-product-auction.single-product #yith-wcact-form-bid {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(240px, 400px);
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .ywcact-your-bid-header {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .ywcact-currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: 24px;
  font-weight: 700;
  color: #374151;
  line-height: 1;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .quantity {
  width: 100%;
  min-width: 0;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .quantity input.ywcact-bid-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
  background: #fff;
}

body.nv-product-auction.single-product #yith-wcact-form-bid .auction_bid.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;

  width: 100%;
  max-width: 200px;
}

/*botones confirmar*/
.ywcact-auction-confirm {
	background-color: #bb3742 !important;
}

.ywcact-auction-confirm:hover { background-color: #003049 !important;
}

/* -------------------------
   TABS DENTRO DEL SUMMARY
   ------------------------- */
body.nv-product-auction.single-product .summary.entry-summary .woocommerce-tabs.wc-tabs-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 28px !important;
  margin-bottom: 0 !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: none;
}

body.nv-product-auction.single-product .summary.entry-summary .tabs.wc-tabs {
  margin-bottom: 16px;
}

body.nv-product-auction.single-product .summary.entry-summary .woocommerce-Tabs-panel {
  padding-top: 8px;
}

body.nv-product-auction.single-product > .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* -------------------------
   TABLET
   ------------------------- */
@media (max-width: 1024px) {
  body.nv-product-auction.single-product .product {
    max-width: 100%;
    padding-inline: 20px;
  }

  body.nv-product-auction.single-product .product-entry-wrapper {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  body.nv-product-auction.single-product .woocommerce-product-gallery,
  body.nv-product-auction.single-product .summary.entry-summary {
    grid-column: 1;
    max-width: 100% !important;
  }

  body.nv-product-auction.single-product .summary.entry-summary {
    padding: 24px;
  }

  body.nv-product-auction.single-product .summary .price .amount {
    font-size: 32px;
  }

  body.nv-product-auction.single-product .yith-wcact-timer-auction {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid {
    grid-template-columns: 1fr;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .auction_bid.button {
    width: 100%;
  }
}

/* -------------------------
   MOBILE
   ------------------------- */
@media (max-width: 768px) {
  body.nv-product-auction.single-product .product {
    padding-inline: 14px;
  }

  body.nv-product-auction.single-product .summary.entry-summary {
    padding: 18px;
    border-radius: 14px;
  }

  body.nv-product-auction.single-product .summary .product_title {
    font-size: 32px;
    line-height: 1.15;
    word-break: break-word;
  }

  body.nv-product-auction.single-product .summary .price {
    gap: 6px;
    margin-bottom: 18px;
  }

  body.nv-product-auction.single-product .summary .price .amount {
    font-size: 28px;
  }

  body.nv-product-auction.single-product .yith-wcact-container-timeleft {
    padding: 16px;
    border-radius: 14px;
  }

  body.nv-product-auction.single-product .yith-wcact-timer-auction {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  body.nv-product-auction.single-product .yith-wcact-timeleft {
    padding: 12px 8px;
    border-radius: 12px;
  }

  body.nv-product-auction.single-product .yith-wcact-number {
    font-size: 24px;
  }

  body.nv-product-auction.single-product .yith-wcact-number-label {
    font-size: 11px;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid input.ywcact-bid-input {
    min-height: 48px;
    font-size: 16px;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .auction_bid.button {
    min-height: 48px;
    border-radius: 12px;
  }

  body.nv-product-auction.single-product .summary.entry-summary .woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 24px !important;
    padding: 16px;
    border-radius: 14px;
  }

  body.nv-product-auction.single-product .summary.entry-summary .tabs.wc-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  body.nv-product-auction.single-product .summary.entry-summary .tabs.wc-tabs li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.nv-product-auction.single-product .summary.entry-summary .woocommerce-Tabs-panel {
    padding-top: 14px;
  }

  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-arrow-prev,
  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-arrow-next {
    transform: scale(0.9);
  }

/**/
  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container,
  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills img {
    width: 56px !important;
    height: 56px !important;
  }
}

@media (max-width: 1024px) {
  body.nv-product-auction.single-product #yith-wcact-form-bid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  /* fila $ + cantidad */
  body.nv-product-auction.single-product #yith-wcact-form-bid .ywcact-currency-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 48px;
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .quantity {
    display: inline-flex;
    align-items: center;
    width: calc(100% - 40px);
    min-width: 0;
    vertical-align: middle;
  }

  /* fuerza ambos a convivir en la misma línea */
  body.nv-product-auction.single-product #yith-wcact-form-bid .ywcact-currency-symbol,
  body.nv-product-auction.single-product #yith-wcact-form-bid .quantity {
    grid-row: 2;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .ywcact-currency-symbol {
    grid-column: 1;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .quantity {
    grid-column: 1;
    margin-left: 40px;
    margin-top: -10px;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .quantity input.ywcact-bid-input {
    min-height: 48px;
    font-size: 16px;
  }

  body.nv-product-auction.single-product #yith-wcact-form-bid .auction_bid.button {
    grid-column: 1;
    grid-row: 3;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
  }
}

/* -------------------------
   SMALL MOBILE
   ------------------------- */
@media (max-width: 480px) {
  body.nv-product-auction.single-product .product {
    padding-inline: 10px;
  }

  body.nv-product-auction.single-product .summary.entry-summary {
    padding: 16px;
  }

  body.nv-product-auction.single-product .summary .product_title {
    font-size: 26px;
  }

  body.nv-product-auction.single-product .summary .price .amount {
    font-size: 24px;
  }

  body.nv-product-auction.single-product .yith-wcact-timer-auction {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  body.nv-product-auction.single-product .yith-wcact-number {
    font-size: 22px;
  }

  body.nv-product-auction.single-product .yith-wcact-container-timeleft {
    padding: 14px;
  }

/**/
  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container,
  body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills img {
    width: 48px !important;
    height: 48px !important;
  }
}

/*FIX*/
/* Subastas: miniaturas de galería más compactas */
body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills {
  margin-top: 12px !important;
}

body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills ol {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
}

body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills li {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  border-radius: 12px;
}

body.nv-product-auction.single-product .woocommerce-product-gallery .flexy-pills img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
}

/* Subastas: tabla de pujas responsive */
body.nv-product-auction.single-product .yith-wcact-table-bids {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.nv-product-auction.single-product .ywcact-list-bids-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

body.nv-product-auction.single-product .ywcact-list-bids-table td {
  white-space: nowrap;
}

@media (max-width: 400px) {
  body.nv-product-auction.single-product .ywcact-list-bids-table {
    min-width: 390px;
  }

  body.nv-product-auction.single-product .ywcact-list-bids-table td {
    padding-inline: 10px;
    font-size: 14px;
  }
}

/*FIX2*/
/* =========================================================
   SUBASTAS - CONTADOR EN PRODUCTOS RELACIONADOS
   ========================================================= */

body.nv-product-auction.single-product
.related
.yith-wcact-timeleft-loop {
    width: 100% !important;

    padding: 8px 10px !important;
    margin: 0 !important;

    background: #00364d !important;
    border-radius: 8px !important;

    pointer-events: none;
}


/* Contador horizontal */
body.nv-product-auction.single-product
.related
.yith-wcact-timeleft-loop
.yith-wcact-timer-auction {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    gap: 6px !important;
    margin: 0 !important;
}


/* Días / horas / minutos / segundos */
body.nv-product-auction.single-product
.related
.yith-wcact-timeleft {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    white-space: nowrap !important;
}


/* Número */
body.nv-product-auction.single-product
.related
.yith-wcact-number {
    display: inline !important;

    margin: 0 !important;

    color: #fff !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}


/* D / H / M / S */
body.nv-product-auction.single-product
.related
.yith-wcact-number-label {
    display: inline !important;

    margin: 0 0 0 2px !important;

    color: #fff !important;

    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}


/* Ocultar fecha textual bajo el contador */
body.nv-product-auction.single-product
.related
.auction_end_start {
    display: none !important;
}