/*
Theme Name: tema-hijo
Template: astra
*/

/* Otero: mobile footer contained within the page, 2026-10-10. */
@media(max-width:767px){
body.single-product:has(.otero-full-footer) #colophon,
body.single-product:has(.otero-full-footer) #colophon .ast-small-footer,
body.single-product:has(.otero-full-footer) #colophon .ast-footer-overlay,
body.single-product:has(.otero-full-footer) #colophon .ast-container,
body.single-product:has(.otero-full-footer) #colophon .widget,
body.single-product:has(.otero-full-footer) #colophon .widget_block,
body.single-product:has(.otero-full-footer) #colophon .otero-full-footer{
 width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box;
}
body.single-product #colophon .otero-full-footer::before{left:0!important;right:0!important}
body.single-product #colophon .otero-footer-col{min-width:0;overflow-wrap:anywhere}
body.single-product .woocommerce-Tabs-panel{min-width:0;overflow-wrap:anywhere}
body.single-product .woocommerce-Tabs-panel img{max-width:100%;height:auto}
}

/* Otero: contain the complete mobile product document, including overscroll. */
@media(max-width:921px){
 html:has(body.single-product),body.single-product{
  max-width:100%;overflow-x:hidden!important;overscroll-behavior-x:none;
 }
 @supports(overflow:clip){
  html:has(body.single-product),body.single-product{overflow-x:clip!important}
 }
 body.single-product #page{max-width:100%;min-width:0}
}

