/* OGA GOLD RC1 V4.29 — MOBILE/TABLET RESPONSIVENESS HARDENING
   Scope: layout only. No WooCommerce business logic changes. */

html,body{max-width:100%;}
body.oga-build-45 img{max-width:100%;height:auto}
body.oga-build-45 :is(input,select,textarea,button){max-width:100%;box-sizing:border-box}

/* Header */
@media(max-width:1180px){
 body.oga-build-45 .oga-mainbar{grid-template-columns:minmax(220px,330px) 1fr auto!important;gap:12px!important;padding-inline:18px!important}
 body.oga-build-45 .oga-nav{gap:14px!important}
 body.oga-build-45 .oga-nav a{font-size:14px!important;white-space:nowrap}
}
@media(max-width:1024px){
 html.oga-menu-open{overflow:hidden}
 body.oga-build-45 .oga-topbar{display:none!important}
 body.oga-build-45 .oga-mainbar{min-height:74px!important;grid-template-columns:minmax(0,1fr) auto!important;padding:8px 14px!important;gap:8px!important}
 body.oga-build-45 .oga-brand{min-width:0!important}
 body.oga-build-45 .oga-brand .oga-logo{max-width:230px!important}
 body.oga-build-45 .oga-nav{display:none!important}
 body.oga-build-45 .oga-actions{gap:2px!important}
 body.oga-build-45 .oga-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
 body.oga-build-45 .oga-icon svg{width:22px!important;height:22px!important}
 body.oga-build-45 .oga-account{display:none!important}
 body.oga-build-45 .oga-menu{display:grid!important}
 body.oga-build-45 .oga-mobile{position:fixed!important;top:74px!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;padding:14px!important;overflow-y:auto!important;overflow-x:hidden!important;grid-template-columns:1fr!important;background:#f7f4ef!important;z-index:9999!important}
 body.oga-build-45 .oga-mobile a{min-height:52px!important;padding:14px 12px!important;display:flex!important;align-items:center!important}
}
@media(max-width:560px){
 body.oga-build-45 .oga-mainbar{min-height:68px!important;padding:6px 10px!important}
 body.oga-build-45 .oga-brand .oga-logo{max-width:150px!important}
 body.oga-build-45 .oga-brand .oga-logo img{max-height:52px!important;width:auto!important}
 body.oga-build-45 .oga-icon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 body.oga-build-45 .oga-mobile{top:68px!important}
}
@media(max-width:380px){
 body.oga-build-45 .oga-brand .oga-logo{max-width:118px!important}
 body.oga-build-45 .oga-actions{gap:0!important}
}

/* Generic page containment */
@media(max-width:1024px){
 body.oga-build-45 :is(.oga-container,.oga-catalog-shell,.oga-product-shell,.oga-artists-page-main,.oga-contact-body,.oga-legal-summary,.oga-legal-layout){width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-left:20px!important;padding-right:20px!important}
}
@media(max-width:560px){
 body.oga-build-45 :is(.oga-container,.oga-catalog-shell,.oga-product-shell,.oga-artists-page-main,.oga-contact-body,.oga-legal-summary,.oga-legal-layout){padding-left:14px!important;padding-right:14px!important}
}

/* Home/catalog product grids */
@media(max-width:1024px){
 body.oga-build-45 :is(.oga-products-grid,.oga-catalog-grid,.oga-home-standard-grid,.oga-home-standard-products,ul.products){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
 body.oga-build-45 :is(.oga-card,.oga-card-v49,.product){min-width:0!important;max-width:100%!important;width:100%!important}
 body.oga-build-45 :is(.oga-card-image,.oga-card-image-v49,.oga-card-media,.oga-card-media-v49) img{width:100%!important;height:auto!important;object-fit:contain!important}
}
@media(max-width:760px){
 body.oga-build-45 :is(.oga-products-grid,.oga-catalog-grid,.oga-home-standard-grid,.oga-home-standard-products,ul.products){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 body.oga-build-45 :is(.oga-card-body,.oga-card-copy,.oga-card-copy-v49){padding:14px!important}
 body.oga-build-45 :is(.oga-card-title,.woocommerce-loop-product__title){font-size:16px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
 body.oga-build-45 :is(.oga-card-price-row,.oga-card-bottom,.oga-card-bottom-v49){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}
}
@media(max-width:390px){
 body.oga-build-45 :is(.oga-products-grid,.oga-catalog-grid,.oga-home-standard-grid,.oga-home-standard-products,ul.products){grid-template-columns:1fr!important}
}

/* Kill legacy hover layers that blow up on touch screens */
@media(hover:none),(max-width:1024px){
 body.oga-build-45 .image-set__hover-entry{display:none!important;width:0!important;height:0!important}
 body.oga-build-45 .image-set__hover{pointer-events:none!important}
 body.oga-build-45 .image-set__hover-entry :is(svg,.icon,.heart){max-width:28px!important;max-height:28px!important}
}

/* Favorite / sold badge mobile sizing */
@media(max-width:560px){
 html body a.oga-v418-favorite{top:8px!important;left:8px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
 html body .product-badge.product-badge--type-out-of-stock,html body .product-badge--type-out-of-stock,html body .oga-product-badge.oga-product-badge--sold{top:8px!important;right:8px!important;min-width:0!important;min-height:32px!important;padding:6px 9px!important}
 html body .product-badge--type-out-of-stock .product-badge__text,html body .oga-product-badge--sold{font-size:10px!important;line-height:1!important;padding:0!important}
}

/* Filters/catalog toolbar */
@media(max-width:900px){
 body.oga-build-45 :is(.oga-filter-grid,.oga-filters-compact){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.oga-build-45 :is(.oga-filter-search,.oga-filter-actions){grid-column:1/-1!important}
 body.oga-build-45 :is(.oga-filter-grid input,.oga-filter-grid select,.oga-filter-submit,.oga-filter-reset){width:100%!important;min-height:46px!important}
 body.oga-build-45 .oga-catalog-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 body.oga-build-45 .oga-catalog-toolbar select{width:100%!important}
}
@media(max-width:560px){body.oga-build-45 :is(.oga-filter-grid,.oga-filters-compact){grid-template-columns:1fr!important}}

/* Pagination */
@media(max-width:560px){
 body.oga-build-45 .oga-pagination,body.oga-build-45 .woocommerce-pagination ul{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important;width:100%!important}
 body.oga-build-45 .oga-pagination :is(a,span),body.oga-build-45 .woocommerce-pagination :is(a,span){min-width:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:6px 9px!important}
}

/* Homepage editorial/artists */
@media(max-width:760px){
 body.oga-build-45 :is(.oga95-editorial-intro,.oga95-editorial-copy,.oga-home-slide,.oga-home-slide-copy){grid-template-columns:1fr!important;width:100%!important;max-width:100%!important}
 body.oga-build-45 .oga95-editorial-copy h1{font-size:clamp(27px,8vw,34px)!important;line-height:1.05!important;overflow-wrap:anywhere!important}
 body.oga-build-45 :is(.oga-artists-featured-track,.oga-artists-mini-track){gap:18px!important}
 body.oga-build-45 .oga-featured-artist{min-width:160px!important;max-width:190px!important}
 body.oga-build-45 section.oga95-artists .oga-artists-featured-track .oga-featured-artist strong{font-size:17px!important}
}

/* Product page */
@media(max-width:900px){
 body.oga-build-45 .oga-product-layout{display:grid!important;grid-template-columns:1fr!important;gap:26px!important}
 body.oga-build-45 :is(.oga-product-gallery,.oga-product-summary){width:100%!important;max-width:none!important;min-width:0!important}
 body.oga-build-45 .oga-product-summary h1,body.oga-build-45 .oga-product-title{width:100%!important;max-width:none!important;font-size:clamp(28px,7vw,36px)!important;line-height:1.12!important;overflow-wrap:anywhere!important;word-break:normal!important}
 body.oga-build-45 .oga-product-nav{grid-template-columns:1fr auto 1fr!important;gap:8px!important;font-size:12px!important}
 body.oga-build-45 .oga-product-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
 body.oga-build-45 :is(.oga-product-action,.single_add_to_cart_button){width:100%!important;min-height:46px!important}
 body.oga-build-45 .oga-product-gallery img{max-width:100%!important;height:auto!important}
}

/* Contact hero + form */
@media(max-width:900px){
 html body.oga-build-45 .oga-contact-page>.oga-contact-hero,html body.oga-build-45 section.oga-contact-hero{left:50%!important;width:100vw!important;margin-left:-50vw!important;margin-right:0!important;height:300px!important;min-height:300px!important;max-height:300px!important}
 html body.oga-build-45 .oga-contact-hero .oga-contact-hero-media img{object-position:center 62%!important}
 html body.oga-build-45 .oga-contact-hero .oga-contact-hero-title{left:22px!important;right:22px!important;top:50%!important;width:auto!important;transform:translateY(-50%)!important}
 html body.oga-build-45 .oga-contact-hero .oga-contact-hero-title h1{font-size:clamp(25px,6vw,31px)!important;line-height:1.08!important;color:#111!important}
 body.oga-build-45 :is(.oga-contact-grid,.oga-contact-layout){grid-template-columns:1fr!important;gap:22px!important}
 body.oga-build-45 .oga-contact-form{grid-template-columns:1fr!important}
 body.oga-build-45 .oga-contact-form :is(input,select,textarea,button){width:100%!important;font-size:16px!important}
}
@media(max-width:560px){
 html body.oga-build-45 .oga-contact-page>.oga-contact-hero,html body.oga-build-45 section.oga-contact-hero{height:230px!important;min-height:230px!important;max-height:230px!important}
 html body.oga-build-45 .oga-contact-hero .oga-contact-hero-media img{object-position:center 58%!important}
}

/* Legal full bleed + mobile TOC */
@media(max-width:900px){
 html body.oga-build-45 section.oga-legal.oga-legal-v2>header.oga-legal-hero{left:50%!important;width:100vw!important;max-width:none!important;margin-left:-50vw!important;margin-right:0!important;height:165px!important;min-height:165px!important;max-height:165px!important}
 html body.oga-build-45 section.oga-legal.oga-legal-v2>header.oga-legal-hero>.oga-legal-hero-inner-v411{width:100%!important;max-width:none!important;padding:0 22px!important;box-sizing:border-box!important}
 html body.oga-build-45 section.oga-legal.oga-legal-v2 .oga-legal-hero-copy-v411{width:100%!important;max-width:none!important}
 html body.oga-build-45 section.oga-legal.oga-legal-v2 .oga-legal-hero-copy-v411 h1{font-size:clamp(25px,6vw,30px)!important;color:#111!important}
 body.oga-build-45 .oga-legal-layout{grid-template-columns:1fr!important;gap:24px!important}
 body.oga-build-45 .oga-legal-aside{position:static!important;top:auto!important;width:100%!important}
 body.oga-build-45 .oga-legal-toc{max-height:220px!important;overflow:auto!important}
 body.oga-build-45 .oga-legal-content{min-width:0!important;width:100%!important}
}

/* Cart */
@media(max-width:900px){
 body.oga-build-45.woocommerce-cart :is(.oga-cart-layout-v414,.oga-cart-layout-v415,.oga-cart-layout-v416,.oga-cart-layout-v418,.cart-collaterals){display:grid!important;grid-template-columns:1fr!important;gap:22px!important;width:100%!important}
 body.oga-build-45.woocommerce-cart form.woocommerce-cart-form{width:100%!important;min-width:0!important}
 body.oga-build-45.woocommerce-cart table.shop_table{display:block!important;width:100%!important;border:0!important}
 body.oga-build-45.woocommerce-cart table.shop_table thead{display:none!important}
 body.oga-build-45.woocommerce-cart table.shop_table tbody,body.oga-build-45.woocommerce-cart table.shop_table tr{display:block!important;width:100%!important}
 body.oga-build-45.woocommerce-cart table.shop_table tr.cart_item{padding:16px 0!important;border-bottom:1px solid #e4ded7!important}
 body.oga-build-45.woocommerce-cart table.shop_table td{display:flex!important;width:100%!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:8px 0!important;border:0!important;text-align:left!important;white-space:normal!important}
 body.oga-build-45.woocommerce-cart table.shop_table td.product-name{justify-content:flex-start!important;align-items:flex-start!important}
 body.oga-build-45.woocommerce-cart table.shop_table td.product-thumbnail{justify-content:flex-start!important}
 body.oga-build-45.woocommerce-cart table.shop_table td.product-thumbnail img{width:82px!important;max-width:82px!important;height:auto!important}
 body.oga-build-45.woocommerce-cart .cart_totals{width:100%!important;max-width:none!important;margin:0!important}
 body.oga-build-45.woocommerce-cart .cart_totals table{width:100%!important;display:table!important}
 body.oga-build-45.woocommerce-cart .wc-proceed-to-checkout a{width:100%!important;white-space:normal!important;text-align:center!important;line-height:1.25!important}
}

/* Checkout: one column on mobile, 40/5/55 desktop/tablet when room exists */
@media(min-width:901px){
 body.oga-build-45.woocommerce-checkout form.checkout{display:grid!important;grid-template-columns:minmax(0,40fr) minmax(40px,5fr) minmax(0,55fr)!important;align-items:start!important}
 body.oga-build-45.woocommerce-checkout #customer_details{grid-column:1!important;min-width:0!important}
 body.oga-build-45.woocommerce-checkout #order_review_heading,body.oga-build-45.woocommerce-checkout #order_review{grid-column:3!important;min-width:0!important}
}
@media(max-width:900px){
 body.oga-build-45.woocommerce-checkout form.checkout{display:block!important;width:100%!important}
 body.oga-build-45.woocommerce-checkout :is(#customer_details,#order_review,#order_review_heading){width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
 body.oga-build-45.woocommerce-checkout .col2-set,body.oga-build-45.woocommerce-checkout .col-1,body.oga-build-45.woocommerce-checkout .col-2{float:none!important;width:100%!important;max-width:none!important}
 body.oga-build-45.woocommerce-checkout .form-row-first,body.oga-build-45.woocommerce-checkout .form-row-last{float:none!important;width:100%!important;margin-right:0!important}
 body.oga-build-45.woocommerce-checkout :is(input,select,textarea){width:100%!important;font-size:16px!important}
 body.oga-build-45.woocommerce-checkout #order_review{padding:16px!important}
 body.oga-build-45.woocommerce-checkout #payment{padding:14px!important}
 body.oga-build-45.woocommerce-checkout #payment .payment_box{max-height:none!important;overflow:visible!important}
 body.oga-build-45.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{max-height:none!important;overflow:visible!important}
 body.oga-build-45.woocommerce-checkout .woocommerce-terms-and-conditions{max-height:none!important;height:auto!important;overflow:visible!important}
 body.oga-build-45.woocommerce-checkout #place_order{width:100%!important;min-height:48px!important}
 body.oga-build-45.woocommerce-checkout .oga-checkout-trust{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
}
@media(max-width:420px){body.oga-build-45.woocommerce-checkout .oga-checkout-trust{grid-template-columns:1fr!important}}

/* Wishlist/account/order received */
@media(max-width:760px){
 body.oga-build-45 :is(.oga-wishlist,.woocommerce-MyAccount-content,.woocommerce-order){width:100%!important;max-width:100%!important;min-width:0!important}
 body.oga-build-45 :is(.woocommerce-orders-table,.shop_table.order_details){display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
}

/* Modal/lightbox safety */
@media(max-width:760px){
 body.oga-build-45 :is(.oga-modal,.oga-lightbox,.oga-certificate-modal,[role="dialog"]){max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;width:auto!important;box-sizing:border-box!important}
 body.oga-build-45 :is(.oga-modal,.oga-lightbox,.oga-certificate-modal,[role="dialog"]) img{max-width:100%!important;height:auto!important}
 body.oga-build-45 :is(.oga-modal-close,.oga-lightbox-close,[data-modal-close]){top:8px!important;right:8px!important;left:auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:#1b1816!important;color:#fff!important;font-size:26px!important;font-weight:800!important;line-height:1!important;z-index:10001!important}
}

/* Footer / floating controls */
@media(max-width:760px){
 body.oga-build-45 .oga-footer-columns{grid-template-columns:1fr!important;gap:24px!important}
 body.oga-build-45 .oga-footer{padding-left:16px!important;padding-right:16px!important}
 body.oga-build-45 .oga-footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important}
 body.oga-build-45 :is(.oga-debug,.oga-debug-box,.debug-box,[data-debug]){display:none!important}
 body.oga-build-45 .oga-whatsapp,body.oga-build-45 .oga-wa-button{width:54px!important;height:54px!important;right:14px!important;bottom:14px!important}
}
