/* Widgets de producto para Elementor — Una Vida de Luz */
.uvdl-ep-empty { padding: 14px 16px; border: 1px dashed #c9a96e; border-radius: 10px; background: #fbf8f3; color: #7e6346; font-family: Quicksand, sans-serif; font-size: 13px; }

/* Título */
.uvdl-ep-title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 400; color: #4a3728; line-height: 1.2; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* Galería */
.uvdl-ep-gal { --uvdl-thumb: 76px; display: grid; gap: 12px; }
.uvdl-ep-gal--left { grid-template-columns: var(--uvdl-thumb) minmax(0, 1fr); }
.uvdl-ep-gal--left .uvdl-ep-gal__thumbs { order: -1; flex-direction: column; overflow: auto; max-height: 640px; }
.uvdl-ep-gal__stage { position: relative; overflow: hidden; }
.uvdl-ep-gal__track { display: grid; }
.uvdl-ep-gal__main { grid-area: 1 / 1; margin: 0; overflow: hidden; border-radius: 16px; background: #f0eae0; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.uvdl-ep-gal__main.is-active { opacity: 1; visibility: visible; }
.uvdl-ep-gal__main img { display: block; width: 100% !important; height: auto !important; contain-intrinsic-size: none !important; }
.uvdl-ep-gal.has-ratio .uvdl-ep-gal__main { aspect-ratio: var(--uvdl-ratio); }
.uvdl-ep-gal.has-ratio .uvdl-ep-gal__main img { height: 100% !important; object-fit: cover; }
.uvdl-ep-gal.can-zoom .uvdl-ep-gal__main { cursor: zoom-in; }
.uvdl-ep-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #4a3728; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(74, 55, 40, .5); opacity: 0; transition: opacity .2s; }
.uvdl-ep-gal__nav.is-prev { left: 12px; }
.uvdl-ep-gal__nav.is-next { right: 12px; }
.uvdl-ep-gal__stage:hover .uvdl-ep-gal__nav, .uvdl-ep-gal__nav:focus-visible { opacity: 1; }
.uvdl-ep-gal__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.uvdl-ep-gal__thumb { flex: 0 0 var(--uvdl-thumb); width: var(--uvdl-thumb); height: var(--uvdl-thumb); padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #f0eae0; outline: 2px solid transparent; outline-offset: 2px; opacity: .7; transition: opacity .2s, outline-color .2s; }
.uvdl-ep-gal__thumb.is-active, .uvdl-ep-gal__thumb:hover { opacity: 1; }
.uvdl-ep-gal__thumb.is-active { outline-color: #c9a96e; }
.uvdl-ep-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uvdl-ep-lightbox { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(30, 22, 16, .92); cursor: zoom-out; padding: 20px; }
.uvdl-ep-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
@media (max-width: 767px) {
	.uvdl-ep-gal--left { grid-template-columns: 1fr; }
	.uvdl-ep-gal--left .uvdl-ep-gal__thumbs { order: 0; flex-direction: row; max-height: none; }
	.uvdl-ep-gal__nav { opacity: 1; width: 34px; height: 34px; font-size: 20px; }
}

/* Precio */
.uvdl-ep-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-family: Quicksand, sans-serif; color: #4a3728; }
.uvdl-ep-price__amount { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.uvdl-ep-price__amount del { font-size: .6em; font-weight: 500; color: #9a8673; margin-right: .35em; }
.uvdl-ep-price__amount ins { text-decoration: none; }
.uvdl-ep-price__txt { font-size: .9rem; color: #7e6346; }

/* Etiquetas */
.uvdl-ep-badge { display: inline-block; padding: .3em .8em; border-radius: 99px; background: #4a3728; color: #f0eae0; font-family: Quicksand, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.uvdl-ep-badge--float { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* Botón de compra */
.uvdl-ep-cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0; }
.uvdl-ep-cart form.variations_form { display: block; }
.uvdl-ep-cart .variations { width: 100%; border: 0; margin: 0 0 12px; }
.uvdl-ep-cart .variations th, .uvdl-ep-cart .variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.uvdl-ep-cart .variations th label, .uvdl-ep-cart .variations th { font-family: Quicksand, sans-serif; font-weight: 600; font-size: .85rem; color: #7e6346; margin-bottom: 6px; }
.uvdl-ep-cart .variations select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(201, 169, 110, .6); border-radius: 12px; background: #fff; font-family: Quicksand, sans-serif; font-size: 16px; color: #4a3728; }
.uvdl-ep-cart .reset_variations { font-size: .8rem; color: #7e6346; }
.uvdl-ep-cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.uvdl-ep-cart .woocommerce-variation-price { margin: 4px 0 12px; font-family: Quicksand, sans-serif; font-weight: 600; font-size: 1.4rem; color: #4a3728; }
.uvdl-ep-cart.no-qty .quantity { display: none !important; }
.uvdl-ep-cart .single_add_to_cart_button { min-height: 52px; padding: .9em 2.2em; border: 0; border-radius: 999px; background: #4a3728; color: #f0eae0; font-family: Quicksand, sans-serif; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s; }
.uvdl-ep-cart .single_add_to_cart_button:hover { background: #7e6346; }
.uvdl-ep-cart .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }
.uvdl-ep-cart.is-full .single_add_to_cart_button { flex: 1 1 auto; width: 100%; }
.uvdl-ep-cart.is-full form.cart:not(.variations_form) .single_add_to_cart_button, .uvdl-ep-cart.is-full .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; }
.uvdl-ep-cart__note { margin: 10px 0 0; font-family: Quicksand, sans-serif; font-size: .8rem; color: #7e6346; text-align: center; }

/* Textos */
.uvdl-ep-text { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; line-height: 1.6; color: #4a3728; }
.uvdl-ep-text > :first-child { margin-top: 0; }
.uvdl-ep-text > :last-child { margin-bottom: 0; }

/* Valoración */
.uvdl-ep-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.uvdl-ep-rating__stars { color: #c9a96e; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.uvdl-ep-rating__stars .is-off { opacity: .25; }
.uvdl-ep-rating__count { font-family: Quicksand, sans-serif; font-size: .85rem; color: #7e6346; text-decoration: none; }

/* Meta */
.uvdl-ep-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: Quicksand, sans-serif; font-size: .85rem; color: #7e6346; }
.uvdl-ep-meta.is-stacked { flex-direction: column; }
.uvdl-ep-meta b { font-weight: 600; color: #4a3728; }
.uvdl-ep-meta a { color: #a8864f; text-decoration: none; }
.uvdl-ep-meta a:hover { text-decoration: underline; }

/* Información adicional */
.uvdl-ep-attrs table { width: 100%; border-collapse: collapse; font-family: Quicksand, sans-serif; }
.uvdl-ep-attrs th, .uvdl-ep-attrs td { padding: 10px 12px; border-bottom: 1px solid rgba(201, 169, 110, .3); text-align: left; color: #4a3728; }
.uvdl-ep-attrs th { width: 35%; font-weight: 600; }
.uvdl-ep-attrs td p { margin: 0; }

/* Pestañas */
.uvdl-ep-tabs .wc-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 18px; padding: 0; list-style: none; border-bottom: 1px solid rgba(201, 169, 110, .4); }
.uvdl-ep-tabs .wc-tabs li { margin: 0; }
.uvdl-ep-tabs .wc-tabs li a { display: block; padding: 10px 0; border-bottom: 2px solid transparent; font-family: Quicksand, sans-serif; font-weight: 600; color: #7e6346; text-decoration: none; margin-bottom: -1px; }
.uvdl-ep-tabs .wc-tabs li.active a { color: #4a3728; border-color: #c9a96e; }

/* Reseñas */
.uvdl-ep-reviews__title, .uvdl-ep-rel__title { margin: 0 0 1.5rem; text-align: center; font-family: "Playfair Display", Georgia, serif; font-weight: 400; color: #4a3728; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Relacionados */
.uvdl-ep-rel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.uvdl-ep-rel__card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(201, 169, 110, .35); border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.uvdl-ep-rel__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(74, 55, 40, .45); }
.uvdl-ep-rel__img { display: block; background: #f0eae0; }
.uvdl-ep-rel__img img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; contain-intrinsic-size: none !important; }
.uvdl-ep-rel__body { display: grid; gap: .45rem; padding: 1rem 1.1rem 1.2rem; flex: 1; align-content: start; }
.uvdl-ep-rel__name { font-family: "Playfair Display", Georgia, serif; font-size: 1.08rem; line-height: 1.3; color: #4a3728 !important; text-decoration: none !important; }
.uvdl-ep-rel__price { font-family: Quicksand, sans-serif; font-weight: 600; color: #7e6346; }
.uvdl-ep-rel__btn { justify-self: start; margin-top: .3rem; padding: .5em 1.2em; border-radius: 999px; background: #4a3728; color: #f0eae0 !important; font-family: Quicksand, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.uvdl-ep-rel__btn:hover { background: #7e6346; }
@media (max-width: 1024px) { .uvdl-ep-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uvdl-ep-rel__grid { grid-template-columns: minmax(0, 1fr); } }

/* Migas de pan */
.uvdl-ep .woocommerce-breadcrumb, .elementor-widget-uvdl_ep_breadcrumb .woocommerce-breadcrumb { margin: 0; font-family: Quicksand, sans-serif; font-size: .8rem; color: #7e6346; }
.elementor-widget-uvdl_ep_breadcrumb .woocommerce-breadcrumb a { color: #a8864f; text-decoration: none; }

/* La página con diseño a medida no suma márgenes del tema */
body.uvdl-ep main.uvdl-elementor > .wp-block-woocommerce-store-notices:empty { display: none; }