/* Otero: shared cream product design, 2026-10-11. */
body.single-product{--otero-ink:#202b32;--otero-muted:#665f55;--otero-line:#dfd5c7;--otero-paper:#fffdf9;--otero-accent:#785235;background:#f7f2ea;color:var(--otero-ink)}
body.single-product #masthead .custom-logo{width:80px!important;height:80px!important;max-width:80px;object-fit:contain}
body.single-product #masthead .site-logo-img{padding:0}
body.single-product #masthead .main-header-bar{border-bottom:1px solid var(--otero-line);box-shadow:none}
body.single-product #masthead a,body.single-product #masthead .menu-toggle{color:var(--otero-ink)}
body.single-product #masthead .menu-toggle{border:1px solid var(--otero-line);border-radius:12px;background:var(--otero-paper);padding:12px}
body.single-product #masthead .menu-toggle:hover{background:#eee4d6}
body.single-product .product_title{color:var(--otero-ink);font-size:clamp(1.7rem,3vw,2.55rem);line-height:1.18;letter-spacing:-.025em;font-weight:700;text-wrap:balance}
body.single-product .woocommerce-breadcrumb{font-size:.8rem;line-height:1.6;color:var(--otero-muted);margin-bottom:1rem}
body.single-product .summary .price{font-size:1.65rem!important;font-weight:700;color:var(--otero-ink)!important}
body.single-product .price del{font-size:.75em;opacity:.65}
body.single-product .price ins{text-decoration:none}
body.single-product .woocommerce-product-details__short-description{font-size:1rem;line-height:1.75;color:var(--otero-muted)}
body.single-product .summary>.single-product-category{display:inline-block;margin-bottom:1rem;padding:.35rem .75rem;border:1px solid var(--otero-line);border-radius:999px;color:var(--otero-accent);font-size:.8rem;font-weight:600}
body.single-product .product_meta{font-size:.8rem;line-height:1.8;border-top:1px solid var(--otero-line);padding-top:1rem}
body.single-product .product_meta a{color:var(--otero-accent)}
body.single-product .single_add_to_cart_button,body.single-product .products .button{background:var(--otero-ink)!important;color:#fffdf9!important;border:1px solid var(--otero-ink)!important;border-radius:10px;font-weight:600;line-height:1.35;padding:14px 22px;box-shadow:none}
body.single-product .single_add_to_cart_button:hover,body.single-product .products .button:hover{background:#3d494e!important}
body.single-product .quantity input.qty{min-height:49px;border-color:var(--otero-line);border-radius:10px;background:var(--otero-paper)}
body.single-product .onsale{background:var(--otero-accent)!important;color:#fff!important;border-radius:999px!important;min-height:0!important;min-width:0!important;padding:7px 13px!important;line-height:1.4!important;font-size:.75rem!important;font-weight:700;box-shadow:none}
body.single-product .woocommerce-product-gallery{border:1px solid var(--otero-line);border-radius:18px;background:var(--otero-paper);padding:16px;overflow:hidden}
body.single-product .woocommerce-product-gallery__trigger{color:var(--otero-ink)!important;background:#f7f2ea!important;border:1px solid var(--otero-line);box-shadow:none}
body.single-product .woocommerce-product-gallery__trigger:before{border-color:var(--otero-ink)!important}
body.single-product .woocommerce-product-gallery__trigger:after{background:var(--otero-ink)!important}
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper{aspect-ratio:1;overflow:hidden}
body.single-product .woocommerce-product-gallery__wrapper:not([style])>.woocommerce-product-gallery__image:not(:first-child){display:none}
body.single-product .woocommerce-product-gallery .flex-viewport{aspect-ratio:1;height:auto!important}
body.single-product .woocommerce-product-gallery__image>a{display:block;aspect-ratio:1}
body.single-product .woocommerce-product-gallery__image img:not(.zoomImg){width:100%;height:100%;object-fit:contain;aspect-ratio:1}
body.single-product .flex-control-thumbs{display:flex;gap:8px;padding-top:12px!important}
body.single-product .flex-control-thumbs li{float:none!important;flex:0 0 calc((100% - 24px)/4);margin:0!important}
body.single-product .flex-control-thumbs img{aspect-ratio:1;object-fit:contain;border:1px solid var(--otero-line);border-radius:8px}
body.single-product .woocommerce-tabs{border-top:1px solid var(--otero-line);padding-top:1.5rem}
body.single-product .woocommerce-tabs ul.tabs li a{color:var(--otero-muted);font-weight:600}
body.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--otero-ink)}
body.single-product .woocommerce-tabs ul.tabs li.active:before{background:var(--otero-accent)!important}
body.single-product .woocommerce-Tabs-panel{line-height:1.8;font-size:1rem}
body.single-product .woocommerce-Tabs-panel h2,body.single-product .related>h2{font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.3;color:var(--otero-ink);letter-spacing:-.015em;margin-top:1.8rem}
body.single-product .woocommerce-Tabs-panel h3{font-size:1.15rem;line-height:1.4}
body.single-product .woocommerce-Tabs-panel a{color:var(--otero-accent);text-underline-offset:3px}
body.single-product .related ul.products li.product{background:var(--otero-paper);border:1px solid var(--otero-line);border-radius:14px;padding:14px;overflow:hidden;box-shadow:none}
body.single-product .related .woocommerce-loop-product__title{font-size:1rem;line-height:1.4;color:var(--otero-ink)}
body.single-product .related img{border-radius:9px;aspect-ratio:1;object-fit:contain}
body.single-product a:focus-visible,body.single-product button:focus-visible{outline:2px solid var(--otero-accent);outline-offset:4px}
@media(max-width:921px){
 body.single-product #masthead .custom-logo{width:64px!important;height:64px!important;max-width:64px}
 body.single-product #masthead .main-header-bar{padding-top:10px;padding-bottom:10px}
 body.single-product .site-content>.ast-container{padding-left:18px;padding-right:18px}
 body.single-product .woocommerce-product-gallery{padding:12px;border-radius:14px}
 body.single-product .woocommerce-Tabs-panel{line-height:1.75}
 body.single-product .related ul.products li.product{padding:10px}
}

/* Thumbnail rows remain accessible on products with larger galleries. */
body.single-product .flex-control-thumbs{flex-wrap:wrap}
body.single-product .single-product-category,body.single-product .single-product-category a,body.single-product .woocommerce-breadcrumb a{color:var(--otero-accent)!important}
body.single-product .product_title{font-weight:700!important;letter-spacing:-.025em!important}
body.single-product .woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(2))::after{content:"";display:block;height:76px}

/* Otero: readable prices and metadata, visible text links. */
body.single-product .price del{opacity:1!important;color:#665547!important}
body.single-product .price del .amount,body.single-product .price del bdi{color:#665547!important;opacity:1!important}
body.single-product .stock,body.single-product .stock.available-on-backorder{color:#365143!important}
body.single-product .product_meta,body.single-product .product_meta span,body.single-product .ast-woo-product-category{color:#5b5148!important;opacity:1!important}
body.single-product .woocommerce-Tabs-panel p a,body.single-product .woocommerce-Tabs-panel li a,body.single-product .product_meta a{text-decoration:underline!important;text-underline-offset:3px}

body.single-product .woocommerce-breadcrumb a{text-decoration:underline!important;text-underline-offset:3px}

/* Show the first product image without waiting for gallery JavaScript. */
body.single-product .woocommerce-product-gallery{opacity:1!important;transition:none!important}
