/* ============================================================
   Rennuce — CART SIDEBAR (cart-sidebar.css)
   Slide-in shopping cart panel from the right edge.
   Covers: backdrop, panel, header, item list, empty state,
           item cards, footer summary, checkout CTA,
           WhatsApp order link, responsive overrides.
   Load order: AFTER components.css
   ============================================================ */


/* =====================================================
   1. CART SIDEBAR SHELL
   Fixed overlay — backdrop + sliding panel
===================================================== */

.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: var(--z-sidebar);
  pointer-events: none;
  visibility: hidden;
}

/* Open state — JS toggles aria-hidden="false" */
.cart-sidebar[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

/* =====================================================
   2. BACKDROP
===================================================== */

.cart-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-bg-modal);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  cursor: pointer;
}

.cart-sidebar[aria-hidden="false"] .cart-sidebar__backdrop {
  opacity: 1;
}


/* =====================================================
   3. PANEL
   Slides in from the right
===================================================== */

.cart-sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--cart-width);
  /* 440px */
  max-width: 100vw;
  background: var(--cart-bg);
  box-shadow: var(--shadow-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.cart-sidebar[aria-hidden="false"] .cart-sidebar__panel {
  transform: translateX(0);
}


/* =====================================================
   4. HEADER
===================================================== */

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--cart-header-bg);
  border-bottom: 1px solid var(--cart-border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cart-sidebar__title {
  gap: var(--space-2-5);
}

/* Item count badge */
.cart-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1-5);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--color-brand-white);
  background: var(--color-brand-black);
  border-radius: var(--radius-full);
  transition: background var(--duration-base) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-bounce);
}

.cart-sidebar__badge.is-updated {
  animation: badge-pulse 0.4s var(--ease-bounce);
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

/* Close button */
.cart-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-in-out),
    border-color var(--duration-fast) var(--ease-in-out),
    color var(--duration-fast) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-bounce);
}

.cart-sidebar__close:hover {
  background: var(--color-brand-black);
  border-color: var(--color-brand-black);
  color: var(--color-brand-white);
  transform: rotate(90deg);
}

.cart-sidebar__close:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}


/* =====================================================
   5. BODY — scrollable item list
===================================================== */

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Thin scrollbar */
.cart-sidebar__body::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

.cart-sidebar__body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.cart-sidebar__body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

.cart-sidebar__body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}


/* =====================================================
   6. EMPTY STATE
===================================================== */

.cart-sidebar__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  min-height: 100%;
  gap: var(--space-3);
  animation: fade-in var(--duration-slow) var(--ease-out);
}

.cart-sidebar__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.cart-sidebar__empty-text {
  max-width: 220px;
  margin-bottom: var(--space-4);
}


/* =====================================================
   7. CART ITEM CARDS
===================================================== */

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  /* Right padding leaves room for the absolute remove button */
  padding-right: calc(var(--space-6) + 32px);
  border-bottom: 1px solid var(--cart-border);
  background: var(--cart-bg);
  transition: background var(--duration-fast) var(--ease-in-out);
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: var(--cart-item-hover);
}

/* Removing animation */
.cart-item.is-removing {
  animation: item-remove var(--duration-slow) var(--ease-in) forwards;
  overflow: hidden;
}

@keyframes item-remove {
  0% {
    opacity: 1;
    max-height: 200px;
    transform: translateX(0);
  }

  40% {
    opacity: 0;
    transform: translateX(24px);
  }

  100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
  }
}

/* Adding animation */
.cart-item.is-adding {
  animation: item-add var(--duration-slow) var(--ease-bounce);
}

@keyframes item-add {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Product Thumbnail --- */
.cart-item__img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.cart-item:hover .cart-item__img {
  transform: scale(1.04);
}

/* --- Item Info --- */
.cart-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.cart-item__name {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-decoration: none;
  /* Ensure name never runs into the remove button */
  padding-right: 0;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.cart-item__name:hover {
  color: var(--color-brand-gold);
}

.cart-item__variant {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --- Controls row: qty + price --- */
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.cart-item__controls .quantity-control {
  border-radius: var(--radius-md);
}

.cart-item__controls .quantity-control__btn {
  width: 30px;
  height: 30px;
}

.cart-item__controls .quantity-control__input {
  width: 34px;
  height: 30px;
  font-size: var(--text-sm);
}

/* --- Price --- */
.cart-item__price-wrap {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-0-5);
}

.cart-item__price {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.cart-item__price--sale {
  color: var(--color-error);
}

.cart-item__original {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

/* Savings tag */
.cart-item__saving {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-1-5);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-error-dark);
  background: var(--color-error-light);
  border-radius: var(--radius-badge);
  white-space: nowrap;
}

/* --- Remove button --- */
.cart-item__remove {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-in-out),
    background var(--duration-fast) var(--ease-in-out),
    color var(--duration-fast) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-bounce);
}

