/* Sultan's Atelier — Product V3, October 2026
   Scoped overrides: keeps WooCommerce's native variants / cart interactions.
   Mobile-first, no front-end framework or third-party font requests. */
.sa-mobile-gallery,.sa-mobile-facts{display:none}
.sa-pdp__step{display:flex;gap:12px;align-items:center;margin:0 0 18px}
.sa-pdp__step>span,.sa-m3__step{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#efe7d7;color:#77571d;font-weight:750;font-size:12px}
.sa-pdp__step>div,.sa-m3__top>div{display:grid;gap:2px}
.sa-pdp__step strong,.sa-m3__top strong{font-size:15px;color:#22201c}
.sa-pdp__step small{color:#77736c;font-size:12px}
/* Made-to-measure fields for classic Woo product form (not an alternative checkout). */
.sa-m3{margin:17px 0 22px;padding:18px 16px;background:#fff;border:1px solid #e9e5dc;border-radius:18px;color:#25231f}
.sa-m3__top{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.sa-m3__top p{margin:4px 0 0;color:#726e68;font-size:13px;line-height:1.5}
.sa-m3__select-note{margin:0;padding:12px;border-radius:12px;background:#f8f5ee;font-size:13px;color:#615b51}
.sa-m3__group{margin:14px 0 0;padding:0;border:0;min-width:0}
.sa-m3__group[hidden]{display:none!important}
.sa-m3__group legend{width:100%;padding:0 0 12px;border-bottom:1px solid #eee9df;font-size:13px;font-weight:750;color:#25231f}
.sa-m3__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.sa-m3__field{display:flex;flex-direction:column;gap:6px;min-width:0;margin-top:12px;font-size:12px;color:#45413a;font-weight:650}
.sa-m3__grid .sa-m3__field{margin-top:0}
.sa-m3__field em{font-style:normal;color:#a55e3f}
.sa-pdp__purchase .sa-m3__field input{box-sizing:border-box;width:100%;min-width:0;height:46px;border:1px solid #dcd8d0;border-radius:11px;padding:0 12px;background:#fff;font-size:16px;color:#1f1e1c;appearance:textfield}
.sa-m3__field input:focus{outline:2px solid #b89758;outline-offset:0;border-color:transparent}
.sa-m3__field input::-webkit-inner-spin-button,.sa-m3__field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.sa-m3__field small{font-size:11px;color:#837f78;font-weight:400;line-height:1.35}
.sa-m3__help{margin-top:15px;border:1px solid #ece8e0;border-radius:12px;background:#fcfaf6;color:#39352d}
.sa-m3__help summary{list-style:none;padding:13px 14px;font-size:13px;font-weight:700;cursor:pointer}
.sa-m3__help summary::-webkit-details-marker{display:none}
.sa-m3__help summary::after{content:'+';float:right}
.sa-m3__help[open] summary::after{content:'−'}
.sa-m3__help>div{padding:0 14px 14px;font-size:13px;line-height:1.6;color:#777067}
.sa-m3__confirm{display:flex;align-items:flex-start;gap:10px;margin:16px 0 0;font-size:12px;font-weight:500;line-height:1.6;color:#625d56;cursor:pointer}
.sa-m3__confirm input{width:18px;height:18px;margin:2px 0 0;flex:0 0 18px;accent-color:#24211d}
.sa-m3__confirm a{color:#755b2f;text-decoration:underline;text-underline-offset:3px}
.sa-pdp__purchase .sa-m3__group[disabled]{display:none!important}
@media(min-width:1025px){
  .sa-pdp__title{font-size:clamp(38px,3.5vw,58px);line-height:1.04}
  .sa-pdp__summary .sa-pdp__micro-values{margin-top:14px}
}
@media(max-width:1024px){
  body.single-product .sa-pdp{background:#fff;color:#24221f}
  body.single-product .sa-pdp__shell{width:100%!important;max-width:760px;margin:0 auto;padding:0 0 24px!important}
  body.single-product .sa-pdp__crumbs{padding:12px 17px 8px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  body.single-product .sa-pdp__crumbs .woocommerce-breadcrumb{font-size:10px;white-space:nowrap}
  body.single-product .sa-pdp__gallery,
  body.single-product .woocommerce-product-gallery,
  body.single-product .sa-pdp-mobile-story{display:none!important}
  body.single-product .sa-mobile-gallery{display:block!important;position:relative;width:100%;margin:0;overflow:hidden;background:#f8f5ef;border-radius:0}
  .sa-mobile-gallery__track{display:flex;width:100%;aspect-ratio:1/1.08;max-height:480px;overflow:auto hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sa-mobile-gallery__track::-webkit-scrollbar{display:none}
  .sa-mobile-gallery__slide{position:relative;flex:0 0 100%;min-width:100%;height:100%;scroll-snap-align:center;background:#f6f3ee;display:grid;place-items:center}
  .sa-mobile-gallery__image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
  .sa-mobile-gallery__slide video{width:100%;height:100%;object-fit:contain;background:#171717}
  .sa-mobile-gallery__bottom{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
  .sa-mobile-gallery__index{padding:7px 11px;border-radius:999px;background:rgba(28,27,25,.70);color:#fff;font-size:11px;font-weight:650;pointer-events:auto}
  .sa-mobile-gallery__dots{display:flex;align-items:center;gap:5px}
  .sa-mobile-gallery__dots span{width:5px;height:5px;border-radius:999px;background:rgba(30,28,26,.36)}
  .sa-mobile-gallery__dots span.is-active{width:16px;background:#25231f}
  .sa-mobile-gallery__buttons{display:flex;gap:5px;pointer-events:auto}
  .sa-mobile-gallery__buttons button{width:34px;height:34px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(255,255,255,.9);color:#34312e;font-size:16px;display:grid;place-items:center}
  .sa-mobile-gallery__buttons button:disabled{opacity:.35}
  body.single-product .sa-pdp__hero{display:block!important}
  body.single-product .sa-pdp__summary{width:100%!important;max-width:100%!important}
  body.single-product .sa-pdp__summary-inner{position:static!important;padding:20px 17px 0!important}
  body.single-product .sa-pdp__category{margin:0 0 8px;font-size:10px;letter-spacing:.09em}
  body.single-product .sa-pdp__title{font-size:clamp(25px,6.2vw,33px);font-weight:690;line-height:1.13;letter-spacing:-.036em;max-width:100%}
  body.single-product .sa-pdp__rating-row{margin-top:9px;padding-bottom:8px}
  body.single-product .sa-pdp__price{margin-top:12px}
  body.single-product .sa-pdp__price .price,body.single-product .sa-pdp__price p.price{font-size:25px!important;font-weight:750!important;letter-spacing:-.025em}
  body.single-product .sa-pdp__excerpt{font-size:13px;line-height:1.6;margin-top:10px;color:#77716b}
  body.single-product .sa-pdp__micro-values{margin-top:14px;gap:7px}
  body.single-product .sa-pdp__micro-values span{min-height:28px;padding:5px 9px;font-size:10px;line-height:1.2;border-radius:8px;background:#f8f6f2;border:1px solid #ede8dd;box-shadow:none;backdrop-filter:none}
  body.single-product .sa-pdp__micro-values svg{width:14px;height:14px;stroke:#a47b2b}
  body.single-product .sa-pdp__purchase{margin-top:18px;padding:14px!important;border:1px solid #eee9df;border-radius:17px;background:#faf9f6;box-shadow:none;backdrop-filter:none}
  body.single-product .sa-pdp__purchase table.variations{margin:0 0 6px!important}
  body.single-product .sa-pdp__purchase table.variations tr{margin-bottom:8px}
  body.single-product .sa-pdp__purchase table.variations th label{font-size:11px;margin-bottom:9px}
  body.single-product .sa-variation-pills{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0!important;padding:0!important}
  body.single-product .sa-variation-pill{box-sizing:border-box;min-width:0!important;width:100%!important;min-height:53px!important;padding:9px 30px 9px 11px!important;font-size:12px!important;line-height:1.3!important;display:flex;align-items:center;text-align:left;border-radius:12px!important;background:#fff!important;border:1px solid #e9e5de!important;color:#24211e!important;box-shadow:none!important;transform:none!important}
  body.single-product .sa-variation-pill.is-selected{border-color:#302b25!important;background:#f6f1e6!important;box-shadow:inset 0 0 0 1px #302b25!important}
  body.single-product .sa-variation-pill:disabled{opacity:.36!important}
  body.single-product .sa-variation-pill::after{height:18px!important;width:18px!important;right:9px!important;background:transparent!important;border:1px solid #c9c6be!important;box-shadow:none!important;top:50%!important;transform:translateY(-50%)!important}
  body.single-product .sa-variation-pill::before{right:15px!important;top:calc(50% - 2px)!important}
  body.single-product .sa-pdp__purchase .single_variation_wrap{margin-top:5px}
  body.single-product .sa-pdp__purchase .woocommerce-variation-price{margin:12px 0 6px}
  body.single-product .sa-pdp__purchase .woocommerce-variation-price .price{font-size:19px!important}
  body.single-product .sa-pdp__purchase .quantity .qty{min-height:48px;width:68px;border-radius:11px}
  body.single-product .sa-pdp__purchase .single_add_to_cart_button,body.single-product .sa-pdp__purchase button.button{min-height:48px!important;border-radius:11px!important;box-shadow:none!important;letter-spacing:0!important}
  body.single-product .sa-pdp__tailor-button{min-height:58px;margin-top:11px;border-radius:15px;padding:10px 12px 10px 14px;box-shadow:none;backdrop-filter:none;background:#fff;border-color:#e8dec8}
  body.single-product .sa-pdp__tailor-button strong{font-size:13px}
  body.single-product .sa-pdp__tailor-button i{width:35px;height:35px;flex-basis:35px}
  body.single-product .sa-pdp__support-row{margin-top:12px;padding-top:12px}
  body.single-product .sa-pdp__summary .product_meta{display:none}
  body.single-product .sa-pdp-guides,body.single-product .sa-pdp__details{display:none!important}
  body.single-product .sa-mobile-facts{display:block;padding:10px 17px 30px;max-width:760px;margin:0 auto}
  .sa-mobile-facts h2{font-size:23px;font-weight:720;letter-spacing:-.03em;margin:6px 0 14px}
  .sa-mobile-facts details{border-bottom:1px solid #eae6df}
  .sa-mobile-facts summary{cursor:pointer;list-style:none;position:relative;padding:17px 22px 17px 0;font-size:14px;font-weight:650;color:#282521}
  .sa-mobile-facts summary::-webkit-details-marker{display:none}
  .sa-mobile-facts summary:after{content:'+';position:absolute;right:2px;color:#8c7953;font-size:18px;top:14px}
  .sa-mobile-facts details[open] summary:after{content:'−'}
  .sa-mobile-facts__body{padding:0 0 15px;color:#6e6861;font-size:13px;line-height:1.6}
  .sa-mobile-facts__body p{margin:0 0 10px}.sa-mobile-facts__body ul{margin:8px 0;padding-left:21px}
  .sa-mobile-facts__body h2,.sa-mobile-facts__body h3{font-size:15px;margin:13px 0 8px;color:#282521}
  .sa-mobile-facts__link{color:#886324;text-decoration:underline;text-underline-offset:3px;font-weight:650}
  body.single-product .sa-pdp__recommendations{padding:22px 0 92px}
  body.single-product .sa-pdp__recommendations-shell{width:calc(100% - 34px)}
  body.single-product .sa-pdp-mobile-bar{left:0;right:0;bottom:0;border-radius:16px 16px 0 0;min-height:70px;padding:9px 15px calc(9px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border:1px solid #eee8dd;box-shadow:0 -6px 30px rgba(0,0,0,.07);z-index:990;display:flex;transform:none;transition:transform .2s ease,opacity .2s ease}
  body.single-product .sa-pdp-mobile-bar.is-hidden{transform:translateY(120%)!important;opacity:0!important;pointer-events:none}
  body.single-product .sa-pdp-mobile-bar__price{display:flex;flex-direction:column;gap:3px;font-size:17px;font-weight:750;min-width:0}
  body.single-product .sa-pdp-mobile-bar__price small{font-size:10px;font-weight:500;color:#7c766d}
  body.single-product .sa-pdp-mobile-bar__price .price{font-size:17px!important;font-weight:750!important;white-space:nowrap}
  body.single-product .sa-pdp-mobile-bar button{min-height:46px;padding:0 14px;border-radius:11px;background:#26231f;border:0;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
  body.single-product .sa-pdp-mobile-bar button span{margin-left:5px}
  /* override old fullscreen story driven sticky-bar visibility */
  body.sa-story-in-view .sa-pdp-mobile-bar{opacity:1!important;transform:none!important;pointer-events:auto!important}
  body.sa-story-in-view .sa-pdp-mobile-bar.is-hidden{opacity:0!important;transform:translateY(120%)!important;pointer-events:none!important}
}
@media(min-width:561px) and (max-width:1024px){
  body.single-product .sa-mobile-gallery{border-radius:16px}
}
@media(max-width:380px){
  body.single-product .sa-pdp__title{font-size:24px}
  body.single-product .sa-pdp__micro-values span{font-size:9px;padding:4px 6px}
  body.single-product .sa-pdp-mobile-bar button{font-size:11px;padding:0 11px}
}
@media(prefers-reduced-motion:reduce){
  .sa-mobile-gallery__track{scroll-behavior:auto!important}
  .sa-pdp-mobile-bar{transition:none!important}
}
