/* SR Marketing – responsive & cross-device fixes (v3.0). Loaded last so it wins. */

/* ---------- global safety ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.srmh-wrap img,.srmh-wrap iframe,.srmh-wrap video,
body.srmh-cc img,body.srmh-account img,body.srmh-single img,body.srmh-shop img{max-width:100%}
.srmh-wrap img,body.srmh-cc img{height:auto}
body.srmh-cc .srmh-ri img,body.srmh-cart table.cart td.product-thumbnail img{height:auto;aspect-ratio:1/1}
body.srmh-cc,body.srmh-account,body.srmh-single,body.srmh-shop{overflow-x:hidden}
.srmh-wrap a,.srmh-wrap button,.srmh-auth button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* iOS Safari zooms the page when an input is smaller than 16px – stop that on touch screens */
@media(hover:none) and (pointer:coarse),(max-width:900px){
 .srmh-auth-form input,.srmh-search input[type=search],.srmh-filters input,.srmh-filters select,.srmh-catbar input[type=search],
 .srmh-contact-form input,.srmh-contact-form textarea,
 body.srmh-cc input.input-text,body.srmh-cc select,body.srmh-cc textarea,body.srmh-cc .select2-container--default .select2-selection--single .select2-selection__rendered,
 body.srmh-account input.input-text,body.srmh-account select,body.srmh-account textarea,
 body.srmh-cart .quantity .qty,body.srmh-single .quantity .qty{font-size:16px!important}
}
/* comfortable touch targets */
@media(pointer:coarse){
 .srmh-nav a,.srmh-lang a{padding-top:9px;padding-bottom:9px}
 .srmh-account a{min-height:40px}
 .srmh-pager a,.srmh-pager span{min-width:44px;height:44px}
 body.srmh-cart table.cart a.remove{width:36px;height:36px;line-height:34px}
}

