/* =========================================================
   MAHADIS MART
   Home spacing + Variants + Product page
   ========================================================= */


/* =========================================================
   HOME PAGE SPACING
   ========================================================= */

.mm-home-section{
  padding:26px 0 !important;
}

.mm-home-section + .mm-home-section{
  border-top:1px solid #ededeb;
}

.mm-category-products{
  padding-top:28px !important;
  padding-bottom:28px !important;
}

.mm-section-head{
  margin-bottom:15px !important;
}

.mm-section-head h2{
  font-size:clamp(26px,2.5vw,36px) !important;
}

.mm-reviews-section{
  padding-top:30px !important;
  padding-bottom:34px !important;
}

.mm-video-section{
  padding-top:28px !important;
  padding-bottom:28px !important;
}

.mm-category-section{
  padding-top:30px !important;
  padding-bottom:30px !important;
}


/* =========================================================
   STOREFRONT VARIANT PICKER
   ========================================================= */

.mw-option-picker{
  display:grid;
  gap:14px;
  margin:18px 0 4px;
}

.mw-option-group{
  display:grid;
  gap:8px;
}

.mw-option-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  font-weight:700;
}

.mw-option-label small{
  color:#777;
  font-size:11px;
  font-weight:500;
}

.mw-option-values{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mw-option-values button{
  min-width:48px;
  min-height:42px;
  padding:8px 13px;
  border:1px solid #d7d7d2;
  border-radius:7px;
  background:#fff;
  color:#222;
  font:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.mw-option-values button:hover{
  border-color:#111;
}

.mw-option-values button:active{
  transform:scale(.97);
}

.mw-option-values button.is-selected{
  border-color:#111;
  background:#111;
  color:#fff;
}

.mw-option-values button:disabled{
  opacity:.35;
  cursor:not-allowed;
  text-decoration:line-through;
}

.mw-variant-status{
  margin:0;
  padding:9px 11px;
  border-radius:6px;
  background:#f6f6f3;
  color:#666;
  font-size:11px;
  line-height:1.4;
}

.mw-variant-status.is-ready{
  background:#eef8f0;
  color:#286b39;
}

.mw-variant-status.is-out{
  background:#fff0f0;
  color:#962f2f;
}


/* =========================================================
   ADMIN VARIANT EDITOR
   ========================================================= */

.variant-simple-card .admin-card-head{
  align-items:flex-start;
}

.variant-option-groups{
  display:grid;
  gap:9px;
  margin-top:14px;
}

.variant-option-group{
  display:grid;
  grid-template-columns:minmax(160px,.45fr) minmax(260px,1fr) 42px;
  gap:9px;
  align-items:end;
  padding:12px;
  border:1px solid #e4e4df;
  border-radius:9px;
  background:#fafaf8;
}

.variant-option-group label{
  display:grid;
  gap:6px;
  margin:0 !important;
}

.variant-option-group label > span{
  font-size:11px;
}

.variant-option-group input{
  width:100%;
}

.variant-generate-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:14px;
  padding:13px;
  border:1px dashed #d5d5cf;
  border-radius:9px;
  background:#fff;
}

.variant-generate-row strong,
.variant-generate-row small{
  display:block;
}

.variant-generate-row strong{
  font-size:13px;
}

.variant-generate-row small{
  margin-top:3px;
  color:#777;
  font-size:10px;
  line-height:1.45;
}

.variant-generated-wrap{
  margin-top:14px;
  border:1px solid #e2e2dd;
  border-radius:9px;
  overflow:hidden;
}

.variant-generated-head,
.variant-generated-row{
  display:grid;
  grid-template-columns:minmax(160px,1.2fr) minmax(100px,.7fr) 100px 80px minmax(160px,1fr);
  gap:8px;
  align-items:center;
}

.variant-generated-head{
  padding:9px 12px;
  background:#f5f5f2;
  color:#777;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.variant-generated-row{
  padding:10px 12px;
  border-top:1px solid #ecece7;
  background:#fff;
}

.variant-generated-name strong,
.variant-generated-name small{
  display:block;
}

.variant-generated-name strong{
  font-size:12px;
}

.variant-generated-name small{
  margin-top:2px;
  color:#888;
  font-size:9px;
}

.variant-generated-row input{
  min-height:42px !important;
}

.variant-empty-note{
  padding:18px;
  text-align:center;
  color:#888;
  font-size:11px;
}

.variant-empty-note[hidden]{
  display:none;
}


/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.mw-product-page{
  padding:32px 0 70px;
  background:#fff;
}

.mw-product-layout{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(400px,.72fr);
  gap:clamp(36px,5vw,78px);
  align-items:start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.mw-product-gallery-wrap{
  min-width:0;
}

.mw-product-gallery{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  background:#f5f5f2;
}

.mw-product-gallery .product-gallery-slide{
  height:min(73vh,790px);
  min-height:560px;
  display:grid;
  place-items:center;
  background:#f5f5f2;
}

.mw-product-gallery .product-gallery-slide > img{
  width:100%;
  height:100%;
  padding:22px;
  object-fit:contain;
}

.mw-product-gallery .product-video-slide{
  background:#080808;
}

.mw-product-gallery .product-video-slide > video{
  width:100%;
  height:100%;
  object-fit:contain;
}

.mw-sale-badge{
  position:absolute;
  z-index:8;
  top:15px;
  left:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:5px;
  background:#111;
  color:#fff;
  font-size:10px;
  font-weight:700;
}

.mw-product-gallery-wrap .product-gallery-prev,
.mw-product-gallery-wrap .product-gallery-next{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(0,0,0,.15);
  border-radius:50%;
  background:rgba(255,255,255,.88);
  color:#111;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.mw-product-gallery-wrap .product-gallery-prev svg,
.mw-product-gallery-wrap .product-gallery-next svg{
  width:16px;
  height:16px;
}

.mw-product-gallery-wrap .product-thumbs{
  margin-top:10px;
}

.mw-product-gallery-wrap .product-thumbs .swiper-slide{
  width:78px;
  height:82px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:5px;
  background:#f5f5f2;
  opacity:.55;
}

.mw-product-gallery-wrap .product-thumbs .swiper-slide-thumb-active{
  border-color:#111;
  opacity:1;
}

.mw-product-gallery-wrap .product-thumbs img{
  width:100%;
  height:100%;
  object-fit:contain;
}


/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.mw-product-detail{
  position:sticky;
  top:105px;
  padding-top:7px;
}

.mw-product-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:10px;
}

.mw-category{
  margin:0;
  color:#73736e;
  font-size:11px;
  font-weight:600;
}

.mw-stock{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}

.mw-stock svg{
  width:13px;
  height:13px;
}

.mw-stock.is-in-stock{
  background:#eaf7ed;
  color:#26713b;
}

.mw-stock.is-out-stock{
  background:#fff0f0;
  color:#9b3131;
}

.mw-product-detail h1{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(40px,3.5vw,60px);
  line-height:1.01;
  font-weight:400;
  letter-spacing:-.045em;
}

.mw-price-area{
  margin-top:18px;
}

.mw-price-area .price{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin:0;
}

.mw-price-area .price span{
  font-size:24px;
  line-height:1;
  font-weight:700;
}

.mw-price-area .price del{
  color:#999;
  font-size:14px;
}

.mw-saving-text{
  display:inline-flex;
  margin-top:8px;
  padding:5px 8px;
  border-radius:5px;
  background:#fff3b5;
  color:#655c2f;
  font-size:10px;
  font-weight:600;
}

.mw-product-short{
  max-width:none;
  margin:17px 0 0;
  color:#686863;
  font-size:13px;
  line-height:1.7;
}


/* =========================================================
   COD BOX
   ========================================================= */

.mw-cod-highlight{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:19px;
  padding:13px 14px;
  border:1px solid #ead986;
  border-radius:8px;
  background:#fff8d5;
}

.mw-cod-highlight > svg{
  flex:0 0 auto;
  width:22px;
  height:22px;
}

.mw-cod-highlight strong,
.mw-cod-highlight span{
  display:block;
}

.mw-cod-highlight strong{
  color:#222;
  font-size:12px;
}

.mw-cod-highlight span{
  margin-top:2px;
  color:#71694a;
  font-size:10px;
  line-height:1.4;
}


/* =========================================================
   BUY FORM
   ========================================================= */

.mw-buy-form{
  margin:17px 0 0;
}

.mw-variant-field{
  gap:7px;
  text-transform:none;
  letter-spacing:0;
}

.mw-variant-field > span,
.mw-field-title{
  color:#222;
  font-size:11px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}

.mw-variant-field select{
  min-height:49px;
  border-radius:6px;
  font-size:13px;
  text-transform:none;
  letter-spacing:0;
}

.mw-purchase-row{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:9px;
  align-items:end;
  margin-top:13px;
}

.mw-quantity{
  display:grid;
  gap:7px;
}

.mw-qty-control{
  display:grid;
  grid-template-columns:38px 1fr 38px;
  min-height:49px;
  overflow:hidden;
  border:1px solid #d8d8d3;
  border-radius:6px;
  background:#fff;
}

.mw-qty-control button{
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  background:#f7f7f5;
  color:#111;
  cursor:pointer;
}

.mw-qty-control button:first-child{
  border-right:1px solid #e1e1dd;
}

.mw-qty-control button:last-child{
  border-left:1px solid #e1e1dd;
}

.mw-qty-control button:hover{
  background:#ededE9;
}

.mw-qty-control button svg{
  width:14px;
  height:14px;
}

.mw-qty-control input{
  width:100%;
  padding:0;
  border:0;
  outline:0;
  background:#fff;
  color:#111;
  text-align:center;
  font-size:14px;
  font-weight:700;
  appearance:textfield;
}

.mw-qty-control input::-webkit-inner-spin-button,
.mw-qty-control input::-webkit-outer-spin-button{
  margin:0;
  appearance:none;
}

.mw-add-cart{
  width:100%;
  min-height:49px;
  padding:0 14px;
  border-radius:6px;
  gap:8px;
  font-size:10px;
}

.mw-add-cart svg{
  width:16px;
  height:16px;
}

.mw-desktop-buy-now{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  min-height:49px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:9px 0 0;
  padding:10px 14px;
  border:1px solid #183249;
  border-radius:6px;
  background:#183249;
  color:#fff;
  cursor:pointer;
  box-shadow:none;
  transition:background .2s ease;
}
.mw-desktop-buy-now::before,.mw-desktop-buy-now::after{content:"";position:absolute;inset:0;border:1px solid #ffffff40;border-radius:inherit;z-index:0;pointer-events:none;animation:mw-order-ripple 2.4s ease-out infinite}
.mw-desktop-buy-now::after{animation-delay:1.2s}
.mw-desktop-buy-now:hover{background:#21445f}
.mw-desktop-buy-now:active{background:#12283b}
.mw-desktop-buy-now>span,.mw-desktop-buy-now>svg{position:relative;z-index:1}
.mw-desktop-buy-now>span{display:block}
.mw-desktop-buy-now strong{display:block;font-size:13px;font-weight:700;line-height:1.6;text-align:center}
.mw-desktop-buy-now small{display:block;font-size:11px;text-align:center}
.mw-desktop-buy-now svg{width:18px;height:18px}
.mw-desktop-buy-now:disabled::before,.mw-desktop-buy-now:disabled::after{animation:none;display:none}
@keyframes mw-order-ripple{0%{transform:scale(.72);opacity:0}20%{opacity:.45}100%{transform:scale(1);opacity:0}}
@media(max-width:800px){.mw-desktop-buy-now{min-height:48px}}
@media(prefers-reduced-motion:reduce){.mw-desktop-buy-now::before,.mw-desktop-buy-now::after{animation:none;display:none}}

.mw-desktop-buy-now:disabled,
.mw-add-cart:disabled{
  opacity:.45;
  cursor:not-allowed;
}


/* =========================================================
   WISHLIST
   ========================================================= */

.mw-wishlist-form{
  margin-top:9px;
}

.mw-wishlist-btn{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border:1px solid #ddddD8;
  border-radius:6px;
  background:#fff;
  color:#555;
  font:inherit;
  font-size:10px;
  cursor:pointer;
}

.mw-wishlist-btn:hover{
  border-color:#aaa;
  color:#111;
}

.mw-wishlist-btn svg{
  width:15px;
  height:15px;
}


/* =========================================================
   ASSURANCES
   ========================================================= */

.mw-product-assurances{
  display:grid;
  gap:0;
  margin-top:17px;
  padding:0;
  overflow:hidden;
  border:1px solid #e4e4df;
  border-radius:8px;
  background:#fff;
}

.mw-product-assurances > div{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:58px;
  padding:10px 12px;
  border-bottom:1px solid #ecece8;
}

.mw-product-assurances > div:last-child{
  border-bottom:0;
}

.mw-assurance-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid !important;
  place-items:center;
  border-radius:50%;
  background:#f4f4f1;
  color:#222;
}

.mw-assurance-icon svg{
  width:16px;
  height:16px;
}

.mw-product-assurances span{
  display:block;
}

.mw-product-assurances strong{
  display:block;
  color:#222;
  font-size:11px;
  font-weight:700;
}

.mw-product-assurances small{
  display:block;
  margin-top:2px;
  color:#85857f;
  font-size:9px;
  line-height:1.45;
}


/* =========================================================
   PRODUCT ACCORDIONS
   ========================================================= */

.mw-product-accordion{
  margin:0;
  border-bottom:1px solid #deded9;
}

.mw-product-accordion:first-of-type{
  margin-top:16px;
  border-top:1px solid #deded9;
}

.mw-product-accordion summary{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  list-style:none;
  color:#222;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}

.mw-product-accordion summary::-webkit-details-marker{
  display:none;
}

.mw-product-accordion summary > span{
  display:flex;
  align-items:center;
  gap:8px;
}

.mw-product-accordion summary > span svg{
  width:15px;
  height:15px;
}

.mw-product-accordion summary > svg{
  width:15px;
  height:15px;
  transition:transform .2s ease;
}

.mw-product-accordion[open] summary > svg{
  transform:rotate(180deg);
}

.mw-accordion-content{
  padding:0 0 17px;
  color:#666;
  font-size:12px;
  line-height:1.75;
}

.mw-spec-list{
  padding:0 0 12px;
}

.mw-spec-list > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:9px 0;
  border-top:1px solid #eeeeea;
  font-size:11px;
}

.mw-spec-list span{
  color:#777;
}

.mw-spec-list strong{
  color:#222;
  text-align:right;
  font-weight:600;
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.mw-related-section{
  padding:46px 0 !important;
  background:#f7f7f4;
  border-top:1px solid #ecece8;
}

.mw-related-section .minimal-head{
  margin-bottom:25px;
}

.mw-related-section .minimal-head h2{
  font-size:clamp(30px,3vw,42px);
}


/* =========================================================
   REVIEW BOX
   ========================================================= */

.mw-review-section{
  padding:42px 0 70px;
  background:#fff;
}

.mw-review-box{
  max-width:820px;
  margin:0 auto;
  overflow:hidden;
  border:1px solid #dfdfda;
  border-radius:9px;
  background:#fff;
}

.mw-review-box > summary{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 19px;
  list-style:none;
  cursor:pointer;
}

.mw-review-box > summary::-webkit-details-marker{
  display:none;
}

.mw-review-box summary span,
.mw-review-box summary strong{
  display:block;
}

.mw-review-box summary span{
  color:#777;
  font-size:10px;
}

.mw-review-box summary strong{
  margin-top:4px;
  color:#111;
  font-size:16px;
}

.mw-review-box summary > svg{
  width:17px;
  height:17px;
  transition:transform .2s ease;
}

.mw-review-box[open] summary > svg{
  transform:rotate(180deg);
}

.mw-review-form{
  display:grid;
  gap:13px;
  padding:19px;
  border-top:1px solid #eee;
}

.mw-review-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}

.mw-review-form label{
  display:grid;
  gap:7px;
}

.mw-review-form label > span{
  font-size:11px;
  font-weight:700;
}

.mw-review-form input,
.mw-review-form select,
.mw-review-form textarea{
  width:100%;
  border:1px solid #d8d8d3;
  border-radius:6px;
  outline:0;
  background:#fff;
  padding:11px 12px;
  color:#111;
  font:inherit;
  font-size:13px;
}

.mw-review-form input,
.mw-review-form select{
  min-height:46px;
}

.mw-review-form textarea{
  min-height:110px;
  resize:vertical;
}

.mw-review-form input:focus,
.mw-review-form select:focus,
.mw-review-form textarea:focus{
  border-color:#111;
}


/* =========================================================
   MOBILE BUY BAR
   ========================================================= */

.mw-mobile-buybar{
  display:none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1050px){

  .mw-product-layout{
    grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);
    gap:28px;
  }

  .mw-product-gallery .product-gallery-slide{
    min-height:500px;
  }

  .mw-product-detail h1{
    font-size:42px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:800px){

  .mm-home-section{
    padding:18px 0 !important;
  }

  .mm-category-products,
  .mm-category-section,
  .mm-video-section,
  .mm-reviews-section{
    padding-top:20px !important;
    padding-bottom:20px !important;
  }

  .mm-section-head{
    margin-bottom:12px !important;
    align-items:center !important;
  }

  .mm-section-head h2{
    font-size:22px !important;
  }

  .mm-section-head > a{
    font-size:10px !important;
  }


  /* Variant */

  .mw-option-picker{
    margin-top:14px;
    gap:13px;
  }

  .mw-option-label{
    font-size:13px;
  }

  .mw-option-values button{
    min-height:44px;
    padding:9px 14px;
    font-size:13px;
  }

  .variant-option-group{
    grid-template-columns:1fr 42px;
    padding:10px;
  }

  .variant-option-group label:first-child,
  .variant-option-group label:nth-child(2){
    grid-column:1;
  }

  .variant-option-group .icon-action{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
  }

  .variant-generate-row{
    align-items:stretch;
    flex-direction:column;
  }

  .variant-generated-head{
    display:none;
  }

  .variant-generated-row{
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:12px;
  }

  .variant-generated-name{
    grid-column:1 / -1;
  }

  .variant-generated-row input[name*="[sku]"]{
    grid-column:1 / -1;
  }


  /* Product layout */

  .mw-product-page{
    padding:0 0 32px;
  }

  .mw-product-page > .site-container{
    width:100%;
    max-width:none;
  }

  .mw-product-layout{
    display:block;
  }

  .mw-product-detail{
    position:static;
    padding:18px 14px 0;
  }


  /* Gallery */

  .mw-product-gallery{
    border-radius:0;
  }

  .mw-product-gallery .product-gallery-slide{
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:1 / 1.08;
  }

  .mw-product-gallery .product-gallery-slide > img{
    padding:10px;
    object-fit:contain;
  }

  .mw-product-gallery-wrap .product-gallery-prev,
  .mw-product-gallery-wrap .product-gallery-next{
    width:38px;
    height:38px;
  }

  .mw-product-gallery-wrap .product-gallery-prev{
    left:10px;
  }

  .mw-product-gallery-wrap .product-gallery-next{
    right:10px;
  }

  .mw-sale-badge{
    top:11px;
    left:11px;
    min-height:28px;
    padding:0 9px;
  }

  .mw-product-gallery-wrap .product-thumbs{
    width:calc(100% - 28px);
    margin:8px auto 0;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide{
    width:64px;
    height:68px;
  }


  /* Heading */

  .mw-product-topline{
    margin-bottom:9px;
  }

  .mw-category{
    font-size:11px;
  }

  .mw-stock{
    font-size:10px;
  }

  .mw-product-detail h1{
    font-size:31px;
    line-height:1.07;
    letter-spacing:-.03em;
  }

  .mw-price-area{
    margin-top:12px;
  }

  .mw-price-area .price span{
    font-size:22px;
  }

  .mw-price-area .price del{
    font-size:13px;
  }

  .mw-saving-text{
    font-size:10px;
  }

  .mw-product-short{
    margin-top:12px;
    font-size:13px;
    line-height:1.6;
  }


  /* COD */

  .mw-cod-highlight{
    margin-top:14px;
    padding:11px 12px;
  }

  .mw-cod-highlight > svg{
    width:21px;
    height:21px;
  }

  .mw-cod-highlight strong{
    font-size:13px;
  }

  .mw-cod-highlight span{
    font-size:11px;
  }


  /* Buy */

  .mw-buy-form{
    margin-top:14px;
  }

  .mw-variant-field > span,
  .mw-field-title{
    font-size:12px;
  }

  .mw-variant-field select{
    min-height:50px;
    font-size:15px;
  }

  .mw-purchase-row{
    grid-template-columns:118px minmax(0,1fr);
    gap:8px;
    margin-top:11px;
  }

  .mw-qty-control{
    min-height:48px;
    grid-template-columns:34px 1fr 34px;
  }

  .mw-qty-control input{
    font-size:15px;
  }

  .mw-add-cart{
    min-height:48px;
    padding:0 8px;
    font-size:10px;
    letter-spacing:.04em;
  }

  .mw-desktop-buy-now{
    display:flex;
  }

  .mw-wishlist-btn{
    min-height:44px;
    font-size:11px;
  }


  /* Assurances */

  .mw-product-assurances{
    margin-top:15px;
  }

  .mw-product-assurances > div{
    min-height:57px;
    padding:10px;
  }

  .mw-product-assurances strong{
    font-size:12px;
  }

  .mw-product-assurances small{
    font-size:10px;
  }


  /* Accordions */

  .mw-product-accordion summary{
    min-height:52px;
    font-size:13px;
  }

  .mw-accordion-content{
    font-size:13px;
    line-height:1.65;
  }

  .mw-spec-list > div{
    font-size:12px;
  }


  /* Related */

  .mw-related-section{
    padding:34px 0 !important;
  }

  .mw-related-section .site-container{
    width:calc(100% - 24px);
  }

  .mw-related-section .minimal-head{
    margin-bottom:18px;
  }

  .mw-related-section .minimal-head h2{
    font-size:27px !important;
  }


  /* Review */

  .mw-review-section{
    padding:28px 12px 110px;
  }

  .mw-review-section .site-container{
    width:100%;
  }

  .mw-review-box{
    border-radius:8px;
  }

  .mw-review-box > summary{
    min-height:68px;
    padding:12px 13px;
  }

  .mw-review-box summary span{
    font-size:11px;
  }

  .mw-review-box summary strong{
    font-size:15px;
  }

  .mw-review-form{
    padding:13px;
  }

  .mw-review-grid{
    grid-template-columns:1fr;
  }

  .mw-review-form label > span{
    font-size:12px;
  }

  .mw-review-form input,
  .mw-review-form select,
  .mw-review-form textarea{
    font-size:16px;
  }


  /* Sticky mobile order bar */

  .mw-mobile-buybar{
    position:fixed;
    z-index:90;
    left:0;
    right:0;
    bottom:0;
    display:grid;
    grid-template-columns:100px minmax(0,1fr);
    gap:9px;
    align-items:center;
    padding:
      9px
      12px
      calc(9px + env(safe-area-inset-bottom));
    border-top:1px solid #deded9;
    background:rgba(255,255,255,.97);
    box-shadow:0 -8px 25px rgba(0,0,0,.08);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .mw-mobile-price span,
  .mw-mobile-price strong{
    display:block;
  }

  .mw-mobile-price span{
    color:#777;
    font-size:9px;
  }

  .mw-mobile-price strong{
    margin-top:2px;
    color:#111;
    font-size:17px;
    line-height:1;
  }

  .mw-mobile-buy-button{
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 13px;
    border:0;
    border-radius:7px;
    background:#111;
    color:#fff;
    cursor:pointer;
  }

  .mw-mobile-buy-button strong,
  .mw-mobile-buy-button small{
    display:block;
    text-align:left;
  }

  .mw-mobile-buy-button strong{
    font-size:13px;
  }

  .mw-mobile-buy-button small{
    margin-top:2px;
    color:#d0d0d0;
    font-size:9px;
  }

  .mw-mobile-buy-button svg{
    width:17px;
    height:17px;
  }

  .mw-mobile-buy-button:disabled{
    opacity:.45;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media(max-width:380px){

  .mw-product-detail{
    padding-left:11px;
    padding-right:11px;
  }

  .mw-product-detail h1{
    font-size:28px;
  }

  .mw-purchase-row{
    grid-template-columns:108px minmax(0,1fr);
  }

  .mw-add-cart{
    font-size:9px;
  }

  .mw-mobile-buybar{
    grid-template-columns:90px minmax(0,1fr);
    padding-left:9px;
    padding-right:9px;
  }

}

/* =========================================================
   PRODUCT GALLERY — DESKTOP STICKY + LEFT THUMBNAILS
   ========================================================= */

@media(min-width:801px){

  .mw-product-gallery-wrap{
    position:sticky;
    top:100px;
    display:grid;
    grid-template-columns:78px minmax(0,1fr);
    grid-template-rows:1fr;
    gap:10px;
    align-items:start;
    min-width:0;
  }

  .mw-product-gallery{
    grid-column:2;
    grid-row:1;
    width:100%;
    min-width:0;
  }

  .mw-product-gallery-wrap .product-thumbs{
    grid-column:1;
    grid-row:1;
    width:78px;
    height:min(73vh,790px);
    margin:0;
    overflow:hidden;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-wrapper{
    align-items:flex-start;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide{
    width:78px !important;
    height:82px !important;
    flex-shrink:0;
    margin:0;
    overflow:hidden;
    border:1px solid transparent;
    border-radius:6px;
    background:#f5f5f2;
    cursor:pointer;
    opacity:.5;
    transition:
      opacity .2s ease,
      border-color .2s ease;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide:hover{
    opacity:.8;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide-thumb-active{
    border-color:#111;
    opacity:1;
  }

  .mw-product-gallery-wrap .product-thumbs img{
    width:100%;
    height:100%;
    padding:3px;
    object-fit:contain;
  }

  .mw-product-gallery .product-gallery-slide{
    height:min(73vh,790px);
    min-height:540px;
  }

  .mw-product-detail{
    position:static;
  }

}


/* =========================================================
   PRODUCT GALLERY — MOBILE THUMBNAILS BELOW IMAGE
   ========================================================= */

@media(max-width:800px){

  .mw-product-gallery-wrap{
    position:static;
    display:flex;
    flex-direction:column;
    width:100%;
  }

  .mw-product-gallery{
    order:1;
    width:100%;
  }

  .mw-product-gallery-wrap .product-thumbs{
    order:2;
    width:calc(100% - 28px);
    height:auto;
    margin:9px auto 0;
    overflow:hidden;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-wrapper{
    align-items:center;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide{
    width:64px !important;
    height:68px !important;
    flex-shrink:0;
    overflow:hidden;
    border:1px solid transparent;
    border-radius:5px;
    background:#f5f5f2;
    opacity:.5;
  }

  .mw-product-gallery-wrap .product-thumbs .swiper-slide-thumb-active{
    border-color:#111;
    opacity:1;
  }

  .mw-product-gallery-wrap .product-thumbs img{
    width:100%;
    height:100%;
    padding:2px;
    object-fit:contain;
  }

}
/* One image per variant, alongside the existing variant fields. */
.variant-image-field{min-width:0;display:grid;gap:6px}
.variant-image-field img{width:54px;height:54px;object-fit:cover;border:1px solid #e2e2dd;border-radius:6px}
.variant-image-field img[hidden]{display:none}
.variant-image-field label{min-width:0;font-size:11px}
.variant-image-field input[type="file"]{max-width:100%;width:100%;font-size:11px;padding:6px}
.variant-image-field small{display:block;color:#777;font-size:10px}
.variant-image-remove{display:flex;align-items:center;gap:6px}
.variant-image-remove input[type="checkbox"]{min-height:0!important;width:auto}
@media(max-width:1100px){
  .variant-generated-head{display:none}
  .variant-generated-row{grid-template-columns:1fr 1fr}
  .variant-generated-name,.variant-image-field,.variant-generated-row input[name*="[sku]"]{grid-column:1 / -1}
}
