/* Page Panier - L'Atelier CBD */

.cart-page {
  --c-bg: #ebe4f3;
  --c-surface: #ffffff;
  --c-surface-hover: #ffffff;
  --c-shadow: 0 1px 2px rgba(47, 21, 108, 0.04), 0 4px 12px rgba(47, 21, 108, 0.05);
  --c-shadow-hover: 0 4px 8px rgba(47, 21, 108, 0.06), 0 12px 28px rgba(47, 21, 108, 0.1);
  --c-text-primary: var(--purple);
  --c-text-secondary: rgba(47, 21, 108, 0.65);
  --c-text-muted: rgba(47, 21, 108, 0.45);
  --c-divider: rgba(47, 21, 108, 0.08);
  --c-radius: 16px;

  background: var(--c-bg);
  color: var(--c-text-primary);
  padding: 48px 24px 80px;
}

.cart-page .container {
  position: relative;
}

/* ===== HERO ===== */
.cart-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.cart-hero-text {
  max-width: 720px;
}

.cart-title {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--purple);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.25em;
}

.cart-title-icon {
  width: 0.85em;
  height: 0.85em;
  color: currentColor;
  flex-shrink: 0;
}

.cart-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text-secondary);
  margin: 0;
}

.cart-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-continue-shopping:hover {
  border-bottom-color: var(--orange);
  transform: translateX(-2px);
}

.cart-continue-shopping svg {
  color: var(--orange);
  transition: transform 0.2s;
}

.cart-continue-shopping:hover svg {
  transform: translateX(-3px);
}

/* ===== LAYOUT PRINCIPAL ===== */
.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

/* ===== PANIER VIDE ===== */
.cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: var(--c-surface);
  border-radius: 24px;
  box-shadow: var(--c-shadow);
}

.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(255, 128, 0, 0.1);
  color: var(--orange);
}

.cart-empty h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--purple);
  margin: 0 0 10px;
}

.cart-empty p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-text-secondary);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* Bouton primaire */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.25);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary svg {
  transition: transform 0.2s;
}

.btn-primary:hover {
  background: #e67300;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 128, 0, 0.35);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ===== LISTE DES ITEMS ===== */
.cart-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cart-items-header {
  display: grid;
  grid-template-columns: 2.4fr 1fr 130px 1fr 44px;
  gap: 28px;
  margin-top: 20px;
  padding: 0 20px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Item du panier */
.cart-item {
  display: grid;
  grid-template-columns: 2.4fr 1fr 130px 1fr 44px;
  gap: 28px;
  align-items: center;
  padding: 18px 20px;
  background: var(--c-surface);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.cart-item:hover {
  box-shadow: var(--c-shadow-hover);
  transform: translateY(-2px);
}

/* Image + infos produit */
.cart-item-product {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.cart-item-image {
  --halo: 38, 210, 118;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--halo), 0.85) 0%, rgba(var(--halo), 0.5) 22%, transparent 60%),
    #462C83;
  flex-shrink: 0;
  display: block;
  padding: 8px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

a.cart-item-name-link {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

a.cart-item-name-link:hover .cart-item-name {
  color: var(--orange);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--purple);
  font-size: 2rem;
  line-height: 0.9;
  margin: 0;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-variant {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  margin: 4px 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Prix unitaire */
.cart-item-price {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.9375rem;
}

/* Quantité — repris de la page produit */
.cart-item-quantity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  border-radius: 9999px;
  padding: 0 8px;
  height: 40px;
  width: fit-content;
  box-sizing: border-box;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s;
}

.qty-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-input {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  -moz-appearance: textfield;
}

.qty-input:focus {
  outline: 2px solid var(--white);
  outline-offset: 1px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Total ligne */
.cart-item-total {
  font-weight: 700;
  color: var(--purple);
  font-size: 1.125rem;
}

/* Bouton supprimer */
.cart-item-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--c-text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Prix barré (promo/abo) */
.cart-price-original,
.cart-total-original {
  text-decoration: line-through;
  color: var(--c-text-muted);
  font-size: 0.85em;
  margin-right: 4px;
  font-weight: 500;
}

.cart-price-discounted {
  color: var(--purple);
  font-weight: 700;
}

/* ===== BULLE ABONNEMENT ===== */
.sub-bubble {
  grid-column: 1 / -1;
  background: rgba(47, 21, 108, 0.035);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 6px;
  transition: background 0.25s;
}

.sub-bubble-active {
  background: rgba(38, 210, 118, 0.1);
}

.sub-bubble.sub-guest {
  opacity: 0.95;
}

.sub-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--purple);
  font-weight: 700;
  user-select: none;
}

.sub-toggle.sub-disabled {
  cursor: not-allowed;
}

.sub-toggle input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.sub-toggle.sub-disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.sub-badge-discount {
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.sub-frequency {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--purple);
  background: rgba(47, 21, 108, 0.06);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  text-align-last: center;
}

.sub-frequency:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.sub-price-preview {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  margin-left: auto;
  white-space: nowrap;
}

.sub-price-old {
  text-decoration: line-through;
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: 0.85em;
  margin-right: 6px;
}

.sub-advantages {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-divider);
}

.sub-advantages span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
}