.cart-item:hover .cart-item__remove,
.cart-item__remove:focus-visible {
  opacity: 1;
}

.cart-item__remove:hover {
  background: var(--color-error-light);
  color: var(--color-error);
  transform: scale(1.10);
}

.cart-item__remove:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* --- Sold-out / unavailable item state --- */
.cart-item--unavailable {
  opacity: 0.60;
}

.cart-item--unavailable .cart-item__name::after {
  content: ' – Out of Stock';
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-error);
  font-family: var(--font-sans);
}


/* =====================================================
   8. FOOTER
   Sticky at the bottom: coupon, summary, CTA, WA link
===================================================== */

.cart-sidebar__footer {
  flex-shrink: 0;
  border-top: 1px solid var(--cart-border);
  padding: var(--space-5) var(--space-6) var(--space-6);
  background: var(--cart-bg);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.cart-sidebar__footer::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.04));
  pointer-events: none;
}


/* =====================================================
   9. ORDER SUMMARY ROWS
===================================================== */

.cart-sidebar__summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--cart-border);
}

.cart-sidebar__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.cart-sidebar__summary-row--shipping {
  color: var(--color-text-muted);
}

.cart-shipping-status {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.cart-shipping-status--free {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.cart-shipping-status--progress {
  color: var(--color-warning);
}

.cart-discount-amount {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.cart-subtotal-amount {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.cart-sidebar__summary-row--total {
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid var(--cart-border);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.cart-total-amount {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-brand-black);
  letter-spacing: var(--tracking-tight);
}


/* =====================================================
   10. FREE SHIPPING PROGRESS BAR
===================================================== */

.cart-shipping-bar {
  padding: var(--space-4) 0 var(--space-1);
  border-bottom: 1px solid var(--cart-border);
}

.cart-shipping-bar__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
}

.cart-shipping-bar__label strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.cart-shipping-bar__label--achieved {
  color: var(--color-success);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.cart-shipping-bar__track {
  width: 100%;
  height: 4px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-shipping-bar__fill {
  height: 100%;
  background: var(--color-brand-gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-slower) var(--ease-out);
  min-width: 4px;
}

.cart-shipping-bar__fill--complete {
  background: var(--color-success);
}


/* =====================================================
   11. CHECKOUT BUTTON & SECONDARY ACTIONS
===================================================== */

.cart-sidebar__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--btn-padding-y-lg) var(--btn-padding-x-lg);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--btn-letter-spacing);
  color: var(--color-brand-white);
  background: var(--color-brand-black);
  border: 1.5px solid var(--color-brand-black);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  margin-top: var(--space-5);
  transition: background var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

.cart-sidebar__checkout-btn:hover {
  background: #1A1A1A;
  border-color: #1A1A1A;
  box-shadow: var(--shadow-md);
}

.cart-sidebar__checkout-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.cart-sidebar__checkout-btn svg {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}

.cart-sidebar__checkout-btn:hover svg {
  transform: translateX(3px);
}

.cart-sidebar__checkout-btn:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* ── "or" divider ── */
.cart-sidebar__or {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.cart-sidebar__or::before,
.cart-sidebar__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cart-border);
}

.cart-sidebar__or span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
  white-space: nowrap;
}

/* WhatsApp order button */
.cart-sidebar__whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--btn-padding-y-md) var(--btn-padding-x-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-brand-white);
  background: var(--color-whatsapp);
  border: 1.5px solid var(--color-whatsapp);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

.cart-sidebar__whatsapp-order:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.30);
}

.cart-sidebar__whatsapp-order:active {
  transform: translateY(1px);
  box-shadow: none;
}

.cart-sidebar__whatsapp-order:focus-visible {
  outline: 2px solid var(--color-whatsapp);
  outline-offset: 2px;
}

.cart-sidebar__whatsapp-order svg {
  flex-shrink: 0;
}

/* "View full cart" link */
.cart-sidebar__view-cart-link {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-border-medium);
  margin-top: var(--space-3);
  transition: color var(--duration-fast) var(--ease-in-out),
    text-decoration-color var(--duration-fast) var(--ease-in-out);
}

.cart-sidebar__view-cart-link:hover {
  color: var(--color-text-primary);
  text-decoration-color: var(--color-brand-gold);
}


/* =====================================================
   12. PAYMENT TRUST ICONS ROW
===================================================== */

.cart-sidebar__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  flex-wrap: wrap;
}

.cart-sidebar__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.cart-sidebar__trust-item svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.cart-sidebar__trust-dot {
  width: 3px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-border-medium);
  flex-shrink: 0;
}


/* =====================================================
   13. MINI UPSELL / RECOMMENDED ITEM
===================================================== */

