/* NOVA cart: physical left placement is intentional in both RTL and LTR. */
.nova-cart-launcher {
  position: fixed;
  z-index: 150;
  left: max(22px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 13px 19px;
  border: 1px solid #5c4028;
  border-radius: 18px;
  background: #422711;
  color: #fffdf8;
  box-shadow: 0 10px 30px rgba(66, 39, 17, .22);
  font: 700 13px var(--arabic), var(--sans), sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nova-cart-launcher:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(66, 39, 17, .3); }
.nova-cart-launcher svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nova-cart-badge { display: grid; min-width: 25px; min-height: 25px; padding: 3px 6px; place-items: center; border-radius: 20px; background: #78b83f; color: #203619; font: 800 12px var(--sans), sans-serif; }
.nova-cart-launcher:not(.has-items) .nova-cart-badge { background: #6b513b; color: #fff; }
.nova-cart-toast { position: fixed; z-index: 155; left: max(22px, env(safe-area-inset-left)); right: auto; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; width: min(340px, calc(100vw - 44px)); padding: 15px 17px; border: 1px solid #d6e3c9; border-inline-start: 4px solid #78b83f; border-radius: 13px; background: #fffdf8; box-shadow: 0 10px 32px rgba(32, 44, 23, .13); color: #422711; font-size: 12px; line-height: 1.8; animation: nova-cart-notice-in .2s ease-out; }
.nova-cart-toast.is-error { border-color: #e4c1b5; border-inline-start-color: #9b4230; }
.nova-cart-toast-close, .nova-cart-close { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border: 1px solid #deddd4; border-radius: 50%; background: #fff; color: #422711; font: 400 26px/1 var(--sans), sans-serif; cursor: pointer; }
.nova-cart-toast-close { width: 32px; height: 32px; margin-inline-start: auto; font-size: 21px; }
.nova-cart-dialog { position: fixed; inset: 0 auto 0 0; width: min(460px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-inline-end: 1px solid #deddd4; background: #fffdf8; color: #422711; box-shadow: 10px 0 50px rgba(22, 32, 20, .18); }
.nova-cart-dialog::backdrop { background: rgba(24, 34, 23, .58); backdrop-filter: blur(3px); }
.nova-cart-shell { display: flex; flex-direction: column; height: 100%; }
.nova-cart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 27px 24px 22px; border-bottom: 1px solid #e3e1d7; background: #f6f5ef; }
.nova-cart-kicker { margin: 0 0 10px; color: #58743d; font: 700 9px/1.5 var(--sans), sans-serif; letter-spacing: .13em; }
.nova-cart-header h2 { margin: 0; font-size: 28px; line-height: 1.5; }
.nova-cart-count { margin: 6px 0 0; color: #757267; font-size: 11px; }
.nova-cart-items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px; }
.nova-cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 15px; padding: 22px 0; border-bottom: 1px solid #e7e4da; }
.nova-cart-item:last-child { border-bottom: 0; }
.nova-cart-item-media { display: grid; width: 76px; height: 84px; place-items: center; overflow: hidden; border: 1px solid #e7e4da; border-radius: 9px; background: #f0f2e8; color: #58743d; font: 700 25px var(--sans), sans-serif; }
.nova-cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.nova-cart-item-content { min-width: 0; }
.nova-cart-item h3 { margin: 0 0 6px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.nova-cart-item-price { margin: 0 0 5px; color: #62654f; font-size: 11px; font-weight: 700; }
.nova-cart-request { color: #537b32; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.nova-cart-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.nova-cart-quantity { display: flex; direction: ltr; align-items: center; overflow: hidden; border: 1px solid #d8d7cc; border-radius: 8px; background: #fff; }
.nova-cart-step { width: 37px; height: 39px; padding: 0; border: 0; background: #f5f5ec; color: #422711; font: 600 20px var(--sans), sans-serif; cursor: pointer; }
.nova-cart-step:disabled { opacity: .4; cursor: not-allowed; }
.nova-cart-quantity input { width: 53px; height: 39px; padding: 0 3px; border: 0; background: #fff; color: #422711; font: 600 12px var(--sans), sans-serif; text-align: center; appearance: textfield; }
.nova-cart-quantity input::-webkit-inner-spin-button, .nova-cart-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.nova-cart-remove, .nova-cart-clear { min-height: 40px; padding: 7px 10px; border: 0; background: transparent; color: #895343; font: 600 11px var(--arabic), var(--sans), sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.nova-cart-empty { display: grid; flex: 1; align-content: center; justify-items: start; gap: 12px; padding: 28px; }
.nova-cart-empty h3 { margin: 0; font-size: 23px; }
.nova-cart-empty p { margin: 0 0 8px; color: #757267; font-size: 12px; line-height: 1.9; }
.nova-cart-primary, .nova-cart-add { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #78b83f; border-radius: 5px; background: #78b83f; color: #26351f; font: 800 11px var(--arabic), var(--sans), sans-serif; cursor: pointer; }
.nova-cart-add:hover:not(:disabled), .nova-cart-primary:hover { border-color: #5d9630; background: #5d9630; color: #fff; }
.nova-cart-add:disabled { border-color: #d8d8d0; background: #e6e6dd; color: #818177; cursor: not-allowed; }
.product-card-actions .nova-cart-add { grid-column: 1 / -1; width: 100%; }
.dialog-product-content .nova-cart-add { width: max-content; }
.request-product-card .nova-cart-add { width: 100%; margin-top: 16px; }
.nova-cart-footer { flex-shrink: 0; max-height: 40%; overflow: auto; padding: 18px 24px calc(17px + env(safe-area-inset-bottom)); border-top: 1px solid #deddd4; background: #f6f5ef; }
.nova-cart-total-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 11px; }
.nova-cart-total-line strong { color: #422711; font-size: 14px; }
.nova-cart-quote-note, .nova-cart-note { margin: 9px 0; color: #726f62; font-size: 10px; line-height: 1.9; }
.nova-cart-quote-note { color: #58743d; }
.nova-cart-footer-actions { position: sticky; top: -18px; z-index: 1; display: grid; gap: 9px; padding: 0 0 13px; background: #f6f5ef; }
.nova-cart-message, .nova-cart-clear { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; padding: 11px 15px; border: 1px solid #422711; border-radius: 7px; font: 800 12px var(--arabic), var(--sans), sans-serif; text-decoration: none; }
.nova-cart-message { background: #78b83f; border-color: #78b83f; color: #26351f; }
.nova-cart-message:hover { background: #5d9630; border-color: #5d9630; color: #fff; }
.nova-cart-clear { background: #fffdf8; color: #422711; }
.nova-cart-clear:hover:not(:disabled) { background: #f2e7df; }
.nova-cart-clear:disabled, .nova-cart-message[aria-disabled="true"] { display: flex; opacity: .45; cursor: not-allowed; }
.nova-cart-toast[hidden], .nova-cart-empty[hidden], .nova-cart-items[hidden], .nova-cart-quote-note[hidden] { display: none !important; }
.nova-cart-launcher:focus-visible, .nova-cart-dialog button:focus-visible, .nova-cart-dialog input:focus-visible, .nova-cart-dialog a:focus-visible, .nova-cart-add:focus-visible, .nova-cart-toast-close:focus-visible { outline: 3px solid #78b83f; outline-offset: 3px; }
@keyframes nova-cart-notice-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .nova-cart-launcher { left: max(14px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 54px; padding: 11px 14px; border-radius: 15px; }
  .nova-cart-toast { left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 28px); }
  .nova-cart-header { padding: 22px 18px 19px; }
  .nova-cart-header h2 { font-size: 25px; }
  .nova-cart-items { padding-inline: 18px; }
  .nova-cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .nova-cart-item-media { width: 64px; height: 75px; }
  .nova-cart-step { width: 40px; height: 42px; }
  .nova-cart-quantity input { height: 42px; }
  .nova-cart-footer { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .nova-cart-launcher { transition: none; } .nova-cart-toast { animation: none; } }

.nova-cart-dialog-notice { flex-shrink: 0; margin: 12px 24px 0; padding: 10px 12px; border: 1px solid #d6e3c9; border-radius: 7px; background: #eef5e8; color: #426323; font-size: 11px; line-height: 1.8; }
.nova-cart-dialog-notice.is-error { border-color: #e4c1b5; background: #fff0ea; color: #8a382a; }
.nova-cart-dialog-notice[hidden] { display: none !important; }
