/* Weight choices on product detail pages */
.ayed-weight-ready .s-product-options-option-label { display: block; margin-bottom: 12px; }
.ayed-weight-ready .s-product-options-option-content select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; }
.ayed-weight-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; direction: rtl; }
.ayed-weight-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 76px; padding: 10px 12px; border: 1.5px solid #e5ded4; border-radius: 14px; background: #fff; color: #2d2931; text-align: right; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ayed-weight-choice:hover:not(:disabled) { border-color: #9a3940; box-shadow: 0 4px 14px rgba(90, 31, 35, .10); transform: translateY(-1px); }
.ayed-weight-choice:focus-visible { outline: 3px solid #b46a29; outline-offset: 2px; }
.ayed-weight-choice[aria-pressed="true"] { border-color: #8b2630; background: #fff9f5; box-shadow: 0 0 0 1px #8b2630 inset; }
.ayed-weight-icon { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #f6efe5; color: #6b401b; font-size: 19px; font-weight: 800; line-height: 1; direction: ltr; }
.ayed-weight-choice[aria-pressed="true"] .ayed-weight-icon { background: #8b2630; color: #fff; }
.ayed-weight-name { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.45; }
.ayed-weight-choice:disabled { cursor: not-allowed; opacity: .48; }
@media (min-width: 640px) { .ayed-weight-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ayed-weight-choice { flex-direction: column; justify-content: center; min-height: 105px; gap: 8px; padding: 10px 6px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .ayed-weight-choice { transition: none; } }


/* Live title price and compact phone options */
[data-testid="store-product-price"].ayed-top-price-ready > :not(.ayed-live-price) { display: none !important; }
.ayed-live-price { color: #292531; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
#ayed-mobile-weight-panel { display: none; }
@media (max-width: 767px) {
  .ayed-weight-mobile-source { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; }
  #ayed-mobile-weight-panel { display: block; width: 100%; margin: 10px 0 16px; padding: 12px; border: 1px solid #ede5d9; border-radius: 14px; background: #fff; }
  .ayed-mobile-weight-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #352b2d; }
  #ayed-mobile-weight-panel .ayed-weight-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #ayed-mobile-weight-panel .ayed-weight-choice { flex-direction: column; justify-content: center; gap: 5px; min-height: 74px; padding: 6px 2px; border-radius: 10px; text-align: center; transform: none; }
  #ayed-mobile-weight-panel .ayed-weight-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; font-size: 14px; }
  #ayed-mobile-weight-panel .ayed-weight-name { font-size: 10px; line-height: 1.25; }
}


@media (max-width: 767px) {
  salla-product-options:has(.ayed-weight-mobile-source):not(:has(.s-product-options-option-container:not(.ayed-weight-mobile-source))) {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
}


/* Product title inside the image on phones */
.ayed-mobile-product-title { display: none; }
@media (max-width: 767px) {
  body.ayed-image-title-ready [data-testid="store-product-title"] { display: none !important; }
  salla-slider[data-testid="store-product-image-slider"] { position: relative; }
  salla-slider[data-testid="store-product-image-slider"] .s-slider-container > .ayed-mobile-product-title:first-of-type {
    display: block;
    position: absolute;
    z-index: 4;
    inset-inline: 0;
    bottom: 0;
    margin: 0;
    padding: 24px 14px 13px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96) 32%, #fff 100%);
    color: #242833;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
    pointer-events: none;
  }
  salla-slider[data-testid="store-product-image-slider"] .btn--wishlist.s-button-wrap { bottom: 100px !important; }
  #ayed-mobile-weight-panel { margin-top: 8px; }
}
/* Approved product layout — MIS Pay purple */
[id^="product-"]{--ayed-purple:#6222d0;--ayed-purple-pale:#faf7ff}
[id^="product-"] .ayed-weight-choice:hover:not(:disabled){border-color:var(--ayed-purple);box-shadow:0 4px 14px rgb(98 34 208 / 12%)}
[id^="product-"] .ayed-weight-choice:focus-visible{outline-color:var(--ayed-purple)}
[id^="product-"] .ayed-weight-choice[aria-pressed="true"]{border-color:var(--ayed-purple);background:var(--ayed-purple-pale);box-shadow:0 0 0 1px var(--ayed-purple) inset}
[id^="product-"] .ayed-weight-choice[aria-pressed="true"] .ayed-weight-icon{background:var(--ayed-purple);color:#fff}
[id^="product-"] [data-testid="store-product-add-to-cart"]{background:var(--ayed-purple)!important;border-color:var(--ayed-purple)!important;color:#fff!important}
[id^="product-"] [data-testid="store-product-add-to-cart"]:hover{background:#5119b4!important;border-color:#5119b4!important}
#ayed-mobile-extra-options-panel{display:none}
@media(max-width:767px){
  [id^="product-"]>.sidebar salla-slider[data-testid="store-product-image-slider"]>.ayed-mobile-product-title{display:block!important;position:absolute!important;inset:auto 0 0!important;width:100%!important;margin:0!important;padding:44px 16px 14px!important;background:linear-gradient(to bottom,rgb(255 255 255 / 0%),rgb(255 255 255 / 94%) 62%,#fff);color:#29252a!important;font-size:20px!important;font-weight:800!important;line-height:1.5!important;text-align:right;pointer-events:none}
  .ayed-image-title-ready [id^="product-"] .main-content h1[data-testid="store-product-title"]{display:none!important}
  [id^="product-"]>.sidebar>.ayed-mobile-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;direction:rtl;min-height:62px;margin:0 4px 8px;padding:8px 12px 9px;border-bottom:1px solid #e4dbd0}
  .ayed-mobile-price-value{color:#6222d0;font-size:27px;font-weight:800;line-height:1.3;white-space:nowrap}
  .ayed-mobile-price-value i{font-size:.78em}
  .ayed-mobile-price-stars{color:#d7a444;font-size:20px;letter-spacing:1px;white-space:nowrap}
  .ayed-mobile-price-ready [id^="product-"] .main-content>[data-testid="store-product-price"],.ayed-mobile-price-ready [id^="product-"] .main-content>salla-rating-stars[data-testid="store-product-rating"]{display:none!important}
  [id^="product-"]>.sidebar>#ayed-mobile-weight-panel,[id^="product-"]>.sidebar>#ayed-mobile-extra-options-panel{display:block;width:100%;margin:4px 0 14px;padding:14px 12px;border:1px solid #e4dbd0;border-radius:18px;background:#fff}
  [id^="product-"] .ayed-mobile-weight-title{margin:0 0 12px;font-size:15px;font-weight:700}
  [id^="product-"] #ayed-mobile-weight-panel .ayed-weight-choices,[id^="product-"] #ayed-mobile-extra-options-panel .ayed-weight-choices{grid-template-columns:repeat(var(--ayed-choice-cols,4),minmax(0,1fr));gap:6px}
  [id^="product-"] #ayed-mobile-weight-panel .ayed-weight-choice,[id^="product-"] #ayed-mobile-extra-options-panel .ayed-weight-choice{position:relative;flex-direction:column;justify-content:center;gap:6px;min-height:86px;padding:8px 3px;border:1.5px solid #e4dbd0;border-radius:15px;background:#fffdfa;text-align:center;box-shadow:0 2px 0 rgb(52 38 19 / 6%);transform:none}
  [id^="product-"] #ayed-mobile-weight-panel .ayed-weight-choice[aria-pressed="true"],[id^="product-"] #ayed-mobile-extra-options-panel .ayed-weight-choice[aria-pressed="true"]{border-color:var(--ayed-purple);background:var(--ayed-purple-pale);box-shadow:0 0 0 1px var(--ayed-purple) inset,0 2px 0 rgb(52 38 19 / 6%)}
  [id^="product-"] .ayed-weight-choice[aria-pressed="true"]::after{content:'';position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--ayed-purple)}
  [id^="product-"] #ayed-mobile-weight-panel .ayed-weight-icon,[id^="product-"] #ayed-mobile-extra-options-panel .ayed-weight-icon{flex:0 0 36px;width:36px;height:36px;border-radius:10px;font-size:17px}
  [id^="product-"] #ayed-mobile-weight-panel .ayed-weight-name,[id^="product-"] #ayed-mobile-extra-options-panel .ayed-weight-name{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
}
/* Keep the mobile price row off desktop. */
.ayed-mobile-price-row{display:none}


/* Color only the actual cart button, keeping Salla's quick-buy controls clear. */
[id^="product-"] salla-add-product-button[data-testid="store-product-add-to-cart"],[id^="product-"] salla-button[data-testid="store-product-add-to-cart"],[id^="product-"] salla-quick-buy[data-testid="store-product-add-to-cart"]{background:transparent!important;border-color:transparent!important;color:inherit!important}
[id^="product-"] salla-add-product-button[data-testid="store-product-add-to-cart"]:hover,[id^="product-"] salla-button[data-testid="store-product-add-to-cart"]:hover,[id^="product-"] salla-quick-buy[data-testid="store-product-add-to-cart"]:hover{background:transparent!important;border-color:transparent!important}


/* Cart shortcut beside wishlist on the mobile product image. */
[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .ayed-image-cart{display:none}
@media(max-width:767px){
[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .s-slider-container>.ayed-image-cart{position:absolute;right:66px;bottom:100px;z-index:3;display:flex;align-items:center;justify-content:center;width:42px;height:40px;padding:0;border:1px solid #e5e7eb;border-radius:50%;background:#fff;color:#262335;box-shadow:0 2px 8px rgb(0 0 0 / 6%);cursor:pointer;transition:color .18s ease,border-color .18s ease,box-shadow .18s ease}
[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .ayed-image-cart svg{width:20px;height:20px}
[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .ayed-image-cart:hover{color:#6222d0;border-color:#6222d0;box-shadow:0 3px 10px rgb(98 34 208 / 16%)}
[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .ayed-image-cart:focus-visible{outline:3px solid #6222d0;outline-offset:2px}
}
@media(prefers-reduced-motion:reduce){[id^="product-"] salla-slider[data-testid="store-product-image-slider"] .ayed-image-cart{transition:none}}

/* Show the exact folded ribbon already printed on the 1447 product image. */
custom-salla-product-card[id="596251737"] .s-product-card-image img.s-product-card-image-cover{object-position:center top!important}
custom-salla-product-card[id="596251737"] .s-product-card-wishlist-btn{left:auto!important;right:8px!important}