/**
 * Storefront Mobile & Tablet UX — Phase 19C
 * Presentation-only layer. Loaded after Phase 19B responsive foundation.
 * No pricing, credit, stock, checkout or seller business rules live here.
 */

/* ---------- Storefront-wide resilience ---------- */
body.woocommerce :where(.mp-product-card,.mp-catalog-results,.mp-product-page,.woocommerce-cart-form,.cart-collaterals,.mp-footer-section){min-width:0}
body.woocommerce :where(img,video,iframe){max-width:100%}
.mp-storefront-scroll{scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.mp-storefront-scroll::-webkit-scrollbar{display:none}

/* ---------- Homepage / CMS ---------- */
.mp-cms-home-shell .mmp-home__hero-item picture,
.mp-cms-home-shell .mmp-home__hero-item>img{display:block;width:100%}
.mp-cms-home-shell .mmp-home__hero-item picture img{display:block;width:100%;height:auto}
.mp-cms-home-shell .mmp-home__button,
.mp-hero .mp-btn,
.mp-cta .mp-btn{min-block-size:44px;align-items:center;justify-content:center}

/* ---------- Catalog shell ---------- */
.mp-catalog-layout.is-mmp-catalog{display:block!important}
.mp-catalog-layout.is-mmp-catalog>.mp-catalog-results{min-width:0}
.mp-catalog-layout.is-mmp-catalog>.mp-filter-toggle,
.mp-catalog-layout.is-mmp-catalog>.mp-filter-panel{display:none!important}

/* Hotfix B: MMP owns filter data, while Desktop restores a real vertical sidebar. */
@media (min-width:1100px){
  .mp-catalog-layout.is-mmp-catalog>.mp-catalog-results{display:grid!important;grid-template-columns:minmax(235px,260px) minmax(0,1fr);column-gap:18px;row-gap:12px;align-items:start;direction:rtl}
  .mp-catalog-layout.is-mmp-catalog .mmp-catalog-toolbar{display:contents}
  .mp-catalog-layout.is-mmp-catalog .mmp-catalog-toolbar__top,
  .mp-catalog-layout.is-mmp-catalog .mmp-active-filters{grid-column:2;min-width:0}
  .mp-catalog-layout.is-mmp-catalog .mmp-catalog-filters{grid-column:1;grid-row:1 / span 6;position:sticky;top:calc(var(--mp-admin-bar-offset,0px) + 96px);max-height:calc(100vh - 118px);max-height:calc(100dvh - 118px);margin:0!important;padding:16px!important;overflow:auto;overscroll-behavior:contain}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-head{display:flex!important;margin-bottom:14px}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-close{display:none!important}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-grid{grid-template-columns:1fr!important;gap:14px!important}
  .mp-catalog-layout.is-mmp-catalog .mmp-catalog-filters fieldset{padding-bottom:13px;border-bottom:1px solid #E7DED4}
  .mp-catalog-layout.is-mmp-catalog .mmp-catalog-filters fieldset:last-child{border-bottom:0}
  .mp-catalog-layout.is-mmp-catalog .mmp-price-filter{grid-template-columns:1fr!important;gap:7px}
  .mp-catalog-layout.is-mmp-catalog .mmp-check-list{max-height:190px}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-actions{display:grid!important;grid-template-columns:1fr;margin-top:14px}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-actions .button{width:100%}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-reset{text-align:center}
  .mp-catalog-layout.is-mmp-catalog>.mp-catalog-results>ul.products,
  .mp-catalog-layout.is-mmp-catalog>.mp-catalog-results>.woocommerce-pagination,
  .mp-catalog-layout.is-mmp-catalog>.mp-catalog-results>.mmp-catalog-empty{grid-column:2;min-width:0}
  .mp-catalog-layout.is-mmp-catalog .mmp-filter-toggle,
  .mp-catalog-layout.is-mmp-catalog .mmp-sort-toggle{display:none!important}
}
.mmp-active-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-block:9px 0}
.mmp-active-filter-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border:1px solid var(--mmp-border,#E7DED4);border-radius:999px;background:#FFFCF8;color:var(--mmp-text,#44403C);font-size:.72rem;font-weight:750}
.mmp-active-filter-clear{margin-inline-start:auto;color:var(--mmp-primary,#C2410C);font-size:.75rem;font-weight:800;text-decoration:none}
.mmp-filter-count-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-inline-start:6px;padding-inline:5px;border-radius:999px;background:var(--mmp-primary,#C2410C);color:#fff;font-size:.68rem;font-weight:900}
.mmp-sort-toggle,.mmp-sort-sheet,.mmp-sort-backdrop{display:none}

/* ---------- Product cards ---------- */
.mp-product-card{display:flex!important;flex-direction:column;min-height:100%}
.mp-product-card .woocommerce-LoopProduct-link{display:block;min-width:0;color:inherit;text-decoration:none}
.mp-product-card .mp-card-image{aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;background:#FFFCF8}
.mp-product-card .mp-card-image img{width:100%;height:100%;object-fit:contain}
.mp-card-credit-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:25px;margin-top:5px;padding:3px 8px;border-radius:999px;background:#FFEDD5;color:#C2410C;font-size:.68rem;font-weight:850;line-height:1.3}
.mp-card-meta :is(.is-in_stock,.is-jit,.is-seller){color:#087f5b;font-weight:800}.mp-card-meta .is-out_of_stock{color:#b42318;font-weight:800}

/* ---------- Product detail ---------- */
.mp-mobile-purchase-bar{display:none}
.mp-product-gallery .flex-control-thumbs{scrollbar-width:none}
.mp-product-gallery .flex-control-thumbs::-webkit-scrollbar{display:none}

/* ---------- Cart ---------- */
.woocommerce-cart .cart-collaterals{min-width:0}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button{min-height:48px;display:flex!important;align-items:center;justify-content:center}

/* ---------- Checkout ---------- */
body.woocommerce-checkout .mp-checkout-mobile-heading{display:none}
body.woocommerce-checkout .woocommerce-checkout-review-order-table{overflow-wrap:anywhere}
body.woocommerce-checkout .wc_payment_method>label{cursor:pointer}

/* ---------- Footer accordion markup, desktop stays visually unchanged ---------- */
.mp-footer-section{min-width:0}
.mp-footer-section-toggle{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:inherit;font:inherit;cursor:default}
.mp-footer-section-title{display:block;margin:0 0 .65rem;font-size:1rem;font-weight:900}
.mp-footer-section-toggle-icon{display:none}
.mp-footer-section-content[hidden]{display:block}

/* ==========================================================================
 * TABLET — 768–1023
 * ======================================================================= */
@media(min-width:768px) and (max-width:1023px){
  /* CMS hero uses desktop image on tablet, but density is tablet-native. */
  .mp-cms-home-shell .mmp-home__hero-item{border-radius:16px}
  .mp-cms-home-shell .mmp-home__hero-copy{max-width:min(52%,520px);padding:16px}
  .mmp-home__category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  .mmp-home__feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mmp-home__promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mp-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}

  /* Product grid: tablet portrait is intentionally 3-column. */
  .mp-catalog-results ul.products,
  .mp-wishlist-page ul.products,
  .mp-related-products ul.products,
  .mmp-home__products ul.products,
  .mp-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}

  .mp-catalog-page{padding-block:18px 32px}
  .mp-catalog-head{display:flex;align-items:end;justify-content:space-between;gap:14px}
  .mp-catalog-head p{max-width:680px}

  /* PDP tablet: gallery + purchase context first; specs continue below. */
  .mp-product-main{grid-template-columns:minmax(280px,.95fr) minmax(320px,1.05fr)!important;align-items:start}
  .mp-product-gallery{grid-column:1;grid-row:1}
  .mp-buy-card{grid-column:2;grid-row:1;position:static!important}
  .mp-product-info{grid-column:1/-1;grid-row:2;padding-top:0!important}
  .mp-product-gallery .flex-control-thumbs{display:flex!important;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}
  .mp-product-gallery .flex-control-thumbs li{flex:0 0 72px;scroll-snap-align:start}

  /* Seller rows become readable cards before they reach mobile. */
  .mp-seller-row{grid-template-columns:28px minmax(0,1fr) auto!important;grid-template-areas:'check vendor price' 'check meta meta' 'action action action';gap:8px 12px!important;padding:13px 14px!important}
  .mp-seller-row-check{grid-area:check}.mp-seller-row-vendor{grid-area:vendor}.mp-seller-row-meta{grid-area:meta}.mp-seller-row-price{grid-area:price}.mp-seller-row-action{grid-area:action;min-height:44px!important}

  /* Cart keeps table semantics on tablet but avoids narrow fixed columns. */
  .woocommerce-cart table.shop_table{table-layout:auto;width:100%}
  .woocommerce-cart table.shop_table th,.woocommerce-cart table.shop_table td{padding:10px 8px!important}

  /* Checkout tablet is single column with clear cards. */
  body.woocommerce-checkout form.checkout.woocommerce-checkout{grid-template-columns:1fr!important;gap:14px!important}
  body.woocommerce-checkout form.checkout.woocommerce-checkout>.mp-checkout-summary{position:static!important}
}

/* ==========================================================================
 * MOBILE — 0–767
 * ======================================================================= */
@media(max-width:767px){
  :root{--mp-storefront-card-gap:10px}

  /* --- Homepage Hero: mobile artwork + readable copy, never desktop shrink --- */
  .mp-cms-home-shell{padding-block:10px 20px!important}
  .mp-cms-home-shell .mmp-home{gap:22px!important}
  .mp-cms-home-shell .mmp-home__hero-track.mp-cms-hero-slider{border-radius:14px!important}
  .mp-cms-home-shell .mmp-home__hero-item{min-height:0;border-radius:14px;background:#292524}
  .mp-cms-home-shell .mmp-home__hero-item picture,
  .mp-cms-home-shell .mmp-home__hero-item>img{width:100%;height:clamp(190px,56vw,280px);overflow:hidden}
  .mp-cms-home-shell .mmp-home__hero-item picture img,
  .mp-cms-home-shell .mmp-home__hero-item>img{width:100%;height:100%!important;object-fit:cover;object-position:center}
  .mp-cms-home-shell .mmp-home__hero-copy{position:absolute!important;z-index:3;inset-inline:10px!important;inset-block:auto 10px!important;max-width:none!important;padding:12px 13px!important;border:1px solid rgba(255,255,255,.18);border-radius:12px!important;background:linear-gradient(135deg,rgba(41,37,36,.9),rgba(16,47,107,.78))!important;color:#fff!important;box-shadow:0 10px 28px rgba(0,0,0,.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .mp-cms-home-shell .mmp-home__hero-copy h2{margin:0 0 4px;color:#fff;font-size:clamp(1rem,4.5vw,1.28rem);line-height:1.55}
  .mp-cms-home-shell .mmp-home__hero-copy p{margin:0 0 9px;color:#FFEDD5;font-size:.78rem;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .mp-cms-home-shell .mmp-home__hero-copy .mmp-home__button{min-height:44px;padding:8px 14px;background:#fff;color:#C2410C;font-size:.78rem;font-weight:900}
  .mp-cms-home-shell .mp-cms-hero-slider .mp-slider-controls{display:none!important}
  .mp-cms-home-shell .mp-cms-hero-slider .mp-slider-dots{bottom:5px!important;transform:scale(.85)}

  /* Legacy homepage remains a purposeful mobile composition. */
  .mp-hero{padding-block:14px!important}
  .mp-hero-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mp-hero-main{padding:18px!important;border-radius:16px!important}
  .mp-hero-main h1{font-size:1.35rem!important;line-height:1.55!important}
  .mp-hero-main p{font-size:.82rem;line-height:1.8}
  .mp-hero .mp-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mp-hero-side{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .mp-promo{min-width:0;padding:12px!important;border-radius:12px!important;font-size:.78rem}
  .mp-promo p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  /* --- Categories: compact, touch-first, horizontal snap --- */
  .mmp-home__categories .mmp-home__category-grid,
  .mp-categories{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(94px,28vw);grid-template-columns:none!important;gap:9px!important;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 1px 7px;margin-inline:0;scrollbar-width:none}
  .mmp-home__categories .mmp-home__category-grid::-webkit-scrollbar,.mp-categories::-webkit-scrollbar{display:none}
  .mmp-home__category,.mp-category{scroll-snap-align:start;min-width:0;padding:9px!important;border-radius:12px!important}
  .mmp-home__category img{aspect-ratio:1/1;object-fit:contain}
  .mmp-home__category span,.mp-category strong{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em;margin-top:6px!important;font-size:.72rem!important;line-height:1.35!important;text-align:center}
  .mp-category-icon{font-size:1.25rem!important}

  /* Promo/campaign/benefits: compact but not cramped. */
  .mmp-home__promo-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mmp-home__promo{padding:10px!important}
  .mmp-home__promo img{max-height:220px;object-fit:cover}
  .mmp-home__feature-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .mmp-home__feature{padding:12px 9px!important}
  .mmp-home__feature p{font-size:.72rem;line-height:1.65}
  .mp-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .mp-benefit{padding:12px!important}
  .mp-cta{display:grid!important;gap:12px!important;padding:16px!important}
  .mp-cta .mp-btn{width:100%}

  /* Homepage products act like a touch slider; catalog remains a grid. */
  body.home .mp-products ul.products,
  .mp-cms-home-shell .mmp-home__products ul.products{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(158px,46%);gap:10px!important;overflow-x:auto;padding:2px 1px 10px!important;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.home .mp-products ul.products::-webkit-scrollbar,.mp-cms-home-shell .mmp-home__products ul.products::-webkit-scrollbar{display:none}
  body.home .mp-products ul.products>li,.mp-cms-home-shell .mmp-home__products ul.products>li{scroll-snap-align:start}

  /* --- Shop/category hero and listing header --- */
  .mp-shop-categories{display:flex!important;gap:7px!important;min-height:44px!important;padding-block:6px!important;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .mp-shop-categories::-webkit-scrollbar{display:none}
  .mp-shop-categories a{flex:0 0 auto;display:flex;align-items:center;min-height:38px;padding:6px 10px!important;border:1px solid #e1e6ef;border-radius:999px;background:#fff;font-size:.72rem}
  .mp-shop-hero,.mp-shop-slide{min-height:170px!important}
  .mp-shop-hero .mp-slide-inner{grid-template-columns:1fr!important;padding:18px 24px!important;min-height:170px!important}
  .mp-shop-hero-art{display:none!important}
  .mp-shop-hero h1{font-size:1.25rem!important;line-height:1.55;margin-block:5px!important}
  .mp-shop-hero p{max-width:90%;font-size:.78rem;line-height:1.7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .mp-shop-hero a{min-height:44px;display:inline-flex;align-items:center}
  .mp-shop-hero .mp-slider-prev,.mp-shop-hero .mp-slider-next{width:44px!important;height:44px!important}

  .mp-catalog-page{width:calc(100% - 20px)!important;padding-block:12px 24px!important}
  .mp-catalog-head{display:flex!important;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:10px!important}
  .mp-catalog-head>div{min-width:0}
  .mp-catalog-head>div>span,.mp-catalog-head p{display:none!important}
  .mp-catalog-head h1{margin:0!important;font-size:1.08rem!important;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mp-result-count{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#f2f5f9;color:#78716C;font-size:.7rem;font-weight:750}

  /* MMP toolbar: result count + two equal primary tools. */
  .mmp-catalog-toolbar{margin-bottom:10px!important}
  .mmp-catalog-toolbar__top{position:sticky;z-index:20;top:calc(var(--mp-admin-bar-offset,0px) + var(--mp-mobile-header-height,108px));display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-inline:-1px;padding:8px!important;border-radius:12px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  .mmp-catalog-count{grid-column:1/-1;min-height:20px}
  .mmp-catalog-count .woocommerce-result-count{font-size:.72rem!important}
  .mmp-filter-toggle,.mmp-sort-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:7px 10px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;color:#292524;font:inherit;font-size:.78rem;font-weight:850}
  .mmp-sort-toggle{gap:5px;overflow:hidden}
  .mmp-sort-toggle span{max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78716C;font-size:.68rem;font-weight:650}
  .mmp-sort-label{display:none!important}
  .mmp-active-filters{margin:7px 0 0;gap:6px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none}
  .mmp-active-filters::-webkit-scrollbar{display:none}
  .mmp-active-filter-chip{flex:0 0 auto}
  .mmp-active-filter-clear{flex:0 0 auto;margin-inline-start:0;min-height:30px;display:flex;align-items:center;padding-inline:5px}

  /* Filter drawer uses all available mobile height. */
  .mmp-catalog-filters{inset:0!important;width:100%!important;max-width:none!important;padding:max(12px,var(--mmp-safe-top,0px)) 14px max(12px,var(--mmp-safe-bottom,0px))!important;border-radius:0!important}
  .mmp-filter-head{position:sticky;top:-12px;z-index:2;margin:-12px -14px 10px;padding:max(12px,var(--mmp-safe-top,0px)) 14px 10px;background:#fff;border-bottom:1px solid #E7DED4}
  .mmp-filter-grid{gap:0!important}
  .mmp-catalog-filters fieldset{padding:12px 0;border-bottom:1px solid #E7DED4}
  .mmp-catalog-filters legend{font-size:.82rem!important;margin-bottom:9px!important}
  .mmp-catalog-filters select,.mmp-catalog-filters input:not([type=checkbox]){min-height:46px!important;font-size:16px!important}
  .mmp-check-list{max-height:none!important;gap:3px!important}
  .mmp-check-list label{min-height:44px;padding:5px 2px;font-size:.8rem!important}
  .mmp-check-list input[type=checkbox]{inline-size:20px;block-size:20px;flex:0 0 20px}
  .mmp-filter-actions{position:sticky!important;bottom:-12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;margin:10px -14px -12px!important;padding:10px 14px max(10px,var(--mmp-safe-bottom,0px))!important;background:#fff!important;box-shadow:0 -10px 24px rgba(41,37,36,.1)!important}
  .mmp-filter-actions .button{min-height:48px!important;background:#C2410C!important;color:#fff!important;border-color:#C2410C!important}
  .mmp-filter-actions .mmp-filter-reset{display:flex;align-items:center;justify-content:center;min-height:48px;padding-inline:10px}

  /* Sort bottom sheet. */
  html.mmp-sort-open,html.mmp-sort-open body{overflow:hidden;overscroll-behavior:none}
  .mmp-sort-backdrop{position:fixed;z-index:calc(var(--mp-layer-modal,1200) - 1);inset:0;background:rgba(41,37,36,.42)}
  .mmp-sort-backdrop.is-open{display:block!important}
  .mmp-sort-sheet{position:fixed;z-index:var(--mp-layer-modal,1200);inset-inline:0;bottom:0;display:block;max-height:min(72dvh,620px);padding:8px 14px max(14px,var(--mp-safe-bottom,0px));border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -18px 50px rgba(41,37,36,.2);transform:translateY(110%);transition:transform .2s ease;overflow:auto;overscroll-behavior:contain}
  .mmp-sort-sheet[hidden]{display:block!important;visibility:hidden;pointer-events:none}
  .mmp-sort-sheet.is-open{transform:translateY(0);visibility:visible;pointer-events:auto}
  .mmp-sort-sheet__head{position:sticky;top:-8px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;background:#fff;border-bottom:1px solid #E7DED4}
  .mmp-sort-sheet__head strong{font-size:.98rem}.mmp-sort-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:#f2f5f9;font-size:1.4rem}
  .mmp-sort-options{display:grid;padding-top:5px}
  .mmp-sort-option{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:8px 3px;border:0;border-bottom:1px solid #E7DED4;background:#fff;color:#44403C;text-align:right;font:inherit;font-size:.82rem;font-weight:750}
  .mmp-sort-option[aria-pressed=true]{color:#C2410C;font-weight:900}.mmp-sort-option[aria-pressed=true]::after{content:'✓';display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eaf0f9;color:#C2410C}

  /* --- Product grid: 2 columns on normal phones, 1 only when truly narrow. --- */
  .mp-catalog-results ul.products,
  .mp-wishlist-page ul.products,
  .mp-related-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .mp-product-card{padding:8px!important;border-radius:12px!important}
  .mp-product-card .woocommerce-loop-product__title,.mp-card-title{height:3.25em!important;min-height:3.25em!important;max-height:3.25em!important;margin:7px 0 4px!important;font-size:.74rem!important;line-height:1.62!important;-webkit-line-clamp:2!important}
  .mp-card-prices{min-height:40px!important;margin-block:2px 5px!important}
  .mp-card-prices strong{font-size:.82rem!important;line-height:1.45}
  .mp-card-prices del{font-size:.66rem!important}
  .mp-card-meta{margin:3px 0!important;font-size:.65rem!important;gap:4px!important}
  .mp-card-meta span:first-child{display:none}
  .mp-card-credit{display:none!important}
  .mp-card-credit-badge{font-size:.64rem;margin-top:3px;padding:3px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mmp-product-card-meta{gap:4px!important;margin:5px 0 7px!important}
  .mmp-card-seller{display:none!important}
  .mmp-badge--discount{display:none!important}
  .mmp-badge{font-size:.63rem!important;min-height:23px!important;padding:2px 6px!important}
  .mmp-card-availability{font-size:.68rem!important}
  .mp-product-card .mp-card-actions{grid-template-columns:44px minmax(0,1fr)!important;gap:6px!important;margin-top:7px!important}
  .mp-product-card .mp-card-actions .mp-wishlist{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  .mp-product-card .mp-card-actions .button{height:44px!important;min-height:44px!important;padding:6px!important;font-size:.68rem!important;overflow:hidden;text-overflow:ellipsis}
  .mp-discount-badge{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;font-size:.68rem!important}

  /* --- PDP: deliberate mobile hierarchy, not random stacking. --- */
  .mp-product-page{width:calc(100% - 16px)!important;padding-top:8px!important}
  .mp-product-page .woocommerce-breadcrumb{display:none}
  .mp-single-product{padding:10px!important;border-radius:14px!important;box-shadow:none!important}
  .mp-product-heading{display:grid!important;gap:9px!important;padding-bottom:10px!important}
  .mp-product-heading h1{font-size:1.08rem!important;line-height:1.75!important;margin:0!important}
  .mp-heading-meta{gap:9px!important;font-size:.68rem!important}
  .mp-product-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;width:100%}
  .mp-product-tools button{min-height:44px!important;padding:6px!important;font-size:.68rem!important;white-space:normal!important;line-height:1.35}
  .mp-product-main{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding-block:12px!important}
  .mp-product-gallery{order:1;padding:0!important}
  .mp-buy-card{order:2;position:static!important;padding:12px!important;border-radius:12px!important}
  .mp-product-info{order:3;padding:2px 0 0!important}
  .mp-product-short{margin-bottom:12px!important;font-size:.78rem;line-height:1.9}
  .mp-product-info h2{font-size:.92rem!important;margin-bottom:9px!important}
  .mp-key-features{gap:6px!important}.mp-key-features li{grid-template-columns:40% minmax(0,1fr)!important;padding:8px 9px!important;font-size:.72rem!important}
  .mp-installment-banner{min-height:48px;margin-top:10px!important;padding:10px 11px!important}

  /* Gallery: horizontal thumbnails + stable aspect ratio. */
  .mp-product-gallery .woocommerce-product-gallery__wrapper{margin:0!important}
  .mp-product-gallery .woocommerce-product-gallery__image img{width:100%!important;aspect-ratio:1/1!important;object-fit:contain!important;border-radius:12px!important}
  .mp-product-gallery .flex-control-thumbs{display:flex!important;grid-template-columns:none!important;gap:7px!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding:7px 1px 3px!important;margin-top:5px!important}
  .mp-product-gallery .flex-control-thumbs li{flex:0 0 62px!important;width:62px!important;scroll-snap-align:start;border-radius:8px!important}
  .mp-product-gallery .woocommerce-product-gallery__trigger{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;top:8px!important;left:8px!important}

  /* Purchase card prioritises seller, availability, price and primary action. */
  .mp-buy-card-title{font-size:.9rem!important;margin-bottom:9px!important}
  .mp-selected-seller{grid-template-columns:34px minmax(0,1fr)!important;gap:8px!important;margin-bottom:8px!important;padding:9px!important}
  .mp-selected-seller-icon{width:34px!important;height:34px!important}
  .mp-selected-seller-body>strong{font-size:.82rem!important}
  .mp-selected-seller-meta{font-size:.63rem!important;gap:3px 7px!important}
  .mp-buy-benefits{display:none!important}
  .mp-stock{font-size:.72rem!important;margin-top:6px}
  .mp-price-box{margin:8px 0!important;padding:10px!important}
  .mp-final-price strong{font-size:1.08rem!important}
  .mp-product-cart form.cart{gap:7px!important}
  .mp-product-cart .quantity{width:72px!important}.mp-product-cart .qty{min-height:48px!important;font-size:16px!important}
  .mp-product-cart .single_add_to_cart_button{min-height:48px!important}

  /* Mobile sticky purchase delegates to the canonical Woo add-to-cart form. */
  body.single-product{padding-bottom:calc(var(--mp-bottom-nav-total) + 78px)!important}
  .mp-mobile-purchase-bar[hidden]{display:none!important}
  .mp-mobile-purchase-bar{position:fixed;z-index:var(--mp-layer-sticky,850);inset-inline:0;bottom:var(--mp-bottom-nav-total);display:grid;grid-template-columns:minmax(0,.82fr) minmax(140px,1.18fr);align-items:center;gap:9px;min-height:68px;padding:8px max(12px,var(--mp-safe-right)) 8px max(12px,var(--mp-safe-left));border-top:1px solid #E7DED4;background:rgba(255,255,255,.985);box-shadow:0 -10px 26px rgba(41,37,36,.1);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .mp-mobile-purchase-price{display:grid;min-width:0;line-height:1.35}.mp-mobile-purchase-price small{color:#78716C;font-size:.62rem}.mp-mobile-purchase-price strong{min-width:0;color:#292524;font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-mobile-purchase-price .woocommerce-Price-currencySymbol{font-size:.65rem}
  .mp-mobile-purchase-action{min-height:48px;border:0;border-radius:11px;background:#C2410C;color:#fff;font:inherit;font-size:.8rem;font-weight:900;cursor:pointer}
  .mp-mobile-purchase-action:disabled{opacity:.5;cursor:not-allowed}

  /* Seller offers are readable cards at every mobile width. */
  .mp-sellers-panel{margin-top:2px!important;border-radius:12px!important}
  .mp-sellers-panel-head{padding:11px!important}.mp-sellers-panel-head p{display:none!important}
  .mp-seller-group>h3{padding:9px 11px 5px!important}
  .mp-seller-row{grid-template-columns:24px minmax(0,1fr) auto!important;grid-template-areas:'check vendor price' 'check meta meta' 'action action action'!important;gap:7px 9px!important;padding:11px!important}
  .mp-seller-row-check{grid-area:check}.mp-seller-row-vendor{grid-area:vendor}.mp-seller-row-meta{grid-area:meta;font-size:.66rem!important}.mp-seller-row-price{grid-area:price}.mp-seller-row-action{grid-area:action;min-height:44px!important}
  .mp-seller-row-price strong{font-size:.8rem!important}.mp-seller-row-price del{font-size:.62rem!important}
  .mp-service-strip{grid-template-columns:1fr 1fr!important;gap:7px!important;padding-block:12px!important;font-size:.68rem!important}
  .mp-product-details .wc-tabs{gap:14px!important;overflow-x:auto;scrollbar-width:none}.mp-product-details .wc-tabs::-webkit-scrollbar{display:none}.mp-product-details .wc-tabs a{min-height:44px;display:flex!important;align-items:center;padding:9px 2px!important}

  /* --- Cart: card layout replaces desktop table presentation. --- */
  body.woocommerce-cart .mp-content-card{padding:9px!important}
  .woocommerce-cart .woocommerce-cart-form{overflow:visible!important}
  .woocommerce-cart table.shop_table{display:block!important;width:100%!important;border:0!important;background:transparent!important}
  .woocommerce-cart table.shop_table thead{display:none!important}
  .woocommerce-cart table.shop_table tbody{display:grid!important;gap:10px!important}
  .woocommerce-cart table.shop_table tr.cart_item{display:grid!important;grid-template-columns:78px minmax(0,1fr) auto;grid-template-areas:'thumb name remove' 'thumb price price' 'thumb quantity subtotal';gap:5px 9px;padding:10px;border:1px solid #e1e6ef;border-radius:13px;background:#fff}
  .woocommerce-cart table.shop_table tr.cart_item td{display:block!important;width:auto!important;padding:0!important;border:0!important;text-align:right!important}
  .woocommerce-cart table.shop_table tr.cart_item td::before{display:none!important}
  .woocommerce-cart td.product-thumbnail{grid-area:thumb}.woocommerce-cart td.product-thumbnail a{display:block}.woocommerce-cart td.product-thumbnail img{width:78px!important;height:78px!important;object-fit:contain;border-radius:9px;background:#FFFCF8}
  .woocommerce-cart td.product-name{grid-area:name;min-width:0;padding-inline-end:3px!important}.woocommerce-cart td.product-name a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.78rem;font-weight:850;line-height:1.65;color:#292524}
  .woocommerce-cart td.product-name dl.variation{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 6px;margin:5px 0 0;font-size:.66rem;color:#78716C}.woocommerce-cart td.product-name dl.variation dt,.woocommerce-cart td.product-name dl.variation dd{float:none!important;clear:none!important;margin:0!important;padding:0!important}.woocommerce-cart td.product-name dl.variation p{margin:0}
  .woocommerce-cart td.product-remove{grid-area:remove}.woocommerce-cart td.product-remove a{display:grid!important;place-items:center;width:44px!important;height:44px!important;border-radius:10px!important;background:#fff4f5!important;color:#b42318!important;font-size:1.2rem!important}
  .woocommerce-cart td.product-price{grid-area:price;color:#78716C;font-size:.7rem}.woocommerce-cart td.product-price::before{content:'قیمت واحد: ';display:inline!important;color:#A8A29E}
  .woocommerce-cart td.product-quantity{grid-area:quantity;align-self:end}.woocommerce-cart td.product-quantity .quantity{display:flex;align-items:center;gap:2px}.woocommerce-cart td.product-quantity .qty{width:72px!important;min-height:44px!important;font-size:16px!important}.woocommerce-cart td.product-quantity .quantity :is(.plus,.minus,button){min-width:44px!important;min-height:44px!important}
  .woocommerce-cart td.product-subtotal{grid-area:subtotal;align-self:center;justify-self:end;font-size:.82rem;font-weight:900;color:#292524}.woocommerce-cart td.product-subtotal::before{content:'جمع: ';display:inline!important;color:#78716C;font-size:.68rem;font-weight:600}
  .woocommerce-cart table.shop_table tr:not(.cart_item){display:block!important;padding:9px 0;border:0!important}
  .woocommerce-cart table.shop_table td.actions{display:grid!important;grid-template-columns:1fr;gap:8px!important;padding:0!important}
  .woocommerce-cart table.shop_table td.actions .coupon{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px;width:100%!important}
  .woocommerce-cart table.shop_table td.actions .coupon .input-text{width:100%!important;min-height:44px!important;font-size:16px!important}
  .woocommerce-cart table.shop_table td.actions>.button{width:100%!important;min-height:44px!important}
  .woocommerce-cart .cart-collaterals{display:block!important;margin-top:12px}.woocommerce-cart .cart_totals{width:100%!important;float:none!important;padding:12px;border:1px solid #e1e6ef;border-radius:13px;background:#fff}.woocommerce-cart .cart_totals h2{font-size:.95rem}.woocommerce-cart .cart_totals table{display:table!important}.woocommerce-cart .cart_totals table tbody{display:table-row-group!important}.woocommerce-cart .cart_totals table tr{display:table-row!important}.woocommerce-cart .cart_totals table th,.woocommerce-cart .cart_totals table td{display:table-cell!important;padding:9px 5px!important}

  /* --- Checkout: low-friction card stack, readable payments, keyboard-safe. --- */
  body.woocommerce-checkout .mp-container.mp-content{width:calc(100% - 12px)!important;padding-block:7px 18px!important}
  body.woocommerce-checkout .mp-content-card{padding:7px!important;background:#FFF7ED!important}
  body.woocommerce-checkout .mp-content-card>h1{padding-inline:5px;font-size:1.08rem!important}
  body.woocommerce-checkout form.checkout.woocommerce-checkout{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.woocommerce-checkout #customer_details,body.woocommerce-checkout .mp-checkout-summary{padding:10px!important;border-radius:13px!important;background:#fff!important;box-shadow:none!important}
  body.woocommerce-checkout #customer_details .col-2{margin-top:12px!important;padding-top:12px;border-top:1px solid #E7DED4}
  body.woocommerce-checkout .mp-checkout-mobile-heading{display:flex;align-items:center;gap:7px;margin:0 0 9px;padding:0 0 8px;border-bottom:1px solid #E7DED4;color:#292524;font-size:.88rem;font-weight:900}
  body.woocommerce-checkout .mp-checkout-mobile-heading span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#FFFCF8;color:#C2410C;font-size:.68rem}
  body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,body.woocommerce-checkout #customer_details .woocommerce-shipping-fields__field-wrapper,body.woocommerce-checkout #customer_details .woocommerce-additional-fields__field-wrapper{grid-template-columns:1fr!important;gap:9px!important}
  body.woocommerce-checkout #customer_details .form-row{grid-column:1!important;grid-row:auto!important}
  body.woocommerce-checkout #customer_details input.input-text,body.woocommerce-checkout #customer_details select,body.woocommerce-checkout #customer_details .select2-selection--single{min-height:48px!important;height:48px!important;font-size:16px!important}
  body.woocommerce-checkout #customer_details textarea{min-height:92px!important;font-size:16px!important}
  body.woocommerce-checkout .mp-checkout-summary>#order_review_heading{font-size:.9rem!important;padding-bottom:9px!important}
  body.woocommerce-checkout .mp-checkout-summary table.shop_table{font-size:.72rem!important}
  body.woocommerce-checkout .mp-checkout-summary #payment{padding:8px!important;border-radius:11px!important}
  body.woocommerce-checkout .mp-checkout-summary #payment .wc_payment_method{padding:8px 2px;border-bottom:1px solid #E7DED4}
  body.woocommerce-checkout .mp-checkout-summary #payment .wc_payment_method:last-child{border-bottom:0}
  body.woocommerce-checkout .mp-checkout-summary #payment .wc_payment_method>label{display:flex!important;align-items:center;min-height:44px;font-size:.78rem!important;font-weight:850}
  body.woocommerce-checkout .mp-checkout-summary #payment input[type=radio]{width:20px;height:20px;margin-inline-end:7px}
  body.woocommerce-checkout .mp-checkout-summary #payment .payment_box{font-size:.72rem!important;line-height:1.85!important}
  body.woocommerce-checkout .mp-checkout-summary #place_order{min-height:50px!important;font-size:.86rem!important;border-radius:11px!important}

  /* --- Footer: essential information as touch accordion --- */
  .mp-footer{padding-bottom:0}
  .mp-footer-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding-block:18px 10px!important}
  .mp-footer-section{border-bottom:1px solid rgba(255,255,255,.12)}
  .mp-footer-section:first-child{border-top:1px solid rgba(255,255,255,.12)}
  .mp-footer-section-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:7px 2px;color:#fff;cursor:pointer}
  .mp-footer-section-title{margin:0!important;font-size:.85rem!important;font-weight:900}
  .mp-footer-section-toggle-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.08);font-size:1rem;transition:transform .18s ease}
  .mp-footer-section-toggle[aria-expanded=true] .mp-footer-section-toggle-icon{transform:rotate(45deg)}
  .mp-footer-section-content{padding:0 2px 14px;color:#D6D3D1;font-size:.76rem;line-height:1.9}
  .mp-footer-section-content[hidden]{display:none!important}
  .mp-footer-section-content .menu,.mp-footer-section-content .mmp-footer-menu{display:grid!important;grid-template-columns:1fr 1fr;gap:4px 12px!important;margin:0!important;padding:0!important;list-style:none}
  .mp-footer-section-content a{display:flex;align-items:center;min-height:40px}
  .mp-footer-contact ul{gap:3px!important}.mp-footer-socials{gap:5px 14px!important;margin-top:7px!important}
  .mp-footer-bottom{padding-bottom:calc(var(--mp-bottom-nav-total) + 4px)}

  /* Keyboard opened: remove fixed UI from the visual viewport. */
  html.mp-keyboard-open .mp-bottom-nav,html.mp-keyboard-open .mp-mobile-purchase-bar{transform:translateY(120%);pointer-events:none}
  .mp-bottom-nav,.mp-mobile-purchase-bar{transition:transform .16s ease}
}

/* Very narrow devices only: preserve card readability over arbitrary 2-column rule. */
@media(max-width:349px){
  .mp-catalog-results ul.products,.mp-wishlist-page ul.products,.mp-related-products ul.products{grid-template-columns:1fr!important}
  body.home .mp-products ul.products,.mp-cms-home-shell .mmp-home__products ul.products{grid-auto-columns:82%!important}
}

/* Small desktop / landscape tablet gets four catalog columns, not five compressed cards. */
@media(min-width:1024px) and (max-width:1279px){
  .mp-catalog-results ul.products,.mp-wishlist-page ul.products,.mp-related-products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media(prefers-reduced-motion:reduce){
  .mmp-sort-sheet,.mp-bottom-nav,.mp-mobile-purchase-bar{transition:none!important}
}

/* Tablet catalog keeps filtering in a drawer rather than consuming the listing above the grid. */
@media (min-width:768px) and (max-width:1099px){
  body.mmp-customer-ui .mmp-catalog-toolbar__top{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:10px}
  body.mmp-customer-ui .mmp-filter-toggle{display:inline-flex!important;min-width:112px;min-height:44px}
  body.mmp-customer-ui .mmp-sort-toggle{display:none!important}
  body.mmp-customer-ui .mmp-sort-label{display:flex;align-items:center;gap:8px}
  body.mmp-customer-ui .mmp-sort-control{display:block!important;min-height:44px}
  body.mmp-customer-ui .mmp-catalog-count{grid-column:auto;white-space:nowrap}
  body.mmp-customer-ui .mmp-catalog-filters{position:fixed!important;z-index:var(--mmp-layer-drawer,1110)!important;top:0!important;bottom:0!important;inset-inline-start:0!important;width:min(86vw,440px)!important;max-height:100dvh!important;margin:0!important;padding:max(18px,var(--mmp-safe-top,0px)) 18px max(18px,var(--mmp-safe-bottom,0px))!important;overflow:auto!important;overscroll-behavior:contain;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:var(--mmp-shadow-md,0 16px 42px rgba(41,37,36,.16))!important;transform:translateX(110%)!important;transition:transform .22s ease!important}
  html[dir="ltr"] body.mmp-customer-ui .mmp-catalog-filters{transform:translateX(-110%)!important}
  body.mmp-customer-ui .mmp-catalog-filters.is-open{transform:translateX(0)!important}
  body.mmp-customer-ui .mmp-filter-head{display:flex!important}
  body.mmp-customer-ui .mmp-filter-close{display:grid!important;place-items:center;min-width:44px;min-height:44px}
  body.mmp-customer-ui .mmp-filter-grid{grid-template-columns:1fr!important}
  body.mmp-customer-ui .mmp-filter-backdrop{position:fixed;z-index:calc(var(--mmp-layer-drawer,1110) - 1);inset:0;background:rgba(41,37,36,.34)}
  body.mmp-customer-ui .mmp-filter-backdrop.is-open,body.mmp-customer-ui .mmp-filter-backdrop[hidden].is-open{display:block!important}
}

/* ========================================================================
 * Phase 19F — Final responsive hardening
 * Bug fixes only: tablet/mobile-landscape touch targets and Safari zoom guard.
 * ====================================================================== */
@media (max-width: 1023px) {
    body.mmp-customer-ui .mmp-filter-toggle,
    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-card .mp-wishlist,
    .mp-product-tools button,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text,
    .woocommerce-cart .actions button,
    .woocommerce-cart .actions .button {
        min-height: 44px;
    }

    .mp-product-card .mp-wishlist {
        min-width: 44px;
        width: 44px;
    }

    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text,
    body.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
    body.woocommerce-checkout select,
    body.woocommerce-checkout textarea,
    body.woocommerce-checkout .select2-selection--single {
        font-size: 16px !important;
    }

    body.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
    body.woocommerce-checkout select,
    body.woocommerce-checkout textarea,
    body.woocommerce-checkout .select2-selection--single {
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .mp-shop-categories a,
    .mmp-active-filter-clear,
    .mp-mobile-footer a,
    .mp-mobile-footer button {
        min-height: 44px;
    }
}

/* Phase 19F acceptance edge: 1024px is also exercised as tablet landscape. */
@media (max-width: 1024px) {
    .mp-product-card .mp-card-actions .mp-wishlist,
    .mp-card-actions .mp-wishlist {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    body.mmp-customer-ui .mmp-filter-toggle,
    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-tools button,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text,
    .woocommerce-cart .actions button,
    .woocommerce-cart .actions .button {
        min-height: 44px !important;
    }

    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text,
    body.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
    body.woocommerce-checkout select,
    body.woocommerce-checkout textarea,
    body.woocommerce-checkout .select2-selection--single {
        font-size: 16px !important;
    }
}

/* Touch devices in tablet landscape can reach the small-desktop width range. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .mp-product-card .mp-card-actions .mp-wishlist,
    .mp-card-actions .mp-wishlist {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-tools button,
    .mp-seller-row-action,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text {
        min-height: 44px !important;
    }
    body.mmp-customer-ui .mmp-sort-control,
    .mp-product-cart .qty,
    .woocommerce-cart .quantity .qty,
    .woocommerce-cart .coupon .input-text {
        font-size: 16px !important;
    }
}

/* Phase 19F checkout acceptance: legacy checkout.css uses highly-specific
 * !important rules, so tablet Safari/Chrome needs an equally-specific guard. */
@media (min-width: 641px) and (max-width: 1024px) {
    body.woocommerce-checkout #customer_details input.input-text,
    body.woocommerce-checkout #customer_details select,
    body.woocommerce-checkout #customer_details .select2-selection--single {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 16px !important;
    }

    body.woocommerce-checkout #customer_details textarea {
        font-size: 16px !important;
    }

    body.woocommerce-checkout #customer_details .form-row > label {
        font-size: 13px !important;
    }

    body.woocommerce-checkout .mp-checkout-summary #place_order {
        min-height: 44px !important;
    }
}

/* STUDIO 3.0 — a new storefront composition. Presentation only. */
:root{
 --mp-primary:#F97316;--mp-primary-2:#EA580C;--mp-primary-3:#C2410C;--mp-deep:#292524;
 --mp-ink:#292524;--mp-muted:#78716C;--mp-bg:#FFF7ED;--mp-card:#fff;--mp-border:#E7DED4;--mp-soft:#FFEDD5;
 --mp-accent:#F97316;--mp-radius-sm:8px;--mp-radius-md:16px;--mp-radius-lg:24px;--mp-shadow:none;
 --studio-orange:#F97316;--studio-soft-orange:#FFEDD5;--studio-cream:#FFF7ED;--studio-green:#292524;
 --mp-control-height:44px;--mp-container:1360px;--mp-layout-container:1360px;
}
body{background:#FFF7ED;color:var(--mp-ink)}
body,button,input,select,textarea{font-family:IRANSansWeb,Tahoma,sans-serif!important}
body .mp-container,body .mp-main-container{max-width:1360px}
body .mp-topbar{background:#FFF1E6;color:#394532;font-size:11px}
body .mp-topbar .mp-container{min-height:29px}
body .mp-header{position:sticky;background:#FFF7ED;border:0;box-shadow:0 1px 0 #e4e7de;backdrop-filter:none}
body .mp-header-row{min-height:88px;gap:32px}
body .mp-brand{font-size:23px;letter-spacing:-.6px;gap:10px}
body .mp-brand-mark{background:var(--studio-orange);border-radius:50%;width:42px;height:42px;box-shadow:none;font-size:20px}
body .mp-brand small{font-size:10px;font-weight:400;color:#78716C;letter-spacing:0}
body .mp-search form{border:0;border-radius:999px;background:#FFFFFF;min-height:47px}
body .mp-search input{padding-inline:22px;font-size:12px}
body .mp-search button{background:transparent!important;color:#44403C!important;-webkit-text-fill-color:#44403C!important;border-inline-start:1px solid #E7DED4;padding-inline:22px;font-size:12px}
body .mp-actions{gap:12px;align-items:center}
body .mp-icon-link{border:0;background:transparent;padding:8px 4px;min-height:44px;font-size:11px}
.mp-ui-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body .mp-cart-count{background:#e8ecdf!important;color:#292524!important;min-width:20px;height:20px;font-size:10px}
.studio-header-credit{display:inline-flex;gap:18px;align-items:center;min-height:42px;padding:8px 18px;border-radius:999px;background:#292524;color:#fff;font-size:12px}
.studio-header-credit:hover{background:var(--studio-orange);color:#fff}
.studio-header-guide{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:42px;padding:8px 15px;border:1px solid #c7d0bc;border-radius:999px;background:#FFFFFF;color:#44403C;font-size:11px;font-weight:600;white-space:nowrap;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.studio-header-guide:hover{background:#fff;border-color:#F97316;color:#292524;transform:translateY(-1px)}
.studio-header-guide:focus-visible{outline:3px solid rgba(238,137,82,.35)!important;outline-offset:3px!important}
body .mp-nav{background:transparent;border:0}
body .mp-nav-row{min-height:47px;justify-content:flex-start;gap:34px}
body .mp-nav ul{gap:30px}
body .mp-nav a{font-size:12px;font-weight:500;color:#57534E}
body .mp-nav .menu>li>a{min-height:44px;display:flex;align-items:center}
body .mp-nav .mp-credit-cta{background:transparent!important;color:var(--studio-orange)!important;-webkit-text-fill-color:var(--studio-orange)!important;padding:8px 0!important;box-shadow:none!important;margin-inline-start:auto}
body .mp-nav .sub-menu{border-radius:16px;padding:14px;box-shadow:0 18px 40px #1d251b14;min-width:220px}
body .mp-nav .sub-menu a{padding:10px;border-radius:7px}
body .mp-nav .sub-menu a:hover{background:#FFFCF8}
body .mp-nav .sub-menu .sub-menu{top:0;right:100%}
/* Hero is a two-part editorial composition rather than an inherited WP banner. */
.studio-home{overflow:clip}
.studio-hero{display:grid;grid-template-columns:1fr 1.02fr;gap:24px;align-items:center;padding-block:42px 54px;min-height:620px}
.studio-hero-copy{padding:14px 14px 14px 0}
.studio-kicker{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.8;color:#747c6d;font-weight:500}
.studio-kicker i{width:7px;height:7px;border-radius:50%;background:var(--studio-orange)}
.studio-hero h1{font-size:clamp(34px,4.15vw,62px);font-weight:700;line-height:1.55;letter-spacing:-1.7px;margin:24px 0 22px;color:#242920}
.studio-hero h1 em{font-style:normal;color:#F97316}
.studio-hero-copy>p{font-size:14px;line-height:2.1;color:#767c70;margin:0}
.studio-hero-actions{display:flex;align-items:center;gap:30px;margin-top:34px;flex-wrap:wrap}
.studio-button{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:54px;padding:15px 23px;border-radius:999px;font-size:13px;font-weight:500;transition:background .18s,transform .18s}
.studio-button>span{font-size:23px;line-height:1}
.studio-button-dark{background:#262b23;color:#fff}
.studio-button-dark:hover{background:#434c3c;color:#fff;transform:translateY(-2px)}
.studio-button-orange{background:#F97316;color:#1c241a}
.studio-button-orange:hover{background:#EA580C;color:#1c241a}
.studio-text-link{display:flex;gap:18px;font-size:13px;color:#3b4933;border-bottom:1px solid #b6c0ab;padding-block:10px}
.studio-hero-note{display:flex;gap:13px;align-items:center;margin-top:42px;font-size:11px;color:#808773}
.studio-hero-note>span{padding-inline-end:13px;border-inline-end:1px solid #d8ddce}
.studio-hero-note b{font-weight:400;color:#526047}
.studio-hero-art{position:relative;isolation:isolate;min-width:0;aspect-ratio:1.08;border-radius:140px 28px 140px 28px;background:#FFEDD5;overflow:hidden}
.studio-hero-art>img{position:absolute;inset:-3% 0 0;width:100%;height:100%;object-fit:contain;z-index:2;transform:rotate(0deg)}
.studio-art-disc{position:absolute;inset:17%;border-radius:50%;background:#F97316;z-index:0}
.studio-orbit{position:absolute;inset:9%;border:1px solid #D6C7B8;border-radius:50%;z-index:1;transform:rotate(-25deg) scaleY(.76)}
.studio-orbit-two{inset:3%;transform:rotate(35deg) scaleY(.85)}
.studio-art-tag{position:absolute;left:28px;bottom:68px;z-index:3;background:#fff;padding:14px 18px;display:flex;gap:12px;align-items:center;border-radius:14px;box-shadow:0 12px 28px #60402112;transform:rotate(-4deg)}
.studio-art-tag>i{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#FFEDD5;font-style:normal;font-size:20px;color:#C2410C}
.studio-art-tag b{font-size:12px;font-weight:500;color:#292524}
.studio-art-tag small{display:block;font-weight:400;font-size:10px;color:#88917b;margin-top:3px}
.studio-art-index{position:absolute;bottom:22px;right:35px;font-size:10px;color:#7b735f;z-index:3}
/* Category tiles use their own icon artwork and unequal whitespace, not WP cards. */
.studio-categories{padding-block:12px 56px}
.studio-section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:28px}
.studio-section-title h2{font-size:clamp(24px,2.6vw,34px);line-height:1.6;font-weight:700;letter-spacing:-.6px;margin:6px 0 0}
.studio-section-title>a{font-size:12px;color:#58634e;display:flex;gap:18px;align-items:center;min-height:44px}
.studio-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.studio-category{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px 8px;background:#FFFCF8;border:0;border-radius:14px;padding:24px 18px 16px;color:#424b36;transition:background .18s,transform .18s}
.studio-category:nth-child(2n){background:#FFF1E6}
.studio-category>span{grid-column:1/-1;min-height:70px;display:grid;place-items:center}
.studio-category img{width:51px;height:51px;opacity:.8;transition:transform .2s}
.studio-category strong{font-size:11px;font-weight:500}
.studio-category i{font-size:18px;font-style:normal;color:#8b967d}
.studio-category:hover{background:#FFEDD5;color:#292524;transform:translateY(-3px)}
.studio-category:hover img{transform:rotate(-7deg)}
body .studio-arrivals{padding:42px 0 60px;background:#fff;border-block:1px solid #E7DED4}
/* CMS sections keep their content and order, but consume this new visual system. */
body .studio-cms .mmp-home__section{margin-block:40px 54px}
body .studio-cms .mmp-home__section-head h2{font-size:30px;color:#292524;letter-spacing:-.5px}
body .studio-cms .mmp-home__section-head p{font-size:12px;color:#78716C}
body .studio-cms .mmp-home__hero-track{border-radius:24px!important}
body .studio-cms .mmp-home__hero-item{border-radius:24px;box-shadow:none}
body .studio-cms .mmp-home__category{background:#FFFCF8;border:0;border-radius:16px;box-shadow:none}
body .studio-cms .mmp-home__feature{padding:26px;background:transparent;border:0;border-inline-start:1px solid #E7DED4;border-radius:0;box-shadow:none}
body .studio-cms .mmp-home__promo{border-radius:22px;border:0;box-shadow:none}
body .studio-cms .mmp-home__cta{background:#292524;border-radius:24px;padding:42px}
body .studio-cms .mmp-home__button{background:#292524;border-radius:999px;color:#fff}
.studio-credit{margin-block:60px;display:grid;grid-template-columns:1.2fr 1fr;gap:60px;align-items:center;background:#292524;color:#FFFFFF;border-radius:28px;padding:54px 58px;position:relative;overflow:hidden}
.studio-credit .studio-kicker{color:#D6D3D1}
.studio-credit h2{font-size:clamp(25px,3vw,39px);line-height:1.65;letter-spacing:-.8px;margin:18px 0}
.studio-credit h2 em{font-style:normal;color:#F97316}
.studio-credit-copy>p{font-size:12px;color:#D6D3D1;margin-bottom:28px}
.studio-credit-steps{display:grid;gap:24px}
.studio-credit-steps article{display:flex;align-items:center;gap:21px;border-bottom:1px solid #4d5a42;padding-bottom:22px}
.studio-credit-steps article:last-child{border:0;padding-bottom:0}
.studio-credit-steps article>b{font-size:26px;font-weight:400;color:#91a575}
.studio-credit-steps h3{font-size:15px;margin:0 0 4px;font-weight:500;color:#e9eedf}
.studio-credit-steps p{font-size:11px;margin:0;color:#aebba1}
.studio-service-line{display:grid;grid-template-columns:repeat(3,1fr);margin-block:40px 70px;gap:24px}
.studio-service-line>div{padding:12px 28px;border-inline-start:2px solid #d8decb}
.studio-service-line b{display:block;font-size:14px;font-weight:500;color:#435035}
.studio-service-line span{font-size:11px;color:#818977;display:block;margin-top:8px}
/* A shop entrance without the previous slider/three marketing panels. */
.studio-shop-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-block:48px 34px}
.studio-shop-intro h1{font-size:52px;line-height:1.35;margin:9px 0 0;letter-spacing:-1px;font-weight:700}
.studio-title-dot{color:var(--studio-orange)}
.studio-shop-credit{display:flex;align-items:center;gap:34px;padding:18px 24px;background:#f1ecdf;color:#3c4931;border-radius:15px}
.studio-shop-credit small{font-size:10px;display:block;color:#8a8779}
.studio-shop-credit b{font-size:15px;display:block;margin-top:4px;font-weight:500}
.studio-shop-credit>i{font-style:normal;font-size:29px;color:var(--studio-orange)}
.studio-shop-categories{display:flex;align-items:center;gap:12px;overflow:auto;padding-block:4px 27px;scrollbar-width:none}
.studio-shop-categories>a{flex-shrink:0;padding:11px 21px;border:1px solid #E7DED4;border-radius:999px;color:#758065;font-size:12px;min-height:44px}
.studio-shop-categories .studio-all-categories{background:#2b3524;border-color:#2b3524;color:#fff}
body .mp-catalog-page{padding-block:0 40px}
body .mmp-catalog-toolbar__top{background:transparent;border:0;border-bottom:1px solid #dde2d3;border-radius:0;padding:14px 0 20px;margin-bottom:14px}
body .mmp-catalog-count{font-size:11px;color:#737d67}
body .mmp-sort-control{border:0;border-radius:8px;background:#edf0e5;color:#526044;min-height:42px;padding-inline:12px}
body .mmp-catalog-filters,body .mp-filter-panel{background:#FFFCF8;border:0;box-shadow:none;border-radius:15px}
body .mmp-filter-head strong{font-size:16px;font-weight:500;color:#39462c}
body .mmp-catalog-filters legend{font-size:12px;color:#455435;margin-bottom:10px}
body .mmp-catalog-filters fieldset{border-bottom-color:#dde3d0!important}
body .mmp-check-list label{font-size:12px;padding-block:6px;color:#6d785f}
body .mmp-price-filter input{background:#fafbf7;border:1px solid #d8e0ca;border-radius:8px}
body .mmp-filter-actions button.button{background:#34432a;color:#fff;border:0;border-radius:9px;min-height:44px}
body .mmp-active-filter-chip{background:#e9efdf;border-color:#d7e2c7;color:#536340}
/* Original compact card template and sizing; only its palette is updated. */
body .mp-product-card .mp-card-image,body .mp-product-card .mp-card-image img{background:#f4f4ee}
body .mp-product-card .mp-card-credit-badge{background:#edf1e5;color:#C2410C}
body .mp-product-card .mp-card-credit{background:#f1f3eb;color:#C2410C}
body .mp-product-card .mp-card-prices strong{color:#292524}
body.woocommerce ul.products li.product .mp-card-actions .button,
body ul.products li.product .mp-card-actions .button{background:#C2410C!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
body ul.products li.product .mp-card-actions .button:hover{background:#292524!important}
body .mp-product-card .mp-card-actions .mp-wishlist{color:#EA580C;border-color:#dce2d4}
body .mp-product-card .mp-card-actions .mp-wishlist.is-active{color:#b84c2b;background:#fff0e7;border-color:#e9c5b1}
/* Product detail is an open canvas, with a contrasting purchase panel. */
body .mp-product-page{padding-block:30px}
body .mp-single-product{background:transparent!important;border:0!important;border-radius:0;padding:0;box-shadow:none!important}
body .mp-product-heading{padding-block:10px 26px;border-bottom:1px solid #e0e5d7}
body .mp-product-heading h1{font-size:25px!important;line-height:1.8!important;letter-spacing:-.5px;color:#2d3725!important}
body .mp-product-main{gap:30px;padding-block:30px}
body .mp-product-gallery{background:#eef0e7!important;border:0;border-radius:24px;padding:22px!important}
body .mp-safe-placeholder{background:#eef0e7;border-radius:20px}
body .mp-key-features li{border:0;background:transparent;border-bottom:1px solid #e1e6d7;border-radius:0;padding:13px 0;font-size:12px}
body .mp-key-features li strong{font-weight:500;color:#415131}
body .mp-buy-card{background:#f0f3e7!important;border:1px solid #dce4ce!important;border-radius:20px!important;box-shadow:none!important;padding:24px!important}
body .mp-buy-card::before{content:none!important}
body .mp-price-box{background:transparent!important;border:0!important;border-top:1px solid #d5dfc5!important;padding:18px 0!important;margin:18px 0}
body .mp-final-price strong{font-size:22px!important;color:#33482b}
body .mp-product-cart .single_add_to_cart_button{background:#d45a2c!important;border-radius:999px!important;box-shadow:none!important;min-height:50px;color:#fff!important}
body .mp-installment-banner{background:#f3ebdf!important;border:0!important;border-radius:14px;padding:18px;color:#805733!important}
body .mp-sellers-panel{background:#fff;border:1px solid #e3e7db;border-radius:18px;padding:24px}
body .mp-sellers-panel .mp-seller-row{display:grid!important;border-radius:12px;border-color:#dce5ce}
body .mp-seller-row.is-selected{background:#f0f5e8;box-shadow:inset -3px 0 #6a8250}
body .mp-seller-row.is-selected .mp-seller-row-action{background:#415934;border-color:#415934}
body .mp-service-strip span{background:transparent!important;color:#89917e;font-size:11px}
body .mp-product-details .woocommerce-tabs ul.tabs li{background:transparent;border:0;border-radius:0}
body .mp-product-details .woocommerce-tabs ul.tabs li.active a{color:#d15a2b!important;border-bottom-color:#d15a2b!important}
/* Open account canvas, light navigation; colour is concentrated in the balance. */
body.woocommerce-account .mp-content-card{background:transparent;border:0;padding:0!important}
body.woocommerce-account .woocommerce-MyAccount-content{background:#fff;border:1px solid #e7eadf;border-radius:22px;padding:28px}
body.mmp-customer-ui.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .mp-content-card .woocommerce-MyAccount-navigation{background:#edf0e4!important;border:0!important;box-shadow:none!important;border-radius:18px;padding:14px!important}
body.mmp-customer-ui.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li:not(.is-active) a,
body.woocommerce-account .mp-content-card .woocommerce-MyAccount-navigation li:not(.is-active) a{color:#657552!important;background:transparent!important;opacity:1!important;padding:12px;font-size:12px}
body.mmp-customer-ui.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .mp-content-card .woocommerce-MyAccount-navigation li.is-active a{background:#fff!important;color:#334725!important;border-color:transparent!important;box-shadow:none!important;border-radius:10px}
body.woocommerce-account .mp-content-card .woocommerce-MyAccount-navigation a:focus-visible{outline-color:#5c7148!important}
body .woocommerce form .form-row input.input-text,body .woocommerce form .form-row select,body .woocommerce form .form-row textarea{background:#f9faf6;border-color:#d9e1cc;border-radius:10px;padding:12px}
body .woocommerce table.shop_table th{background:#f1f4e9;color:#667951;font-weight:500}
body.woocommerce-checkout :is(#customer_details,#order_review){border-radius:20px!important;border-color:#e1e7d6!important;box-shadow:none!important}
body.woocommerce-checkout #place_order{background:#d35a2c!important;color:#fff!important;border-radius:999px!important;min-height:50px}
/* Footer becomes a light editorial closing section rather than a navy slab. */
body .mp-footer{background:#eef0e6;color:#7b856d;border-top:0;margin-top:56px}
.studio-footer-lead{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:46px 32px;border-bottom:1px solid #d5ddc8}
.studio-footer-lead strong{font-size:clamp(26px,4vw,47px);letter-spacing:-1px;line-height:1.7;color:#36452b;font-weight:700;display:block;margin-top:8px}
.studio-footer-lead>a{display:flex;gap:26px;align-items:center;color:#485a38;font-size:13px}
.studio-footer-lead>a>span{display:grid;place-items:center;width:55px;height:55px;border:1px solid #bac8a7;border-radius:50%;font-size:30px}
body .mp-footer-grid{padding-block:34px 42px;gap:65px}
body .mp-footer-section-title{color:#465737!important;font-size:14px}
body .mp-footer-section-content{font-size:12px;line-height:2.1;color:#7b856d}
body .mp-footer :is(a,strong){color:#61734e}
body .mp-footer a:hover{color:#be5a2f}
body .mp-footer-bottom{border-color:#d5ddc8;color:#8a957c;text-align:start;font-size:10px}
body .mp-footer-socials a{border:1px solid #cdd7be;padding:5px 10px;border-radius:999px}
body .mp-footer-section-toggle-icon{color:#667d4e;background:#e0e6d5}
body :is(.studio-home,.studio-shop-intro,.studio-shop-categories,.mp-header,.mp-content,.mp-product-page,.mp-catalog-page,.mp-footer) :is(a,button,input,select,textarea):focus-visible{outline:2px solid #9b4c2b!important;outline-offset:4px}
@media(min-width:1100px){
 body .mp-catalog-layout.is-mmp-catalog>.mp-catalog-results{grid-template-columns:220px minmax(0,1fr);gap:20px 34px}
 body .mp-catalog-layout.is-mmp-catalog .mmp-catalog-filters{top:calc(var(--mp-admin-bar-offset,0px) + 156px);max-height:calc(100dvh - 176px);padding:22px!important}
 body .mp-catalog-results ul.products{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body .mp-buy-card{top:calc(var(--mp-admin-bar-offset,0px) + 156px)}
}
@media(min-width:768px) and (max-width:1099px){
 .studio-header-credit,.studio-header-guide{display:none}
 .studio-hero{min-height:480px;gap:24px;padding-block:34px}
 .studio-hero h1{font-size:37px;letter-spacing:-1px}.studio-hero-copy>p{font-size:12px}
 .studio-hero-art{border-radius:85px 20px 85px 20px}.studio-art-tag{bottom:45px;left:18px;padding:10px}
 .studio-category-grid{gap:10px}.studio-category{padding:16px 12px}.studio-category strong{font-size:10px}
 .studio-credit{padding:34px;gap:30px}.studio-credit h2{font-size:28px}
 body .mp-catalog-results ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
 body .mp-header{background:#FFF7ED}.studio-header-credit,.studio-header-guide{display:none}
 body .mp-mobile-header{padding-block:10px}.mp-ui-icon{width:22px;height:22px}
 body .mp-mobile-brand .mp-brand-mark{background:#d75c2c;width:34px;height:34px;border-radius:50%}
 body .mp-mobile-brand strong{font-size:16px;color:#292524}
 body :is(.mp-mobile-menu-toggle,.mp-mobile-action){background:transparent;border:0;color:#5c6b4f}
 body .mp-mobile-search form{background:#eef1e5;border:0;border-radius:999px}
 body .mp-mobile-search input{font-size:16px;min-height:44px;padding-inline:18px}
 body .mp-mobile-search button{background:transparent;color:#64784e;padding-inline:16px;border-inline-start:1px solid #dbe3d0}
 body .mp-bottom-nav{background:#fafbf6;border-top:1px solid #e0e6d5;box-shadow:none;backdrop-filter:none}
 body .mp-bottom-nav :is(a,button){color:#889879}
 body .mp-bottom-nav [aria-current=page]{color:#bb552e;background:#f5ebe0;border-radius:10px}
 body .mp-bottom-nav b{font-size:10px;font-weight:500}
 body .mp-mobile-drawer-panel{background:#fafbf6}.mp-mobile-credit-link{background:#e8edde!important;color:#4c6338!important}
 .studio-hero{grid-template-columns:1fr;padding-block:26px 35px;gap:25px;min-height:0}
 .studio-hero-copy{padding:0 4px}.studio-kicker{font-size:10px}
 .studio-hero h1{font-size:clamp(30px,8.7vw,42px);line-height:1.6;letter-spacing:-1px;margin:16px 0}
 .studio-hero-copy>p{font-size:12px}.studio-hero-actions{margin-top:22px;gap:24px}
 .studio-button{min-height:49px;padding:12px 20px;gap:23px;font-size:12px}.studio-text-link{font-size:11px}
 .studio-hero-note{margin-top:24px;font-size:10px;gap:8px}
 .studio-hero-art{aspect-ratio:1.2;border-radius:90px 20px 90px 20px;max-height:430px}
 .studio-art-tag{left:20px;bottom:48px;padding:11px 13px}.studio-art-tag b{font-size:11px}.studio-art-index{font-size:9px;right:25px;bottom:18px}
 .studio-categories{padding-block:8px 30px}.studio-section-title{margin-bottom:20px;align-items:center}
 .studio-section-title h2{font-size:23px}.studio-section-title>a{font-size:10px;gap:8px}
 .studio-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .studio-category{padding:16px 10px 12px;border-radius:12px;gap:10px 2px}.studio-category>span{min-height:50px}.studio-category img{width:36px;height:36px}
 .studio-category strong{font-size:9px}.studio-category i{font-size:14px}
 body .studio-arrivals{padding-block:28px}.studio-credit{margin-block:32px;grid-template-columns:1fr;padding:27px 23px;gap:32px;border-radius:20px}
 .studio-credit h2{font-size:26px;line-height:1.7}.studio-credit-copy>p{font-size:11px;line-height:1.9}
 .studio-credit-steps{gap:19px}.studio-credit-steps article{padding-bottom:18px}.studio-credit-steps article>b{font-size:24px}
 .studio-service-line{grid-template-columns:1fr;margin-block:30px;gap:16px}.studio-service-line>div{padding:6px 17px}.studio-service-line b{font-size:13px}.studio-service-line span{font-size:11px}
 .studio-shop-intro{padding-block:26px 20px;gap:14px}.studio-shop-intro h1{font-size:35px}
 .studio-shop-credit{padding:12px;gap:12px}.studio-shop-credit small{font-size:8px}.studio-shop-credit b{font-size:12px}.studio-shop-credit i{font-size:22px}
 .studio-shop-categories{gap:8px;padding-bottom:20px}.studio-shop-categories>a{font-size:11px;padding:10px 15px}
 body .mmp-catalog-toolbar__top{padding-block:10px 15px}
 
 body .mp-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .studio-card-body{padding-top:10px}.studio-card-media{border-radius:13px}
 body .mp-product-page{padding-block:18px}.mp-product-heading h1{font-size:20px!important}
 body .mp-product-main{gap:22px;padding-block:20px}.mp-product-gallery{border-radius:18px!important}
 body .mp-buy-card{padding:20px!important}.mp-sellers-panel{padding:16px!important}
 body .mp-sellers-panel .mp-seller-row{grid-template-columns:24px minmax(0,1fr)!important;grid-template-areas:'check vendor' 'check meta' 'price price' 'action action'!important;gap:10px!important}
 body .mp-seller-row-price{padding-block:10px;border-top:1px solid #dce5cf}
 body .mp-mobile-purchase-bar{background:#fafbf6;box-shadow:none;border-color:#dce5cf}.mp-mobile-purchase-action{background:#ca5c30!important;border-radius:999px!important}
 body.woocommerce-account .woocommerce-MyAccount-content{padding:17px;border-radius:17px}
 .studio-footer-lead{padding-block:32px 26px;gap:16px}.studio-footer-lead strong{font-size:28px}
 .studio-footer-lead>a{font-size:10px;gap:9px}.studio-footer-lead>a>span{width:39px;height:39px;font-size:24px}
 body .mp-footer{margin-top:32px}.mp-footer-grid{padding-block:20px!important;gap:0!important}
 body .mp-footer-section{border-color:#d3ddc7}.mp-footer-section-title{font-size:13px!important}
 body .mp-footer-section-toggle{color:#526940;min-height:53px}.mp-footer-section-content a{min-height:44px}
 body .studio-cms .mmp-home__section-head h2{font-size:24px}
 body .studio-cms .mmp-home__section{margin-block:26px 34px}
}
@media(max-width:349px){body .mp-catalog-results ul.products,body .mp-wishlist-page ul.products{grid-template-columns:1fr!important}.studio-shop-credit{gap:6px}.studio-shop-credit small{display:none}}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 body :is(.studio-home,.mp-header,.mp-catalog-page,.mp-product-page,.mp-footer) *,body .studio-category{transition:none!important;animation:none!important}
}

/* Keep the original wishlist DOM contract while placing its control on the media. */

/* New home collection uses a real grid at every size, with no inherited carousel. */
body.home .studio-arrivals ul.products{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;overflow:visible!important;padding:0!important}
body.mmp-customer-ui .mp-nav .mp-credit-cta{background:transparent!important;color:#a64722!important;-webkit-text-fill-color:#a64722!important;box-shadow:none!important}
.studio-kicker,.studio-hero-copy>p,.studio-hero-note,.studio-hero-note b{color:#647059}
.studio-credit .studio-kicker{color:#D6D3D1}
body .mp-footer-section-content,body .mp-footer-bottom{color:#62734f}
@media(min-width:768px) and (max-width:999px){body.home .studio-arrivals ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){body.home .studio-arrivals ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.studio-credit .studio-kicker{color:#D6D3D1}}
@media(max-width:349px){body.home .studio-arrivals ul.products{grid-template-columns:1fr!important}}

/* 3.0.1 — reduce home presentation height without scaling text or controls. */
.studio-hero{min-height:0;padding-block:27px 35px}
.studio-hero-art{aspect-ratio:1.66;border-radius:90px 22px 90px 22px}
.studio-hero-copy{padding-block:4px}
.studio-hero h1{font-size:clamp(32px,3vw,44px);line-height:1.5;margin:16px 0 14px}
.studio-hero-actions{margin-top:22px;gap:24px}
.studio-hero-note{margin-top:24px}
.studio-art-tag{bottom:44px;padding:10px 14px}
.studio-categories{padding-block:8px 36px}
.studio-section-title{margin-bottom:18px}
.studio-section-title h2{font-size:clamp(23px,2vw,29px)}
.studio-category{padding:16px 14px 11px;gap:10px 8px}
.studio-category>span{min-height:46px}
.studio-category img{width:40px;height:40px}
body .studio-arrivals{padding-block:27px 39px}
body .studio-cms .mmp-home__section{margin-block:26px 35px}
.studio-credit{margin-block:39px;padding:35px 38px;gap:39px}
.studio-credit h2{font-size:clamp(25px,2.2vw,31px);margin:12px 0;line-height:1.5}
.studio-credit-copy>p{margin-bottom:18px}
.studio-credit-steps{gap:16px}
.studio-credit-steps article{padding-bottom:14px;gap:14px}
.studio-service-line{margin-block:26px 45px}
@media(min-width:1024px) and (max-width:1279px){body .mp-catalog-results ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:768px) and (max-width:1099px){
 .studio-hero{padding-block:22px;gap:18px}
 .studio-hero h1{font-size:30px;margin:10px 0}
 .studio-hero-copy>p{font-size:12px}
 .studio-hero-note{margin-top:16px;font-size:10px}
 .studio-hero-actions{margin-top:16px;gap:16px}
 .studio-hero-art{aspect-ratio:1.5}
 .studio-art-tag{left:12px;bottom:33px;padding:8px}
 .studio-art-tag>i{width:28px;height:28px}
 .studio-art-tag b{font-size:10px}
 .studio-credit{padding:25px;gap:22px}
}
@media(max-width:767px){
 .studio-hero{padding-block:17px 23px;gap:16px}
 .studio-hero h1{font-size:clamp(27px,7.4vw,36px);line-height:1.45;margin:10px 0}
 .studio-hero-copy>p{line-height:1.85}
 .studio-hero-art{aspect-ratio:1.845;max-height:280px;border-radius:58px 16px 58px 16px}
 .studio-hero-actions{margin-top:14px;gap:18px}
 .studio-hero-note{margin-top:15px}
 .studio-art-tag{left:15px;bottom:32px;padding:8px 10px}
 .studio-art-tag>i{width:28px;height:28px;font-size:17px}
 .studio-art-tag b{font-size:10px}
 .studio-art-index{bottom:12px;font-size:8px}
 .studio-categories{padding-block:5px 20px}
 .studio-section-title{margin-bottom:13px}
 .studio-section-title h2{font-size:23px}
 .studio-category{padding:10px 8px 8px;gap:7px 2px}
 .studio-category>span{min-height:32px}
 .studio-category img{width:30px;height:30px}
 body .studio-arrivals{padding-block:18px}
 body .studio-cms .mmp-home__section{margin-block:17px 22px}
 .studio-credit{padding:18px 20px;gap:20px;margin-block:21px}
 .studio-credit h2{font-size:25px;margin:8px 0}
 .studio-credit-copy>p{margin-bottom:15px}
 .studio-credit-steps{gap:12px}
 .studio-credit-steps article{padding-bottom:10px}
 .studio-service-line{margin-block:18px 30px}
}

@media(min-width:1000px) and (max-width:1279px){body.home .studio-arrivals ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
body.woocommerce ul.products li.mp-product-card .mp-card-image img{background:#f4f4ee}

/* 3.0.2 — wider hero artwork, restrained corners, unchanged compact height. */
.studio-hero-art{border-radius:24px}
@media(min-width:1100px){
 .studio-hero{grid-template-columns:minmax(0,.8fr) minmax(0,1.22fr);gap:20px}
 .studio-hero-art{aspect-ratio:2}
}
@media(min-width:768px) and (max-width:1099px){.studio-hero-art{border-radius:20px}}
@media(max-width:767px){.studio-hero-art{border-radius:16px}}


/* 3.0.3 — hero density, asymmetric corners, orange credit hover, orange cart badge. */
body .mp-cart-count,
body .mp-mobile-cart .mp-cart-count,
body .mp-bottom-cart-icon em{
  background:var(--studio-orange)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#fff!important;
}

body .mp-nav .mp-credit-cta,
body.mmp-customer-ui .mp-nav .mp-credit-cta{
  background:#edf1e8!important;
  color:var(--studio-orange)!important;
  -webkit-text-fill-color:var(--studio-orange)!important;
  border-radius:12px!important;
  padding:9px 15px!important;
}
body .mp-nav .mp-credit-cta:is(:hover,:focus-visible),
body.mmp-customer-ui .mp-nav .mp-credit-cta:is(:hover,:focus-visible),
body .mp-mobile-credit-link:is(:hover,:focus-visible){
  background:var(--studio-orange)!important;
  border-color:var(--studio-orange)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
}
body .mp-mobile-credit-link{
  background:#edf1e8!important;
  color:var(--studio-orange)!important;
  -webkit-text-fill-color:var(--studio-orange)!important;
}

.studio-hero{
  padding-block:22px 32px;
  gap:16px;
}
.studio-hero-art{
  border-radius:52px 9px 52px 9px;
  overflow:hidden;
}
.studio-hero-art>img{
  inset:-4% -5% -2%;
  width:110%;
  height:110%;
  max-width:none;
}
.studio-art-disc{
  inset:17% 16% 16%;
}

@media(min-width:1100px){
  .studio-hero{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:16px;align-items:stretch}
  .studio-hero-art{aspect-ratio:2.08;border-radius:58px 10px 58px 10px}
  .studio-hero-art>img{inset:-5% -6% -3%;width:112%;height:112%}
}
@media(min-width:768px) and (max-width:1099px){
  .studio-hero{gap:16px}
  .studio-hero-art{aspect-ratio:1.7;border-radius:44px 9px 44px 9px}
  .studio-hero-art>img{inset:-4% -5% -2%;width:110%;height:110%}
}
@media(max-width:767px){
  .studio-hero-art{aspect-ratio:1.72;max-height:310px;border-radius:29px 7px 29px 7px}
  .studio-hero-art>img{inset:-4% -4% -2%;width:108%;height:108%}
}


/* 3.0.6 — credit guide header placement + compact home journey */
.studio-credit-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.studio-credit-guide-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 17px;color:#e6edd9;text-decoration:none;border:1px solid rgba(230,237,217,.4);border-radius:999px;font-size:12px;font-weight:600;transition:color .18s ease,border-color .18s ease,background .18s ease}.studio-credit-guide-link:hover{color:#fff;border-color:#fff;background:rgba(255,255,255,.06)}.studio-credit-guide-link:focus-visible{outline:3px solid rgba(238,137,82,.45);outline-offset:4px;border-radius:4px}.studio-credit-steps article>b{min-width:42px}.studio-credit-steps article:last-child{border-bottom:0}.studio-credit-steps article:nth-last-child(2){border-bottom:1px solid #4d5a42;padding-bottom:22px}
@media(max-width:767px){.studio-credit-actions{align-items:stretch}.studio-credit-guide-link{justify-content:center}.studio-credit-steps article:nth-last-child(2){padding-bottom:18px}}
@media(max-width:480px){.studio-hero-actions{align-items:flex-start}.studio-hero-actions .studio-button{width:100%}.studio-hero-actions .studio-text-link{width:auto}.studio-credit-actions{display:grid;grid-template-columns:1fr}.studio-credit-guide-link{width:100%;min-height:44px}}


/* 3.0.7 — move credit guide beside the orange request-credit CTA; remove top-row credit/guide pills. */
body .mp-nav .mp-credit-guide-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin-inline-start:auto;
  padding:9px 14px!important;
  border:1px solid #d9ded2;
  border-radius:12px;
  background:transparent!important;
  color:#59684e!important;
  -webkit-text-fill-color:#59684e!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.5;
  white-space:nowrap;
  box-shadow:none!important;
}
body .mp-nav .mp-credit-guide-cta + .mp-credit-cta{margin-inline-start:0!important}
body .mp-nav .mp-credit-guide-cta:is(:hover,:focus-visible){
  background:#f2f4ed!important;
  border-color:#b8c3ad!important;
  color:#C2410C!important;
  -webkit-text-fill-color:#C2410C!important;
}
@media(max-width:767px){
  body .mp-nav-row{gap:8px!important}
  body .mp-nav .mp-credit-guide-cta{min-height:40px;padding:8px 11px!important;font-size:10px!important}
  body .mp-nav .mp-credit-cta{min-height:40px;padding:8px 12px!important;font-size:10px!important}
}


/* 3.0.8 — emphasize credit guide CTA with inverse orange treatment beside request-credit link. */
body .mp-nav .mp-credit-guide-cta{
  background:var(--studio-orange,#F97316)!important;
  border-color:var(--studio-orange,#F97316)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 7px 18px rgba(216,80,32,.16)!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body .mp-nav .mp-credit-guide-cta:is(:hover,:focus-visible){
  background:#bd4319!important;
  border-color:#bd4319!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 9px 22px rgba(216,80,32,.22)!important;
  transform:translateY(-1px);
}
body .mp-nav .mp-credit-guide-cta:focus-visible{
  outline:3px solid rgba(216,80,32,.28)!important;
  outline-offset:3px!important;
}

/* 3.0.9 — tighten the credit CTA pair, equalize dimensions, and swap the guide hover to the request CTA's resting treatment. */
body .mp-nav .mp-credit-cta-group{
  display:flex;
  align-items:center;
  gap:8px;
  margin-inline-start:auto;
  flex:0 0 auto;
}
body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta,
body .mp-nav .mp-credit-cta-group .mp-credit-cta{
  box-sizing:border-box;
  height:42px;
  min-height:42px;
  margin-inline-start:0!important;
  padding:9px 15px!important;
  border-radius:12px!important;
  line-height:1.5;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta:is(:hover,:focus-visible){
  background:#edf1e8!important;
  border-color:transparent!important;
  color:var(--studio-orange,#F97316)!important;
  -webkit-text-fill-color:var(--studio-orange,#F97316)!important;
  box-shadow:none!important;
  transform:none!important;
}
@media(max-width:767px){
  body .mp-nav .mp-credit-cta-group{gap:6px}
  body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta,
  body .mp-nav .mp-credit-cta-group .mp-credit-cta{
    height:40px;
    min-height:40px;
    padding:8px 11px!important;
    font-size:10px!important;
  }
}

/* 3.0.10 — final credit CTA hierarchy: text-only guide link + solid orange request CTA. */
body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta{
  background:transparent!important;
  border:0!important;
  color:var(--studio-orange,#F97316)!important;
  -webkit-text-fill-color:var(--studio-orange,#F97316)!important;
  box-shadow:none!important;
  border-radius:0!important;
  font:inherit;
  font-weight:600!important;
  padding-inline:7px!important;
  transition:color .18s ease!important;
}
body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta:hover{
  background:transparent!important;
  border:0!important;
  color:#b9431b!important;
  -webkit-text-fill-color:#b9431b!important;
  box-shadow:none!important;
  transform:none!important;
}
body .mp-nav .mp-credit-cta-group .mp-credit-guide-cta:focus-visible{
  background:transparent!important;
  border:0!important;
  color:#b9431b!important;
  -webkit-text-fill-color:#b9431b!important;
  box-shadow:none!important;
  transform:none!important;
  outline:2px solid rgba(216,80,32,.32)!important;
  outline-offset:3px!important;
  border-radius:4px!important;
}
body .mp-nav .mp-credit-cta-group .mp-credit-cta,
body.mmp-customer-ui .mp-nav .mp-credit-cta-group .mp-credit-cta{
  background:var(--studio-orange,#F97316)!important;
  border-color:var(--studio-orange,#F97316)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
}
body .mp-nav .mp-credit-cta-group .mp-credit-cta:is(:hover,:focus-visible),
body.mmp-customer-ui .mp-nav .mp-credit-cta-group .mp-credit-cta:is(:hover,:focus-visible){
  background:#edf1e8!important;
  border-color:transparent!important;
  color:var(--studio-orange,#F97316)!important;
  -webkit-text-fill-color:var(--studio-orange,#F97316)!important;
  box-shadow:none!important;
}
