/* =========================================================
   Selora PDP
   ========================================================= */

   *{
    box-sizing:border-box;
  }
  
  html,
  body{
    margin:0;
    padding:0;
  }
  
  body.pdp-body{
    background:#fff;
    color:rgba(0,0,0,.86);
  }
  
  body.pdp-viewer-open{
    overflow:hidden;
  }

  /*
    فونت و استایل لینک‌ها فقط داخل اجزای اختصاصی PDP اعمال می‌شود.
    هدر اصلی سایت خارج از این محدوده است و استایل صفحه اصلی را حفظ می‌کند.
  */
  .pdp-container,
  .pdp-mobile-buybar,
  .pdp-color-modal,
  .pdp-otp-backdrop,
  .pdp-image-viewer{
    font-family:IRANSansX,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  }

  .pdp-container a,
  .pdp-mobile-buybar a,
  .pdp-color-modal a,
  .pdp-otp-backdrop a,
  .pdp-image-viewer a{
    color:inherit;
    text-decoration:none;
  }
  
  /* =========================================================
     Main
     ========================================================= */
  
  .pdp-container{
    width:min(1180px,100%);
    margin:0 auto;
    padding:16px 16px 46px;
  }
  
  .pdp-breadcrumb{
    margin:2px 0 15px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    color:rgba(0,0,0,.46);
    font-size:11px;
    font-weight:430;
    line-height:1.8;
  }
  
  .pdp-breadcrumb a:hover{
    color:#2d38c6;
  }
  
  .pdp-main{
    display:grid;
    grid-template-columns:minmax(0,1.04fr) minmax(340px,.96fr);
    gap:34px;
    align-items:start;
  }
  
  /* =========================================================
     Gallery
     ========================================================= */
  
  .pdp-gallery{
    position:relative;
    min-width:0;
  }
  
  .pdp-gallery__viewport{
    overflow:hidden;
    border:1px solid rgba(0,0,0,.055);
    border-radius:21px;
    background:#fff;
  }
  
  .pdp-gallery__track{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  
  .pdp-gallery__track::-webkit-scrollbar{
    display:none;
  }
  
  .pdp-gallery__slide{
    flex:0 0 100%;
    aspect-ratio:1 / 1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    background:#fff;
    cursor:zoom-in;
    scroll-snap-align:center;
  }
  
  .pdp-gallery__slide img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
  }
  
  .pdp-gallery__dots{
    min-height:27px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
  
  .pdp-gallery__dot{
    width:7px;
    height:7px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(0,0,0,.17);
    cursor:pointer;
    transition:width .16s ease,background .16s ease;
  }
  
  .pdp-gallery__dot.is-active{
    width:18px;
    background:var(--shop-btn-bg,#2d38c6);
  }
  
  .pdp-discount-badge{
    position:absolute;
    top:14px;
    right:14px;
    z-index:4;
    min-height:29px;
    padding:5px 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:11px;
    font-weight:680;
  }
  
  .pdp-snapp-badge{
    position:absolute;
    top:14px;
    left:14px;
    z-index:4;
    min-height:29px;
    padding:5px 8px;
    display:inline-flex;
    align-items:center;
    gap:4px;
    border:1px solid rgba(0,0,0,.065);
    border-radius:999px;
    background:rgba(255,255,255,.95);
    color:rgba(0,0,0,.82);
    font-size:10px;
    font-weight:620;
  }
  
  .pdp-snapp-badge img{
    width:17px;
    height:17px;
    display:block;
  }
  
  /* =========================================================
     Store identity
     ========================================================= */
  
  .pdp-info{
    padding:2px 0;
  }
  
  .pdp-shop-identity{
    width:max-content;
    max-width:100%;
    padding:7px 8px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(0,0,0,.055);
    border-radius:13px;
    background:rgba(0,0,0,.014);
    color:rgba(0,0,0,.78);
    transition:background .15s ease,border-color .15s ease,transform .12s ease;
  }
  
  .pdp-shop-identity:hover{
    border-color:rgba(0,0,0,.1);
    background:rgba(0,0,0,.03);
  }
  
  .pdp-shop-identity:active{
    transform:scale(.985);
  }
  
  .pdp-shop-identity__avatar{
    width:35px;
    height:35px;
    flex:0 0 35px;
    border:1px solid rgba(0,0,0,.045);
    border-radius:11px;
    object-fit:cover;
  }
  
  .pdp-shop-identity__texts{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:1px;
  }
  
  .pdp-shop-identity__texts small{
    color:rgba(0,0,0,.4);
    font-size:9px;
    font-weight:460;
  }
  
  .pdp-shop-identity__texts strong{
    max-width:260px;
    overflow:hidden;
    color:rgba(0,0,0,.74);
    font-size:12px;
    font-weight:640;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  
  .pdp-shop-identity__arrow{
    width:17px;
    height:17px;
    color:rgba(0,0,0,.36);
  }
  
  /* =========================================================
     Product info
     ========================================================= */
  
  .pdp-title{
    margin:14px 0 12px;
    color:rgba(0,0,0,.87);
    font-size:22px;
    font-weight:680;
    line-height:1.85;
  }
  
  /*
    قیمت در دسکتاپ و موبایل:
    چپ‌چین و یک‌خطی
    قیمت فروش سمت چپ با تومان
    قیمت قبلی سمت راست و بدون تومان
  */
  .pdp-prices{
    min-height:32px;
    margin-bottom:12px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    direction:ltr;
    text-align:left;
  }
  
  .pdp-prices__sale{
    order:1;
    direction:rtl;
    color:rgba(0,0,0,.87);
    font-size:20px;
    font-weight:700;
  }
  
  .pdp-prices__sale span{
    font-size:11px;
    font-weight:520;
  }
  
  .pdp-prices__old{
    order:2;
    color:rgba(0,0,0,.39);
    font-size:12px;
    font-weight:440;
  }
  
  .pdp-section{
    margin-top:21px;
    padding-top:15px;
    border-top:1px solid rgba(0,0,0,.065);
  }
  
  .pdp-section h2{
    margin:0 0 9px;
    color:rgba(0,0,0,.79);
    font-size:14px;
    font-weight:640;
  }
  
  .pdp-description,
  .pdp-benefits{
    color:rgba(0,0,0,.62);
    font-size:13px;
    font-weight:400;
    line-height:2.08;
  }
  
  .pdp-benefits{
    margin:0;
    padding:0 18px 0 0;
  }
  
  /* =========================================================
     Desktop purchase box
     ========================================================= */
  
  .pdp-desktop-purchase{
    margin-top:25px;
    padding:15px;
    border:1px solid rgba(0,0,0,.06);
    border-radius:16px;
    background:#fff;
  }
  
  .pdp-desktop-purchase__header{
    margin-bottom:13px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
  }
  
  .pdp-desktop-purchase__header h2{
    margin:0 0 4px;
    color:rgba(0,0,0,.78);
    font-size:14px;
    font-weight:640;
  }
  
  .pdp-desktop-purchase__header p{
    margin:0;
    color:rgba(0,0,0,.43);
    font-size:11px;
    font-weight:400;
  }
  
  .pdp-desktop-purchase__price{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    direction:ltr;
    text-align:left;
    white-space:nowrap;
  }
  
  .pdp-desktop-purchase__price strong{
    order:1;
    direction:rtl;
    color:rgba(0,0,0,.84);
    font-size:15px;
    font-weight:680;
  }
  
  .pdp-desktop-purchase__price span{
    font-size:10px;
    font-weight:500;
  }
  
  .pdp-desktop-purchase__price del{
    order:2;
    color:rgba(0,0,0,.38);
    font-size:11px;
    font-weight:430;
  }
  
  /* =========================================================
     Purchase CTA
     ========================================================= */
  
  .pdp-purchase-actions,
  .pdp-mobile-buybar__actions{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  
  /*
    پس از افزودن:
    ۷۵٪ سمت چپ دکمه رفتن به سبد
    ۲۵٪ سمت راست کنترل تعداد
  */
  .pdp-purchase-actions.is-active,
  .pdp-mobile-buybar__actions.is-active{
    grid-template-columns:minmax(0,3fr) minmax(100px,1fr);
    direction:ltr;
  }
  
  .pdp-add-slot{
    min-width:0;
    grid-column:1;
  }
  
  .pdp-purchase-actions.is-active .pdp-add-slot,
  .pdp-mobile-buybar__actions.is-active .pdp-add-slot{
    grid-column:2;
    grid-row:1;
  }
  
  .pdp-go-cart{
    min-height:48px;
    padding:0 14px;
    display:none;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(45,56,198,.12);
    border-radius:11px;
    background:#2d38c6;
    color:#fff !important;
    font-size:12px;
    font-weight:620;
    line-height:1;
    text-align:center;
    white-space:nowrap;
    transition:opacity .15s ease,transform .12s ease;
  }
  
  .pdp-purchase-actions.is-active .pdp-go-cart,
  .pdp-mobile-buybar__actions.is-active .pdp-go-cart{
    grid-column:1;
    grid-row:1;
    display:flex;
  }
  
  .pdp-go-cart:active{
    opacity:.9;
    transform:scale(.985);
  }
  
  .pdp-add-button{
    width:100%;
    min-height:48px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:var(--shop-btn-bg,#2d38c6);
    color:var(--shop-btn-fg,#fff) !important;
    font-size:13px;
    font-weight:640;
    line-height:1;
    text-align:center;
    cursor:pointer;
    transition:opacity .15s ease,transform .12s ease;
  }
  
  .pdp-add-button:active{
    opacity:.9;
    transform:scale(.985);
  }
  
  /*
    ظاهر کنترل تعداد شبیه کنترل مودال فروشگاه:
    باکس یکپارچه با + و - در دو طرف و عدد وسط
  */
  .pdp-quantity-control{
    width:100%;
    min-height:48px;
    display:grid;
    grid-template-columns:32px minmax(28px,1fr) 32px;
    align-items:center;
    overflow:hidden;
    border:1px solid rgba(0,0,0,.08);
    border-radius:11px;
    background:#fff;
  }
  
  .pdp-quantity-btn{
    width:32px;
    height:46px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:rgba(0,0,0,.04);
    color:rgba(0,0,0,.78);
    font-family:inherit;
    font-size:19px;
    font-weight:620;
    line-height:1;
    cursor:pointer;
    transition:background .12s ease,transform .12s ease;
  }
  
  .pdp-quantity-btn:hover{
    background:rgba(0,0,0,.075);
  }
  
  .pdp-quantity-btn:active{
    background:rgba(0,0,0,.1);
    transform:scale(.94);
  }
  
  .pdp-quantity-value{
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(0,0,0,.78);
    font-size:14px;
    font-weight:620;
    text-align:center;
  }
  
  /* =========================================================
     Related products
     ========================================================= */
  
  .pdp-related{
    margin-top:44px;
    padding-top:21px;
    border-top:1px solid rgba(0,0,0,.065);
    background:#fff;
  }
  
  .pdp-related__head{
    margin-bottom:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  
  .pdp-related__head h2{
    margin:0;
    color:rgba(0,0,0,.82);
    font-size:17px;
    font-weight:640;
  }
  
  .pdp-related__shop-link{
    display:inline-flex;
    align-items:center;
    gap:3px;
    color:#2d38c6 !important;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
  }
  
  .pdp-related__shop-link svg{
    width:18px;
    height:18px;
    display:block;
  }
  
  .pdp-related__scroller{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:13px;
    background:#fff;
  }
  
  .pdp-related-card{
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(0,0,0,.055);
    border-radius:16px;
    background:#fff;
    transition:transform .14s ease,border-color .14s ease;
  }
  
  .pdp-related-card:hover{
    border-color:rgba(0,0,0,.1);
    transform:translateY(-2px);
  }
  
  .pdp-related-card__image{
    position:relative;
    aspect-ratio:1 / 1;
    overflow:hidden;
    background:#fff;
  }
  
  .pdp-related-card__image > img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
  }
  
  .pdp-related-card__discount{
    position:absolute;
    top:8px;
    right:8px;
    min-height:23px;
    padding:4px 6px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:9px;
    font-weight:650;
  }
  
  .pdp-related-card__snapp{
    position:absolute;
    top:8px;
    left:8px;
    min-height:23px;
    padding:3px 6px;
    display:inline-flex;
    align-items:center;
    gap:3px;
    border:1px solid rgba(0,0,0,.055);
    border-radius:999px;
    background:rgba(255,255,255,.95);
    color:rgba(0,0,0,.78);
    font-size:9px;
    font-weight:600;
  }
  
  .pdp-related-card__snapp img{
    width:13px;
    height:13px;
    display:block;
  }
  
  .pdp-related-card h3{
    margin:9px 9px 6px;
    overflow:hidden;
    color:rgba(0,0,0,.77);
    font-size:12px;
    font-weight:570;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  
  /*
    قیمت سایر محصولات:
    چپ‌چین و یک‌خطی
  */
  .pdp-related-card__prices{
    min-height:34px;
    padding:0 9px 9px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    direction:ltr;
    text-align:left;
  }
  
  .pdp-related-card__prices strong{
    order:1;
    direction:rtl;
    color:rgba(0,0,0,.81);
    font-size:12px;
    font-weight:650;
    white-space:nowrap;
  }
  
  .pdp-related-card__prices span{
    font-size:9px;
    font-weight:480;
  }
  
  .pdp-related-card__prices del{
    order:2;
    color:rgba(0,0,0,.37);
    font-size:10px;
    font-weight:420;
    white-space:nowrap;
  }
  
  /* =========================================================
     Mobile buybar
     ========================================================= */
  
  .pdp-mobile-buybar{
    display:none;
  }
  
  /* =========================================================
     Color modal
     ========================================================= */
  
  .pdp-color-modal,
  .pdp-otp-backdrop{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(0,0,0,.48);
  }
  
  .pdp-color-modal__box,
  .pdp-otp-modal{
    width:min(360px,100%);
    padding:20px;
    border-radius:18px;
    background:#fff;
    text-align:center;
  }
  
  .pdp-color-modal__box h3,
  .pdp-otp-modal h3{
    margin:0 0 14px;
    color:rgba(0,0,0,.8);
    font-size:15px;
    font-weight:640;
  }
  
  #color-options{
    margin-bottom:13px;
  }
  
  .pdp-color-option{
    margin:4px;
    padding:9px 11px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid rgba(0,0,0,.09);
    border-radius:9px;
    background:#eef0f2;
    color:rgba(0,0,0,.75);
    font-family:inherit;
    font-size:12px;
    font-weight:560;
    cursor:pointer;
    transition:background .12s ease,transform .12s ease;
  }
  
  .pdp-color-option:hover{
    background:#e3e6e9;
  }
  
  .pdp-color-option:active{
    background:#d9dde1;
    transform:scale(.98);
  }
  
  .pdp-color-option__dot{
    width:14px;
    height:14px;
    flex:0 0 14px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:999px;
  }
  
  .pdp-color-modal__close,
  .pdp-otp-modal button{
    min-height:42px;
    padding:0 14px;
    border:0;
    border-radius:10px;
    background:var(--shop-btn-bg,#2d38c6);
    color:var(--shop-btn-fg,#fff);
    font-family:inherit;
    font-size:12px;
    font-weight:620;
    cursor:pointer;
  }
  
  /* =========================================================
     Viewer
     ========================================================= */
  
  .pdp-image-viewer{
    position:fixed;
    inset:0;
    z-index:2000;
    display:none;
    overflow:hidden;
    background:rgba(0,0,0,.94);
    touch-action:none;
  }
  
  .pdp-image-viewer.is-open{
    display:block;
  }
  
  .pdp-image-viewer__stage{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    touch-action:none;
  }
  
  .pdp-image-viewer__stage img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
    transform-origin:center center;
    will-change:transform;
  }
  
  .pdp-image-viewer__close{
    position:absolute;
    top:calc(14px + env(safe-area-inset-top));
    left:14px;
    z-index:4;
    width:42px;
    height:42px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:30px;
    font-weight:300;
    line-height:1;
    cursor:pointer;
  }
  
  .pdp-image-viewer__nav{
    position:absolute;
    top:50%;
    z-index:4;
    width:42px;
    height:54px;
    padding:0;
    border:0;
    border-radius:12px;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:32px;
    font-weight:300;
    transform:translateY(-50%);
    cursor:pointer;
  }
  
  .pdp-image-viewer__nav--prev{
    right:14px;
  }
  
  .pdp-image-viewer__nav--next{
    left:14px;
  }
  
  .pdp-image-viewer__counter{
    position:absolute;
    right:50%;
    bottom:calc(18px + env(safe-area-inset-bottom));
    z-index:4;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:12px;
    font-weight:560;
    transform:translateX(50%);
  }
  
  /* =========================================================
     OTP
     ========================================================= */
  
  .pdp-otp-modal{
    position:relative;
  }
  
  .pdp-otp-modal p{
    color:rgba(0,0,0,.56);
    font-size:12px;
    font-weight:400;
    line-height:1.9;
  }
  
  .pdp-otp-close{
    position:absolute;
    top:10px;
    left:10px;
    width:34px;
    min-height:34px !important;
    padding:0 !important;
    background:rgba(0,0,0,.055) !important;
    color:#111 !important;
  }
  
  #otp-step-phone,
  #otp-step-code{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  
  #otp-step-phone input,
  #otp-step-code input{
    width:100%;
    height:46px;
    padding:0 12px;
    border:1px solid rgba(0,0,0,.11);
    border-radius:10px;
    outline:none;
    direction:ltr;
    font-family:inherit;
    text-align:left;
  }
  
  .pdp-otp-secondary{
    background:rgba(0,0,0,.055) !important;
    color:#111 !important;
  }
  
  .pdp-otp-msg{
    min-height:20px;
    margin-bottom:8px;
    color:#c0392b;
    font-size:12px;
    font-weight:500;
    line-height:1.8;
  }
  
  /* =========================================================
     Mobile
     ========================================================= */
  
  @media(max-width:760px){
  
    .pdp-container{
      padding:10px 12px 112px;
    }
  
    .pdp-main{
      display:block;
    }
  
    .pdp-gallery__viewport{
      border-radius:16px;
    }
  
    .pdp-discount-badge{
      top:11px;
      right:11px;
    }
  
    .pdp-snapp-badge{
      top:11px;
      left:11px;
    }
  
    .pdp-shop-identity{
      padding:6px 7px;
    }
  
    .pdp-shop-identity__avatar{
      width:31px;
      height:31px;
      flex-basis:31px;
    }
  
    .pdp-shop-identity__texts strong{
      max-width:210px;
      font-size:11px;
    }
  
    .pdp-title{
      margin-top:11px;
      margin-bottom:10px;
      font-size:18px;
      font-weight:650;
    }
  
    .pdp-prices__sale{
      font-size:18px;
      font-weight:680;
    }
  
    .pdp-description,
    .pdp-benefits{
      font-size:12.5px;
      font-weight:390;
    }
  
    .pdp-desktop-purchase{
      display:none;
    }
  
    .pdp-related{
      margin-top:28px;
    }
  
    .pdp-related__head h2{
      font-size:15px;
    }
  
    .pdp-related__scroller{
      display:flex;
      gap:10px;
      overflow-x:auto;
      padding-bottom:4px;
      background:#fff;
      scrollbar-width:none;
      -webkit-overflow-scrolling:touch;
    }
  
    .pdp-related__scroller::-webkit-scrollbar{
      display:none;
    }
  
    .pdp-related-card{
      flex:0 0 148px;
    }
  
    .pdp-mobile-buybar{
      position:fixed;
      right:0;
      bottom:0;
      left:0;
      z-index:90;
      min-height:72px;
      padding:9px 12px calc(9px + env(safe-area-inset-bottom));
      display:flex;
      align-items:center;
      gap:10px;
      border-top:1px solid rgba(0,0,0,.065);
      background:#fff;
      box-shadow:0 -10px 24px rgba(0,0,0,.055);
    }
  
    .pdp-mobile-buybar__price{
      min-width:106px;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:2px;
      direction:rtl;
      text-align:right;
    }
  
    .pdp-mobile-buybar__price del{
      color:rgba(0,0,0,.38);
      font-size:10px;
      font-weight:420;
    }
  
    .pdp-mobile-buybar__price strong{
      color:rgba(0,0,0,.84);
      font-size:13px;
      font-weight:660;
      white-space:nowrap;
    }
  
    .pdp-mobile-buybar__price span{
      font-size:9px;
      font-weight:480;
    }
  
    .pdp-mobile-buybar__actions{
      min-width:0;
      flex:1;
    }
  
    .pdp-purchase-actions.is-active,
    .pdp-mobile-buybar__actions.is-active{
      grid-template-columns:minmax(0,3fr) minmax(94px,1fr);
      gap:7px;
    }
  
    .pdp-go-cart{
      padding-inline:9px;
      font-size:11px;
    }
  
    .pdp-quantity-control{
      grid-template-columns:29px minmax(25px,1fr) 29px;
    }
  
    .pdp-quantity-btn{
      width:29px;
      height:46px;
      font-size:18px;
    }
  
    .pdp-quantity-value{
      font-size:13px;
    }
  
    .pdp-image-viewer__nav{
      width:36px;
      height:48px;
    }
  
    .pdp-image-viewer__nav--prev{
      right:8px;
    }
  
    .pdp-image-viewer__nav--next{
      left:8px;
    }
  }

  /* =========================================================
   PDP header typography override
   هدر PDP دقیقاً با وزن متوسط نمایش داده شود
   ========================================================= */

body.pdp-body header,
body.pdp-body header a,
body.pdp-body header button,
body.pdp-body header span,
body.pdp-body header strong,
body.pdp-body header small,
body.pdp-body header div,
body.pdp-body header input,
body.pdp-body header label{
  font-weight:500 !important;
}

/*
  اگر هدر اصلی با کلاس‌های اختصاصی رندر شود،
  این selectorها نیز وزن را قطعی می‌کنند.
*/
body.pdp-body .site-header,
body.pdp-body .site-header *,
body.pdp-body .home-header,
body.pdp-body .home-header *,
body.pdp-body .market-header,
body.pdp-body .market-header *,
body.pdp-body .main-header,
body.pdp-body .main-header *{
  font-weight:500 !important;
}

/*
  وزن placeholder سرچ نیز مثل صفحه اصلی باشد.
*/
body.pdp-body header input::placeholder{
  font-weight:500 !important;
}

/* ========================================
   PDP mobile buybar fallback
   ======================================== */

   .pdp-add-slot {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .pdp-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    width: 100%;
    min-height: 44px;
  
    padding: 0 14px;
  
    border: 0;
    border-radius: 12px;
  
    color: var(--shop-btn-fg, #ffffff);
    background: var(--shop-btn-bg, #2d38c6);
  
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
  
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .pdp-mobile-buybar {
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 110;
  
      display: flex !important;
      align-items: center;
      gap: 10px;
  
      padding:
        10px
        12px
        calc(
          10px
          + env(
              safe-area-inset-bottom
            )
        );
  
      border-top:
        1px solid
        rgba(
          0,
          0,
          0,
          0.08
        );
  
      background:
        rgba(
          255,
          255,
          255,
          0.97
        );
  
      box-shadow:
        0 -8px 24px
        rgba(
          20,
          28,
          66,
          0.08
        );
  
      backdrop-filter:
        blur(
          12px
        );
    }
  
    .pdp-mobile-buybar__actions {
      display: flex;
      flex: 1 1 auto;
      gap: 8px;
      min-width: 0;
    }
  
    .pdp-mobile-buybar .pdp-add-slot {
      display: flex !important;
      flex: 1 1 auto;
      min-width: 0;
    }
  
    .pdp-mobile-buybar .pdp-add-btn {
      display: inline-flex !important;
      width: 100%;
    }
  
    .pdp-mobile-buybar .pdp-go-cart {
      flex: 1 1 auto;
    }
  
    .pdp-body {
      padding-bottom: 88px;
    }
  }
  
  @media (min-width: 769px) {
    .pdp-mobile-buybar {
      display: none !important;
    }
  }

  /* =========================================================
   PDP Variant Modal — polished UI
   ========================================================= */

.pdp-color-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;

  align-items: flex-end;
  justify-content: center;

  padding: 16px;

  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pdp-color-modal__box {
  width: min(100%, 520px);
  max-height: min(88vh, 680px);

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px 22px 16px 16px;

  background: #fff;

  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.22),
    0 4px 14px rgba(15, 23, 42, 0.08);

  animation: pdpVariantModalIn 0.22s ease-out;
}

@keyframes pdpVariantModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pdp-color-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  padding: 18px 18px 15px;

  border-bottom: 1px solid #eef0f5;

  background:
    linear-gradient(
      180deg,
      rgba(45, 56, 198, 0.045),
      rgba(45, 56, 198, 0)
    );
}

.pdp-color-modal__heading {
  min-width: 0;
}

.pdp-color-modal__heading h3 {
  margin: 0;

  color: #1d2448;

  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
}

.pdp-color-modal__heading p {
  margin: 4px 0 0;

  color: #7a8098;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
}

.pdp-color-modal__x {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #eaecf2;
  border-radius: 11px;

  background: #fff;
  color: #6b7280;

  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
}

.pdp-color-modal__x:active {
  transform: scale(0.96);
}

.pdp-color-modal__body {
  overflow-y: auto;

  display: grid;
  gap: 18px;

  padding: 17px 18px;
}

.pdp-variant-section {
  display: grid;
  gap: 10px;
}

.pdp-variant-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdp-variant-section__title {
  color: #252b48;

  font-size: 13px;
  font-weight: 900;
}

.pdp-variant-section__head small {
  color: #979caf;

  font-size: 10.5px;
  font-weight: 500;
}

.pdp-variant-options,
#color-options,
#size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pdp-color-option {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 8px 13px;

  border: 1px solid #e2e5ed;
  border-radius: 12px;

  background: #fff;
  color: #3b4058;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.1s ease;
}

.pdp-color-option:hover:not(:disabled) {
  border-color: rgba(45, 56, 198, 0.42);

  background: rgba(45, 56, 198, 0.035);
}

.pdp-color-option:active:not(:disabled) {
  transform: scale(0.98);
}

.pdp-color-option.is-selected {
  border-color: #2d38c6;

  background: rgba(45, 56, 198, 0.08);
  color: #2731ac;

  box-shadow: 0 0 0 3px rgba(45, 56, 198, 0.1);
}

.pdp-color-option:disabled {
  opacity: 0.42;

  background: #f4f5f8;
  color: #9ca3af;

  cursor: not-allowed;
}

.pdp-color-option__dot {
  width: 16px;
  height: 16px;

  flex: 0 0 16px;

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;

  box-shadow: 0 0 0 2px #fff;
}

.pdp-size-option {
  min-width: 52px;
}

.pdp-variant-message {
  display: none;

  padding: 10px 12px;

  border: 1px solid #fecaca;
  border-radius: 11px;

  background: #fff1f2;
  color: #b91c1c;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.pdp-color-modal__footer {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 9px;

  padding: 14px 18px 18px;

  border-top: 1px solid #eef0f5;

  background: #fff;
}

.pdp-color-modal__cancel,
.pdp-variant-confirm {
  min-height: 46px;

  border-radius: 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 0.1s ease,
    opacity 0.16s ease,
    background-color 0.16s ease;
}

.pdp-color-modal__cancel {
  border: 1px solid #e4e7ed;

  background: #fff;
  color: #6b7280;
}

.pdp-variant-confirm {
  border: 0;

  background: var(--shop-btn-bg, #2d38c6);
  color: var(--shop-btn-fg, #fff);
}

.pdp-color-modal__cancel:active,
.pdp-variant-confirm:active:not(:disabled) {
  transform: scale(0.985);
}

.pdp-variant-confirm:disabled {
  opacity: 0.42;

  cursor: not-allowed;
}

/* =========================================================
   PDP purchase action layout
   cart button = left 75%
   quantity block = right 25%
   ========================================================= */

.pdp-purchase-actions,
.pdp-mobile-buybar__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(94px, 1fr);
  grid-template-areas: "cart quantity";
  gap: 8px;

  align-items: stretch;

  direction: ltr;
}

.pdp-purchase-actions .pdp-go-cart,
.pdp-mobile-buybar__actions .pdp-go-cart {
  grid-area: cart;

  min-width: 0;

  display: none;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.pdp-purchase-actions .pdp-add-slot,
.pdp-mobile-buybar__actions .pdp-add-slot {
  grid-area: quantity;

  min-width: 0;
}

.pdp-purchase-actions:not(.is-active),
.pdp-mobile-buybar__actions:not(.is-active) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "quantity";
}

.pdp-purchase-actions.is-active .pdp-go-cart,
.pdp-mobile-buybar__actions.is-active .pdp-go-cart {
  display: inline-flex;
}

.pdp-purchase-actions .pdp-add-button,
.pdp-mobile-buybar__actions .pdp-add-button {
  width: 100%;
  min-height: 46px;
}

.pdp-quantity-control {
  width: 100%;
  min-height: 46px;

  display: grid;
  grid-template-columns: 32px minmax(24px, 1fr) 32px;
  gap: 2px;

  align-items: center;

  border: 1px solid rgba(45, 56, 198, 0.2);
  border-radius: 12px;

  background: rgba(45, 56, 198, 0.055);

  direction: ltr;
}

.pdp-quantity-btn {
  width: 32px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 9px;

  background: #fff;
  color: #2d38c6;

  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

.pdp-quantity-btn:active {
  transform: scale(0.94);
}

.pdp-quantity-value {
  color: #1f285d;

  font-size: 14px;
  font-weight: 900;

  text-align: center;
}

@media (min-width: 640px) {
  .pdp-color-modal {
    align-items: center;
  }

  .pdp-color-modal__box {
    border-radius: 20px;
  }
}

@media (max-width: 390px) {
  .pdp-purchase-actions,
  .pdp-mobile-buybar__actions {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .pdp-color-modal {
    padding: 10px;
  }

  .pdp-color-modal__box {
    border-radius: 20px 20px 14px 14px;
  }

  .pdp-color-modal__header {
    padding: 15px 14px 13px;
  }

  .pdp-color-modal__body {
    padding: 15px 14px;
  }

  .pdp-color-modal__footer {
    padding: 12px 14px 14px;
  }
}