.cart-upsell {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--cart-border);
  background: var(--color-bg-secondary);
}

.cart-upsell__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: var(--space-3);
  display: block;
}

.cart-upsell__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-upsell__img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
}

.cart-upsell__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-upsell__info {
  flex: 1;
  min-width: 0;
}

.cart-upsell__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-upsell__price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-0-5);
}

.cart-upsell__add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-brand-black);
  color: var(--color-brand-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: var(--weight-light);
  transition: background var(--duration-fast) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-bounce);
}

.cart-upsell__add:hover {
  background: var(--color-brand-gold);
  transform: scale(1.10);
}

.cart-upsell__add:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}


/* =====================================================
   14. PREVENT BODY SCROLL WHEN CART IS OPEN
===================================================== */

body.cart-open {
  overflow: hidden;
}


/* =====================================================
   15. RESPONSIVE OVERRIDES
===================================================== */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {

  .cart-sidebar__panel {
    width: 400px;
  }

  .cart-sidebar__header {
    padding: var(--space-4) var(--space-5);
  }

  .cart-sidebar__footer {
    padding: var(--space-4) var(--space-5) var(--space-5);
  }

  .cart-item {
    padding: var(--space-4) var(--space-5);
    padding-right: calc(var(--space-5) + 32px);
  }

  .cart-upsell {
    padding: var(--space-4) var(--space-5);
  }

}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  /* Full-width panel */
  .cart-sidebar__panel {
    width: 100vw;
    max-width: 100%;
    border-radius: 0;
  }

  .cart-sidebar__header {
    padding: var(--space-4);
  }

  /* Close button larger touch target on mobile */
  .cart-sidebar__close {
    width: 44px;
    height: 44px;
  }

  /* Footer safe-area padding */
  .cart-sidebar__footer {
    padding: var(--space-4) var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
  }

  /* Cart items — extra right padding so remove button never overlaps content */
  .cart-item {
    padding: var(--space-4);
    padding-right: calc(var(--space-4) + 36px);
  }

  .cart-item__img-wrap {
    width: 68px;
    height: 85px;
  }

  /* Remove button: always visible + larger touch target */
  .cart-item__remove {
    opacity: 1;
    width: 36px;
    height: 36px;
    top: var(--space-2);
    right: var(--space-2);
  }

  /* Quantity controls — bigger for touch */
  .cart-item__controls .quantity-control__btn {
    width: 36px;
    height: 36px;
  }

  .cart-item__controls .quantity-control__input {
    width: 38px;
    height: 36px;
    font-size: var(--text-base);
  }

  /* Keep controls row on one line */
  .cart-item__controls {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  /* Product name — cap at 1 line on mobile to avoid crowding */
  .cart-item__name {
    -webkit-line-clamp: 1;
    font-size: var(--text-sm);
  }

  /* Price stays readable */
  .cart-item__price {
    font-size: var(--text-sm);
  }

  /* Summary rows */
  .cart-sidebar__summary-row {
    font-size: var(--text-sm);
    padding: var(--space-2-5) 0;
  }

  /* Total amount — slightly smaller so it fits cleanly */
  .cart-total-amount {
    font-size: var(--text-lg);
  }

  /* Checkout button — full height touch target */
  .cart-sidebar__checkout-btn {
    min-height: 52px;
    font-size: var(--text-base);
    padding: var(--btn-padding-y-md) var(--btn-padding-x-md);
    margin-top: var(--space-4);
  }

  /* WhatsApp button — full height touch target */
  .cart-sidebar__whatsapp-order {
    min-height: 48px;
    font-size: var(--text-base);
    padding: var(--btn-padding-y-md) var(--btn-padding-x-md);
  }

  /* View cart link — more breathing room */
  .cart-sidebar__view-cart-link {
    margin-top: var(--space-4);
    padding: var(--space-2) 0;
    font-size: var(--text-base);
  }

  .cart-upsell {
    padding: var(--space-3) var(--space-4);
  }

  .cart-shipping-bar {
    padding: var(--space-3) 0 var(--space-1);
  }

}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {

  .cart-item__controls {
    gap: var(--space-1-5);
  }

  .cart-item__price-wrap {
    min-width: auto;
  }

  .cart-total-amount {
    font-size: var(--text-lg);
  }

  .cart-sidebar__trust {
    gap: var(--space-2);
  }

  .cart-sidebar__checkout-btn {
    font-size: var(--text-sm);
  }

  .cart-sidebar__whatsapp-order {
    font-size: var(--text-sm);
  }

}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  .cart-item.is-removing,
  .cart-item.is-adding,
  .cart-sidebar__badge.is-updated {
    animation: none;
  }

  .cart-sidebar__panel,
  .cart-sidebar__backdrop {
    transition: none;
  }

}