/*
Theme Name: RepairManualHub
Theme URI: https://repairmanualhub.com
Author: RepairManualHub
Description: Lightweight, secure block theme for a WooCommerce store selling digital workshop manuals. No jQuery, no web fonts, no page builder required.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.2.2
License: GPL-2.0-or-later
Text Domain: repairmanualhub
*/
*,*::before,*::after{box-sizing:border-box}
body{-webkit-font-smoothing:antialiased}
:focus-visible{outline:3px solid var(--wp--preset--color--signal);outline-offset:2px}
body .wp-site-blocks>*,body main>*{margin-block-start:0}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Header */
.wp-site-blocks>header.wp-block-template-part{position:sticky;top:0;z-index:50}
.rmh-header{background:var(--wp--preset--color--white);border-top:3px solid var(--wp--preset--color--signal);border-bottom:1px solid var(--wp--preset--color--rule)}
.admin-bar .wp-site-blocks>header.wp-block-template-part{top:32px}
@media (max-width:782px){.admin-bar .wp-site-blocks>header.wp-block-template-part{top:46px}}
@media (max-width:600px){.admin-bar .wp-site-blocks>header.wp-block-template-part{top:0}}
.rmh-header__bar{padding-block:.75rem;gap:1.25rem}
.rmh-header .wp-block-site-title{margin:0;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:1.4rem}
.rmh-header .wp-block-site-title a,.rmh-header .wp-block-navigation a{text-decoration:none}
.rmh-header .wp-block-navigation{font-size:.95rem;font-weight:500}
.rmh-header__tools{gap:.75rem}

/* Sections */
.rmh-section{padding-block:clamp(2.5rem,6vw,4.5rem)}
.rmh-section--alt{background:var(--wp--preset--color--paper)}
.rmh-inner>p{max-width:62ch}

