/* NeuroSnax Cart Drawer */

.ns-drawer-overlay {
  position: fixed;
  inset: 0;
  background:rgba(17,17,20,0.6);
  z-index: 10000050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s linear, visibility 0.18s linear;
}
.ns-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ns-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  background:var(--color-bg-primary,#FFFFFF);
  z-index: 10000051;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  border-left:4px solid var(--color-brand-primary,#111114);
  box-shadow:-8px 0 40px rgba(17,17,20,0.25);
  overflow: hidden;
}
.ns-cart-drawer.active {
  transform: translateX(0);
}

.ns-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background:var(--color-brand-primary,#111114);
  border-bottom:3px solid var(--color-brand-secondary,#FFE8A3);
  flex-shrink: 0;
}
.ns-drawer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color:var(--color-bg-primary,#FFFFFF);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ns-drawer-badge {
  background:var(--color-brand-secondary,#FFE8A3);
  color:var(--color-brand-primary,#111114);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border:2px solid var(--color-brand-secondary,#FFE8A3);
  min-width: 24px;
  text-align: center;
}
.ns-drawer-close {
  background:none;
  border:2px solid rgba(255, 255, 255, 0.3);
  color:var(--color-bg-primary,#FFFFFF);
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-weight: 900;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ns-drawer-close:hover,
.ns-drawer-close:active {
  border-color:var(--color-brand-secondary,#FFE8A3);
  color:var(--color-brand-secondary,#FFE8A3);
}

.ns-drawer-ship {
  padding: 10px 24px;
  background:var(--color-brand-secondary,#FFE8A3);
  border-bottom:2px solid var(--color-brand-primary,#111114);
  flex-shrink: 0;
}
.ns-drawer-ship-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color:var(--color-brand-primary,#111114);
  margin-bottom: 5px;
}
.ns-ship-track {
  height: 5px;
  background:rgba(17,17,20,0.15);
  border:1px solid rgba(17,17,20,0.2);
}
.ns-ship-fill {
  height: 100%;
  background:var(--color-brand-primary,#111114);
  transition: width 0.5s ease;
}

.ns-drawer-items {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ns-drawer-items::-webkit-scrollbar {
  width: 3px;
}
.ns-drawer-items::-webkit-scrollbar-thumb {
  background:var(--color-brand-secondary,#FFE8A3);
}

.ns-drawer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 220px;
  height: 100%;
  gap: 22px;
  padding: 28px 20px;
  text-align: center;
}
.ns-drawer-loader {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.ns-drawer-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border:3px solid transparent;
  border-top-color:var(--color-brand-secondary,#FFE8A3);
  border-right-color:var(--color-brand-secondary,#FFE8A3);
  animation: ns-drawer-spin 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}
.ns-drawer-loader-ring--inner {
  inset: 10px;
  border-top-color:var(--color-boost,#FFBAD2);
  border-right-color:var(--color-boost,#FFBAD2);
  border-bottom-color:transparent;
  border-left-color:transparent;
  animation-duration: 0.65s;
  animation-direction: reverse;
}
.ns-drawer-loader-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:var(--color-brand-primary,#111114);
  color:var(--color-brand-secondary,#FFE8A3);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  box-shadow:0 0 0 0 rgba(255,186,210,0.45);
  animation: ns-drawer-pulse 1.4s ease-out infinite;
}
.ns-drawer-loading-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:var(--color-brand-primary,#111114);
}
.ns-drawer-loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.ns-drawer-loading-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background:var(--color-boost,#FFBAD2);
  display: block;
  animation: ns-drawer-dot 1s ease-in-out infinite;
}
.ns-drawer-loading-dots i:nth-child(2) {
  animation-delay: 0.15s;
  background:var(--color-brand-primary,#111114);
}
.ns-drawer-loading-dots i:nth-child(3) {
  animation-delay: 0.3s;
  background:var(--color-brand-secondary,#FFE8A3);
  border:1px solid var(--color-brand-primary,#111114);
  box-sizing: border-box;
}
.ns-drawer-skel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.ns-drawer-skel-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border:2px solid rgba(17,17,20,0.06);
  background:var(--color-bg-secondary,#F3F3EF);
  border-radius: 4px;
}
.ns-drawer-skel-thumb,
.ns-drawer-skel-line {
  background:linear-gradient(
    90deg,
    rgba(10, 22, 40, 0.06) 0%,
    rgba(233, 30, 140, 0.12) 45%,
    rgba(255, 229, 0, 0.18) 55%,
    rgba(10, 22, 40, 0.06) 100%
  );
  background-size: 220% 100%;
  animation: ns-drawer-shimmer 1.35s ease-in-out infinite;
  border-radius: 4px;
}
.ns-drawer-skel-thumb {
  width: 56px;
  height: 56px;
  border:2px solid rgba(17,17,20,0.1);
}
.ns-drawer-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ns-drawer-skel-line {
  height: 10px;
}
.ns-drawer-skel-line--lg {
  width: 72%;
  height: 12px;
}
.ns-drawer-skel-line--sm {
  width: 42%;
}
@keyframes ns-drawer-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ns-drawer-pulse {
  0% {
    box-shadow:0 0 0 0 rgba(255,186,210,0.5);
    transform: scale(1);
  }
  70% {
    box-shadow:0 0 0 12px rgba(255,186,210,0);
    transform: scale(1.04);
  }
  100% {
    box-shadow:0 0 0 0 rgba(255,186,210,0);
    transform: scale(1);
  }
}
@keyframes ns-drawer-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
@keyframes ns-drawer-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
/* legacy spinner kept for safety if old markup flashes */
.ns-drawer-spinner {
  width: 40px;
  height: 40px;
  border:3px solid var(--color-bg-secondary,#F3F3EF);
  border-top-color:var(--color-brand-secondary,#FFE8A3);
  border-radius: 50%;
  animation: ns-drawer-spin 0.7s linear infinite;
}

.ns-drawer-empty,
.ns-drawer-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  text-align: center;
  padding: 32px;
}
.ns-drawer-empty-icon,
.ns-drawer-error-icon {
  font-size: 48px;
}
.ns-drawer-empty-title,
.ns-drawer-error-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color:var(--color-brand-primary,#111114);
}
.ns-drawer-empty-sub,
.ns-drawer-error-sub {
  font-size: 13px;
  color:rgba(17,17,20,0.5);
  line-height: 1.6;
}
.ns-drawer-empty-cta,
.ns-drawer-error-cta {
  display: inline-block;
  background:var(--color-brand-secondary,#FFE8A3);
  color:var(--color-brand-primary,#111114);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 12px 28px;
  border:3px solid var(--color-brand-primary,#111114);
  box-shadow:4px 4px 0 var(--color-boost,#FFBAD2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 400;
}
.ns-drawer-empty-cta:hover,
.ns-drawer-error-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow:6px 6px 0 var(--color-boost,#FFBAD2);
}

.ns-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border:2px solid rgba(17,17,20,0.08);
  background:var(--color-bg-secondary,#F3F3EF);
  transition: border-color 0.15s;
}
.ns-drawer-item:hover {
  border-color:var(--color-brand-secondary,#FFE8A3);
}
.ns-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border:2px solid var(--color-brand-primary,#111114);
  display: block;
  flex-shrink: 0;
}
.ns-item-img-ph {
  width: 72px;
  height: 72px;
  background:var(--color-brand-secondary,#FFE8A3);
  border:2px solid var(--color-brand-primary,#111114);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.ns-item-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color:var(--color-brand-primary,#111114);
  margin-bottom: 4px;
  line-height: 1.2;
}
.ns-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color:var(--color-brand-primary,#111114);
  margin-bottom: 8px;
}
.ns-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ns-drawer-item .ns-qty-btn {
  width: 28px;
  height: 28px;
  background:var(--color-brand-primary,#111114);
  color:var(--color-bg-primary,#FFFFFF);
  border:none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: sans-serif;
  line-height: 1;
  user-select: none;
}
.ns-drawer-item .ns-qty-btn:hover,
.ns-drawer-item .ns-qty-btn:active {
  background:var(--color-cta-primary-hover,#2B2B31);
}
.ns-drawer-item .ns-qty-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color:var(--color-brand-primary,#111114);
  min-width: 20px;
  text-align: center;
}
.ns-item-rm {
  background:none;
  border:none;
  cursor: pointer;
  color:rgba(17,17,20,0.25);
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1;
  align-self: flex-start;
}
.ns-item-rm:hover,
.ns-item-rm:active {
  color:var(--color-error,#D0271D);
}
.ns-qty-btn.loading,
.ns-item-rm.loading {
  opacity: 0.4;
  pointer-events: none;
}

.ns-drawer-fees {
  padding: 0 4px 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color:var(--color-brand-primary,#111114);
}
.ns-drawer-fee-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}
.ns-drawer-fee-row.is-discount {
  color:var(--color-success,#13793F);
}

.ns-drawer-footer {
  padding: 16px 20px;
  border-top:3px solid var(--color-brand-primary,#111114);
  background:var(--color-bg-primary,#FFFFFF);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-drawer-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom:2px solid rgba(17,17,20,0.08);
}
.ns-drawer-total-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:rgba(17,17,20,0.4);
}
.ns-drawer-total-amt {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color:var(--color-brand-primary,#111114);
}
.ns-drawer-checkout {
  display: block;
  width: 100%;
  background:var(--color-brand-secondary,#FFE8A3);
  color:var(--color-brand-primary,#111114) !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 20px;
  border:3px solid var(--color-brand-primary,#111114);
  box-shadow:5px 5px 0 var(--color-boost,#FFBAD2);
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
}
.ns-drawer-checkout:hover,
.ns-drawer-checkout:active {
  transform: translate(-3px, -3px);
  box-shadow:8px 8px 0 var(--color-boost,#FFBAD2);
  color:var(--color-brand-primary,#111114) !important;
}
.ns-drawer-continue {
  display: block;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:rgba(17,17,20,0.4);
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
  background:none;
  border:none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.ns-drawer-continue:hover {
  color:var(--color-brand-primary,#111114);
}

/* Error toast — anchored above the sticky cart dock, never mid-grid. */
.ns-flash {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 10000060;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  border-radius: 14px;
  background:var(--color-error,#D0271D);
  box-shadow:0 16px 40px rgba(17,17,20,0.35);
  transform: translateX(-50%) translateY(160%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}
.ns-flash[hidden] {
  display: none !important;
}
.ns-flash.show {
  transform: translateX(-50%) translateY(0);
}
.ns-flash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:var(--color-error,#D0271D);
  color:var(--color-bg-primary,#FFFFFF);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.ns-flash-text {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:var(--color-bg-primary,#FFFFFF);
}

/* ── Sticky cart dock (mobile + desktop) ── */
.ns-cart-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10000040;
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  background:var(--color-brand-primary,#111114);
  box-shadow:0 12px 40px rgba(17,17,20,0.45);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s, opacity 0.2s;
}
.ns-cart-dock[hidden] {
  display: none !important;
}
body.ns-cart-drawer-open .ns-cart-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.ns-cart-dock.is-pulse {
  animation: nsDockPulse 0.9s ease;
}
@keyframes nsDockPulse {
  0%,
  100% {
    box-shadow:0 12px 40px rgba(17,17,20,0.45);
  }
  40% {
    box-shadow:0 0 0 4px rgba(255,186,210,0.55), 0 16px 44px rgba(255,186,210,0.35);
  }
}

.ns-cart-dock-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 6px 10px 6px 8px;
  border:0;
  border-radius: 12px;
  background:transparent;
  color:var(--color-bg-primary,#FFFFFF);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ns-cart-dock-main:hover {
  background:rgba(255, 255, 255, 0.06);
}
.ns-cart-dock-bag {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
}
.ns-cart-dock-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.ns-cart-dock-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:rgba(255, 255, 255, 0.55);
}
.ns-cart-dock-sub {
  font-size: 14px;
  font-weight: 800;
  color:var(--color-bg-primary,#FFFFFF);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-cart-dock-total {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
  color:var(--color-brand-secondary,#FFE8A3);
  white-space: nowrap;
}
.ns-cart-dock-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background:var(--color-brand-primary,#111114);
  color:var(--color-bg-primary,#FFFFFF);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.12s;
}
.ns-cart-dock-cta:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

/* Room for the dock so content / FAB / PDP sticky don't collide */
body.has-ns-cart-dock {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
body.has-ns-cart-dock #ns-home .why,
body.has-ns-cart-dock #ns-home .cards,
body.has-ns-cart-dock #nsshop .sh-grid {
  scroll-margin-bottom: 96px;
}
body.has-ns-cart-dock #neurobot-trigger,
body.has-ns-cart-dock .neurobot-trigger,
body.has-ns-cart-dock [id*='neurobot'],
body.has-ns-cart-dock [class*='neurobot-btn'],
body.has-ns-cart-dock [class*='neurobot-trigger'] {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 768px) {
  body.has-ns-cart-dock {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  body.has-ns-cart-dock #nspp-sticky.show {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  body.has-ns-cart-dock.single-product {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }
}

body.woocommerce-checkout .ns-cart-dock,
body.woocommerce-cart .ns-cart-dock {
  display: none !important;
}

/* The storefront buy row (qty stepper + add-to-cart) is owned by
   assets/css/ns-commerce.css — this sheet only styles the drawer itself. */

@media (max-width: 600px) {
  .ns-cart-dock {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 7px;
    border-radius: 16px;
  }
  .ns-cart-dock-bag {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .ns-cart-dock-total {
    font-size: 15px;
  }
  .ns-cart-dock-cta {
    padding: 0 14px;
    font-size: 12px;
  }
  .ns-flash {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .ns-cart-drawer {
    width: 100vw;
    border-left:none;
    border-top:4px solid var(--color-brand-secondary,#FFE8A3);
  }
  .ns-drawer-checkout {
    font-size: 20px;
    padding: 22px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .ns-drawer-overlay,
  .ns-cart-drawer,
  .ns-cart-drawer * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}


/* === NeuroSnax Cart Drawer v3 — compact mobile / current files === */
.ns-drawer-adding{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 10px;
  background:var(--color-brand-secondary,#FFE8A3);
  border:1px solid rgba(17,17,20,.12);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--color-brand-primary,#111114);
}
.ns-drawer-adding-dot{
  width:8px;height:8px;flex:0 0 8px;border-radius:50%;
  background:var(--color-boost,#FFBAD2);
  animation:nsAddingPulse .65s ease-in-out infinite alternate;
}
@keyframes nsAddingPulse{from{opacity:.35;transform:scale(.8)}to{opacity:1;transform:scale(1)}}

@media (max-width:600px){
  .ns-cart-drawer{width:100vw;max-width:100vw}
  .ns-drawer-header{padding:10px 12px;border-bottom-width:2px}
  .ns-drawer-title{font-size:19px;letter-spacing:1.5px;gap:7px}
  .ns-drawer-badge{font-size:10px;padding:2px 6px;min-width:20px;border-width:1px}
  .ns-drawer-close{width:32px;height:32px;font-size:16px}

  /* PHP currently forces 16px; override it on mobile. */
  #nsDrawer .ns-drawer-ship{padding:6px 12px}
  #nsDrawer .ns-drawer-ship-text{
    font-size:11px;
    line-height:1.15;
    margin-bottom:4px;
    letter-spacing:.5px;
  }
  .ns-ship-track{height:4px}

  .ns-drawer-items{padding:7px;gap:6px}
  .ns-drawer-item{
    grid-template-columns:48px minmax(0,1fr) 24px;
    gap:7px;
    padding:7px;
    border-width:1px;
  }
  .ns-item-img,.ns-item-img-ph{width:48px;height:48px;border-width:1px}
  .ns-item-name{
    font-size:11px;
    line-height:1.12;
    letter-spacing:.35px;
    margin-bottom:2px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .ns-item-price{font-size:15px;letter-spacing:.4px;margin-bottom:3px}
  .ns-item-qty{gap:3px}
  .ns-drawer-item .ns-qty-btn{width:23px;height:23px;font-size:15px}
  .ns-drawer-item .ns-qty-num{font-size:11px;min-width:15px}
  .ns-item-rm{font-size:14px;padding:2px}

  .ns-drawer-footer{padding:7px 9px;gap:4px;border-top-width:2px}
  .ns-drawer-total-row{padding-bottom:4px;border-bottom-width:1px}
  .ns-drawer-total-label{font-size:9px;letter-spacing:1.5px}
  .ns-drawer-total-amt{font-size:21px;letter-spacing:.8px}
  .ns-drawer-checkout{
    font-size:16px !important;
    letter-spacing:1.8px;
    padding:11px !important;
    border-width:2px;
    box-shadow:3px 3px 0 var(--color-boost,#FFBAD2);
  }
  #nsDrawer .ns-drawer-pay-badges{margin:4px 0 1px}
  #nsDrawer .ns-drawer-pay-badges img{max-width:118px}
  #nsDrawer .ns-drawer-delivery-note{font-size:10px;line-height:1.2;margin-bottom:2px}
  .ns-drawer-continue{font-size:9px;letter-spacing:1.5px;padding:3px}
}
@media (max-width:600px) and (max-height:720px){
  .ns-drawer-header{padding:7px 9px}
  #nsDrawer .ns-drawer-ship{padding:5px 9px}
  .ns-drawer-items{padding:5px}
  .ns-drawer-item{grid-template-columns:44px minmax(0,1fr) 22px;padding:5px}
  .ns-item-img,.ns-item-img-ph{width:44px;height:44px}
  .ns-drawer-footer{padding:5px 7px}
  #nsDrawer .ns-drawer-pay-badges{display:none}
  #nsDrawer .ns-drawer-delivery-note{font-size:9px}
  .ns-drawer-continue{display:none}
}
@media (hover:none){
  .ns-drawer-item:hover{border-color:rgba(17,17,20,.08)}
  .ns-drawer-checkout:hover,.ns-drawer-checkout:active{
    transform:none;box-shadow:3px 3px 0 var(--color-boost,#FFBAD2)
  }
}


/* SPEED V2 — optimistic cart: useful content is visible on the first frame. */
.ns-drawer-item--optimistic{opacity:.92;pointer-events:none}
.ns-optimistic-status{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;font-weight:800;color:var(--color-text-muted,#6E6E76)}
.ns-drawer-optimistic--compact{display:flex;align-items:center;gap:8px;padding:9px 12px;margin:0 0 8px;border-radius:10px;background:var(--color-bg-secondary,#F3F3EF);font-size:12px}
.ns-drawer-adding-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;animation:nsSpeedPulse .75s ease-in-out infinite alternate}
@keyframes nsSpeedPulse{from{opacity:.25;transform:scale(.75)}to{opacity:1;transform:scale(1)}}