/* ---------- header (tablet + phone) ---------- */
@media(max-width:1024px){
 .srmh-header-row{gap:14px}
 .srmh-nav{gap:20px;-webkit-overflow-scrolling:touch}
}
@media(max-width:760px){
 .srmh-account .srmh-signup{padding:6px 12px}
 .srmh-account{flex:none}
 .srmh-logo{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .srmh-nav{padding:10px 2px 11px}
 .srmh-nav .srmh-lang{margin-left:6px}
}
@media(max-width:380px){
 .srmh-header{padding:10px 10px 0}
 .srmh-logo{font-size:18px}
 .srmh-account{gap:8px;font-size:12px}
 .srmh-account .srmh-signup{padding:5px 10px}
}

/* ---------- home page: tablets & small laptops ---------- */
@media(min-width:761px) and (max-width:1024px){
 .srmh-wrap{padding-left:16px;padding-right:16px}
 .srmh-products{grid-template-columns:repeat(3,minmax(0,1fr))}
 .srmh-hero{padding:34px 5%;min-height:300px}
 .srmh-hero-art{height:230px}
 .srmh-section-head h2{font-size:23px}
 .srmh-section-head{flex-wrap:wrap}
 .srmh-cta{padding:26px}
 .srmh-catgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1025px) and (max-width:1200px){
 .srmh-products{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
 .srmh-cta{flex-direction:column;align-items:flex-start;padding:24px 20px}
 .srmh-cta .srmh-primary{width:100%;justify-content:center}
 .srmh-section-head h2{font-size:21px}
 .srmh-hero h1{letter-spacing:-1px}
 .srmh-slider .srmh-slides,.srmh-slider .srmh-hero{border-radius:14px}
 .srmh-slider .srmh-hero{min-height:0}
 .srmh-hero-art,.srmh-hero-photo{height:190px}
 .srmh-product-image{height:150px}
 .srmh-products .srmh-product{flex-basis:56%}
 .srmh-promo-btn{align-self:flex-start}
}
@media(max-width:380px){
 .srmh-products .srmh-product{flex-basis:70%}
 .srmh-category{flex-basis:46%}
 .srmh-hero{padding:24px 16px 10px}
 .srmh-countdown b{min-width:26px;padding:5px 3px;font-size:13px}
}
/* tall hero images should never push the page wide */
.srmh-hero-photo img{width:auto;height:auto}

/* ---------- login / sign up popup ---------- */
.srmh-auth-box{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
@media(max-width:520px){
 .srmh-auth-box{max-height:92vh;max-height:92dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 .srmh-phone-row{gap:8px}
 .srmh-auth .srmh-cc{flex-basis:76px}
}
/* the ".srmh-cc" country-code chip must not be confused with the body.srmh-cc class */
.srmh-auth .srmh-cc{height:48px}

/* ---------- cart & checkout (fixes text running outside the box on the screenshot) ---------- */
body.srmh-checkout form.checkout>*,body.srmh-cart .woocommerce>*{min-width:0;max-width:100%}
body.srmh-checkout #order_review,body.srmh-checkout #payment,body.srmh-checkout .woocommerce-checkout-review-order,
body.srmh-checkout .woocommerce-checkout-payment,body.srmh-checkout #customer_details{min-width:0;max-width:100%;box-sizing:border-box}
body.srmh-checkout #order_review *,body.srmh-checkout #payment *{white-space:normal;overflow-wrap:anywhere;word-break:normal;max-width:100%;box-sizing:border-box}
body.srmh-checkout #order_review .woocommerce-notice,body.srmh-checkout #payment .woocommerce-notice,
body.srmh-checkout #payment .woocommerce-info,body.srmh-checkout #payment li.woocommerce-notice{display:block;width:100%;margin:0;padding:14px 16px;line-height:1.55;font-size:14px}
body.srmh-checkout #payment ul.payment_methods li.woocommerce-notice{background:#fff;border:1px solid var(--srmh-line);border-left:4px solid var(--srmh-orange)}
body.srmh-checkout .woocommerce-privacy-policy-text,body.srmh-checkout .woocommerce-terms-and-conditions-wrapper{white-space:normal;overflow-wrap:anywhere}
body.srmh-checkout table.shop_table{table-layout:auto}
body.srmh-checkout table.shop_table td.product-name{width:60%}
body.srmh-checkout .select2-container{width:100%!important;max-width:100%}
body.srmh-checkout #place_order,body.srmh-cart .wc-proceed-to-checkout .checkout-button{white-space:normal;word-break:normal;height:auto!important;min-height:54px;line-height:1.3!important;padding:14px 16px!important}
.srmh-cc-trust{width:100%;max-width:100%;flex-wrap:wrap;justify-content:center;white-space:normal}
.srmh-cc-trust span,.srmh-cc-trust a{max-width:100%;overflow-wrap:anywhere}
.srmh-gate-note{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:#766d66;text-align:center}
body.srmh-cart table.cart{table-layout:auto}
body.srmh-cart .woocommerce-cart-form{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* tablets: stack the checkout earlier so neither column gets squeezed */
@media(max-width:1024px){
 body.srmh-cart .woocommerce{grid-template-columns:minmax(0,1fr) 330px;gap:18px}
 body.srmh-checkout form.checkout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0 16px}
 body.srmh-checkout .col2-set .col-1,body.srmh-checkout .col2-set .col-2{padding:20px 18px}
 body.srmh-checkout form.checkout #order_review{padding:12px 16px 20px}
 body.srmh-checkout form.checkout #order_review_heading{padding:20px 16px 0}
}
@media(max-width:900px){
 body.srmh-cart .woocommerce{grid-template-columns:minmax(0,1fr)}
 body.srmh-checkout form.checkout{grid-template-columns:minmax(0,1fr)}
 body.srmh-checkout form.checkout #order_review_heading{border-radius:16px 16px 0 0}
 body.srmh-cc .srmh-cc-top{padding:0 12px}
 body.srmh-cc .woocommerce{padding-left:12px;padding-right:12px}
 body.srmh-cc .srmh-cc-head{padding:0 12px}
}
@media(max-width:640px){
 body.srmh-cc .woocommerce{padding-left:10px;padding-right:10px}
 body.srmh-cart .cart-collaterals .cart_totals{padding:18px 16px}
 body.srmh-checkout .woocommerce-billing-fields__field-wrapper,body.srmh-checkout .woocommerce-shipping-fields__field-wrapper{display:block}
 body.srmh-checkout .form-row{width:100%!important}
 .srmh-steps{margin-bottom:18px!important}
 .srmh-steps b{width:30px;height:30px;font-size:13px}
 .srmh-steps li:not(:last-child):after{top:14px}
 body.srmh-cart .coupon .button{width:auto}
 body.srmh-cart table.shop_table_responsive td.product-thumbnail img{width:64px;height:64px}
 body.srmh-cart .quantity .qty{width:64px}
}
@media(max-width:380px){
 body.srmh-checkout .col2-set .col-1,body.srmh-checkout .col2-set .col-2{padding:16px 12px}
 body.srmh-checkout form.checkout #order_review{padding:10px 12px 16px}
 .srmh-cc-head h1{font-size:21px!important}
}
/* Order-received page */
@media(max-width:640px){body.srmh-thankyou .woocommerce-order{padding:18px 14px}body.srmh-thankyou .woocommerce-thankyou-order-received{font-size:16px}}

/* ---------- My account, login & sign up page ---------- */
body.srmh-account .woocommerce{padding-left:12px;padding-right:12px;box-sizing:border-box}
body.srmh-account form.woocommerce-form-register .form-row-first,body.srmh-account form.woocommerce-form-register .form-row-last{width:calc(50% - 7px);float:left;clear:none}
body.srmh-account form.woocommerce-form-register .form-row-first{margin-right:14px}
body.srmh-account form.woocommerce-form-register .form-row-wide,body.srmh-account form.woocommerce-form-register .woocommerce-form-register__submit,
body.srmh-account form.woocommerce-form-register .woocommerce-privacy-policy-text,body.srmh-account form.woocommerce-form-register p.form-row:not(.form-row-first):not(.form-row-last){clear:both;width:100%}
body.srmh-account form.woocommerce-form-register:after{content:"";display:block;clear:both}
body.srmh-account .woocommerce-MyAccount-content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.srmh-account .woocommerce-MyAccount-content{overflow-wrap:anywhere}
@media(max-width:1024px){
 body.srmh-account.logged-in .woocommerce{grid-template-columns:220px minmax(0,1fr)}
}
@media(max-width:800px){
 body.srmh-account.logged-in .woocommerce{grid-template-columns:minmax(0,1fr)}
 .srmh-acc-hero li{white-space:normal}
 body.srmh-account form.woocommerce-form-register .form-row-first,body.srmh-account form.woocommerce-form-register .form-row-last{width:100%;float:none;margin-right:0}
 body.srmh-account table.shop_table_responsive td{display:flex;justify-content:space-between;gap:10px;text-align:right}
}

/* ---------- single product + shop ---------- */
@media(max-width:800px){
 body.srmh-single .woocommerce-tabs ul.tabs{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}
 body.srmh-single div.product .woocommerce-product-gallery img{width:100%;height:auto}
 .srmh-sticky-buy{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:700px){
 .srmh-filters{gap:8px}
 .srmh-f-price{flex:1 1 100%}
 .srmh-f-price input{flex:1;width:auto}
}
@media(max-width:380px){
 .srmh-shopgrid{gap:8px!important}
 .srmh-shoppage .srmh-shop-banner{padding:18px 14px}
}

/* ---------- floating buttons: respect iPhone notch / home bar, never cover content ---------- */
.srmh-whatsapp{right:max(14px,env(safe-area-inset-right,0px));bottom:max(14px,env(safe-area-inset-bottom,0px))}
.srmh-lang.is-float{left:max(12px,env(safe-area-inset-left,0px));bottom:max(12px,env(safe-area-inset-bottom,0px))}
@media(max-width:800px){
 body.srmh-single .srmh-whatsapp{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 .srmh-whatsapp{width:48px;height:48px}
}

/* ---------- landscape phones / very short screens ---------- */
@media(max-height:480px) and (orientation:landscape){
 .srmh-auth{align-items:center;padding:8px}
 .srmh-auth-box{border-radius:14px;max-height:96vh;max-height:96dvh}
 .srmh-hero-art{display:none}
 .srmh-slider .srmh-hero{grid-template-columns:1fr}
}

/* ---------- large screens ---------- */
@media(min-width:1600px){
 .srmh-wrap{max-width:1360px}
 body.srmh-cc .srmh-cc-top,body.srmh-cc .woocommerce{max-width:1280px}
}

/* ---------- accessibility ---------- */
@media(prefers-reduced-motion:reduce){
 .srmh-wrap *,.srmh-auth *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ---------- Google / Facebook on the My account page ---------- */
.srmh-acc-social{margin-top:18px;clear:both}
.srmh-acc-social .srmh-or{margin:0 0 14px}
.srmh-acc-social .srmh-social-big{grid-template-columns:1fr 1fr;gap:10px}
.srmh-acc-social .srmh-social-big .srmh-social-btn{height:48px;font-size:14px;font-weight:700;padding:0 10px;justify-content:center}
@media(max-width:480px){.srmh-acc-social .srmh-social-big{grid-template-columns:1fr}}

/* =====================================================================
   v3.1 – Shop page: clean mobile layout, no page title, no theme credit
   ===================================================================== */

/* no big "Shop" heading above the page, no double header */
body.srmh-notitle .entry-header,body.srmh-notitle .entry-title,body.srmh-notitle h1.page-title,
body.srmh-notitle .ast-archive-description,body.srmh-notitle .ast-breadcrumbs-wrapper,
body.srmh-shop-root .woocommerce-products-header,body.srmh-shop-root .woocommerce-products-header__title,
body.srmh-shop-root h1.page-title,body.srmh-shop-root .srmh-shop-banner h1,
body.srmh-shop-root .woocommerce-breadcrumb:not(.srmh-shop-crumbs .woocommerce-breadcrumb){display:none!important}
body.srmh-own-header #masthead,body.srmh-own-header .site-header,body.srmh-own-header #ast-mobile-header,
body.srmh-own-header .ast-mobile-header-wrap,body.srmh-own-header .main-header-bar-wrap{display:none!important}

/* theme copyright bar (Astra: "Copyright © … | Powered by Astra WordPress Theme") */
.ast-footer-copyright,.footer-copyright,.ast-small-footer,.site-below-footer-wrap[data-section="section-below-footer-builder"]{display:none!important}

/* the theme wraps page content in padded white boxes – remove them so the shop uses the full width */
body.srmh-notitle,body.srmh-shop{background:#f5f6f8}
body.srmh-notitle #primary,body.srmh-notitle .site-main,body.srmh-notitle .entry-content,
body.srmh-notitle .ast-article-single,body.srmh-notitle article.page,
body.srmh-notitle.ast-separate-container #primary,body.srmh-notitle.ast-separate-container .ast-article-single{
 padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;max-width:100%!important;width:100%!important}
body.srmh-notitle .site-content>.ast-container,body.srmh-notitle .ast-container{display:block;padding-left:0!important;padding-right:0!important;max-width:100%!important}
body.srmh-notitle .site-content{padding:0!important}
body.srmh-notitle #secondary{display:none!important}
body.srmh-notitle .entry-content>.srmh-wrap{margin-left:auto;margin-right:auto}

/* ---- [sr_marketing_shop] ---- */
.srmh-shoppage{width:100%}
.srmh-shopgrid .srmh-product-image{height:auto;aspect-ratio:1/1;padding:10px}
.srmh-shopgrid .srmh-product-image img{width:100%;height:100%;object-fit:contain}
.srmh-shopgrid .srmh-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;min-height:2.7em;overflow-wrap:anywhere}
.srmh-shopgrid .srmh-product-info{padding:10px 12px 12px}
.srmh-shopgrid .srmh-price{font-weight:900;color:var(--srmh-orange)}
.srmh-shopgrid .srmh-price del{font-size:12px;opacity:.7;margin-right:4px}
.srmh-shopgrid .srmh-price ins{text-decoration:none;background:none}
.srmh-shop-banner:empty{display:none}

@media(max-width:700px){
 .srmh-shoppage{padding:8px 12px 28px}
 .srmh-shoppage .srmh-shop-banner{margin:12px 0 12px;padding:16px 16px;border-radius:14px;gap:6px}
 .srmh-shoppage .srmh-shop-banner h1{font-size:24px}
 .srmh-shoppage .srmh-shop-banner p{font-size:13px;margin-top:6px}
 .srmh-shoppage .srmh-shop-crumbs{display:none}

 /* category chips: one swipeable row that reaches the screen edges */
 .srmh-chips{margin:0 -12px 6px;padding:2px 12px 8px;gap:8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
 .srmh-chips a{scroll-snap-align:start;padding:9px 14px;font-size:13px}

 /* filters: tidy 2-column grid */
 .srmh-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;margin:4px 0 12px}
 .srmh-filters .srmh-f-search{grid-column:1/-1;flex:none}
 .srmh-filters .srmh-f-search input{width:100%;height:44px}
 .srmh-filters .srmh-f-price{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
 .srmh-filters .srmh-f-price input{width:100%;height:44px}
 .srmh-filters select{grid-column:1/-1;width:100%;height:44px;flex:none}
 .srmh-filters .srmh-f-sale{grid-column:1/-1;min-height:32px}
 .srmh-filters .srmh-f-apply{grid-column:1/-1;height:46px;width:100%;font-size:14px}
 .srmh-filters .srmh-f-reset{grid-column:1/-1;text-align:center;padding:4px 0}
 .srmh-count{margin:0 0 10px;font-size:13px}

 /* product grid: 2 clean columns */
 .srmh-shopgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .srmh-shopgrid .srmh-product{border-radius:12px}
 .srmh-shopgrid .srmh-product-image{padding:8px}
 .srmh-shopgrid .srmh-product-info{padding:8px 10px 10px}
 .srmh-shopgrid .srmh-product-title{font-size:13px}
 .srmh-shopgrid .srmh-price{font-size:14px}
 .srmh-shopgrid .srmh-cart{padding:10px 6px;font-size:12.5px;min-height:40px;display:flex;align-items:center;justify-content:center}
 .srmh-pager{gap:5px;margin:20px 0 26px}
}
@media(max-width:340px){.srmh-shopgrid{grid-template-columns:1fr!important}}

/* ---- WooCommerce Shop / category archive (no shortcode) ---- */
@media(max-width:1000px){body.srmh-shop ul.products{gap:14px}}
@media(max-width:700px){
 body.srmh-shop .site-content,body.srmh-shop #primary{padding-left:12px!important;padding-right:12px!important}
 body.srmh-shop .ast-container{padding-left:0!important;padding-right:0!important}
 body.srmh-shop .srmh-shop-banner{padding:16px;margin-bottom:14px;border-radius:14px}
 body.srmh-shop .srmh-shop-crumbs{display:none}
 body.srmh-shop .woocommerce-result-count{display:block!important;line-height:1.4;margin:0 0 10px!important}
 body.srmh-shop .woocommerce-ordering{float:none!important;width:100%;margin:0 0 14px!important}
 body.srmh-shop .woocommerce-ordering select{width:100%;height:44px;font-size:16px}
 body.srmh-shop ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body.srmh-shop ul.products li.product{padding:8px!important}
 body.srmh-shop ul.products li.product .price{font-size:14px}
 body.srmh-shop ul.products li.product .button{padding:10px 6px!important;font-size:12.5px!important;min-height:40px}
 body.srmh-shop span.onsale{left:12px;top:12px}
 body.srmh-shop .woocommerce-pagination ul{flex-wrap:wrap;justify-content:center}
}
@media(max-width:340px){body.srmh-shop ul.products{grid-template-columns:1fr!important}}
