/* ================================
   Woo – Single product layout (DashPlugins)
   ================================ */

.woocommerce div.product{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Quita floats/anchos raros */
.woocommerce div.product div.images,
.woocommerce div.product div.summary{
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* Tarjeta del producto */
.single-product .product{
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 28px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Thumbs */
.woocommerce div.product ul.flex-control-thumbs{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.woocommerce div.product ul.flex-control-thumbs li{
  margin: 0 !important;
  width: 92px;
}
.woocommerce div.product ul.flex-control-thumbs li img{
  cursor: pointer;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  opacity: .65;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.woocommerce div.product ul.flex-control-thumbs li img:hover{
  opacity: .9;
  transform: translateY(-1px);
}
.woocommerce div.product ul.flex-control-thumbs li img.flex-active{
  opacity: 1;
  border-color: var(--dp-primary);
  box-shadow: 0 0 0 3px rgba(43,113,208,.12);
}

/* Grid fila 1 */
@media (min-width: 992px){
  .dp-row.dp-row-1{
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 28px;
    align-items: start;
  }
}

/* Fila 2 */
.dp-row{ margin-top: 10px; }
.dp-row.dp-row-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Iframe */
.dp-iframe-wrap{
  width: 100%;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 10;
}
.dp-iframe-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Acordeón */
.dp-details{
  border: 1px solid #eee;
  border-radius: 12px;
  margin: 0 0 10px;
  overflow: hidden;
  background: #fff;
}
.dp-summary{
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dp-summary::-webkit-details-marker{ display:none; }
.dp-details[open] .dp-summary{ background: #F8F2E0; }
.dp-acc-icon{ display:inline-block; width: 1.4em; text-align:center; }
.dp-acc-title{ flex: 1; }
.dp-details-content{
  padding: 12px 14px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* Fila 3 */
.dp-row.dp-row-3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
}
@media (min-width: 992px){
  .dp-row.dp-row-3{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.dp-brandline{ margin:0; text-align:right; }
.dp-brandline span{ color:#666; font-size:14px; }

/* Qty/button */
body.single-product .quantity .qty{ border-radius: 10px; }
body.single-product .single_add_to_cart_button{ border-radius: 10px; background: var(--dp-primary) !important; }

/* Oculta meta */
body.single-product .product_meta{ display:none; }

/* YITH WAPO */
body.single-product .yith-wapo-block{ margin-top: 10px; }
body.single-product .summary .cart{ display: grid; gap: 10px; }

#yith-wapo-addon-1 h3{
  font-size: 16px !important;
  font-weight: 700;
}
.woocommerce-product-details__short-description{
  font-size: 18px !important;
}

#yith-wapo-block-1,
#wapo-total-price-table{
  border: 1px solid #eee;
  border-radius: 12px;
}

#yith-wapo-addon-1{ padding: 10px 12px; }

#wapo-total-price-table{
  margin-top: 14px;
  margin-bottom: 15px !important;
  overflow: hidden;
  background: #fff;
}

#wapo-total-price-table table{
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 0 !important;
}
#wapo-total-price-table th,
#wapo-total-price-table td{
  font-size: 14px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 10px 12px;
}
#wapo-total-price-table tr{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tooltip */
.yith-wapo-block .yith-wapo-addon .yith-wapo-option .tooltip span{
  background-color: var(--dp-primary) !important;
  color: var(--dp-bg) !important;
  font-size: 13px !important;
}
.yith-wapo-block .yith-wapo-addon .yith-wapo-option .tooltip{
  left: 20% !important;
}
.yith-wapo-block .yith-wapo-addon .yith-wapo-option .tooltip span:after{
  border-top-color: var(--dp-primary) !important;
}

/* ================================
   Modal (demo)
   ================================ */

.dp-modal{ position: fixed; inset: 0; z-index: 9999; }
.dp-modal__backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.55); }

.dp-modal__panel{
  position: relative;
  width: min(1100px, calc(100% - 32px));
  height: calc(100% - 32px);
  margin: 16px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dp-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.dp-modal__title{ margin: 0; font-size: 16px; }

.dp-modal__close{
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 700;
}
.dp-modal__close:hover{ background: rgba(0,0,0,.05); }
.dp-modal__close:focus{
  outline: 2px solid rgba(43,113,208,.35);
  outline-offset: 2px;
}

.dp-modal__body{
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.dp-iframe-wrap--modal{
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.dp-iframe-wrap--modal iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

html.dp-modal-open, body.dp-modal-open{
  overflow: hidden !important;
}

.dp-modal[hidden]{ display: none !important; }

/* Botón demo */
.dp-btn.dp-demo-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--dp-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.dp-preview-actions{ margin-top: 12px; }

.woocommerce-product-details__short-description{
	padding-right:30px;
}

