/* Native WooCommerce forms, unified with the Mamstor storefront. */
.mam-commerce{--wd-form-brd-radius:12px;--wd-form-brd-color:#dfe3d7;--wd-form-brd-color-focus:#a99467;--wd-form-bg:#fafbf8;--btn-accented-brd-radius:12px;--btn-default-brd-radius:12px;--btn-accented-color:#292a27;--btn-accented-color-hover:#292a27;--btn-accented-transform:none;--btn-default-transform:none;--wd-text-font:Arial,Helvetica,sans-serif;--wd-title-font:Arial,Helvetica,sans-serif;--wd-entities-title-font:Arial,Helvetica,sans-serif;--wd-title-color:#292a27;--wd-text-color:#68715f;--brdcolor-gray-300:#e6e9e0;--brdcolor-gray-200:#e6e9e0}
.mam-commerce :is(.website-wrapper,.main-page-wrapper){background:var(--mam-bg)}
.mam-commerce .main-page-wrapper{padding-top:12px;margin-bottom:0}
.mam-commerce #main-content,.mam-product-page .single-product-page>.container,.mam-product-page .product-tabs-inner{max-width:1440px;padding-inline:32px}
.mam-commerce .wd-content-area{min-width:0}
.mam-commerce .wd-page-title{max-width:1376px;margin-bottom:14px}
.mam-commerce :is(h1,h2,h3,h4){letter-spacing:-.02em;text-transform:none;font-family:inherit;color:#292a27}
.mam-commerce-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;grid-column:1/-1}
.mam-commerce-heading>div{display:flex;align-items:center;gap:13px;min-width:0}
.mam-commerce-heading .mam-icon{width:48px;height:48px;flex-shrink:0}
.mam-commerce-heading h1{font-size:28px;font-weight:600;line-height:1.25;margin:0}
.mam-commerce-heading>a{display:flex;align-items:center;gap:8px;color:#7b6841;font-size:13px;flex-shrink:0}
.mam-commerce-heading svg{width:16px;height:16px}
.mam-commerce #main-content :is(.button,button[type=submit],.btn:not(.plus):not(.minus)){min-height:46px;padding:11px 20px;border:1px solid transparent;border-radius:12px;background:#bea163;color:#292a27;text-transform:none;font-size:14px;font-weight:600;line-height:1.5;box-shadow:none}
.mam-commerce #main-content :is(.button,button[type=submit],.btn:not(.plus):not(.minus)):hover{background:#af9359;color:#292a27;box-shadow:none}
.mam-commerce #main-content :is(.button,button[type=submit]):disabled{opacity:.5}
.mam-commerce #main-content :is(input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],textarea,select){border:1px solid #dfe3d7;border-radius:12px;background:#fafbf8;min-height:46px;padding:11px 14px;color:#292a27;font-size:15px;font-weight:400;box-shadow:none}
.mam-commerce #main-content :is(input,textarea,select):focus{outline:none;border-color:#a99467;box-shadow:0 0 0 3px #bea16314}
.mam-commerce #main-content :is(input,textarea,select,button,a):focus-visible{outline:2px solid #a99467;outline-offset:3px}
.mam-commerce #main-content :is(input[type=checkbox],input[type=radio]){accent-color:#8d7950}
.mam-commerce #main-content label{font-size:13px;font-weight:500;color:#4e5845}
.mam-commerce #main-content .required{color:#996d47}
.mam-commerce #main-content .form-row{margin-bottom:20px}
.mam-commerce #main-content .woocommerce-invalid :is(input,select,textarea){border-color:#b06951;background:#fdf8f4}
.mam-commerce #main-content .select2-selection{min-height:46px;border-radius:12px;border-color:#dfe3d7;background:#fafbf8}
.mam-commerce #main-content .select2-selection__rendered{line-height:44px;padding-inline:14px}
.mam-commerce #main-content .select2-selection__arrow{height:44px}
.mam-commerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-Message,.woocommerce-error){border:1px solid #dde5d4;border-radius:14px;background:#edf2e7;color:#46533c;box-shadow:none;padding:18px 20px;line-height:1.65;font-size:14px}
.mam-commerce .woocommerce-error{border-color:#e8d7c9;background:#faf1e9;color:#80533b}
.mam-commerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error):before{display:none}
.mam-commerce :is(.woocommerce-info,.woocommerce-message) a:not(.button){color:#725f37}
.mam-commerce .woocommerce-notices-wrapper:empty{display:none}
.mam-commerce #main-content div.quantity{display:inline-flex;flex:0 0 auto;border:1px solid #dfe3d7;border-radius:12px;overflow:hidden;background:#f7f8f2;margin:0}
.mam-commerce #main-content div.quantity :is(input.qty,button){border:0;border-radius:0;min-height:46px;height:46px;background:transparent;box-shadow:none;color:#435039;padding:0;font-size:15px}
.mam-commerce #main-content div.quantity button{width:32px;min-width:32px}
.mam-commerce #main-content div.quantity input.qty{width:38px;min-width:38px;-moz-appearance:textfield}
.mam-commerce #main-content div.quantity button:hover{background:#e9eedf}
.mam-commerce #main-content div.quantity input.qty::-webkit-inner-spin-button{appearance:none}

/* Product: two calm surfaces, native gallery/variations/lightbox preserved. */
.mam-product-page .product-image-summary-inner{align-items:start;--wd-gap-lg:26px}
.mam-product-page .product-images{min-width:0}
.mam-product-page .woocommerce-product-gallery{background:#fff;border:1px solid #e5e7df;border-radius:22px;padding:10px;overflow:hidden}
.mam-product-page .wd-gallery-images .woocommerce-product-gallery__image{border-radius:15px;overflow:hidden;background:#f5f5f0}
.mam-product-page .wd-gallery-images .woocommerce-product-gallery__image>a{display:block}
.mam-product-page .wd-gallery-images .wp-post-image{max-height:690px;object-fit:contain;width:100%}
.mam-product-page .wd-gallery-thumb img{border-radius:10px}
.mam-product-page .summary-inner{background:#fff;border:1px solid #e5e7df;border-radius:22px;padding:30px;--wd-tags-mb:22px}
.mam-product-page .single-breadcrumbs-wrapper{gap:8px;margin-bottom:22px;font-size:12px;line-height:1.6}
.mam-product-page .wd-breadcrumbs{font-size:12px;color:#818875}
.mam-product-page .product_title{font-size:30px;line-height:1.25;font-weight:600;margin-bottom:18px}
.mam-product-page .summary .price{color:#292a27;font-size:29px;font-weight:650;line-height:1.3}
.mam-product-page .summary .price :is(ins,.amount){color:inherit}
.mam-product-page .summary .price del{font-size:16px;color:#949a8b;font-weight:400}
.mam-product-page .woocommerce-product-details__short-description{font-size:14px;line-height:1.7;color:#75806a}
.mam-product-page .summary form.cart{margin-top:24px;margin-bottom:22px;gap:12px}
.mam-product-page .woocommerce-variation-add-to-cart{gap:12px;align-items:center}
.mam-product-page #main-content .single_add_to_cart_button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;flex-grow:1;max-width:360px;font-size:15px}
.mam-product-page #main-content .single_add_to_cart_button:before{content:"";width:28px;height:28px;flex:0 0 28px;background:url(cart-front.webp) center/contain no-repeat}
.mam-product-page .variations{margin-bottom:20px}
.mam-product-page .variations td{padding-bottom:14px}
.mam-product-page .variations label{font-weight:500}
.mam-product-page .wd-swatch{border-radius:10px}
.mam-product-page .wd-swatches-product{gap:9px}
.mam-product-page .reset_variations{font-size:12px;color:#7c6941}
.mam-product-page .summary .wd-action-btn>a{border:1px solid #e4e8dc;border-radius:10px;padding:9px 12px;min-height:42px;font-weight:400;font-size:13px;color:#637057;background:#f7f9f3}
.mam-product-page .summary .wd-wishlist-btn .wd-action-icon:before{content:"";width:25px;height:25px;background:url(heart.webp) center/contain no-repeat;font-family:inherit}
.mam-product-page .product_meta{border-top:1px solid #e9ece3;padding-top:18px;color:#858d7c;font-size:12px;line-height:1.7}
.mam-product-page .product_meta>span{margin-bottom:7px}
.mam-product-page .product_meta .meta-label{font-weight:500;color:#64715a}
.mam-product-page .product-tabs-wrapper{border:0;background:transparent;padding:24px 0;margin-top:0}
.mam-product-page .woocommerce-tabs{border:1px solid #e5e7df;border-radius:20px;padding:24px 28px;background:white}
.mam-product-page .woocommerce-tabs ul.tabs{justify-content:flex-start;gap:8px;margin:0 0 22px}
.mam-product-page .woocommerce-tabs ul.tabs li{margin:0}
.mam-product-page .woocommerce-tabs ul.tabs li a{padding:10px 16px;border-radius:10px;text-transform:none;font-size:14px;font-weight:500;color:#758168;line-height:1.5}
.mam-product-page .woocommerce-tabs ul.tabs li:before,.mam-product-page .woocommerce-tabs ul.tabs li a:before,.mam-product-page .woocommerce-tabs ul.tabs li a:after{display:none}
.mam-product-page .woocommerce-tabs ul.tabs li.active a{background:#edf1e5;color:#43503a}
.mam-product-page .woocommerce-Tabs-panel{font-size:14px;line-height:1.75;color:#6d7863;margin:0}
.mam-product-page .woocommerce-Tabs-panel table{margin:0}
.mam-product-page .related-and-upsells{padding-top:6px;padding-bottom:38px}
.mam-product-page .related-and-upsells .title{font-size:24px;font-weight:600;text-transform:none}
.mam-product-page .related-and-upsells .title:after{display:none}
.mam-product-page .mam-product{border:1px solid #e5e7df}
.mam-product-page .mam-product-title{font-size:15px;font-weight:400}
.mam-product-page .mam-product-price{font-size:20px}
.mam-product-page .group_table{font-size:14px}
.mam-product-page .group_table td{padding:12px 6px;border-color:#e5e8df}

/* Cart: item list and totals remain separate native AJAX fragments. */
.mam-cart-page #main-content,.mam-checkout-page #main-content{padding-bottom:44px}
.mam-cart-page .cart-content-wrapper{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
.mam-cart-page .cart-content-wrapper>.woocommerce-notices-wrapper{grid-column:1/-1}
.mam-cart-page .cart-content-wrapper>.mam-commerce-heading{margin-bottom:0}
.mam-cart-page .woocommerce-cart-form{width:100%;min-width:0;background:#fff;border:1px solid #e5e7df;border-radius:20px;padding:20px 22px}
.mam-cart-page .woocommerce-cart-form table{margin-bottom:0;font-size:14px}
.mam-cart-page .woocommerce-cart-form th{text-transform:none;font-size:12px;font-weight:500;color:#89927e;padding:6px 8px 16px;border-bottom:1px solid #e7eadf}
.mam-cart-page .woocommerce-cart-form td{padding:20px 8px;border-color:#e7eadf}
.mam-cart-page .woocommerce-cart-form .product-thumbnail{width:88px}
.mam-cart-page .woocommerce-cart-form .product-thumbnail img{width:72px;border-radius:11px}
.mam-cart-page .woocommerce-cart-form .product-name>a{font-weight:500;color:#3e4835;line-height:1.6}
.mam-cart-page .woocommerce-cart-form .product-name dl{font-size:12px;color:#88927d}
.mam-cart-page .woocommerce-cart-form .product-remove{width:28px}
.mam-cart-page .woocommerce-cart-form .product-remove>a{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:#f3f4ef;color:#87907e}
.mam-cart-page .woocommerce-cart-form .product-remove>a:hover{background:#f8ece4;color:#98674a}
.mam-cart-page .woocommerce-cart-form .product-subtotal .amount{color:#333d2c;font-weight:600}
.mam-cart-page .cart-actions{margin-top:20px!important;gap:12px!important}
.mam-cart-page .coupon{gap:10px;align-items:start}
.mam-cart-page #main-content .coupon .button{background:#eaf0e1;color:#4f5e42}
.mam-cart-page .cart_totals{width:100%;min-width:0}
.mam-cart-page .cart-content-wrapper>.cart_totals .cart-totals-inner{border:1px solid #e0e6d7;border-radius:20px;padding:26px;background:linear-gradient(145deg,#fff,#f3f6ec);box-shadow:none}
.mam-cart-page .cart-totals-inner>h2{display:flex;align-items:center;gap:10px;font-size:21px;text-transform:none;font-weight:600;margin-bottom:20px}
.mam-cart-page .cart-totals-inner>h2:before{content:"";display:block;width:36px;height:36px;background:url(orders.webp) center/contain no-repeat}
.mam-cart-page .cart-totals-inner :is(th,td){padding:16px 0;font-size:14px;color:#68745c}
.mam-cart-page .cart-totals-inner .order-total :is(th,.amount){color:#2f3b28;font-size:21px}
.mam-cart-page .cart-totals-inner .checkout-button{width:100%}
.mam-cart-page .wd-cart-action-row:has(.cart-actions>[name=update_cart].wd-hide):not(:has(.cart-actions>:not([name=update_cart]):not(input[type=hidden]))){display:none}
.mam-cart-page #main-content .woocommerce:has(>.cart-empty){max-width:760px;margin:10px auto 30px;padding:42px 40px;background:#fff;border:1px solid #e5e7df;border-radius:24px}
.mam-cart-page .cart-empty{font-size:28px;font-weight:600;line-height:1.3;margin-bottom:15px}
.mam-cart-page .cart-empty:before{content:"";display:block;width:120px;height:120px;margin:0 auto 20px;background:url(cart-front.webp) center/contain no-repeat}
.mam-cart-page .wd-empty-block-text{font-size:14px;line-height:1.7;color:#7b856e;max-width:470px;margin:0 auto 24px}
.mam-cart-page .return-to-shop{margin:0}

/* Checkout: keep WooCommerce's IDs, fields, totals and payment handlers. */
.mam-checkout-page form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:26px;align-items:start}
.mam-checkout-page form.woocommerce-checkout>.woocommerce-NoticeGroup{grid-column:1/-1}
.mam-checkout-page form.woocommerce-checkout>.customer-details{width:100%;max-width:100%;margin:0;min-width:0;padding:28px;background:#fff;border:1px solid #e5e7df;border-radius:20px}
.mam-checkout-page form.woocommerce-checkout>.checkout-order-review{width:100%;max-width:100%;margin:0;min-width:0;background:linear-gradient(140deg,#fff,#f4f6ef);border:1px solid #e0e6d7;border-radius:20px;padding:28px;box-shadow:none}
.mam-checkout-page .checkout-order-review:before,.mam-checkout-page .checkout-order-review:after{display:none}
.mam-checkout-page .woocommerce-billing-fields>h3,.mam-checkout-page #order_review_heading{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:600;text-align:left;text-transform:none;margin-bottom:24px}
.mam-checkout-page .woocommerce-billing-fields>h3:before,.mam-checkout-page #order_review_heading:before{content:"";width:40px;height:40px;flex:0 0 40px;background:url(address.webp) center/contain no-repeat}
.mam-checkout-page #order_review_heading:before{background-image:url(orders.webp)}
.mam-checkout-page .woocommerce-additional-fields{padding-top:22px;border-top:1px solid #e9ece3}
.mam-checkout-page .woocommerce-additional-fields>h3{font-size:18px;font-weight:500;text-transform:none}
.mam-checkout-page #order_comments{min-height:110px;height:110px;resize:vertical}
.mam-checkout-page .woocommerce-additional-fields>h3{display:none}
.mam-checkout-page .woocommerce-checkout-review-order-table{background:transparent;font-size:14px}
.mam-checkout-page .woocommerce-checkout-review-order-table :is(th,td){padding:16px 8px}
.mam-checkout-page .woocommerce-checkout-review-order-table th{text-transform:none;font-size:12px;color:#7b876d;font-weight:500}
.mam-checkout-page .woocommerce-checkout-review-order-table .product-name{min-width:0;line-height:1.6;color:#4a5640}
.mam-checkout-page .woocommerce-checkout-review-order-table .product-total{white-space:nowrap;flex-shrink:0;color:#4b5940}
.mam-checkout-page .woocommerce-checkout-review-order-table .order-total :is(th,.amount){font-size:22px;font-weight:600;color:#35432d}
.mam-checkout-page .woocommerce-checkout-review-order-table .cart-subtotal .amount{color:#617153;font-weight:400}
.mam-checkout-page .woocommerce-checkout-review-order-table .variation{font-size:12px;color:#7e8971}
.mam-checkout-page #payment{background:transparent;border-radius:14px;margin-top:20px}
.mam-checkout-page #payment .payment_methods{padding:0 0 18px;border-color:#e3e8d9}
.mam-checkout-page #payment .payment_box{background:#edf2e5;border-radius:12px;padding:14px;font-size:13px;color:#6d7b60}
.mam-checkout-page #payment .payment_box:before{border-bottom-color:#edf2e5}
.mam-checkout-page #payment .woocommerce-info{font-size:13px;line-height:1.65;margin:0;padding:16px;background:#f4efe3;color:#7c6d4b;border-color:#e6ddc7}
.mam-checkout-page .woocommerce-privacy-policy-text{font-size:12px;line-height:1.7;color:#828a76}
.mam-checkout-page .woocommerce-privacy-policy-text a{color:#78643b;font-weight:400}
.mam-checkout-page #main-content #place_order{width:100%;min-height:48px}
.mam-checkout-page .place-order{margin:0!important;padding:18px 0 0}
.mam-checkout-page .woocommerce-form-coupon-toggle,.mam-checkout-page .woocommerce-form-login-toggle{margin-bottom:16px;padding:14px 18px;background:#fff;border:1px solid #e5e7df;border-radius:13px}
.mam-checkout-page .woocommerce-form-coupon-toggle>div,.mam-checkout-page .woocommerce-form-login-toggle>div{margin:0;border:0;font-size:13px;font-weight:400}
.mam-checkout-page .woocommerce-form-coupon,.mam-checkout-page .woocommerce-form-login.hidden-form{background:#fff;border:1px solid #e5e7df;border-radius:16px;padding:22px;max-width:650px}
.mam-checkout-page .woocommerce-order{background:#fff;border:1px solid #e5e7df;border-radius:20px;padding:28px}

/* One reusable promo-code component in both totals panels. */
.mam-coupon{min-width:0;width:100%;margin:0 0 20px;text-align:left}
.mam-coupon>label{display:block;margin-bottom:8px}
.mam-coupon-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.mam-commerce #main-content .mam-coupon input{width:100%;min-width:0;max-width:100%;height:46px;font-weight:400;font-size:16px}
.mam-commerce #main-content .mam-coupon button.mam-coupon-apply.button{width:106px;min-width:106px;min-height:46px;padding:11px 12px;font-size:13px;background:#eaf0e1;color:#4f5e42;white-space:nowrap}
.mam-commerce #main-content .mam-coupon button.mam-coupon-apply.button:hover{background:#dfe8d2}
.mam-coupon .mam-coupon-message{margin:8px 0 0;color:#4f6542;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.mam-coupon .mam-coupon-message:empty{display:none}
.mam-coupon.has-error .mam-coupon-message{color:#94563d}
.mam-commerce #main-content .mam-coupon.has-error input{border-color:#b4785c}

@media(max-width:1100px){
 .mam-commerce #main-content,.mam-product-page .single-product-page>.container,.mam-product-page .product-tabs-inner{padding-inline:22px}
 .mam-cart-page .cart-content-wrapper{grid-template-columns:minmax(0,1fr) 310px;gap:18px}
 .mam-cart-page .woocommerce-cart-form{padding:18px 14px}
 .mam-cart-page .woocommerce-cart-form td{padding-inline:5px}
 .mam-cart-page .woocommerce-cart-form .product-price{display:none}
 .mam-product-page .summary-inner{padding:23px}
 .mam-product-page .product_title{font-size:25px}
 .mam-checkout-page form.woocommerce-checkout>.customer-details,.mam-checkout-page form.woocommerce-checkout>.checkout-order-review{padding:22px}
 .mam-checkout-page form.woocommerce-checkout{gap:18px}
}
@media(max-width:800px){
 .mam-cart-page .cart-content-wrapper,.mam-checkout-page form.woocommerce-checkout{grid-template-columns:minmax(0,1fr);gap:18px}
 .mam-checkout-page .woocommerce-billing-fields__field-wrapper{display:flow-root}
 .mam-product-page .summary-inner{padding:20px}
}
@media(max-width:700px){
 .mam-commerce #main-content,.mam-product-page .single-product-page>.container,.mam-product-page .product-tabs-inner{padding-inline:14px}
 .mam-commerce .main-page-wrapper{padding-top:4px}
 .mam-commerce-heading{align-items:flex-start;flex-direction:column;gap:9px;margin:5px 0 18px}
 .mam-commerce-heading h1{font-size:23px}
 .mam-commerce-heading .mam-icon{width:40px;height:40px}
 .mam-commerce-heading>div{gap:9px}
 .mam-commerce-heading>a{font-size:12px;margin-left:49px}
 .mam-commerce .wd-page-title{padding:14px 16px;margin-bottom:15px}
 .mam-commerce .wd-page-title .wd-checkout-steps{font-size:11px;gap:8px}
 .mam-commerce .wd-page-title .wd-checkout-steps li:not(:last-child):after{margin-inline-start:8px}
 .mam-product-page .product-image-summary-inner{--wd-gap-sm:16px}
 .mam-product-page .woocommerce-product-gallery{padding:6px;border-radius:18px}
 .mam-product-page .summary-inner{border-radius:18px;padding:20px 17px}
 .mam-product-page .product_title{font-size:24px;margin-bottom:14px}
 .mam-product-page .summary .price{font-size:27px}
 .mam-product-page .single-breadcrumbs-wrapper{margin-bottom:16px}
 .mam-product-page #main-content .single_add_to_cart_button{max-width:none;min-width:0;padding-inline:14px}
 .mam-product-page .summary form.cart{gap:9px}
 .mam-product-page .woocommerce-variation-add-to-cart{gap:9px;flex-wrap:wrap}
 .mam-product-page .product-tabs-wrapper{padding:18px 0}
 .mam-product-page .woocommerce-tabs{padding:18px 16px;border-radius:18px}
 .mam-product-page .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:16px}
 .mam-product-page .woocommerce-tabs ul.tabs li a{padding:9px 10px;font-size:12px}
 .mam-product-page .wd-accordion-title{font-size:15px;text-transform:none}
 .mam-product-page .related-and-upsells .title{font-size:21px}
 .mam-product-page .mam-product-title{font-size:12px}
 .mam-product-page .mam-product-price{font-size:17px}
 .mam-cart-page .woocommerce-cart-form{padding:6px 16px 18px;border-radius:18px}
 .mam-cart-page .cart-content-wrapper>.cart_totals .cart-totals-inner{padding:22px;border-radius:18px}
 .mam-cart-page #main-content .woocommerce:has(>.cart-empty){padding:30px 20px;border-radius:20px}
 .mam-cart-page .cart-empty{font-size:24px}
 .mam-cart-page .cart-empty:before{width:100px;height:100px}
 .mam-checkout-page form.woocommerce-checkout>.customer-details,.mam-checkout-page form.woocommerce-checkout>.checkout-order-review{padding:22px 18px;border-radius:18px}
 .mam-checkout-page .woocommerce-billing-fields>h3,.mam-checkout-page #order_review_heading{font-size:20px;gap:9px}
 .mam-checkout-page .woocommerce-billing-fields>h3:before,.mam-checkout-page #order_review_heading:before{width:34px;height:34px;flex-basis:34px}
 .mam-checkout-page .woocommerce-checkout-review-order-table :is(th,td){padding:14px 2px}
 .mam-checkout-page .woocommerce-checkout-review-order-table .product-name{font-size:13px;padding-right:12px}
 .mam-checkout-page .woocommerce-checkout-review-order-table .product-total{font-size:13px}
 .mam-checkout-page #main-content .form-row-first,.mam-checkout-page #main-content .form-row-last{width:100%;float:none}
 .mam-checkout-page .woocommerce-form-coupon{padding:20px 16px}
 .mam-checkout-page .woocommerce-form-coupon .form-row-last{flex:1 1 100%}
 .mam-checkout-page .woocommerce-form-coupon button{width:100%}
}
@media(max-width:768.98px){
 .mam-cart-page .woocommerce-cart-form tr.cart_item{display:grid;grid-template-columns:72px minmax(0,1fr) 26px;column-gap:12px;row-gap:12px;position:relative;padding:20px 0;min-height:0;border-bottom:1px solid #e7eadf}
 .mam-cart-page .woocommerce-cart-form tr.cart_item td{padding:0;border:0;min-height:0;width:auto;position:static;text-align:left;display:block}
 .mam-cart-page .woocommerce-cart-form tr.cart_item td:before{display:none}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-remove{grid-column:3;grid-row:1;align-self:start}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-thumbnail{grid-column:1;grid-row:1/4;display:block;max-height:none;max-width:none}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-thumbnail img{width:72px;height:90px;object-fit:cover}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-name{grid-column:2;grid-row:1;padding:0;font-size:13px}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-price{display:none}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-quantity{grid-column:2;grid-row:3}
 .mam-cart-page .woocommerce-cart-form tr.cart_item .product-subtotal{grid-column:2/4;grid-row:2;font-size:17px}
 .mam-cart-page .woocommerce-cart-form .wd-cart-action-row{border:0;padding:0;display:block}
 .mam-cart-page .woocommerce-cart-form .wd-cart-action-row td{padding:0;display:block}
 .mam-cart-page .cart-actions{margin-top:18px!important}
 .mam-cart-page .coupon{width:100%}
 .mam-cart-page .coupon input,.mam-cart-page .coupon button{width:100%}
}
@media(prefers-reduced-motion:reduce){.mam-commerce *{scroll-behavior:auto}}

/* Override the theme’s predefined layout rules loaded with native fragments. */
.mam-cart-page .cart-content-wrapper .coupon{padding:0;border:0}
.mam-cart-page #main-content .coupon button.button{background:#eaf0e1;color:#4f5e42}
.mam-checkout-page .checkout-order-review>.woocommerce-checkout-review-order .wd-table-wrapper{padding:0;border-radius:0;background:transparent;box-shadow:none}
.mam-checkout-page #payment .woocommerce-info{padding:16px!important}
.mam-product-page #main-content>.single-product-page>.container{padding-inline:0}
.mam-product-page #main-content .single-product-page>.container,.mam-product-page #main-content .product-tabs-inner{padding-inline:0}
.mam-commerce.mam-cart-page #main-content .coupon button.button{background:#eaf0e1;color:#4f5e42}
.mam-product-page .product-tabs-wrapper .tabs-layout-tabs>.wd-nav-tabs-wrapper{margin:0 0 22px}
.mam-product-page .woocommerce-tabs .wd-nav-tabs{justify-content:flex-start}
.mam-product-page .woocommerce-tabs .wd-nav-tabs>li>a:after{display:none}

.mam-product-page .woocommerce-tabs .wd-nav-tabs .nav-link-text:after{display:none}
.mam-product-page .summary .group_table .price{font-size:17px;white-space:nowrap}
.mam-product-page .group_table .product-thumbnail img{border-radius:10px}
@media(max-width:1100px){
 .mam-product-page .summary .group_table tr{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px 12px;padding:16px 0;border-block:1px solid #e5e8df}
 .mam-product-page .summary .group_table td{display:block;position:static;width:auto;min-width:0;padding:0;border:0;text-align:left}
 .mam-product-page .summary .group_table .product-thumbnail{grid-column:1;grid-row:1/4}
 .mam-product-page .summary .group_table .product-thumbnail img{width:60px;min-width:0;max-width:60px}
 .mam-product-page .summary .group_table .product-name{grid-column:2;grid-row:1}
 .mam-product-page .summary .group_table .product-price{grid-column:2;grid-row:2}
 .mam-product-page .summary .group_table .product-quantity{grid-column:2;grid-row:3}
 .mam-product-page .summary .group_table .product-name label{margin:0}
}

/* Sculpted colour chips use the actual WooCommerce attribute colours. */
.mam-product-page .summary .wd-swatches-single .wd-swatch.wd-bg{width:42px;height:42px;border-radius:50%;padding:4px;box-shadow:none}
.mam-product-page .summary .wd-swatches-single .wd-swatch-bg,.mam-color-sphere{border-radius:50%;position:relative;box-shadow:inset 0 2px 3px #ffffffab,inset 0 -5px 7px #00000028,0 3px 5px #38472a1a;background-size:cover}
.mam-product-page .summary .wd-swatches-single .wd-swatch-bg:after,.mam-color-sphere:after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 30% 22%,#ffffffb8 0%,#ffffff30 25%,transparent 56%);pointer-events:none}
.mam-product-page .summary .wd-swatches-single .wd-swatch.wd-active{outline:1px solid #9da88c;outline-offset:0;background:#eff3e7}
.mam-product-page .summary .wd-swatches-single .wd-swatch.wd-disabled{opacity:.3}
.mam-product-page .summary .wd-swatches-single .wd-swatch:focus-visible{outline:2px solid #9b875b;outline-offset:2px}
.mam-color-picker{position:relative;display:inline-block;vertical-align:middle;max-width:100%}
.mam-color-control{display:inline-flex;align-items:center;max-width:100%;min-height:48px;background:#f5f7ef;border:1px solid #e0e6d7;border-radius:14px;box-shadow:inset 0 1px 1px #fff;color:#6f7c60}
.mam-color-control:has(.mam-color-toggle:hover),.mam-color-control:has(.mam-color-toggle[aria-expanded=true]){background:#edf2e4;border-color:#bac8a9}
.mam-product-page #main-content .mam-color-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:46px;margin:0;padding:8px 11px;background:transparent;border:0;border-radius:13px;box-shadow:none;color:inherit;cursor:pointer}
.mam-product-page .mam-color-control>.wd-reset-var{position:static;inset:auto;width:auto;flex:0 0 auto;margin:0 4px 0 0;line-height:0}
.mam-product-page .mam-color-control>.wd-reset-var[hidden]{display:none!important}
.mam-product-page .mam-color-control .reset_variations{justify-content:center;width:32px;height:36px;margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:#6f7c60;font-size:0;visibility:visible!important;opacity:1!important}
.mam-product-page .mam-color-control .reset_variations:before{margin:0;font-size:13px}
.mam-product-page .mam-color-control .reset_variations:hover{background:#e3ebd8;color:#435039}
.mam-color-preview{display:flex;align-items:center;padding-left:4px}
.mam-color-sphere{display:block;width:27px;height:27px;margin-left:-4px;border:1px solid #fff8}
.mam-color-selected .mam-color-sphere{width:30px;height:30px}
.mam-color-chevron{width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
.mam-color-toggle[aria-expanded=true] .mam-color-chevron{transform:translateY(2px) rotate(225deg)}
.mam-color-options{position:absolute;z-index:40;top:calc(100% + 9px);left:0;min-width:208px;max-width:calc(100vw - 60px);padding:10px;background:#fff;border:1px solid #e1e7d7;border-radius:17px;box-shadow:0 12px 28px #32432318}
.mam-color-options[hidden]{display:none!important}
.mam-product-page .mam-color-options .wd-swatches-product{display:flex;flex-wrap:wrap;gap:4px;margin:0}

@media(max-width:768.98px){
 /* Display-contents preserves the native gallery and form nodes and their handlers. */
 .mam-product-page .product-image-summary-inner{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:20px 17px;background:#fff;border:1px solid #e5e7df;border-radius:20px}
 .mam-product-page .product-image-summary-inner>.summary,.mam-product-page .product-image-summary-inner .summary-inner{display:contents}
 .mam-product-page .summary-inner>*{order:4;min-width:0;max-width:100%;margin:0}
 .mam-product-page .summary-inner>.single-breadcrumbs-wrapper{order:0;margin:0;gap:8px}
 .mam-product-page .summary-inner>.product_title{order:1;font-size:24px;margin:0}
 .mam-product-page .product-image-summary-inner>.product-images{order:2;width:100%;min-width:0;margin:0}
 .mam-product-page .product-images .woocommerce-product-gallery{border:0;background:#f5f6f1;padding:0;border-radius:14px;margin:0}
 .mam-product-page .wd-gallery-images .woocommerce-product-gallery__image{border-radius:14px}
 .mam-product-page .summary-inner>.price,.mam-product-page .summary-inner>.woocommerce-product-rating{order:3;margin:0}
 .mam-product-page .summary-inner>form.cart{order:5;margin:2px 0 0;width:100%}
 .mam-product-page .summary-inner>.wd-wishlist-btn{order:6;margin:0}
 .mam-product-page .summary-inner>.product_meta{order:7;margin-top:3px;padding-top:18px}
 .mam-product-page .summary-inner>.wd-social-icons{order:8}
 .mam-product-page .variations{margin-bottom:18px}
}
@media(prefers-reduced-motion:reduce){.mam-color-chevron{transition:none}}
/* Once enhanced, the native select remains the data source, not a duplicate visible control. */
.mam-product-page .with-swatches>.mam-color-picker~select{display:none}

/* Identical compact purchase controls on desktop and mobile. */
 .mam-product-page .mam-product-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 .mam-product-page.mam-commerce #main-content .mam-product-actions .single_add_to_cart_button{flex:0 0 52px;width:52px;max-width:52px;min-width:52px;min-height:48px;padding:0!important;font-size:0!important;gap:0;background:#eff1e8!important;border:1px solid #dfe5d5;color:#435039;border-radius:13px}
 .mam-product-page #main-content .mam-product-actions .single_add_to_cart_button:hover{background:#e2e8d7!important}
 .mam-product-page #main-content .mam-product-actions .single_add_to_cart_button:before{width:32px;height:32px;flex-basis:32px}
 .mam-product-page .mam-product-actions .wd-wishlist-btn{margin:0;flex:0 0 48px}
 .mam-product-page .summary .wd-wishlist-btn>a{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;min-height:48px;border-radius:13px;background:#f7f8f2}
 .mam-product-page .summary .wd-wishlist-btn .wd-action-text{display:none}
 .mam-product-page .summary .wd-wishlist-btn .wd-action-icon{margin:0;width:30px;height:30px;flex:0 0 30px}
 .mam-product-page .summary .wd-wishlist-btn .wd-action-icon:before{width:30px;height:30px}
 .mam-product-page .summary .wd-wishlist-btn a.added{background:#e5eddc;border-color:#b8c9a3}
 .mam-product-page .mam-product-actions>.added_to_cart{flex-basis:100%;font-size:13px}

.mam-product-meta[hidden],.mam-product-meta [hidden]{display:none!important}
.mam-product-page .mam-product-meta{border:0;padding:0;margin-top:20px;color:#89907f}
.mam-product-page .summary .mam-product-meta .sku_wrapper{display:inline-flex;gap:7px;padding:7px 11px;background:#f7f8f3;border:1px solid #e7eadf;border-radius:9px;font-size:12px}
@media(min-width:769px){
 .mam-product-page .product-image-summary-inner{align-items:stretch}
 .mam-product-page .product-image-summary-inner>.product-images{padding:10px;background:#fff;border:1px solid #e5e7df;border-radius:22px}
 .mam-product-page .product-images>.woocommerce-product-gallery{padding:0;border:0;margin:0;background:transparent}
 .mam-product-page .product-image-summary-inner>.summary{display:flex;align-items:stretch}
 .mam-product-page .summary-inner{width:100%;margin:0}
}
/* Product details: compact native tabs and an aligned characteristics table. */
.mam-product-page .woocommerce-tabs .wd-nav-tabs-wrapper{margin:0 0 20px!important;text-align:left}
.mam-product-page .woocommerce-tabs .wd-nav-tabs{justify-content:flex-start;gap:8px}
.mam-product-page .woocommerce-tabs .wc-tab-inner{padding:0;margin:0}
.mam-product-page .woocommerce-tabs .woocommerce-Tabs-panel{padding:0;margin:0;min-height:0}
.mam-product-page .woocommerce-tabs .woocommerce-Tabs-panel p{max-width:850px;margin-bottom:12px}
.mam-product-page .woocommerce-tabs .woocommerce-Tabs-panel p:last-child{margin:0}
.mam-product-page .woocommerce-tabs .shop_attributes{width:100%;max-width:850px;border:0;border-collapse:collapse}
.mam-product-page .woocommerce-tabs .shop_attributes :is(th,td){padding:13px 16px;border:0;border-bottom:1px solid #e9ece3;font-size:14px;line-height:1.6;text-align:left;background:transparent}
.mam-product-page .woocommerce-tabs .shop_attributes th{width:35%;font-weight:400;color:#7b8570}
.mam-product-page .woocommerce-tabs .shop_attributes td{color:#3f4b35}
.mam-product-page .woocommerce-tabs .shop_attributes tr:nth-child(odd){background:#f7f9f2}
.mam-product-page .woocommerce-tabs .shop_attributes tr:last-child :is(th,td){border-bottom:0}
.mam-product-page .summary .wd-swatches-single[data-id=pa_size]{display:flex;gap:8px}
.mam-product-page .summary .wd-swatches-single[data-id=pa_size] .wd-swatch{min-width:44px;height:42px;padding:8px;border:1px solid #e0e6d7;background:#f7f9f3;border-radius:11px;color:#5d6c50;box-shadow:inset 0 1px 1px #fff,0 2px 3px #38472a08}
.mam-product-page .summary .wd-swatches-single[data-id=pa_size] .wd-swatch:after{display:none}
.mam-product-page .summary .wd-swatches-single[data-id=pa_size] .wd-active{background:#e9efdf;border-color:#a9bb95;outline:none;color:#34432a}
/* Grouped items remain independent products with their native quantity inputs. */
.mam-group-intro{margin:22px 0 12px}
.mam-group-intro h2{font-size:17px;margin:0 0 5px;font-weight:600}
.mam-group-intro p{font-size:13px;line-height:1.6;color:#7a856e;margin:0}
.mam-product-page .summary .price .mam-price-note{display:block;font-size:12px;font-weight:400;color:#7a856e;margin-top:5px}
.mam-product-page .summary .grouped_form{margin-top:12px}
.mam-product-page .group_table{width:100%;flex-basis:100%;margin:0 0 8px}
.mam-product-page .summary .group_table tr{display:grid;grid-template-columns:66px minmax(0,1fr) 104px;gap:7px 14px;align-items:center;border:1px solid #e5e9dd;border-radius:14px;padding:14px;margin:0 0 10px;background:#fbfcf8}
.mam-product-page .summary .group_table td{display:block;width:auto;min-width:0;padding:0;border:0;position:static;text-align:left}
.mam-product-page .summary .group_table .product-thumbnail{grid-column:1;grid-row:1/3}
.mam-product-page .summary .group_table .product-thumbnail img{width:66px;min-width:0;max-width:66px;height:82px;object-fit:cover;border-radius:9px}
.mam-product-page .summary .group_table .product-name{grid-column:2;grid-row:1}
.mam-product-page .summary .group_table .product-name label{margin:0;font-size:13px;line-height:1.5}
.mam-group-size{display:block;color:#879179;font-size:12px;margin-top:4px}
.mam-product-page .summary .group_table .product-price{grid-column:2;grid-row:2}
.mam-product-page .summary .group_table .product-price .price{font-size:16px;margin:0;font-weight:600}
.mam-product-page .summary .group_table .product-price .stock{font-size:11px;margin:2px 0 0;font-weight:400;color:#7a856e}
.mam-product-page .summary .group_table .product-quantity{grid-column:3;grid-row:1/3}
.mam-product-page .summary .group_table .product-quantity .quantity{max-width:104px}
@media(max-width:1100px){
 .mam-product-page .summary .group_table tr{grid-template-columns:54px minmax(0,1fr);gap:8px 12px;padding:12px}
 .mam-product-page .summary .group_table .product-thumbnail{grid-column:1;grid-row:1/4;align-self:start}
 .mam-product-page .summary .group_table .product-thumbnail img{width:54px;max-width:54px;height:70px}
 .mam-product-page .summary .group_table .product-quantity{grid-column:2;grid-row:3}
}
@media(max-width:768.98px){
 .mam-product-page .woocommerce-tabs{padding:18px}
 .mam-product-page .woocommerce-tabs .wd-accordion-title{border-color:#e6eadf;padding:14px 0;color:#58664b}
 .mam-product-page .woocommerce-tabs .wd-accordion-title.wd-active{color:#435237}
 .mam-product-page .woocommerce-tabs .shop_attributes :is(th,td){padding:11px;font-size:13px}
 .mam-product-page .mam-group-intro{margin:0}
 .mam-product-page .summary .grouped_form{margin-top:0}
}
.mam-product-page .summary .group_table{border:0}

/* Compact vertical rhythm; avoid stacking theme spacing with panel padding. */
.mam-product-page #main-content{padding-block:12px 24px}
.mam-product-page #main-content .single-product-page{--wd-single-spacing:24px}
.mam-product-page .product-tabs-wrapper{padding-block:0}
.mam-product-page .related-and-upsells{padding-top:0;padding-bottom:16px}
.mam-product-page .single-product-page.product-type-grouped .wd-gallery-images .woocommerce-product-gallery__image img{max-height:600px;object-fit:contain;width:100%}
.mam-product-page .single-product-page.product-type-grouped .wd-gallery-thumb img{max-height:120px;object-fit:contain;background:#f7f8f4}
@media(max-width:768.98px){
 .mam-product-page .main-page-wrapper{padding-top:4px}
 .mam-product-page #main-content{padding-block:12px 16px}
 .mam-product-page #main-content .single-product-page{--wd-single-spacing:16px}
}
