/* Sams Mobile commerce enhancements. Scoped to WooCommerce and Sams components. */
.sams-ec-home,.woocommerce-page,.woocommerce {--sams-ec-line:#dce0e2;--sams-ec-ink:#000814;--sams-ec-muted:#56616d}
.sams-ec-home{background:var(--sams-ec-home-bg,#f4f5f3);padding:clamp(40px,6vw,88px) 20px;color:var(--sams-ec-ink)}
.sams-ec-wrap{max-width:1240px;margin-inline:auto}.sams-ec-home-header{text-align:center;max-width:780px;margin:0 auto 38px}
.sams-ec-kicker{text-transform:uppercase;letter-spacing:.13em;color:var(--sams-ec-accent);font-weight:700;font-size:12px;margin:0 0 10px}
.sams-ec-home-header h2{font-size:clamp(25px,3vw,37px);line-height:1.2;letter-spacing:-.025em;font-weight:650;margin:0 0 14px}
.sams-ec-intro{color:var(--sams-ec-muted);line-height:1.75;margin:0;font-size:15px}
.sams-ec-home .products,.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(var(--sams-ec-desktop-columns,3),minmax(0,1fr));gap:24px;list-style:none;margin:22px 0!important;padding:0;clear:both}
.sams-ec-home .products::before,.sams-ec-home .products::after,.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.sams-ec-home ul.products li.product,.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:0 0 18px!important;min-width:0;background:#fff;border:1px solid #edf0f5;border-radius:var(--sams-ec-radius);overflow:hidden;box-shadow:0 5px 25px rgba(18,30,51,.045);transition:box-shadow .22s ease,transform .22s ease;display:flex;flex-direction:column}
.sams-ec-home ul.products li.product:hover,.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(18,30,51,.095)}
.sams-ec-home ul.products li.product a img,.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:contain;background:#f8fafc;width:100%;height:auto;margin:0 0 14px!important;padding:18px}
.sams-ec-home ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:1.55!important;font-weight:550!important;color:var(--sams-ec-ink);padding:0 17px!important;margin:0 0 8px!important}
.sams-ec-home ul.products li.product .price,.woocommerce ul.products li.product .price{font-size:16px!important;font-weight:700!important;color:var(--sams-ec-ink)!important;padding:0 17px;margin:0 0 14px!important}
.woocommerce ul.products li.product .price del,.sams-ec-home ul.products li.product .price del{font-size:13px;opacity:.55;font-weight:400}
.woocommerce ul.products li.product .button,.sams-ec-home ul.products li.product .button{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.3;margin:auto 17px 0!important;padding:12px 15px!important;border-radius:var(--sams-ec-button-radius)!important;background:var(--sams-ec-button)!important;color:var(--sams-ec-button-text)!important;font-size:13px!important;font-weight:650!important;border:0!important;min-height:44px;white-space:normal}
.woocommerce ul.products li.product .added_to_cart{display:block;text-align:center;font-size:13px;margin:8px 15px;color:var(--sams-ec-accent)}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{border-radius:8px!important;min-width:0!important;min-height:0!important;line-height:1.2!important;padding:7px 11px!important;top:12px!important;left:12px!important;right:auto!important;margin:0!important;background:#dc3545!important;font-size:12px!important;font-weight:650!important}
.sams-ec-view-all{text-align:center;margin-top:30px}.sams-ec-view-all a{color:var(--sams-ec-accent);font-weight:700;text-decoration:none}
.sams-ec-category-nav{display:flex;gap:9px;align-items:center;overflow-x:auto;max-width:100%;scrollbar-width:thin;margin:12px 0 26px;padding:4px 0 12px;clear:both}
.sams-ec-category-nav a{padding:9px 16px;flex-shrink:0;border:1px solid var(--sams-ec-line);border-radius:999px;color:var(--sams-ec-ink);background:#fff;text-decoration:none;font-size:13px;font-weight:550}
.sams-ec-category-nav a[aria-current=page],.sams-ec-category-nav a:hover{background:var(--sams-ec-accent);color:#fff;border-color:var(--sams-ec-accent)}
.woocommerce .woocommerce-ordering select{border:1px solid var(--sams-ec-line);border-radius:9px;min-height:43px;padding:7px 13px;background:white}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px;justify-content:center}.woocommerce nav.woocommerce-pagination ul li{border:0}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--sams-ec-line);border-radius:9px;padding:12px 15px;min-width:42px}.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--sams-ec-accent);color:white}
/* Single product: keep the existing theme structure, refine sizing and hierarchy. */
.woocommerce div.product .product_title{font-size:var(--sams-ec-title-size)!important;font-weight:var(--sams-ec-title-weight)!important;line-height:1.35!important;letter-spacing:-.015em;margin:0 0 14px!important}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--sams-ec-ink);font-size:clamp(21px,2.5vw,28px);font-weight:700}
.woocommerce div.product .woocommerce-product-gallery{margin-bottom:26px}.woocommerce div.product .woocommerce-product-gallery__wrapper{border-radius:var(--sams-ec-radius);overflow:hidden;background:#f8fafc}
.woocommerce div.product .flex-control-thumbs{display:flex;gap:9px;margin-top:12px!important}.woocommerce div.product .flex-control-thumbs li{border:1px solid var(--sams-ec-line);border-radius:9px;overflow:hidden}
.woocommerce div.product form.cart{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:25px}.woocommerce div.product form.cart .variations{width:100%}.woocommerce div.product form.cart .variations select{border:1px solid var(--sams-ec-line);padding:11px;border-radius:9px;max-width:100%}
.woocommerce div.product form.cart .quantity .qty{min-height:45px;border:1px solid var(--sams-ec-line);border-radius:var(--sams-ec-button-radius)}
.woocommerce div.product form.cart .button,.woocommerce #payment #place_order,.woocommerce button.button.alt,.woocommerce a.button.checkout-button{min-height:46px;padding:12px 24px!important;border-radius:var(--sams-ec-button-radius)!important;background:var(--sams-ec-button)!important;color:var(--sams-ec-button-text)!important;font-weight:650}
.woocommerce div.product form.cart .sams-ec-buy-now{background:#14243d!important;color:#fff!important}
.woocommerce div.product .woocommerce-tabs{margin-top:38px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin-bottom:24px}.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:9px 9px 0 0}.woocommerce div.product .woocommerce-tabs .panel{line-height:1.8}
.woocommerce .stock.in-stock{color:#16824d;font-weight:600}.woocommerce .stock.out-of-stock{color:#b42318;font-weight:600}
/* Classic checkout and block checkout surface: keep WooCommerce logic and gateway markup intact. */
.sams-ec-checkout .woocommerce-checkout,.sams-ec-checkout .wc-block-checkout{color:var(--sams-ec-ink)}
.sams-ec-checkout .woocommerce-checkout input.input-text,.sams-ec-checkout .woocommerce-checkout select,.sams-ec-checkout .woocommerce-checkout textarea{background:#fff;border:1px solid #dce3ed;border-radius:9px;min-height:46px;padding:10px 13px;box-shadow:none;width:100%}
.sams-ec-checkout .woocommerce-checkout textarea{min-height:90px}.sams-ec-checkout .woocommerce-checkout input:focus-visible,.sams-ec-checkout .woocommerce-checkout select:focus-visible{outline:2px solid var(--sams-ec-accent);outline-offset:2px}
.sams-ec-checkout .woocommerce form .form-row{padding:3px 0;margin-bottom:14px}.sams-ec-checkout .woocommerce form .form-row label{font-size:13px;font-weight:600;margin-bottom:6px}
.sams-ec-checkout .woocommerce-checkout #customer_details,.sams-ec-checkout .woocommerce-checkout #order_review{margin-bottom:24px}
.sams-ec-checkout .woocommerce-checkout #payment,.sams-ec-checkout .woocommerce-checkout-review-order-table,.sams-ec-checkout .woocommerce-checkout #customer_details>div{border:1px solid #e4e9f2;border-radius:8px;background:#fff;padding:clamp(14px,2.5vw,25px)}
.sams-ec-checkout .woocommerce-checkout-review-order-table{width:100%}.sams-ec-checkout .woocommerce-checkout-review-order-table th,.sams-ec-checkout .woocommerce-checkout-review-order-table td{padding:13px 10px}
.sams-ec-checkout .woocommerce-error,.sams-ec-checkout .woocommerce-message,.sams-ec-checkout .woocommerce-info{border-radius:9px;line-height:1.5}
.sams-ec-checkout .woocommerce #payment #place_order{width:100%;min-height:52px;font-size:16px}
.sams-ec-checkout .wc-block-components-text-input input,.sams-ec-checkout .wc-block-components-combobox-control input{border-radius:9px!important}
.sams-ec-checkout .wc-block-components-checkout-place-order-button{border-radius:var(--sams-ec-button-radius);background:var(--sams-ec-button);color:var(--sams-ec-button-text);min-height:52px}
@media(min-width:980px){.sams-ec-checkout-columns form.checkout.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(315px,.8fr);gap:18px 28px;align-items:start}.sams-ec-checkout-columns form.checkout #customer_details{grid-column:1;grid-row:1 / span 3;width:100%}.sams-ec-checkout-columns form.checkout #customer_details>div{float:none;width:100%;margin-bottom:18px}.sams-ec-checkout-columns form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0}.sams-ec-checkout-columns form.checkout #order_review{grid-column:2;grid-row:2}.sams-ec-checkout-columns form.checkout #order_review_heading~*{min-width:0}}
@media(max-width:980px){.sams-ec-home .products,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(var(--sams-ec-tablet-columns,2),minmax(0,1fr));gap:16px}}
@media(max-width:600px){.sams-ec-home{padding:36px 14px}.sams-ec-home .products,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(var(--sams-ec-mobile-columns,2),minmax(0,1fr));gap:11px}.woocommerce ul.products li.product .woocommerce-loop-product__title,.sams-ec-home ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;padding:0 11px!important}.woocommerce ul.products li.product .price,.sams-ec-home ul.products li.product .price{padding:0 11px;font-size:14px!important}.woocommerce ul.products li.product .button,.sams-ec-home ul.products li.product .button{font-size:12px!important;padding:10px 7px!important;margin:0 9px!important}.woocommerce div.product .product_title{font-size:min(var(--sams-ec-title-size),23px)!important}.woocommerce div.product form.cart .single_add_to_cart_button,.woocommerce div.product form.cart .sams-ec-buy-now{flex:1}.sams-ec-category-nav{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.woocommerce ul.products li.product,.sams-ec-home ul.products li.product{transition:none}.woocommerce ul.products li.product:hover,.sams-ec-home ul.products li.product:hover{transform:none}}

/* Integrated Sams Mobile v2.5 palette and keyboard interaction. */
.sams-ec-home .products li.product a:focus-visible,.sams-ec-category-nav a:focus-visible,.woocommerce ul.products li.product a:focus-visible,.woocommerce div.product form.cart button:focus-visible{outline:3px solid #ffc300;outline-offset:3px}
.sams-ec-home .sams-ec-view-all a:hover{text-decoration:underline}
.woocommerce ul.products li.product .button:hover,.woocommerce div.product form.cart .button:hover,.sams-ec-checkout .wc-block-components-checkout-place-order-button:hover{filter:brightness(.92)}
.sams-ec-home ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .woocommerce-loop-product__title{color:#000814!important}

/* Sale price clarity. Labels stay on a single row beside the product price, wrapping only on narrow screens. */
.woocommerce .sams-ec-savings,.sams-ec-home .sams-ec-savings{
 display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;
 width:auto;max-width:calc(100% - 20px);margin:0 12px 12px;padding:5px 9px;
 border-radius:5px;background:var(--sams-ec-sale-bg,#ed1835);color:var(--sams-ec-sale-text,#fff);
 font-size:12px;line-height:1.45;font-weight:650;box-sizing:border-box;vertical-align:middle;text-align:center;
}
.woocommerce .sams-ec-savings span,.sams-ec-home .sams-ec-savings span{color:inherit;white-space:nowrap;display:inline}
.woocommerce .sams-ec-savings .amount{color:inherit;font-weight:inherit}
.woocommerce ul.products li.product .sams-ec-savings,.sams-ec-home ul.products li.product .sams-ec-savings{align-self:center;max-width:calc(100% - 18px);margin:0 auto 12px}
.woocommerce div.product .summary>p.price,.woocommerce div.product .summary>span.price{display:inline-block;vertical-align:middle;margin-right:8px!important;margin-bottom:12px!important}
.woocommerce div.product .summary>.sams-ec-savings-single{display:inline-flex;max-width:100%;margin:0 0 12px 0}
.woocommerce .sams-ec-cart-saving{display:block;margin-top:6px}
.woocommerce .sams-ec-cart-saving .sams-ec-savings{margin:0;font-size:11px}
.woocommerce ul.products li.product,.sams-ec-home ul.products li.product,.woocommerce div.product .woocommerce-product-gallery{position:relative}
.woocommerce span.onsale.sams-ec-onsale,.woocommerce ul.products li.product .onsale.sams-ec-onsale,.sams-ec-home ul.products li.product .onsale.sams-ec-onsale{background:var(--sams-ec-sale-bg,#ed1835)!important;color:var(--sams-ec-sale-text,#fff)!important}
.woocommerce span.onsale.sams-ec-ribbon,.woocommerce ul.products li.product .onsale.sams-ec-ribbon,.sams-ec-home ul.products li.product .onsale.sams-ec-ribbon{position:absolute!important;z-index:5;top:18px!important;right:-34px!important;left:auto!important;display:block;width:145px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:7px 5px!important;transform:rotate(45deg);transform-origin:center;text-align:center;letter-spacing:.025em;font-size:12px!important;font-weight:700!important;line-height:1.3!important;background:var(--sams-ec-sale-bg,#ed1835)!important;color:var(--sams-ec-sale-text,#fff)!important;border-radius:0!important;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.woocommerce div.product .woocommerce-product-gallery{overflow:hidden}
@media(max-width:600px){.woocommerce .sams-ec-savings,.sams-ec-home .sams-ec-savings{font-size:11px;padding:4px 6px;gap:4px}.woocommerce span.onsale.sams-ec-ribbon,.woocommerce ul.products li.product .onsale.sams-ec-ribbon{right:-39px!important;top:17px!important;font-size:10px!important}}

/* Checkout inspired by Shopify: calm white surfaces, clear headings and order-summary side rail. */
.sams-ec-checkout{--sams-ec-checkout-border:#d2d6dc;--sams-ec-checkout-focus:#003566;color:#202124}
.sams-ec-checkout .woocommerce-checkout,.sams-ec-checkout .wc-block-checkout{max-width:1260px;margin-inline:auto;font-family:inherit}
.sams-ec-checkout .wc-block-checkout__main,.sams-ec-checkout .wc-block-checkout__sidebar{min-width:0}
.sams-ec-checkout .wc-block-checkout__sidebar{background:#f8f9fa;border:1px solid #e6e8eb;border-radius:12px;padding:clamp(16px,2.3vw,28px);align-self:start}
.sams-ec-checkout .wc-block-components-title,.sams-ec-checkout .wc-block-components-checkout-step__heading{color:#202124;font-weight:650;letter-spacing:-.02em}
.sams-ec-checkout .wc-block-components-checkout-step{margin-bottom:28px}
.sams-ec-checkout .wc-block-components-text-input,.sams-ec-checkout .wc-block-components-combobox,.sams-ec-checkout .wc-block-components-combobox-control{min-width:0}
/* Disable fragile overlapping floating-label positioning in checkout blocks. */
.sams-ec-checkout .wc-block-components-text-input,
.sams-ec-checkout .wc-block-components-combobox-control{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px}
.sams-ec-checkout .wc-block-components-text-input label,
.sams-ec-checkout .wc-block-components-combobox-control label,
.sams-ec-checkout .wc-block-components-text-input.is-active label,
.sams-ec-checkout .wc-block-components-combobox-control.is-active label{
 position:static!important;inset:auto!important;transform:none!important;translate:none!important;scale:1!important;
 display:block!important;order:-1!important;margin:0!important;padding:0!important;background:transparent!important;
 font-size:13px!important;line-height:1.45!important;font-weight:550!important;color:#333a44!important;
 opacity:1!important;pointer-events:auto!important;width:auto!important;
}
.sams-ec-checkout .wc-block-components-text-input input,
.sams-ec-checkout .wc-block-components-combobox-control input,
.sams-ec-checkout .wc-block-components-combobox-control select{
 box-sizing:border-box!important;position:relative!important;order:0!important;width:100%!important;
 min-height:49px!important;height:auto!important;padding:12px 14px!important;margin:0!important;
 border:1px solid var(--sams-ec-checkout-border)!important;border-radius:8px!important;
 background:#fff!important;color:#202124!important;line-height:1.45!important;font-size:15px!important;
}
.sams-ec-checkout .wc-block-components-text-input input:focus,
.sams-ec-checkout .wc-block-components-combobox-control input:focus{outline:2px solid var(--sams-ec-checkout-focus)!important;outline-offset:1px!important;border-color:var(--sams-ec-checkout-focus)!important}
.sams-ec-checkout .wc-block-components-combobox-control .wc-block-components-combobox-control__suggestions-container{order:1}
.sams-ec-checkout .wc-block-components-checkout-place-order-button{min-height:54px!important;width:100%;font-size:16px!important;font-weight:650!important;border-radius:8px!important}
.sams-ec-checkout .wc-block-components-notice-banner,.sams-ec-checkout .wc-block-components-validation-error{line-height:1.5}
@media(max-width:780px){.sams-ec-checkout .wc-block-checkout__sidebar{padding:16px;margin-top:22px}.sams-ec-checkout .wc-block-checkout{padding-inline:8px}}