.sub-advantages svg {
  color: var(--green);
  flex-shrink: 0;
}

.sub-engagement {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 10px 0 0;
  line-height: 1.4;
}

.sub-guest-notice {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--c-divider);
}

.sub-guest-notice a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sub-guest-notice a:hover {
  opacity: 0.8;
}

/* ===== ACTIONS PANIER ===== */
.cart-actions {
  display: flex;
  justify-content: flex-end;
  padding: 4px 4px 0;
}

.cart-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.cart-clear-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

/* ===== LIVRAISON — harmonisée avec items + récap ===== */
.free-shipping-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-surface);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  transition: background 0.3s ease;
}

.free-shipping-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.free-shipping-text strong {
  color: var(--orange);
  font-weight: 800;
}

.free-shipping-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(47, 21, 108, 0.06);
  border-radius: 12px;
  color: var(--purple);
  flex-shrink: 0;
}

.free-shipping-progress {
  position: relative;
  height: 4px;
  background: rgba(47, 21, 108, 0.1);
  border-radius: 999px;
}

.free-shipping-fill-pickup,
.free-shipping-fill-home {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.free-shipping-bar.achieved .free-shipping-fill-pickup,
.free-shipping-bar.achieved .free-shipping-fill-home {
  background: var(--green);
}

.free-shipping-fill-pickup {
  left: 0;
  width: 0%;
}

.free-shipping-fill-home {
  width: 0%;
}

/* Séparateur visuel à la position du palier point relais (intégré dans la barre) */
.free-shipping-separator {
  position: absolute;
  top: -2px;
  width: 2px;
  height: calc(100% + 4px);
  background: var(--white);
  border-radius: 1px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(47, 21, 108, 0.18);
  transition: box-shadow 0.3s ease;
}

.free-shipping-bar.achieved .free-shipping-separator:not(.free-shipping-separator-end) {
  box-shadow: 0 0 0 1px rgba(38, 210, 118, 0.45);
}

.free-shipping-bar.achieved-home .free-shipping-separator-end {
  box-shadow: 0 0 0 1px rgba(38, 210, 118, 0.45);
}

/* Separateur fixe sous le milestone 50 (palier home), centre a 100% comme le
   separateur principal (centre sur sa position). */
.free-shipping-separator-end {
  left: 100%;
  right: auto;
}

/* Labels seuils au-dessus de la barre (utilisent le gap existant, pas de marge ajoutée) */
.free-shipping-milestones {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 2px);
  height: 11px;
  pointer-events: none;
}

.milestone {
  position: absolute;
  bottom: 0;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.milestone-pickup {
  transform: translateX(-50%);
}

.milestone-home {
  left: 100%;
  transform: translateX(-50%);
}

.free-shipping-bar.achieved .milestone-pickup {
  color: var(--green);
}

.free-shipping-bar.achieved-home .milestone-home {
  color: var(--green);
}

/* Cards paliers — mêmes radius/ombre que les items */
.shipping-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shipping-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--c-surface);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  transition: background 0.3s ease;
}

.shipping-tier-active {
  background: rgba(255, 128, 0, 0.06);
}

.shipping-tier-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(47, 21, 108, 0.06);
  border-radius: 12px;
  color: var(--purple);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.shipping-tier-active .shipping-tier-icon {
  background: var(--orange);
  color: var(--white);
}

.shipping-tier-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shipping-tier-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.25;
}