/* Hero: one memorable element, the vehicle lookup on a technical grid */
.rmh-hero{border-bottom:4px solid var(--wp--preset--color--signal);background-color:var(--wp--preset--color--petrol);color:#fff;padding-block:clamp(3rem,9vw,6.5rem);
background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:32px 32px}
.rmh-hero--banner{background-color:var(--wp--preset--color--petrol);background-image:linear-gradient(90deg,rgba(12,15,17,.9) 0%,rgba(12,15,17,.84) 44%,rgba(12,15,17,.55) 58%,rgba(12,15,17,0) 76%),var(--rmh-hero-bg);background-size:cover,cover;background-position:center,right center;background-repeat:no-repeat;padding-block:clamp(3.5rem,10vw,8rem)}
.rmh-hero--banner h1,.rmh-hero--banner p{text-shadow:0 1px 14px rgba(0,0,0,.35)}
@media (max-width:1100px){.rmh-hero--banner{background-image:linear-gradient(90deg,rgba(12,15,17,.88) 0%,rgba(12,15,17,.8) 60%,rgba(12,15,17,.55) 100%),var(--rmh-hero-bg)}}
@media (max-width:760px){.rmh-hero--banner{background-image:none}.rmh-hero-mobile-img .rmh-hero--banner{background-image:linear-gradient(rgba(12,15,17,.7),rgba(12,15,17,.7)),var(--rmh-hero-bg)}}
.rmh-hero h1{color:#fff;font-size:clamp(2.1rem,5.5vw,3.6rem);max-width:18ch;margin:0}
.rmh-hero p{color:#e4e6e8;font-size:1.15rem;max-width:56ch}
.rmh-hero .rmh-hero__hint{color:#b9bec3;font-size:.95rem}
.rmh-hero .wc-block-product-search{max-width:660px;margin-top:1.75rem}
.rmh-hero .wc-block-product-search .wc-block-product-search__fields{display:flex;background:#fff;border-radius:8px;padding:6px}
.rmh-hero .wc-block-product-search .wc-block-product-search__field{flex:1;min-width:0;border:0;box-shadow:none;background:transparent;padding:.8rem 1rem;font-size:1.05rem;color:var(--wp--preset--color--ink)}
.rmh-hero .wc-block-product-search .wc-block-product-search__button{border:0;border-radius:6px;padding:.8rem 1.4rem;font-weight:700;cursor:pointer;background:var(--wp--preset--color--signal);color:#fff}

/* Facts strip */
.rmh-facts{border-bottom:1px solid var(--wp--preset--color--rule)}
.rmh-facts .wp-block-column+.wp-block-column{border-left:1px solid var(--wp--preset--color--rule);padding-left:1.5rem}
.rmh-facts .rmh-facts__title{margin:0 0 .35rem;font-family:var(--wp--preset--font-family--heading);font-size:1.1rem;font-weight:700;color:var(--wp--preset--color--ink)}
.rmh-facts p{margin:0;color:var(--wp--preset--color--muted);font-size:.95rem}
@media (max-width:599px){.rmh-facts .wp-block-column+.wp-block-column{border-left:0;padding-left:0;border-top:1px solid var(--wp--preset--color--rule);padding-top:1rem}}

/* Makes as an elegant tile grid */
.rmh-title-accent::after{content:"";display:block;width:48px;height:3px;margin-top:.7rem;border-radius:2px;background:var(--wp--preset--color--signal)}
.rmh-makes-intro{margin:.9rem 0 1.75rem;color:var(--wp--preset--color--muted);max-width:56ch}
.rmh-makes ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(192px,1fr));gap:.7rem}
.rmh-makes ul ul{display:none}
.rmh-makes li{margin:0;padding:0}
.rmh-makes a{box-sizing:border-box;overflow-wrap:anywhere;position:relative;display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:3.1rem;padding:.7rem 1rem;border:1px solid var(--wp--preset--color--rule);border-left:3px solid transparent;border-radius:8px;background:#fff;color:var(--wp--preset--color--ink);font-weight:700;font-size:.8rem;letter-spacing:.07em;text-transform:uppercase;text-decoration:none;box-shadow:0 1px 2px rgba(21,25,28,.05);transition:background .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s}
.rmh-makes a::after{content:"";flex:none;width:.42rem;height:.42rem;border-top:2px solid var(--wp--preset--color--signal);border-right:2px solid var(--wp--preset--color--signal);transform:translateX(-4px) rotate(45deg);opacity:0;transition:opacity .2s,transform .2s}
.rmh-makes a:focus-visible{background:var(--wp--preset--color--petrol);border-color:var(--wp--preset--color--petrol);border-left-color:var(--wp--preset--color--signal);color:#fff}
.rmh-makes a:focus-visible::after{opacity:1;transform:translateX(0) rotate(45deg);border-color:#fff}
.rmh-makes a:active{background:var(--wp--preset--color--petrol);border-color:var(--wp--preset--color--petrol);color:#fff}
@media (hover:hover){.rmh-makes a:hover{background:var(--wp--preset--color--petrol);border-color:var(--wp--preset--color--petrol);border-left-color:var(--wp--preset--color--signal);color:#fff;transform:translateY(-2px);box-shadow:0 8px 18px rgba(21,25,28,.16)}.rmh-makes a:hover::after{opacity:1;transform:translateX(0) rotate(45deg);border-color:#fff}}
@media (max-width:599px){.rmh-makes ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.rmh-makes a{padding:.65rem .8rem;font-size:.74rem;letter-spacing:.05em}}
@media (prefers-reduced-motion:reduce){.rmh-makes a,.rmh-makes a::after{transition:none}.rmh-makes a:hover{transform:none}}

/* Product grid (shortcode and shop) */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:.75rem;background:#fff;border:1px solid var(--wp--preset--color--rule);border-radius:8px;display:flex;flex-direction:column}
.woocommerce ul.products li.product img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:var(--wp--preset--color--paper);border-radius:4px;margin:0 0 .75rem}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;line-height:1.3;padding:0;margin:0 0 .4rem}
.woocommerce ul.products li.product .price{color:var(--wp--preset--color--signal-dark);font-weight:700;margin-bottom:.75rem}
.woocommerce ul.products li.product{min-width:0;overflow-wrap:anywhere}
.woocommerce ul.products li.product .button{margin-top:auto;box-sizing:border-box;max-width:100%;white-space:normal;text-align:center}
@media (max-width:900px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:599px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}}
:root .woocommerce a.button,:root .woocommerce button.button,:root .woocommerce a.button.alt,:root .woocommerce button.button.alt{background:var(--wp--preset--color--signal);color:#fff;border-radius:6px;font-weight:700;padding:.7rem 1.2rem;text-align:center}
:root .woocommerce a.button:hover,:root .woocommerce button.button:hover{background:var(--wp--preset--color--signal-dark);color:#fff}
.woocommerce span.onsale{background:var(--wp--preset--color--petrol);color:#fff;border-radius:4px;min-height:0;min-width:0;line-height:1;padding:.4rem .6rem}

/* Footer */
.rmh-footer{background:var(--wp--preset--color--ink);color:#c9cccf;padding-block:3rem 2rem;font-size:.95rem}
.rmh-footer h2{color:#fff;font-size:1rem;margin:0 0 .75rem}
.rmh-footer a{color:#eceeef;text-decoration:none}
.rmh-footer a:hover{text-decoration:underline}
.rmh-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.rmh-footer__legal{border-top:1px solid #2c3136;margin-top:2rem;padding-top:1.25rem;color:#9aa0a5;font-size:.85rem}

/* Content made with the classic editor, raw HTML or page builders */
.wp-block-post-content img,.wp-block-post-content video,.wp-block-post-content iframe{max-width:100%;height:auto}
.wp-block-post-content table:not(.shop_table){display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.wp-block-post-content table:not(.shop_table) :where(td,th){border:1px solid var(--wp--preset--color--rule);padding:.5rem .75rem}
.wp-block-post-content a{overflow-wrap:anywhere}
.elementor-page .rmh-page-title,.page-template-page-full .rmh-page-title{display:none}
.page-template-page-full .wp-site-blocks>main{padding:0}

/* Header menu (Appearance > Menus) */
.rmh-header{position:relative}
.rmh-header .custom-logo-link{display:block;line-height:0}
.rmh-header .custom-logo{height:40px;width:auto}
.rmh-nav{margin-left:auto}
.rmh-nav__toggle{display:none;padding:.5rem .9rem;border:1px solid var(--wp--preset--color--rule);border-radius:6px;background:#fff;color:var(--wp--preset--color--ink);font:inherit;font-weight:600;cursor:pointer}
.rmh-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;align-items:center}
.rmh-nav li{position:relative;margin:0}
.rmh-nav a{color:var(--wp--preset--color--ink);font-size:.95rem;font-weight:500;text-decoration:none;white-space:nowrap}
.rmh-nav a:hover{text-decoration:underline}
.rmh-nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:60;min-width:200px;flex-direction:column;align-items:stretch;gap:0;padding:.5rem;background:#fff;border:1px solid var(--wp--preset--color--rule);border-radius:8px}
.rmh-nav li:hover>.sub-menu,.rmh-nav li:focus-within>.sub-menu{display:flex}
.rmh-nav .sub-menu a{display:block;padding:.4rem .6rem}
@media (max-width:1000px){
.rmh-nav__toggle{display:block}
.rmh-nav>ul{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:.5rem 0;background:#fff;border-bottom:1px solid var(--wp--preset--color--rule);box-shadow:0 12px 24px rgba(0,0,0,.12)}
.rmh-nav.is-open>ul{display:flex}
.rmh-nav>ul a{display:block;padding:.75rem 1.25rem}
.rmh-nav .sub-menu{display:flex;position:static;border:0;padding:0 0 0 1rem}
}

/* A11y: a closed mini-cart drawer is aria-hidden, so its links must not be focusable either. */
.wc-block-mini-cart__drawer[aria-hidden="true"]{visibility:hidden;transition:visibility 0s linear .5s}

/* Header account and cart links */
.rmh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rmh-tools{display:flex;align-items:center;gap:.25rem}
.rmh-iconlink{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:6px;color:var(--wp--preset--color--ink);text-decoration:none}
.rmh-iconlink:hover{background:var(--wp--preset--color--paper)}
.rmh-badge{position:absolute;top:3px;right:1px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--wp--preset--color--signal);color:#fff;font-size:.8rem;font-weight:700;line-height:18px;text-align:center}

/* Base button and loop styles, so the home page works without WooCommerce's own stylesheets */
:root .woocommerce a.button,:root .woocommerce button.button{display:inline-block;border:0;cursor:pointer;line-height:1.2;text-decoration:none}
.woocommerce ul.products li.product a{text-decoration:none}
.woocommerce ul.products li.product a img{display:block}
.woocommerce ul.products li.product .price del{opacity:.6;font-weight:400}

/* ---------- Single product ---------- */
.single-product .wp-block-columns{gap:clamp(1.5rem,4vw,3rem)}
.single-product .wp-block-woocommerce-breadcrumbs{margin-bottom:1rem;font-size:.875rem;color:var(--wp--preset--color--muted)}
.single-product .wp-block-woocommerce-product-image-gallery{max-width:520px;margin-inline:auto}
.single-product .wp-block-post-title{margin:0 0 .5rem;font-size:clamp(1.6rem,3.4vw,2.2rem);line-height:1.15}
.single-product .wp-block-woocommerce-product-price,.single-product .wc-block-components-product-price{font-size:1.5rem;font-weight:700;color:var(--wp--preset--color--signal-dark)}
.single-product .wp-block-post-excerpt{max-width:60ch}
.single-product form.cart .button,.single-product .wp-block-woocommerce-add-to-cart-form .button{min-width:220px;padding:.9rem 1.8rem;font-size:1.05rem}
@media (max-width:600px){.single-product form.cart .button,.single-product .wp-block-woocommerce-add-to-cart-form .button{width:100%}}

/* Product meta: keep it as a tidy column (the label used to collapse into a narrow strip) */
.single-product .wp-block-woocommerce-product-meta .wp-block-group,.single-product .product_meta{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;font-size:.9rem;color:var(--wp--preset--color--muted)}
.single-product .wp-block-woocommerce-product-meta .wp-block-post-terms,.single-product .product_meta>span{width:auto;max-width:100%;margin:0}
.single-product .product_meta .tagged_as{display:none}

/* Description: readable line length, calmer headings, tidy tables */
.single-product .woocommerce-Tabs-panel--description>h2:first-child{display:none}
.single-product .woocommerce-Tabs-panel{max-width:860px}
.single-product .woocommerce-Tabs-panel h2{margin:2rem 0 .75rem;font-size:1.5rem}
.single-product .woocommerce-Tabs-panel h3{margin:1.5rem 0 .5rem;font-size:1.2rem}
.single-product .woocommerce-Tabs-panel p,.single-product .woocommerce-Tabs-panel li{line-height:1.7}
.single-product .woocommerce-Tabs-panel ul,.single-product .woocommerce-Tabs-panel ol{margin:.5rem 0 1rem;padding-left:1.25rem}
.single-product .woocommerce-Tabs-panel li{margin:.3rem 0}
.single-product .woocommerce-Tabs-panel table{width:100%;border-collapse:collapse;font-size:.95rem}
.single-product .woocommerce-Tabs-panel :where(th,td){padding:.6rem .85rem;border:1px solid var(--wp--preset--color--rule);text-align:left;vertical-align:top}
.single-product .woocommerce-Tabs-panel th{width:30%;background:var(--wp--preset--color--paper)}
@media (max-width:640px){.single-product .woocommerce-Tabs-panel table{display:block;overflow-x:auto}}

/* Related products: portrait covers, uncropped, in a responsive grid */
.single-product .wp-block-woocommerce-related-products h2{margin:3rem 0 1rem;font-size:1.5rem}
.single-product .wp-block-woocommerce-related-products .wc-block-product-template{display:grid!important;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin:0;padding:0;list-style:none}
.single-product .wp-block-woocommerce-related-products .wc-block-product{width:auto!important;margin:0!important;padding:.75rem;background:#fff;border:1px solid var(--wp--preset--color--rule);border-radius:8px}
.single-product .wc-block-components-product-image img{width:100%;height:auto!important;aspect-ratio:2/3!important;object-fit:contain!important;background:var(--wp--preset--color--paper);border-radius:4px}
.single-product .wp-block-woocommerce-related-products .wp-block-post-title{margin:.5rem 0;font-size:.95rem;line-height:1.3}

/* Logo */
.rmh-logo{display:block;flex:none;line-height:0;padding-block:6px;margin-block:-6px}
.rmh-logo img,.rmh-footer__logo img{display:block;width:auto}
.rmh-logo img{height:44px;max-width:none}
.rmh-footer__logo{display:inline-block;margin-bottom:1.5rem;line-height:0}
.rmh-footer__logo img{height:36px}
@media (max-width:480px){.rmh-logo img{height:32px}.rmh-tools a:first-child{display:none}}

/* Pasted page snippets: red accent buttons with white text */
:root .rmh-pay a.rmh-pay__btn,:root .rmh-faq a.rmh-faq__btn,:root .rmh-contact .wpcf7 .wpcf7-submit{background:var(--wp--preset--color--signal);color:#fff}
:root .rmh-pay a.rmh-pay__btn:hover,:root .rmh-faq a.rmh-faq__btn:hover,:root .rmh-contact .wpcf7 .wpcf7-submit:hover{background:var(--wp--preset--color--signal-dark);color:#fff}
:root .rmh-bmm__stats b{color:#fff}

/* Device fit */
@media (min-width:600px) and (max-width:781px){
.rmh-facts .wp-block-columns,.rmh-inner .wp-block-columns,.rmh-footer .wp-block-columns{flex-wrap:nowrap}
.rmh-facts .wp-block-column,.rmh-inner .wp-block-column,.rmh-footer .wp-block-column{flex-basis:0!important}
}
@media (max-width:900px){.single-product .wp-block-woocommerce-related-products .wc-block-product-template{grid-template-columns:repeat(3,1fr)!important}}
@media (max-width:599px){.single-product .wp-block-woocommerce-related-products .wc-block-product-template{grid-template-columns:repeat(2,1fr)!important;gap:.75rem}}
@media (max-width:781px){.single-product .wp-block-woocommerce-product-image-gallery{max-width:300px}}
@media (max-width:380px){.rmh-logo img{height:28px}.rmh-header__bar{gap:.5rem}.rmh-nav__toggle{padding:.5rem .7rem}}

/* Search manuals page */
.rmh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.rmh-find{border-bottom:4px solid var(--wp--preset--color--signal);background-color:var(--wp--preset--color--petrol);color:#fff;padding-block:clamp(2.5rem,7vw,5rem);background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:32px 32px}
.rmh-find h1{color:#fff;font-size:clamp(2rem,5vw,3.2rem);margin:0}
.rmh-find .rmh-find__intro{color:#e4e6e8;font-size:1.15rem;max-width:56ch;margin:.75rem 0 0}
.rmh-find__form{position:relative;max-width:760px;margin-top:1.75rem}
.rmh-find__field{display:flex;align-items:center;gap:.25rem;background:#fff;border-radius:12px;padding:6px 6px 6px 1rem;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.rmh-find__field:focus-within{outline:3px solid var(--wp--preset--color--signal);outline-offset:2px}
.rmh-find__icon{flex:none;color:var(--wp--preset--color--muted)}
.rmh-find__field input[type=search]{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;outline:0;padding:.85rem .5rem;font-size:1.1rem;color:var(--wp--preset--color--ink);-webkit-appearance:none;appearance:none}
.rmh-find__field input[type=search]::-webkit-search-cancel-button{display:none}
.rmh-find__clear{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--muted);font-size:1.4rem;line-height:1;cursor:pointer}
.rmh-find__clear[hidden],.rmh-find__results[hidden]{display:none}
.rmh-find__clear:hover{background:var(--wp--preset--color--rule);color:var(--wp--preset--color--ink)}
.rmh-find__go{flex:none;border:0;border-radius:8px;padding:.85rem 1.5rem;font-weight:700;font-size:1rem;cursor:pointer;background:var(--wp--preset--color--signal);color:#fff}
.rmh-find__go:hover{background:var(--wp--preset--color--signal-dark)}
.rmh-find__results{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 8px);background:#fff;color:var(--wp--preset--color--ink);border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.35);max-height:min(60vh,26rem);overflow:auto;overscroll-behavior:contain}
.rmh-find__opt{display:flex;align-items:center;gap:.9rem;padding:.65rem .9rem;color:var(--wp--preset--color--ink);text-decoration:none;border-bottom:1px solid var(--wp--preset--color--rule)}
.rmh-find__opt:hover,.rmh-find__opt[aria-selected=true]{background:var(--wp--preset--color--paper)}
.rmh-find__thumb{flex:none;width:44px;height:60px;object-fit:contain;background:var(--wp--preset--color--paper);border-radius:4px}
.rmh-find__name{flex:1;min-width:0;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rmh-find__price{flex:none;font-weight:700;color:var(--wp--preset--color--signal)}
.rmh-find__all{display:block;padding:.9rem;font-weight:700;text-align:center;color:var(--wp--preset--color--signal);text-decoration:none}
.rmh-find__all:hover,.rmh-find__all[aria-selected=true]{background:var(--wp--preset--color--paper)}
.rmh-find__msg{margin:0;padding:1rem .9rem;color:var(--wp--preset--color--muted)}
.rmh-find__msg a{color:var(--wp--preset--color--signal);font-weight:700}
.rmh-find__try{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1.1rem;color:#b9bec3;font-size:.95rem}
.rmh-find__try a{padding:.4rem .85rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;color:#fff;font-size:.9rem;text-decoration:none;transition:background .2s,border-color .2s}
.rmh-find__try a:hover,.rmh-find__try a:focus-visible{background:var(--wp--preset--color--signal);border-color:var(--wp--preset--color--signal)}
.rmh-find__more{margin:1.5rem 0 0}
.rmh-find__more a{font-weight:700;color:var(--wp--preset--color--signal);text-decoration:none}
.rmh-find__more a:hover{text-decoration:underline}
.rmh-tips{list-style:none;margin:1.75rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.25rem;counter-reset:tip}
.rmh-tips li{counter-increment:tip;position:relative;padding:1.25rem 1.25rem 1.25rem 4rem;border:1px solid var(--wp--preset--color--rule);border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:.35rem}
.rmh-tips li::before{content:counter(tip);position:absolute;left:1.1rem;top:1.15rem;width:2rem;height:2rem;display:grid;place-items:center;border-radius:50%;background:var(--wp--preset--color--petrol);color:#fff;font-weight:700}
.rmh-tips strong{font-size:1.05rem}
.rmh-tips span{color:var(--wp--preset--color--muted)}
.rmh-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.25rem 2rem;padding:clamp(1.25rem,4vw,2rem);border:1px solid var(--wp--preset--color--rule);border-left:4px solid var(--wp--preset--color--signal);border-radius:10px;background:#fff}
.rmh-help__text{margin:0;font-size:1.15rem;max-width:52ch}
.rmh-help__btn{display:inline-block;padding:.85rem 1.6rem;border-radius:8px;background:var(--wp--preset--color--signal);color:#fff;font-weight:700;text-decoration:none}
.rmh-help__btn:hover{background:var(--wp--preset--color--signal-dark);color:#fff}
@media (max-width:520px){.rmh-find__field{padding-left:.75rem}.rmh-find__icon{display:none}.rmh-find__go{padding:.85rem 1rem}.rmh-find__thumb{width:36px;height:50px}.rmh-help__btn{width:100%;text-align:center;box-sizing:border-box}}

/* ---------- Cart, checkout and WooCommerce notices ---------- */
.rmh-shop{padding-block:clamp(1.5rem,4vw,3rem)}
.rmh-shop .wp-block-post-title,.rmh-shop .wp-block-post-content{max-width:1100px;margin-inline:auto}
.rmh-shop .wp-block-post-title{margin-bottom:1.25rem;font-size:clamp(1.8rem,4vw,2.4rem)}
.woocommerce-info,.woocommerce-message,.woocommerce-error{margin:0 0 1.25rem;padding:.9rem 1.1rem .9rem 3rem;border:0;border-left:4px solid var(--wp--preset--color--signal);border-radius:0 8px 8px 0;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);list-style:none}
.woocommerce-info::before,.woocommerce-message::before{top:.9rem;left:1rem;color:var(--wp--preset--color--signal)}
.woocommerce-error{border-left-color:#b42318;background:#fdf2f1}
.woocommerce-info a,.woocommerce-message a{color:var(--wp--preset--color--signal-dark);font-weight:600}
.woocommerce-notices-wrapper:empty{display:none}
.rmh-secure{margin:.75rem 0 0;color:var(--wp--preset--color--muted);font-size:.85rem;text-align:center}

/* Cart */
body.woocommerce-cart .woocommerce:has(>.cart-collaterals){display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:1.5rem 2rem;align-items:start}
body.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
body.woocommerce-cart .woocommerce-cart-form{grid-column:1}
body.woocommerce-cart .cart-collaterals{grid-column:2;position:sticky;top:100px;float:none;width:auto}
body.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:100%;padding:1.25rem;border:1px solid var(--wp--preset--color--rule);border-radius:10px;background:#fff}
body.woocommerce-cart .cart_totals h2{margin:0 0 .75rem;font-size:1.15rem}
body.woocommerce-cart table.shop_table{width:100%;margin:0;border:1px solid var(--wp--preset--color--rule);border-radius:10px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff}
body.woocommerce-cart .cart_totals table.shop_table{border:0;border-radius:0}
body.woocommerce-cart table.shop_table th{padding:.75rem 1rem;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--muted);font-size:.85rem;font-weight:600;text-align:left}
body.woocommerce-cart table.shop_table td{padding:1rem;border-top:1px solid var(--wp--preset--color--rule);vertical-align:middle}
body.woocommerce-cart .cart_totals table.shop_table :where(th,td){padding:.7rem 0;background:none;border-top:1px solid var(--wp--preset--color--rule)}
body.woocommerce-cart .cart_totals .order-total td{font-size:1.15rem}
body.woocommerce-cart td.product-thumbnail img{display:block;width:72px;height:auto;border-radius:4px}
body.woocommerce-cart td.product-name a{color:var(--wp--preset--color--ink);font-weight:600;text-decoration:none}
body.woocommerce-cart td.product-name a:hover{text-decoration:underline}
body.woocommerce-cart td.product-remove a.remove{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--muted)!important;font-size:1.1rem;line-height:1;text-decoration:none}
body.woocommerce-cart td.product-remove a.remove:hover{background:var(--wp--preset--color--signal);color:#fff!important}
body.woocommerce-cart .quantity .qty{width:72px;padding:.55rem;border:1px solid var(--wp--preset--color--rule);border-radius:6px;font:inherit;text-align:center}
body.woocommerce-cart td.actions{padding:1rem;background:var(--wp--preset--color--paper)}
body.woocommerce-cart td.actions .coupon{display:flex;flex-wrap:wrap;gap:.5rem;float:none}
body.woocommerce-cart td.actions .coupon .input-text{flex:1 1 150px;width:auto;min-width:0;padding:.7rem .9rem;border:1px solid var(--wp--preset--color--rule);border-radius:6px;background:#fff;font:inherit}
body.woocommerce-cart td.actions>button[name=update_cart]{float:none;margin-top:.75rem;border:1px solid var(--wp--preset--color--rule);background:#fff;color:var(--wp--preset--color--ink)}
body.woocommerce-cart td.actions>button[name=update_cart]:disabled{opacity:.45}
body.woocommerce-cart .wc-proceed-to-checkout{padding:1rem 0 0}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:block;width:100%;margin:0;padding:1rem;border-radius:8px;background:var(--wp--preset--color--signal);color:#fff;font-size:1.05rem;font-weight:700;text-align:center;text-decoration:none}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{background:var(--wp--preset--color--signal-dark)}

/* Checkout */
body.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0 2rem;align-items:start}
body.woocommerce-checkout #customer_details{grid-column:1;grid-row:1/span 2;float:none;width:100%}
body.woocommerce-checkout #customer_details .col-1,body.woocommerce-checkout #customer_details .col-2{float:none;width:100%}
body.woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;float:none;width:auto;margin:0 0 .75rem;font-size:1.25rem}
body.woocommerce-checkout #order_review{grid-column:2;grid-row:2;position:sticky;top:100px;float:none;width:auto}
body.woocommerce-checkout .woocommerce-billing-fields h3{margin:0 0 1rem;font-size:1.25rem}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
body.woocommerce-checkout .form-row{float:none!important;width:auto!important;margin:0 0 1rem;padding:0}
body.woocommerce-checkout .form-row:not(.form-row-first):not(.form-row-last){grid-column:1/-1}
body.woocommerce-checkout .form-row label{display:block;margin:0 0 .35rem;font-size:.92rem;font-weight:600;line-height:1.3}
body.woocommerce-checkout .form-row .required{color:var(--wp--preset--color--signal);text-decoration:none}
body.woocommerce-checkout .woocommerce-input-wrapper{display:block}
body.woocommerce-checkout .form-row :where(input.input-text,textarea,select){width:100%;min-height:48px;padding:.7rem .9rem;border:1px solid var(--wp--preset--color--rule);border-radius:8px;background:#fff;color:var(--wp--preset--color--ink);font:inherit;box-shadow:none}
body.woocommerce-checkout .form-row :where(input.input-text,textarea,select):focus{border-color:var(--wp--preset--color--signal);outline:3px solid rgba(212,42,31,.2);outline-offset:0}
body.woocommerce-checkout .select2-container{width:100%!important}
body.woocommerce-checkout .select2-container .select2-selection--single{display:flex;align-items:center;height:48px;border:1px solid var(--wp--preset--color--rule);border-radius:8px}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{padding-left:.9rem;line-height:46px}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{top:0;right:.5rem;height:46px}
body.woocommerce-checkout #order_review table.shop_table{width:100%;margin:0;border:1px solid var(--wp--preset--color--rule);border-radius:10px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff}
body.woocommerce-checkout #order_review table.shop_table :where(th,td){padding:.8rem 1rem;border-top:1px solid var(--wp--preset--color--rule);text-align:left}
body.woocommerce-checkout #order_review table.shop_table thead th{border-top:0;background:var(--wp--preset--color--paper);font-size:.85rem;color:var(--wp--preset--color--muted)}
body.woocommerce-checkout #order_review table.shop_table td:last-child,body.woocommerce-checkout #order_review table.shop_table thead th:last-child{text-align:right}
body.woocommerce-checkout #order_review .order-total :where(th,td){font-size:1.1rem}
body.woocommerce-checkout #payment{margin-top:1rem;border:1px solid var(--wp--preset--color--rule);border-radius:10px;background:#fff}
body.woocommerce-checkout #payment ul.payment_methods{margin:0;padding:1rem;border-bottom:1px solid var(--wp--preset--color--rule);list-style:none}
body.woocommerce-checkout #payment div.payment_box{margin:.75rem 0 0;padding:.85rem 1rem;border-radius:8px;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--muted);font-size:.95rem}
body.woocommerce-checkout #payment div.payment_box::before{display:none}
body.woocommerce-checkout #payment .place-order{padding:1rem}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{margin-bottom:.75rem;color:var(--wp--preset--color--muted);font-size:.85rem}
body.woocommerce-checkout #payment #place_order{float:none;width:100%;padding:1rem;border:0;border-radius:8px;background:var(--wp--preset--color--signal);color:#fff;font-size:1.05rem;font-weight:700;cursor:pointer}
body.woocommerce-checkout #payment #place_order:hover{background:var(--wp--preset--color--signal-dark)}

@media (max-width:900px){
body.woocommerce-cart .woocommerce:has(>.cart-collaterals){display:block}
body.woocommerce-cart .cart-collaterals{position:static;margin-top:1.5rem}
body.woocommerce-checkout form.checkout{display:block}
body.woocommerce-checkout #order_review{position:static}
body.woocommerce-checkout #order_review_heading{margin-top:1.5rem}
}
@media (max-width:480px){body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}}

/* Cart table as cards on phones and small tablets */
@media (max-width:768px){
body.woocommerce-cart table.shop_table_responsive{display:block;border:0;background:none}
body.woocommerce-cart table.shop_table_responsive thead{display:none}
body.woocommerce-cart table.shop_table_responsive tbody,body.woocommerce-cart table.shop_table_responsive tr{display:block}
body.woocommerce-cart table.shop_table_responsive tr.cart_item{margin:0 0 1rem;border:1px solid var(--wp--preset--color--rule);border-radius:10px;background:#fff;overflow:hidden}
body.woocommerce-cart table.shop_table_responsive td{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1rem;border-top:1px solid var(--wp--preset--color--rule);text-align:right!important}
body.woocommerce-cart table.shop_table_responsive td::before{content:attr(data-title);float:none;color:var(--wp--preset--color--muted);font-weight:600;text-align:left}
body.woocommerce-cart table.shop_table_responsive td.product-remove{justify-content:flex-end;border-top:0;padding-bottom:0}
body.woocommerce-cart table.shop_table_responsive td.product-remove::before,body.woocommerce-cart table.shop_table_responsive td.product-thumbnail::before{display:none}
body.woocommerce-cart table.shop_table_responsive td.product-thumbnail{display:block!important;border-top:0;text-align:center!important}
body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img{margin-inline:auto}
body.woocommerce-cart table.shop_table_responsive td.product-name{display:block;text-align:center!important}
body.woocommerce-cart table.shop_table_responsive td.product-name::before{display:none}
body.woocommerce-cart table.shop_table_responsive tr:not(.cart_item) td.actions{display:block;border:1px solid var(--wp--preset--color--rule);border-radius:10px}
body.woocommerce-cart .cart_totals table.shop_table_responsive{display:table}
body.woocommerce-cart .cart_totals table.shop_table_responsive tbody{display:table-row-group}
body.woocommerce-cart .cart_totals table.shop_table_responsive tr{display:table-row}
body.woocommerce-cart .cart_totals table.shop_table_responsive td{display:table-cell;text-align:right!important}
body.woocommerce-cart .cart_totals table.shop_table_responsive td::before{display:none}
}

/* Cart: hide cross-sells even if a plugin re-adds them */
.cart-collaterals .cross-sells{display:none}

/* Cart polish */
[tabindex="-1"]:focus,[tabindex="-1"]:focus-visible{outline:0}
body.woocommerce-cart table.cart:not(:has(td.product-quantity input.qty:not([type=hidden]))) :where(th.product-quantity,td.product-quantity){display:none}
body.woocommerce-cart td.product-name{width:45%}
@media (max-width:768px){
body.woocommerce-cart .cart_totals table.shop_table_responsive th{display:table-cell!important;text-align:left}
body.woocommerce-cart table.shop_table_responsive td.product-thumbnail{width:auto!important}
body.woocommerce-cart td.actions .coupon{flex-direction:column;align-items:stretch}
body.woocommerce-cart td.actions .coupon .input-text,body.woocommerce-cart td.actions .coupon .button,body.woocommerce-cart td.actions>button[name=update_cart]{width:100%;margin:0}
}
@media (max-width:768px){
body.woocommerce-cart td.actions .coupon .input-text{flex:none;height:48px}
body.woocommerce-cart table.shop_table_responsive td.product-thumbnail,body.woocommerce-cart table.shop_table_responsive td.product-name{border:0}
body.woocommerce-cart table.shop_table_responsive tr:nth-child(2n) td{background:none}
}
@media (max-width:768px){
body.woocommerce-cart td.actions .coupon .input-text,body.woocommerce-cart td.actions .coupon .button,body.woocommerce-cart td.actions>button[name=update_cart]{width:100%!important;margin:0!important;float:none!important}
}

/* Checkout: tighter grid rows, calm field borders and brand notices (specificity high enough to beat WooCommerce's stylesheet) */
body.woocommerce-checkout form.checkout{grid-template-rows:auto 1fr}
body.woocommerce-checkout #order_review{align-self:start}
body.woocommerce-checkout .woocommerce form .form-row input.input-text,body.woocommerce-checkout .woocommerce form .form-row textarea,body.woocommerce-checkout .woocommerce form .form-row select{min-height:48px;padding:.7rem .9rem;border:1px solid var(--wp--preset--color--rule);border-radius:8px;background:#fff;color:var(--wp--preset--color--ink);font:inherit;box-shadow:none}
body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,body.woocommerce-checkout .woocommerce form .form-row textarea:focus,body.woocommerce-checkout .woocommerce form .form-row select:focus{border-color:var(--wp--preset--color--signal);outline:3px solid rgba(212,42,31,.2);outline-offset:0}
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#b42318}
body.woocommerce-checkout .woocommerce .woocommerce-info,body.woocommerce-cart .woocommerce .woocommerce-info,body.woocommerce-checkout .woocommerce-message,body.woocommerce-cart .woocommerce-message{border:0;border-left:4px solid var(--wp--preset--color--signal);border-radius:0 8px 8px 0;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}
body.woocommerce-checkout .woocommerce .woocommerce-info::before,body.woocommerce-cart .woocommerce .woocommerce-info::before,body.woocommerce-checkout .woocommerce-message::before,body.woocommerce-cart .woocommerce-message::before{color:var(--wp--preset--color--signal)}
body.woocommerce-checkout .woocommerce .woocommerce-info a,body.woocommerce-cart .woocommerce .woocommerce-info a{color:var(--wp--preset--color--signal-dark);font-weight:600}
/* WooCommerce 11 notice banners: neutral info boxes with a brand edge (success stays green, errors stay red) */
body.woocommerce-checkout .wc-block-components-notice-banner.is-info,body.woocommerce-cart .wc-block-components-notice-banner.is-info{border:0;border-left:4px solid var(--wp--preset--color--signal);border-radius:0 8px 8px 0;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}
body.woocommerce-checkout .wc-block-components-notice-banner.is-info>svg,body.woocommerce-cart .wc-block-components-notice-banner.is-info>svg{background:var(--wp--preset--color--signal);fill:#fff}
body.woocommerce-checkout .wc-block-components-notice-banner a,body.woocommerce-cart .wc-block-components-notice-banner a{color:var(--wp--preset--color--signal-dark);font-weight:600}

/* ---------- Product page: sticky buy bar and back-to-top ---------- */
.rmh-buybar{position:fixed;left:0;right:0;bottom:0;z-index:90;padding:.75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--wp--preset--color--rule);box-shadow:0 -8px 24px rgba(0,0,0,.08);transform:translateY(100%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
.rmh-buybar.is-visible{transform:none;visibility:visible;transition:transform .25s ease}
.rmh-buybar__in{display:flex;align-items:center;gap:1rem;max-width:1200px;margin-inline:auto}
.rmh-buybar__info{flex:1;min-width:0}
.rmh-buybar__title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:600}
.rmh-buybar__price{color:var(--wp--preset--color--signal-dark);font-weight:700}
.rmh-buybar__btn{flex:none;min-width:180px;padding:.8rem 1.4rem;border:0;border-radius:8px;background:var(--wp--preset--color--signal);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.rmh-buybar__btn:hover{background:var(--wp--preset--color--signal-dark)}
@media (max-width:480px){.rmh-buybar__btn{min-width:0;padding:.8rem 1.1rem}}
.rmh-totop{position:fixed;right:1rem;bottom:1rem;z-index:80;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--wp--preset--color--petrol);color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.25);cursor:pointer;opacity:0;visibility:hidden;transition:opacity .2s,bottom .25s,visibility 0s linear .2s}
.rmh-totop.is-visible{opacity:1;visibility:visible;transition:opacity .2s,bottom .25s}
.rmh-totop:hover{background:var(--wp--preset--color--signal)}
body.rmh-buybar-on .rmh-totop{bottom:calc(5.25rem + env(safe-area-inset-bottom,0px))}
@media (prefers-reduced-motion:reduce){.rmh-buybar,.rmh-totop{transition:none}}

/* The makes page starts right under the header (the shortcode prints a <style> first, so the block gap would otherwise apply) */
.wp-block-post-content>.rmh-bmm{margin-block-start:0}

/* SEO / accessibility: skip link */
.rmh-skip{position:absolute;left:-9999px;top:0;z-index:100;background:#1F2428;color:#fff;padding:.75rem 1rem;border-radius:0 0 6px 0}
.rmh-skip:focus{left:0}

/* Product facts table and FAQ */
.rmh-facts-table{margin:0 0 2rem}
.rmh-facts-table table{width:100%;border-collapse:collapse}
.rmh-facts-table th,.rmh-facts-table td{padding:.6rem .75rem;border-bottom:1px solid var(--wp--preset--color--rule);text-align:start;vertical-align:top}
.rmh-facts-table th{width:34%;font-weight:700;color:var(--wp--preset--color--muted)}
.rmh-faq h3{margin-top:1.5rem}
