/* OPUS theme – the few things theme.json cannot express. Keep it small. */

/* Header */
.opus-strip .wp-block-group{row-gap:2px}
.opus-strip p{margin:0}
.opus-strip__call{color:var(--wp--preset--color--amber);font-weight:700;text-decoration:none;font-size:.875rem}
.opus-header{position:sticky;top:0;z-index:50}
.opus-logo{display:inline-flex;align-items:center;min-height:44px;margin:0;line-height:0}
.opus-logo img{height:48px;width:auto;display:block}
.opus-logo--light img{height:56px}
.opus-nav a{color:var(--wp--preset--color--charcoal);text-decoration:none;padding:12px 0}
.opus-nav a:hover{color:var(--wp--preset--color--deep-amber)}
.opus-header__actions .opus-btn{min-height:44px;font-size:14px;padding:0 14px}
.opus-lang{display:flex;border:1px solid #D1D5DB;border-radius:10px;overflow:hidden}
.opus-lang a{display:flex;align-items:center;height:42px;padding:0 12px;font-size:13px;font-weight:700;text-decoration:none;color:var(--wp--preset--color--charcoal);background:#fff}
.opus-lang a.is-on{background:var(--wp--preset--color--charcoal);color:#fff}

.opus-cart{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--wp--preset--color--line);border-radius:10px;color:var(--wp--preset--color--charcoal)}

/* Hero */
.opus-mii{display:inline-flex;align-items:center;gap:8px;margin:0;font-family:var(--wp--preset--font-family--mono);font-size:12px;letter-spacing:.1em;font-weight:600;color:var(--wp--preset--color--amber)}
.opus-hero__h1{margin-top:14px}
.opus-hero__card{background:#fff;color:var(--wp--preset--color--charcoal);border-radius:18px;padding:22px!important;box-shadow:0 24px 60px rgba(0,0,0,.35)}

/* Hero trust line */
.opus-hero__trust{margin-top:8px}

/* Trust strip */
.opus-trust__list{list-style:none;margin:0 auto;padding:0;max-width:1200px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.opus-trust__list li{display:flex;gap:12px;align-items:center}
.opus-trust__list b{display:block}
.opus-trust__list span{font-size:.8125rem;color:var(--wp--preset--color--stone)}
.opus-trust__list b{font-size:1rem;color:var(--wp--preset--color--charcoal)}

/* WooCommerce product grid (shortcode + blocks) */
.woocommerce ul.products,.wc-block-grid__products{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:16px 0 0!important;padding:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{position:relative;width:auto!important;margin:0!important;float:none!important;background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:16px;padding:0 0 16px!important;overflow:hidden;display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{margin:0 0 12px!important;background:#fff;aspect-ratio:1;object-fit:contain;padding:6%}
.woocommerce ul.products li.product a{color:var(--wp--preset--color--charcoal);text-decoration:none}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem!important;font-weight:800;padding:0 16px!important;line-height:1.3}
.woocommerce ul.products li.product .price{padding:0 16px;color:var(--wp--preset--color--charcoal)!important;font-size:1.25rem!important;font-weight:800}
.woocommerce ul.products li.product .price del{font-size:.8125rem;color:var(--wp--preset--color--stone);font-weight:400}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce ul.products li.product .button{margin:auto 16px 0!important;padding:0 12px!important;height:44px;border-radius:10px;background:var(--wp--preset--color--amber);color:var(--wp--preset--color--charcoal);font-weight:800;text-align:center;min-height:44px;display:flex;align-items:center;justify-content:center}
.woocommerce span.onsale{background:var(--wp--preset--color--charcoal);color:var(--wp--preset--color--amber);border-radius:8px;min-height:auto;line-height:1.6;padding:2px 8px;top:10px;left:10px}
.opus-price-info{margin:4px 0 12px;font-size:.875rem;color:var(--wp--preset--color--stone)}
.opus-product-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 20px}
.opus-compat{margin:24px 0}
.opus-compat h2{font-size:1.25rem}

/* Mobile bottom bar: only on phones, never covers content, respects the notch area */
.opus-mbar{display:none}
@media (max-width:781px){
	.opus-hide-mobile{display:none!important}
	.opus-mbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--wp--preset--color--line);box-shadow:0 -6px 20px rgba(0,0,0,.08);padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
	.opus-mbar a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 6px;border-radius:10px;font-weight:800;font-size:13px;line-height:1.15;text-align:center;text-decoration:none}
	.opus-mbar__call{border:1.5px solid var(--wp--preset--color--charcoal);color:var(--wp--preset--color--charcoal)}
	.opus-mbar__wa{background:var(--wp--preset--color--whatsapp);color:#fff}
	.opus-mbar__find{background:var(--wp--preset--color--amber);color:var(--wp--preset--color--charcoal)}
	body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
	.opus-hero__card{padding:16px!important}
	.opus-header{position:static}
}

/* Footer */
.opus-footer__list{list-style:none;padding:0;margin:0}
.opus-footer__list li{padding:4px 0}
.opus-footer__list a{text-decoration:none}

/* Generic */
:where(.wp-site-blocks) :focus-visible{outline:3px solid var(--wp--preset--color--amber);outline-offset:2px}
.screen-reader-text:focus{clip:auto!important}

/* FAQ */
.opus-faq{border-bottom:1px solid var(--wp--preset--color--line);padding:4px 0}
.opus-faq summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;list-style-position:inside}
.opus-faq p{margin:0 0 14px;color:#4A443C}

.home .wp-site-blocks>*{margin-block-start:0}

/* Product sticky buy bar (mobile) */
@media (max-width:781px){
	.opus-mbar--product{grid-template-columns:1fr 48px 1.4fr;align-items:center}
	.opus-mbar__price{font-weight:800;font-size:18px;padding-left:4px}
}
/* Batteries dropdown */
.opus-nav .wp-block-navigation__submenu-container{border:1px solid var(--wp--preset--color--line)!important;border-radius:12px;padding:6px 0!important;box-shadow:0 12px 30px rgba(0,0,0,.08);min-width:240px!important}
.opus-nav .wp-block-navigation__submenu-container a{padding:10px 16px!important}

/* Product page */
.single-product .wp-block-post-title,.single-product h1.product_title{font-size:clamp(1.5rem,3vw,2.125rem)!important;line-height:1.2}
.single-product .wp-block-woocommerce-product-price,.single-product p.price{font-size:1.75rem!important;font-weight:800;color:var(--wp--preset--color--charcoal)!important}
.single-product .opus-product-actions{margin-top:0}

/* ===== v1.6 header: one row — logo · menu · search · actions (hamburger below 1100px) ===== */
.opus-header{background:#fff!important}
.opus-hdr{display:grid!important;grid-template-columns:auto auto minmax(220px,1fr) auto;grid-template-areas:"logo nav search actions";align-items:center;gap:10px 22px!important}
.opus-hdr>*{margin:0!important}
.opus-hdr>.opus-logo,.opus-hdr>:has(>.opus-logo){grid-area:logo}
.opus-hdr>.opus-search,.opus-hdr>:has(>.opus-search),.opus-hdr>.opus-search-wrap{grid-area:search;display:flex;justify-content:flex-end;min-width:0}
.opus-hdr>.opus-nav{grid-area:nav}
.opus-hdr>.opus-header__actions{grid-area:actions}
.opus-hdr .opus-nav{font-size:15px}
.opus-hdr .opus-nav>.wp-block-navigation__container,.opus-hdr .opus-nav .wp-block-navigation__responsive-container-content>.wp-block-navigation__container{gap:18px}
.opus-hdr .opus-search{max-width:520px}
.opus-hdr .opus-search__in{height:44px}
.opus-hdr .opus-search__btn{height:44px}
@media (max-width:1279px){
	.opus-hdr .opus-btn--wa span{display:none}
	.opus-hdr .opus-btn--wa{padding:0 12px}
}
/* below 1100px the menu becomes the ☰ button (WordPress does this only below 600px by default) */
@media (min-width:600px) and (max-width:1099px){
	.opus-nav .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}
	.opus-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}
}
@media (max-width:1099px){
	.opus-hdr{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"logo search actions nav"}
	.opus-hdr .opus-search{max-width:none}
}
@media (max-width:781px){
	.opus-strip{display:none!important}
	.opus-header{padding-top:8px!important;padding-bottom:10px!important}
	.opus-hdr{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"logo . actions nav" "search search search search";gap:8px 8px!important}
	.opus-logo img{height:36px}
	.opus-hdr .opus-lang a{height:34px;padding:0 8px;font-size:12px}
	.opus-hdr .opus-cart{width:40px;height:40px}
	.opus-hdr .opus-search__in,.opus-hdr .opus-search__btn{height:42px}
}

/* ===== v1.6 product page ===== */
.single-product .woocommerce-product-gallery,.single-product .wp-block-woocommerce-product-image-gallery{background:#fff}
.woocommerce-product-gallery__image{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:16px;overflow:hidden}
.woocommerce-product-gallery__image img{aspect-ratio:1;object-fit:contain;background:#fff;mix-blend-mode:multiply}
.woocommerce-product-gallery .flex-control-thumbs{display:flex;gap:8px;margin-top:10px!important;padding:0}
.woocommerce-product-gallery .flex-control-thumbs li{width:72px!important;float:none!important;list-style:none}
.woocommerce-product-gallery .flex-control-thumbs img{border:1px solid var(--wp--preset--color--line);border-radius:10px;background:#fff;aspect-ratio:1;object-fit:contain;padding:4px;opacity:.7}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active{opacity:1;border-color:var(--wp--preset--color--charcoal)}
.single-product .wp-block-woocommerce-product-rating{margin:4px 0 0}
.single-product .wc-block-components-product-rating__stars,.single-product .star-rating{color:#E09D00}

/* Sections: pure white page, thin lines between bands */
body{background:#fff}
.opus-sec--band{border-top:1px solid var(--wp--preset--color--line);border-bottom:1px solid var(--wp--preset--color--line)}

/* Mobile: finder visible sooner, brand chips scroll sideways */
@media (max-width:781px){
	.opus-hero{padding-top:18px!important;padding-bottom:22px!important}
	.opus-hero__h1{font-size:28px!important;line-height:1.15!important;margin-top:8px}
	.opus-hero p.has-large-font-size{font-size:16px!important;margin-top:8px}
	.opus-hero__trust{display:none}
	.opus-hero .wp-block-columns{gap:14px!important}
	.opus-chipsrow{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:none}
	.opus-chipsrow>span{flex:0 0 auto}
	.opus-chipsrow a{flex:0 0 auto}
}
.opus-lang .l-short{display:none}
@media (max-width:781px){.opus-lang .l-long{display:none}.opus-lang .l-short{display:inline}}

/* Product page: big Buy Now, clean tabs */
.single-product form.cart{display:flex!important;flex-wrap:wrap;gap:10px;align-items:stretch;margin-bottom:12px}
.single-product form.cart .opus-exch{flex:0 0 100%}
.single-product form.cart .quantity input.qty{height:52px;width:64px;border:1.5px solid var(--wp--preset--color--line);border-radius:10px;font-size:16px;text-align:center}
.single-product form.cart .single_add_to_cart_button{flex:1;min-height:52px;font-size:17px!important;font-weight:800;border-radius:12px!important;background:var(--wp--preset--color--amber)!important;color:var(--wp--preset--color--charcoal)!important}
.single-product .opus-product-actions .opus-btn{flex:1 1 200px;justify-content:center}
.woocommerce-tabs ul.tabs,.wc-tabs{display:flex!important;gap:0;overflow-x:auto;padding:0!important;margin:0 0 18px!important;border-bottom:1px solid var(--wp--preset--color--line)!important;scrollbar-width:none;list-style:none}
.woocommerce-tabs ul.tabs::before,.woocommerce-tabs ul.tabs::after{display:none!important}
.woocommerce-tabs ul.tabs li{flex:0 0 auto;background:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce-tabs ul.tabs li a{display:block;padding:12px 16px!important;font-weight:700;color:var(--wp--preset--color--stone)!important;text-decoration:none}
.woocommerce-tabs ul.tabs li.active a{color:var(--wp--preset--color--charcoal)!important;box-shadow:inset 0 -3px 0 var(--wp--preset--color--amber)}
.opus-specs td{font-family:inherit!important;font-weight:600}