.shipping-tier-cond {
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  line-height: 1.3;
}

.shipping-tier-cond strong {
  color: var(--purple);
  font-weight: 800;
}

.shipping-tier-active .shipping-tier-cond strong {
  color: var(--orange);
}

.shipping-original {
  text-decoration: line-through;
  color: var(--c-text-muted);
  font-size: 0.875em;
  margin-right: 6px;
}

.shipping-free {
  color: var(--green);
  font-weight: 700;
}

/* ===== RÉCAPITULATIF ===== */
.cart-summary {
  background: var(--c-surface);
  border-radius: var(--c-radius);
  padding: 24px;
  position: sticky;
  top: 24px;
  box-shadow: var(--c-shadow);
}

.cart-summary h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--purple);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-divider);
}

.cart-summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  padding-right: 10px;
  margin-bottom: 14px;
  max-height: 220px;
  overflow-y: auto;
}

.cart-summary-items::-webkit-scrollbar {
  width: 4px;
}

.cart-summary-items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-summary-items::-webkit-scrollbar-thumb {
  background: rgba(47, 21, 108, 0.15);
  border-radius: 2px;
}

/* Fade-out blanc en bas, applique uniquement quand la liste deborde (classe
   ajoutee par cart.js apres render via scrollHeight > clientHeight) */
.cart-summary-items.is-scrollable {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
}

.cart-summary-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--c-text-secondary);
}

.cart-summary-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--purple);
  font-weight: 600;
}

.cart-summary-item-name small {
  color: var(--c-text-muted);
  font-weight: 400;
}

.cart-summary-item-qty {
  color: var(--c-text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 700;
}

.cart-summary-item-price {
  color: var(--purple);
  font-weight: 700;
  white-space: nowrap;
}

.cart-summary-line:first-of-type {
  border-top: 1px solid var(--c-divider);
  padding-top: 14px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--c-text-secondary);
}

.cart-summary-line span:last-child {
  color: var(--purple);
  font-weight: 600;
  text-align: right;
}

.cart-summary-shipping {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--c-text-muted) !important;
}

.cart-summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--c-divider);
  align-items: baseline;
}

.cart-summary-total span:first-child {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--purple);
  font-weight: 400;
}

.cart-summary-total span:last-child {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
}

.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 22px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-checkout svg {
  transition: transform 0.2s;
}

.btn-checkout:hover:not(:disabled) {
  background: #e67300;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 128, 0, 0.4);
}

.btn-checkout:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.btn-checkout:active {
  transform: translateY(0);
}

.btn-checkout:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-checkout .loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  font-weight: 500;
}

.cart-secure svg {
  color: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cart-content {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .cart-summary {
    padding: 24px;
  }
}

@media (max-width: 880px) {
  .cart-page {
    padding: 32px 16px 60px;
  }

  .cart-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .cart-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cart-summary {
    position: static;
    order: -1;
  }

  .cart-summary-items {
    max-height: 160px;
  }

  .cart-items-header {
    display: none;
  }

  /* Cards items en layout multi-lignes */
  .cart-item {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
  }

  .cart-item-product {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .cart-item-remove {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: flex-start;
  }

  .cart-item-price {
    grid-column: 1 / 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cart-item-price::before {
    content: "Prix";
    font-size: 0.7rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-right: 4px;
  }

  .cart-item-quantity {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
  }

  .cart-item-total {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--c-divider);
    font-size: 1rem;
  }

  .cart-item-total::before {
    content: "Total";
    font-size: 0.75rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
  }

  .sub-bubble {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (max-width: 640px) {
  .shipping-tiers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .cart-empty {
    padding: 56px 20px;
  }

  .cart-empty-icon {
    width: 80px;
    height: 80px;
  }

  .cart-summary {
    padding: 20px;
    border-radius: 16px;
  }

  .cart-summary h2 {
    font-size: 1.75rem;
  }

  .cart-summary-total span:last-child {
    font-size: 1.5rem;
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
  }

  .cart-item-name {
    font-size: 0.9375rem;
  }

  .free-shipping-text {
    font-size: 0.875rem;
  }

  .free-shipping-icon {
    width: 36px;
    height: 36px;
  }

  .sub-bubble-header {
    gap: 8px;
  }

  .sub-price-preview {
    width: 100%;
    text-align: right;
  }
}
