/* HF76 — Original HF74 header appearance, plus editable mini-cart. */
.asx-header__actions [data-as-hf75-cart-open]:focus-visible{outline:3px solid var(--shop-cart-active,#b77886);outline-offset:3px;}
.as-hf75-cart-drawer[hidden]{display:none!important;}
.as-hf75-cart-drawer{position:fixed;inset:0;z-index:2147483000;isolation:isolate;display:flex;justify-content:flex-end;}
.as-hf75-cart-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(39,29,33,.48);opacity:0;transition:opacity .26s ease;cursor:default;}
.as-hf75-cart-panel{position:relative;z-index:1;display:flex;flex-direction:column;min-height:0;height:100%;width:min(100%,470px);max-width:470px;margin-left:auto;background:#fffdfa;border-left:1px solid #f0e3e5;box-shadow:-16px 0 56px rgba(32,20,28,.16);transform:translateX(103%);transition:transform .28s cubic-bezier(.22,.85,.25,1);font-family:var(--shop-font-body,Inter,Arial,sans-serif);color:#342c30;outline:0;}
.as-hf75-cart-drawer.is-open .as-hf75-cart-backdrop{opacity:1;}
.as-hf75-cart-drawer.is-open .as-hf75-cart-panel{transform:translateX(0);}
body.as-hf75-cart-open{overflow:hidden!important;}
.as-hf75-cart-header{padding:27px 27px 20px;display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid #f1e5e7;background:#fff;flex:none;}
.as-hf75-cart-eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:#ae7289;}
.as-hf75-cart-header h2{margin:5px 0 0!important;font-family:var(--shop-font-heading,Inter,Arial,sans-serif);font-size:26px;line-height:1.25;font-weight:700;color:#30262a;display:flex;align-items:center;gap:11px;}
.as-hf75-cart-count{display:inline-grid;place-items:center;background:#f8e9ee;color:#a65b78;border-radius:100px;min-width:30px;height:30px;padding:0 8px;font-size:13px;font-weight:700;letter-spacing:0;}
.as-hf75-cart-close{border:1px solid #e7d4d8;background:#fff;color:#56464c;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer;flex:none;}
.as-hf75-cart-close:hover{background:#fbf0f3;color:#914661;}
.as-hf75-cart-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 27px 22px;background:#fffdfa;}
.as-hf75-cart-items{display:flex;flex-direction:column;gap:0;}
.as-hf75-cart-item{display:grid;grid-template-columns:79px minmax(0,1fr);gap:15px;padding:19px 0;border-bottom:1px solid #efe6e8;}
.as-hf75-cart-item__image{display:block;width:79px;height:85px;background:#fff;border:1px solid #f0e7e8;border-radius:15px;overflow:hidden;}
.as-hf75-cart-item__image img{display:block;width:100%;height:100%;object-fit:contain;padding:7px;}
.as-hf75-cart-item__info{display:flex;flex-direction:column;min-width:0;gap:5px;}
.as-hf75-cart-item__name{font-size:14px;line-height:1.42;font-weight:650;color:#3b2f33!important;text-decoration:none!important;overflow-wrap:anywhere;}
.as-hf75-cart-item__name:hover{text-decoration:underline!important;text-decoration-color:#be8398!important;}
.as-hf75-cart-item__variant{font-size:12px;line-height:1.4;color:#82737a;}
.as-hf75-cart-item__meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:6px;font-size:13px;color:#7e6e76;}
.as-hf75-cart-item__meta strong{font-weight:750;color:#93516c;font-size:14px;white-space:nowrap;}
.as-hf75-cart-totals,.as-hf75-cart-discounts{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:20px;font-size:14px;color:#65565c;}
.as-hf75-cart-totals strong{font-size:18px;color:#31282e;white-space:nowrap;}
.as-hf75-cart-discounts{padding-top:8px;font-size:13px;}
.as-hf75-cart-discounts strong{color:#98718a;white-space:nowrap;}
.as-hf75-cart-empty{min-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px 20px;color:#584b50;}
.as-hf75-cart-empty .material-icons{font-size:52px;color:#c494a8;margin-bottom:15px;}
.as-hf75-cart-empty strong{font-size:18px;color:#33292d;}
.as-hf75-cart-empty p{font-size:13px;line-height:1.5;color:#8a7a80;max-width:230px;margin:8px 0 0;}
.as-hf75-cart-loading{font-size:13px;color:#806f75;text-align:center;margin:38px auto;}
.as-hf75-cart-bottom{flex:none;padding:20px 27px max(20px,env(safe-area-inset-bottom));border-top:1px solid #eadfe2;background:#fff;box-shadow:0 -7px 26px rgba(37,23,30,.025);}
.as-hf75-cart-progress{margin-bottom:19px;}
.as-hf75-cart-progress[hidden]{display:none!important;}
.as-hf75-cart-progress__line{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:9px;font-size:12px;color:#735b64;font-weight:650;}
.as-hf75-cart-progress__line span:last-child{color:#a55b77;font-weight:750;white-space:nowrap;}
.as-hf75-cart-progress__track{height:7px;border-radius:30px;background:#f3e6eb;overflow:hidden;}
.as-hf75-cart-progress__track>span{display:block;height:100%;width:0;background:#bc839a;border-radius:inherit;transition:width .32s ease;}
.as-hf75-cart-progress.is-achieved .as-hf75-cart-progress__track>span{background:#5f9880;}
.as-hf75-cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.as-hf75-cart-button{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:50px;border:1px solid #b87d92!important;border-radius:13px!important;font-size:13px;font-weight:750;line-height:1.25;padding:12px 8px;text-decoration:none!important;transition:background .2s,color .2s,transform .2s;}
.as-hf75-cart-button:hover{transform:translateY(-1px);}
.as-hf75-cart-button--outline{color:#a65b78!important;background:#fff!important;}
.as-hf75-cart-button--outline:hover{background:#fff3f6!important;}
.as-hf75-cart-button--primary{background:#b77d93!important;border-color:#b77d93!important;color:#fff!important;}
.as-hf75-cart-button--primary:hover{background:#a3667e!important;color:#fff!important;}
.as-hf75-cart-button--primary[aria-disabled="true"]{opacity:.52;pointer-events:none;}
.as-hf75-cart-hint{font-size:11px;line-height:1.4;color:#92868a;text-align:center;margin:11px 0 0;}
.as-hf75-cart-drawer a:focus-visible,.as-hf75-cart-drawer button:focus-visible{outline:2px solid #b77d93;outline-offset:3px;}
@media(max-width:767.98px){
 .as-hf75-cart-drawer{align-items:flex-end;padding-top:max(env(safe-area-inset-top),12px);box-sizing:border-box;}
 .as-hf75-cart-panel{max-width:none;width:100%;height:auto;max-height:calc(100dvh - max(env(safe-area-inset-top),74px));margin:0;border:0;border-radius:28px 28px 0 0;overflow:hidden;transform:translateY(102%);box-shadow:0 -14px 56px rgba(32,20,28,.14);}
 .as-hf75-cart-drawer.is-open .as-hf75-cart-panel{transform:translateY(0);}
 .as-hf75-cart-header{position:relative;padding:26px 19px 16px;}
 .as-hf75-cart-header::before{content:"";position:absolute;top:10px;left:50%;transform:translateX(-50%);width:54px;height:5px;border-radius:999px;background:#ead6dc;}
 .as-hf75-cart-header h2{font-size:22px;}
 .as-hf75-cart-scroll{flex:0 1 auto;max-height:46dvh;padding:4px 19px 16px;}
 .as-hf75-cart-item{grid-template-columns:70px minmax(0,1fr);gap:13px;padding:17px 0;}
 .as-hf75-cart-item__image{width:70px;height:76px;}
 .as-hf75-cart-bottom{padding:16px 19px max(15px,env(safe-area-inset-bottom));}
 .as-hf75-cart-button{min-height:52px;font-size:13px;}
 .as-hf75-cart-actions{gap:9px;}
}
@media(max-width:350px){.as-hf75-cart-button{font-size:12px;}.as-hf75-cart-header h2{font-size:20px;}}
@media(prefers-reduced-motion:reduce){.as-hf75-cart-backdrop,.as-hf75-cart-panel,.as-hf75-cart-button,.as-hf75-cart-progress__track>span{transition:none!important;}}

/* HF76: product actions inside cart drawer; header appearance inherits HF74. */
.as-hf75-cart-item__controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:10px}
.as-hf75-cart-qty{display:inline-flex;align-items:center;gap:0;border:1px solid #e6d6dc;border-radius:10px;overflow:hidden;background:#fff;max-width:100%;flex:none}
.as-hf75-cart-qty-btn{appearance:none;-webkit-appearance:none;display:grid;place-items:center;padding:0;background:#fff;color:#9d536d;border:0!important;box-shadow:none!important;font:inherit;font-size:19px;font-weight:500;width:36px;height:34px;line-height:1;cursor:pointer;touch-action:manipulation}
.as-hf75-cart-qty-btn:hover:not(:disabled){background:#f9eff2;color:#883e5d}
.as-hf75-cart-qty-btn:disabled{color:#c8b9be;cursor:not-allowed;background:#fdfafb}
.as-hf75-cart-qty-value{min-width:26px;text-align:center;font-size:13px;font-weight:700;color:#3c2d33;font-variant-numeric:tabular-nums}
.as-hf75-cart-remove{display:inline-flex;align-items:center;gap:4px;border:0!important;box-shadow:none!important;background:transparent!important;color:#a25b77!important;cursor:pointer;min-height:34px;padding:2px 0!important;font-size:12px;font-weight:650;text-decoration:none!important;touch-action:manipulation}
.as-hf75-cart-remove .material-icons{font-size:17px;text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:4px;}
.as-hf75-cart-remove:hover{text-decoration:none!important;color:#883e5d!important;}
.as-hf75-cart-gift{font-size:12px;color:#846f79}
.as-hf75-cart-drawer.is-updating .as-hf75-cart-item__controls{opacity:.56;pointer-events:none}
.as-hf75-cart-error{margin:0 0 12px;padding:10px 12px;border:1px solid #e8b7c3;border-radius:10px;background:#fff6f8;color:#943e58;font-size:12px;line-height:1.4}
.as-hf75-cart-error[hidden]{display:none!important}
@media(max-width:767.98px){.as-hf75-cart-qty-btn{width:42px;height:40px;font-size:21px}.as-hf75-cart-remove{min-height:40px;font-size:13px}.as-hf75-cart-item__controls{gap:8px}}

/* HF77: compact delivery milestone, with truck icon and refined status badge. */
.as-hf75-cart-progress{padding:11px 13px 12px;border:1px solid #efdee4;background:#fff9fb;border-radius:13px;margin-bottom:15px;}
.as-hf75-cart-progress__line{gap:8px;margin-bottom:10px;align-items:center;}
.as-hf75-cart-progress__message{display:flex;gap:9px;align-items:center;min-width:0;line-height:1.35;color:#6d4b59;font-size:12px;}
.as-hf75-cart-progress__icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#f5e3ea;color:#a95774;}
.as-hf75-cart-progress__icon svg{display:block;width:19px;height:19px;}
.as-hf75-cart-progress__message [data-as-hf75-progress-label]{color:inherit;font-weight:inherit;white-space:normal;}
.as-hf75-cart-progress__value{color:#99536b;font-size:11px;font-weight:800;white-space:nowrap;}
.as-hf75-cart-progress__track{height:6px;background:#f2e7eb;}
.as-hf75-cart-progress__track>span{background:linear-gradient(90deg,#ca8ca0,#a65875);}
.as-hf75-cart-progress.is-achieved{background:#f9fcfa;border-color:#dce9e0;}
.as-hf75-cart-progress.is-achieved .as-hf75-cart-progress__icon{color:#42765a;background:#e8f3eb;}
.as-hf75-cart-progress.is-achieved .as-hf75-cart-progress__value{background:#e7f3ea;color:#42765a;padding:5px 9px;border-radius:100px;}
.as-hf75-cart-progress.is-achieved .as-hf75-cart-progress__track>span{background:#6c9b7c;}
@media(max-width:420px){
  .as-hf75-cart-progress{padding:10px 11px 11px;}
  .as-hf75-cart-progress__message{font-size:11.5px;}
  .as-hf75-cart-progress__icon{flex-basis:28px;width:28px;height:28px;}
  .as-hf75-cart-progress__value{font-size:10px;}
}

/* HF78: green milestone label only after the 1 000 DH threshold is reached. */
.as-hf75-cart-progress.is-achieved .as-hf75-cart-progress__message [data-as-hf75-progress-label]{color:#23864c!important;font-weight:750;}

/* HF81 — tighten mobile cart drawer framing and remove misplaced top line effect. */
@media(max-width:767.98px){
  .as-hf75-cart-drawer{padding:0!important;align-items:flex-end!important;}
  .as-hf75-cart-panel{width:calc(100% - 10px)!important;max-height:calc(100dvh - 110px)!important;margin:0 5px 0!important;border-radius:28px 28px 0 0!important;background:#fffdfa!important;box-shadow:0 -18px 44px rgba(32,20,28,.16)!important;}
  .as-hf75-cart-header{padding-top:24px!important;}
  .as-hf75-cart-header::before{top:9px!important;}
}
@media(max-width:480px){
  .as-hf75-cart-panel{width:calc(100% - 8px)!important;margin:0 4px 0!important;max-height:calc(100dvh - 104px)!important;border-radius:26px 26px 0 0!important;}
}

/* HF82 — robust iPhone-safe cart sheet sizing across phone widths. */
@media(max-width:767.98px){
  .as-hf75-cart-drawer{inset:0!important;padding:0!important;align-items:flex-end!important;justify-content:center!important;}
  .as-hf75-cart-panel{position:relative!important;width:100vw!important;max-width:100vw!important;height:auto!important;max-height:calc(100dvh - 96px)!important;margin:0!important;border:0!important;outline:0!important;background:#fffdfa!important;background-clip:padding-box!important;border-radius:24px 24px 0 0!important;overflow:hidden!important;box-shadow:0 -12px 32px rgba(32,20,28,.14)!important;left:auto!important;right:auto!important;}
  .as-hf75-cart-panel::before,.as-hf75-cart-panel::after{display:none!important;}
  .as-hf75-cart-header{padding:22px 18px 16px!important;border-top:0!important;}
  .as-hf75-cart-header::before{top:10px!important;width:56px!important;height:6px!important;background:#e7d8de!important;}
  .as-hf75-cart-scroll{max-height:48dvh!important;padding:4px 18px 16px!important;}
  .as-hf75-cart-bottom{padding:16px 18px calc(14px + env(safe-area-inset-bottom))!important;}
}
@media(max-width:480px){
  .as-hf75-cart-panel{max-height:calc(100dvh - 92px)!important;border-radius:22px 22px 0 0!important;}
  .as-hf75-cart-header h2{font-size:21px!important;}
}
@media(max-width:390px){
  .as-hf75-cart-panel{max-height:calc(100dvh - 88px)!important;}
}
@media(max-width:360px){
  .as-hf75-cart-panel{max-height:calc(100dvh - 84px)!important;}
}
