/** Shopify CDN: Minification failed

Line 1164:1 Unexpected "}"

**/
/* ==========================================================================
   SMART CART — Jewelor Cart Drawer Widget
   Premium luxury jewelry cart experience
   ========================================================================== */

/* ---------- CSS Custom Properties ------------------------------------------ */
:root {
  /* Core Colors - Luxury Palette */
  --sc-primary: #1a1a2e;
  --sc-primary-dark: #0f0f1a;
  --sc-accent: #c9a96e;
  --sc-accent-light: #d4b88a;
  --sc-accent-dark: #b8944f;
  --sc-gold-gradient: linear-gradient(
    135deg,
    #c9a96e 0%,
    #e8d4a8 50%,
    #c9a96e 100%
  );

  /* Backgrounds */
  --sc-bg: #ffffff;
  --sc-bg-subtle: #fafafa;
  --sc-bg-warm: #fdf9f3;
  --sc-overlay: rgba(26, 26, 46, 0.6);

  /* Text */
  --sc-text: #1a1a2e;
  --sc-text-secondary: #4a4a5a;
  --sc-text-muted: #6e6e80;

  /* Borders & Separators */
  --sc-border: #eaeaef;
  --sc-border-light: #f3f3f6;

  /* Status Colors */
  --sc-success: #2e8b57;
  --sc-success-bg: #f0fdf4;
  --sc-warning: #d4a012;
  --sc-warning-bg: #fffbeb;
  --sc-error: #dc3545;
  --sc-error-bg: #fef2f2;

  /* Dimensions */
  --sc-radius: 10px;
  --sc-radius-md: 8px;
  --sc-radius-sm: 6px;
  --sc-drawer-width: 400px;
  --sc-z: 999999;

  /* Typography - Inherits from theme (Instrument Sans) */
  --sc-font: var(
    --text-font-family,
    "Instrument Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif
  );
  --sc-font-display: var(
    --heading-font-family,
    "Instrument Sans",
    Georgia,
    serif
  );

  /* Shadows - Refined */
  --sc-shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
  --sc-shadow: 0 4px 12px rgba(26, 26, 46, 0.08);
  --sc-shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --sc-shadow-drawer: -8px 0 40px rgba(26, 26, 46, 0.15);

  /* Transitions */
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Overlay -------------------------------------------------------- */
.sc-overlay {
  position: fixed;
  inset: 0;
  background: var(--sc-overlay);
  z-index: var(--sc-z);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--sc-ease),
    visibility 0.4s var(--sc-ease);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sc-overlay.sc-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Drawer Shell --------------------------------------------------- */
.sc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sc-drawer-width);
  max-width: 100vw;
  height: 100%;
  z-index: calc(var(--sc-z) + 1);
  background: var(--sc-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--sc-ease);
  font-family: var(--sc-font);
  color: var(--sc-text);
  box-shadow: var(--sc-shadow-drawer);
  border-left: 1px solid var(--sc-border-light);
}
.sc-drawer.sc-left {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid var(--sc-border-light);
  box-shadow: 8px 0 40px rgba(26, 26, 46, 0.15);
}
.sc-drawer.sc-open {
  transform: translateX(0);
}

/* ---------- Header --------------------------------------------------------- */
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-border);
  flex-shrink: 0;
}
.sc-header__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sc-primary);
}
.sc-header__icon {
  width: 20px;
  height: 20px;
  color: var(--sc-accent);
  flex-shrink: 0;
}
.sc-header__count {
  background: var(--sc-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}
.sc-header__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--sc-text-secondary);
  transition: all 0.2s var(--sc-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-header__close:hover {
  background: var(--sc-bg-subtle);
  color: var(--sc-text);
}
.sc-header__close svg {
  width: 18px;
  height: 18px;
}

/* ---------- Scrollable Body ------------------------------------------------ */
.sc-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--sc-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--sc-border) transparent;
}
.sc-body::-webkit-scrollbar {
  width: 5px;
}
.sc-body::-webkit-scrollbar-track {
  background: transparent;
}
.sc-body::-webkit-scrollbar-thumb {
  background: var(--sc-border);
  border-radius: 5px;
  transition: background 0.2s;
}
.sc-body::-webkit-scrollbar-thumb:hover {
  background: var(--sc-accent);
}

/* ---------- Banners (top / inline / bottom) -------------------------------- */
.sc-banners {
  display: flex;
  flex-direction: column;
}
.sc-banner {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-banner--info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
}
.sc-banner--success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
}
.sc-banner--warning {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  color: #a16207;
}
.sc-banner--promo {
  background: linear-gradient(135deg, var(--sc-bg-warm) 0%, #fef3f2 100%);
  color: var(--sc-accent-dark);
}
.sc-banner__cta {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.sc-banner__cta:hover {
  opacity: 0.8;
}
.sc-banner__dismiss {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.sc-banner__dismiss:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* ---------- Free Shipping Progress ----------------------------------------- */
.sc-shipping {
  padding: 8px 16px;
  border-bottom: 1px solid var(--sc-border);
}
.sc-shipping__text {
  font-size: 12px;
  margin: 0 0 6px;
  color: var(--sc-text);
  text-align: center;
}
.sc-shipping__text strong {
  color: var(--sc-accent-dark);
  font-weight: 600;
}
.sc-shipping__bar {
  height: 5px;
  background: var(--sc-border);
  border-radius: 5px;
  overflow: hidden;
}
.sc-shipping__fill {
  height: 100%;
  border-radius: 5px;
  background: var(--sc-accent);
  transition: width 0.6s var(--sc-ease);
}
.sc-shipping--qualified .sc-shipping__fill {
  background: var(--sc-success);
}
.sc-shipping--qualified .sc-shipping__text {
  color: var(--sc-success);
}

/* ---------- Offer Banners (inline progress) -------------------------------- */
.sc-offers {
  padding: 0 16px;
}
.sc-offer {
  padding: 10px 14px;
  border-radius: var(--sc-radius-sm);
  margin: 8px 0;
  border: 1px solid var(--sc-border);
  position: relative;
}
.sc-offer__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sc-offer__icon {
  font-size: 16px;
  flex-shrink: 0;
}
.sc-offer__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sc-offer__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text);
  line-height: 1.4;
  flex: 1;
}
.sc-offer__progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.sc-offer__progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--sc-accent);
  transition: width 0.5s ease;
}
/* Qualified offer — compact success style */
.sc-offer--qualified {
  border: 1px dashed #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 10px 14px;
}
.sc-offer__qualified-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-offer__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.sc-offer__applied-text {
  font-size: 13px;
  color: #15803d;
  font-weight: 500;
  line-height: 1.3;
}
.sc-offer__applied-text strong {
  font-weight: 700;
}
.sc-offer__code {
  font-family: monospace;
  font-size: 12px;
  background: rgba(22, 163, 74, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.sc-offer__upsell {
  font-size: 12px;
  color: var(--sc-text-muted);
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(234, 179, 8, 0.08);
  border-radius: 6px;
  line-height: 1.4;
}
.sc-offer__upsell strong {
  color: var(--sc-text);
  font-weight: 700;
}
.sc-offer--qualified .sc-offer__progress-fill {
  background: var(--sc-success);
}
.sc-offer__success {
  font-size: 12px;
  color: var(--sc-success);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Milestone Progress Bar (Tiered Offers) ------------------------- */
.sc-milestone {
  margin-top: 12px;
  padding: 0 4px;
}

.sc-milestone__track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 4px;
}

/* The base line */
.sc-milestone__line {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: var(--sc-milestone-bar-h, 3px);
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 0;
}

/* The filled portion */
.sc-milestone__fill {
  position: absolute;
  top: 14px;
  left: 14px;
  height: var(--sc-milestone-bar-h, 3px);
  background: var(--sc-milestone-fill-color, var(--sc-accent));
  border-radius: 2px;
  z-index: 1;
  transition: width 0.6s ease;
  width: 0;
}

.sc-milestone__point {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}

.sc-milestone__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sc-milestone__point--reached .sc-milestone__icon {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.2);
}

.sc-milestone__point--current .sc-milestone__icon {
  border-color: var(--sc-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
  animation: sc-milestone-pulse 2s ease-in-out infinite;
}

@keyframes sc-milestone-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(201,169,110,0.1); }
}

.sc-milestone__label {
  font-size: 10px;
  color: var(--sc-text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
  word-wrap: break-word;
}

.sc-milestone__point--reached .sc-milestone__label {
  color: var(--sc-accent-dark);
  font-weight: 600;
}

.sc-milestone__point--current .sc-milestone__label {
  color: var(--sc-text);
  font-weight: 600;
}

.sc-milestone__msg {
  font-size: 12px;
  color: var(--sc-text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

.sc-milestone__msg a {
  color: var(--sc-accent-dark);
  text-decoration: underline;
  font-weight: 500;
}

.sc-milestone__msg a:hover {
  color: var(--sc-accent);
}

/* ---------- Coupon Input --------------------------------------------------- */
.sc-coupon {
  padding: 8px 20px;
}
.sc-coupon__form {
  display: flex;
  gap: 8px;
}
.sc-coupon__input {
  flex: 1;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  text-transform: uppercase;
  font-family: var(--sc-font);
  transition: border-color 0.2s;
}
.sc-coupon__input:focus {
  border-color: var(--sc-accent);
}
.sc-coupon__input::placeholder {
  text-transform: none;
}
.sc-coupon__btn {
  padding: 8px 16px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  min-height: 40px;
}
.sc-coupon__btn:hover {
  opacity: 0.9;
}
.sc-coupon__btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.sc-coupon__msg {
  font-size: 12px;
  margin-top: 4px;
  padding: 0 2px;
}
.sc-coupon__msg--success {
  color: var(--sc-success);
}
.sc-coupon__msg--error {
  color: var(--sc-error);
}

/* ---------- Line Items ----------------------------------------------------- */
.sc-items {
  padding: 0 16px;
}
.sc-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sc-border-light);
  position: relative;
  transition: opacity 0.3s ease, max-height 0.35s ease, padding 0.35s ease,
    margin 0.35s ease, border-color 0.35s ease;
  max-height: 300px;
  overflow: visible;
}
.sc-item:last-child {
  border-bottom: none;
}
.sc-item__img {
  width: 68px;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--sc-radius-sm);
  object-fit: contain;
  background: var(--sc-bg-subtle);
  flex-shrink: 0;
  border: 1px solid var(--sc-border-light);
}
.sc-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--sc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-item__title a {
  color: inherit;
  text-decoration: none;
}
.sc-item__title a:hover {
  color: var(--sc-accent);
}
.sc-item__variant {
  font-size: 11px;
  color: var(--sc-text-muted);
}
.sc-item__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.sc-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-text);
}
.sc-item__price--free {
  font-size: 15px;
  font-weight: 800;
  color: var(--sc-success);
  letter-spacing: 0.5px;
}
.sc-item__price-compare {
  font-size: 12px;
  color: var(--sc-text-muted);
  text-decoration: line-through;
}
.sc-item__discount {
  font-size: 11px;
  font-weight: 600;
  color: var(--sc-success);
}
.sc-item__discount--free {
  color: var(--sc-success);
  font-weight: 700;
}
.sc-item__stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--sc-warning);
  font-weight: 600;
  background: var(--sc-warning-bg);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
}
.sc-item__stock--urgent {
  color: var(--sc-error);
  background: var(--sc-error-bg);
  animation: sc-pulse 1.5s ease-in-out infinite;
}
@keyframes sc-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.sc-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  width: fit-content;
  background: var(--sc-bg);
}
.sc-item__qty button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--sc-text-secondary);
  transition: all 0.15s;
}
.sc-item__qty button:hover {
  background: var(--sc-bg-subtle);
  color: var(--sc-accent);
}
.sc-item__qty button:active {
  transform: scale(0.95);
}
.sc-item__qty span {
  font-size: 13px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: var(--sc-text);
}
.sc-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sc-text-muted);
  padding: 8px;
  font-size: 16px;
  opacity: 0.4;
  transition: all 0.15s;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-item:hover .sc-item__remove,
.sc-item__remove:hover {
  opacity: 1;
  color: var(--sc-error);
}

/* ---------- Localized Item Update Feedback --------------------------------- */
.sc-item--updating {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ---------- Item Removal Animation ---------------------------------------- */
.sc-item--removing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-color: transparent;
  pointer-events: none;
  overflow: hidden;
}
.sc-item--updating .sc-item__qty span {
  visibility: hidden;
  position: relative;
}
.sc-item--updating .sc-item__qty span::after {
  content: '';
  visibility: visible;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--sc-border);
  border-top-color: var(--sc-accent);
  border-radius: 50%;
  animation: sc-spin 0.6s linear infinite;
}

/* ---------- Gifts Section -------------------------------------------------- */
.sc-gifts {
  padding: 16px;
  margin: 0;
  background: linear-gradient(to bottom, #fdfcfa, #fff);
  border-top: 1px solid var(--sc-border);
}
.sc-gifts__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sc-text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sc-gift {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.sc-gift:last-child {
  margin-bottom: 0;
}
.sc-gift:hover {
  border-color: var(--sc-accent);
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.15);
  transform: translateY(-1px);
}
.sc-gift--selected {
  border-color: var(--sc-accent);
  background: linear-gradient(135deg, #fef9f3 0%, #fff 100%);
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.2);
}
.sc-gift__img {
  width: 52px;
  height: 52px;
  border-radius: var(--sc-radius-sm);
  object-fit: cover;
  background: #f8f8f8;
  flex-shrink: 0;
  border: 1px solid var(--sc-border-light);
}
.sc-gift__info {
  flex: 1;
  min-width: 0;
}
.sc-gift__name {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--sc-text);
}
.sc-gift__desc {
  font-size: 11px;
  color: var(--sc-text-muted);
  margin: 0;
  line-height: 1.3;
}
.sc-gift__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--sc-accent);
  white-space: nowrap;
}
.sc-gift__price--free {
  color: var(--sc-success);
  background: rgba(39, 174, 96, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.sc-gift__check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--sc-border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}
.sc-gift--selected .sc-gift__check {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
}
.sc-gift--selected .sc-gift__check::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Gift Banner (unlocked / progress) ------------------------------ */
.sc-gift-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--sc-border);
}
.sc-gift-banner--unlocked {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f8ee 100%);
  border-top-color: rgba(39, 174, 96, 0.2);
}
.sc-gift-banner--progress {
  background: linear-gradient(135deg, #fdfcfa 0%, #fff 100%);
}
.sc-gift-banner__icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.sc-gift-banner__img {
  width: 48px;
  height: 48px;
  border-radius: var(--sc-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--sc-border-light);
}
.sc-gift-banner__content {
  flex: 1;
  min-width: 0;
}
.sc-gift-banner__title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--sc-text);
  line-height: 1.4;
}
.sc-gift-banner--unlocked .sc-gift-banner__title {
  color: #1a7a3a;
}
.sc-gift-banner__name {
  font-size: 11px;
  color: var(--sc-text-muted);
  margin: 2px 0 0;
}
.sc-gift-banner__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-success);
  background: rgba(39, 174, 96, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-gift-banner__bar {
  height: 4px;
  background: var(--sc-border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.sc-gift-banner__fill {
  height: 100%;
  background: var(--sc-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.sc-gift-banner + .sc-gift {
  margin-top: 10px;
  border-top: none;
}
.sc-gift__action {
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  min-height: 36px;
}
.sc-gift__action--add {
  background: var(--sc-accent);
  color: #fff;
}
.sc-gift__action--add:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.sc-gift__action--remove {
  background: transparent;
  color: var(--sc-text-muted);
  border: 1px solid var(--sc-border);
}
.sc-gift__action--remove:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Gift quantity controls */
.sc-gift__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.sc-gift__qty button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-text);
  padding: 0;
  transition: background 0.15s ease;
}
.sc-gift__qty button:hover:not(:disabled) {
  background: var(--sc-bg-muted, #f5f5f5);
}
.sc-gift__qty button:disabled {
  opacity: 0.3;
  cursor: default;
}
.sc-gift__qty span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-text);
  user-select: none;
}

/* Extra gift row (want more?) */
.sc-gift--extra {
  margin-top: 0;
  border-top: 1px dashed var(--sc-border);
  padding-top: 10px;
}

/* ---------- Cross-Sell / Recommendations ----------------------------------- */
.sc-recommendations-slot {
  overflow: hidden;
}
.sc-recommendations {
  padding: 16px 16px;
  border-top: 1px solid var(--sc-border);
}
.sc-recommendations--animate {
  animation: sc-recsSlideIn 0.4s ease-out both;
}
@keyframes sc-recsSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}
.sc-recommendations__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--sc-text);
}
.sc-recommendations__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.sc-recommendations__scroll::-webkit-scrollbar {
  height: 3px;
}
.sc-recommendations__scroll::-webkit-scrollbar-thumb {
  background: var(--sc-border);
  border-radius: 3px;
}
.sc-rec-card {
  flex-shrink: 0;
  width: 120px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--sc-radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sc-shadow);
}
.sc-rec-card__img {
  width: 120px;
  height: 120px;
  border-radius: var(--sc-radius-sm);
  object-fit: cover;
  background: var(--sc-bg-subtle);
  transition: transform 0.2s ease;
}
.sc-rec-card__title {
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--sc-text);
}
.sc-rec-card__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--sc-primary);
}
.sc-rec-card__add {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--sc-primary);
  background: none;
  color: var(--sc-primary);
  border-radius: var(--sc-radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
}}
.sc-rec-card__add:hover {
  background: var(--sc-primary);
  color: #fff;
}

/* ---------- Recently Viewed ------------------------------------------------ */
.sc-recently-viewed {
  padding: 16px 16px;
  border-top: 1px solid var(--sc-border);
}
.sc-recently-viewed__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--sc-text);
}
.sc-recently-viewed__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.sc-recently-viewed__scroll::-webkit-scrollbar {
  height: 3px;
}
.sc-recently-viewed__scroll::-webkit-scrollbar-thumb {
  background: var(--sc-border);
  border-radius: 3px;
}

/* ---------- Save for Later ------------------------------------------------- */
.sc-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  padding-top: 2px;
}
.sc-item__save {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  transition: all 0.2s;
  padding: 4px;
}
.sc-item__save:hover {
  opacity: 1;
  color: #e74c3c;
  transform: scale(1.1);
}
.sc-item__save--active {
  opacity: 1;
  color: #e74c3c;
}

/* Saved Items Section */
.sc-saved {
  padding: 16px;
  border-top: 1px solid var(--sc-border);
  background: rgba(0, 0, 0, 0.02);
}
.sc-saved__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sc-saved__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--sc-text);
}
.sc-saved__count {
  font-size: 12px;
  color: var(--sc-text-muted);
}
.sc-saved__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-saved__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-border);
}
.sc-saved__img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.sc-saved__info {
  flex: 1;
  min-width: 0;
}
.sc-saved__name {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-saved__variant {
  display: block;
  font-size: 10px;
  color: var(--sc-text-muted);
}
.sc-saved__price {
  font-size: 12px;
  font-weight: 600;
}
.sc-saved__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-saved__add {
  padding: 8px 14px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  min-height: 36px;
}
.sc-saved__add:hover {
  background: var(--sc-primary-dark);
}
.sc-saved__add:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.sc-saved__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--sc-text-muted);
  padding: 8px;
  transition: color 0.2s;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-saved__remove:hover {
  color: #e74c3c;
}

/* ---------- Trust Badges --------------------------------------------------- */
.sc-trust {
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--sc-border);
}
.sc-trust__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--sc-text-muted);
}
.sc-trust__badge svg {
  width: 14px;
  height: 14px;
  color: var(--sc-success);
}

/* ---------- Footer / Checkout ---------------------------------------------- */
.sc-footer {
  border-top: 1px solid var(--sc-border);
  padding: 16px;
  flex-shrink: 0;
  background: var(--sc-bg);
}
.sc-footer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.sc-footer__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-text);
}
.sc-footer__price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sc-footer__price-original {
  font-size: 13px;
  color: var(--sc-text-muted);
  text-decoration: line-through;
}
.sc-footer__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--sc-primary);
}
.sc-footer__price--final {
  font-size: 20px;
  font-weight: 800;
  color: #15803d;
}
.sc-footer__savings-bar {
  margin-bottom: 8px;
}
.sc-footer__savings-pill {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px dashed #86efac;
  border-radius: 6px;
  padding: 6px 12px;
}
.sc-footer__savings {
  font-size: 11px;
  color: var(--sc-success);
  font-weight: 600;
  text-align: right;
  margin-bottom: 8px;
}
.sc-footer__discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.sc-footer__price--discount {
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-success);
}
.sc-coupon__btn--remove {
  background: transparent;
  color: var(--sc-text-muted);
  font-size: 16px;
  min-width: 36px;
  padding: 0 8px;
}
.sc-footer__note {
  font-size: 10px;
  color: var(--sc-text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.sc-footer__checkout {
  width: 100%;
  padding: 13px 20px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--sc-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.sc-footer__checkout:hover {
  background: var(--sc-primary-dark);
  transform: translateY(-1px);
}
.sc-footer__checkout:active {
  transform: scale(0.98);
}
.sc-footer__checkout svg {
  width: 16px;
  height: 16px;
}

/* ---------- Express Checkout ----------------------------------------------- */
.sc-express {
  margin-top: 12px;
}
.sc-express__divider {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.sc-express__divider::before,
.sc-express__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sc-border);
}
.sc-express__divider span {
  padding: 0 16px;
  font-size: 10px;
  color: var(--sc-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.sc-express__buttons {
  display: flex;
  gap: 10px;
}
.sc-express__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-bg);
  cursor: pointer;
  transition: all 0.25s var(--sc-ease);
}
.sc-express__btn:hover {
  border-color: var(--sc-text-muted);
  background: var(--sc-bg-subtle);
  transform: translateY(-1px);
}
.sc-express__btn:active {
  transform: scale(0.98);
}
.sc-express__btn svg {
  height: 20px;
  width: auto;
}
.sc-express__btn--shop-pay {
  background: #5a31f4;
  border-color: #5a31f4;
  color: #fff;
}
.sc-express__btn--shop-pay:hover {
  background: #4b27d0;
  border-color: #4b27d0;
}
.sc-express__btn--paypal {
  background: #ffc439;
  border-color: #ffc439;
}
.sc-express__btn--paypal:hover {
  background: #f0b429;
  border-color: #f0b429;
}

/* ---------- Empty Cart ----------------------------------------------------- */
.sc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  text-align: center;
  flex: 1;
}
.sc-empty__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.35;
  animation: sc-float 3s ease-in-out infinite;
}
.sc-empty__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--sc-text);
  fill: none;
}
@keyframes sc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sc-empty__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--sc-primary);
}
.sc-empty__text {
  font-size: 13px;
  color: var(--sc-text-muted);
  margin: 0 0 24px;
  max-width: 260px;
  line-height: 1.5;
}
.sc-empty__cta {
  display: inline-block;
  padding: 13px 32px;
  background: var(--sc-primary);
  color: #fff;
  border-radius: var(--sc-radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.sc-empty__cta:hover {
  background: var(--sc-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

/* ---------- Loading / Skeleton --------------------------------------------- */
.sc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  text-align: center;
  flex: 1;
  min-height: 250px;
}
.sc-loading-skeleton {
  width: 100%;
  max-width: 320px;
}
.sc-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sc-border);
  border-top-color: var(--sc-accent);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
  margin-bottom: 14px;
}
.sc-loading__text {
  font-size: 13px;
  color: var(--sc-text-muted);
  margin: 16px 0 0;
}
@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}
.sc-skeleton {
  height: 50px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  border-radius: var(--sc-radius-sm);
  animation: sc-shimmer 1.5s infinite;
}
@keyframes sc-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Loading Overlay (shown during API calls) ---------------------- */
.sc-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--sc-ease),
    visibility 0.3s var(--sc-ease);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: inherit;
}
.sc-loading-overlay.sc-active {
  opacity: 1;
  visibility: visible;
}
.sc-loading-overlay__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sc-border);
  border-top-color: var(--sc-accent);
  border-radius: 50%;
  animation: sc-spin 0.75s linear infinite;
}

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 480px) {
  .sc-drawer {
    --sc-drawer-width: 100vw;
  }
  .sc-header {
    padding: 12px 16px;
  }
  .sc-header__title {
    font-size: 14px;
  }
  .sc-items {
    padding: 0 16px;
  }
  .sc-item {
    padding: 12px 0;
    gap: 10px;
  }
  .sc-item__img {
    width: 60px;
    height: 60px;
  }
  .sc-item__title {
    font-size: 12px;
  }
  .sc-item__price {
    font-size: 13px;
  }
  .sc-item__qty button {
    width: 36px;
    height: 36px;
  }
  .sc-item__remove {
    opacity: 0.5;
  }
  .sc-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .sc-footer__checkout {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 48px;
  }
  .sc-recommendations,
  .sc-recently-viewed {
    padding: 10px 16px;
  }
  .sc-rec-card {
    width: 110px;
  }
  .sc-rec-card__img {
    width: 110px;
    height: 110px;
  }
  .sc-gift-message {
    margin: 10px 16px;
  }
  .sc-empty__icon {
    font-size: 48px;
  }
  .sc-empty__title {
    font-size: 20px;
  }
  .sc-empty__text {
    font-size: 13px;
  }
  .sc-empty__cta {
    padding: 14px 28px;
    min-height: 48px;
    font-size: 13px;
  }

  /* Loading */
  .sc-loading {
    padding: 60px 24px;
  }

  /* Banners */
  .sc-banner {
    padding: 10px 16px;
    font-size: 12px;
  }

  /* Offers */
  .sc-offers {
    padding: 0 16px;
  }
  .sc-offer__text {
    font-size: 12px;
  }

  /* Coupon */
  .sc-coupon {
    padding: 8px 16px;
  }
  .sc-coupon__input {
    padding: 10px 12px;
    font-size: 16px; /* Prevents iOS zoom */
  }
  .sc-coupon__btn {
    padding: 10px 14px;
    min-height: 44px;
  }

  /* Gifts */
  .sc-gifts {
    padding: 12px 16px;
  }
  .sc-gift {
    padding: 12px;
    min-height: 72px;
  }

  /* Toast */
  .sc-toast {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    transform: translateY(100px);
    border-radius: 12px;
    padding: 14px 18px;
  }
  .sc-toast.sc-visible {
    transform: translateY(0);
  }
}

/* Small phones */
@media (max-width: 360px) {
  .sc-header__title {
    font-size: 16px;
  }
  .sc-item__img {
    width: 60px;
    height: 60px;
  }
  .sc-item__title {
    font-size: 12px;
  }
  .sc-rec-card {
    width: 110px;
  }
  .sc-rec-card__img {
    height: 95px;
  }
  .sc-footer__checkout {
    font-size: 13px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .sc-item:hover {
    background: transparent;
  }
  .sc-item:hover .sc-item__img {
    transform: none;
    box-shadow: none;
  }
  .sc-rec-card:hover {
    transform: none;
    box-shadow: none;
  }
  .sc-header__close:hover {
    transform: none;
  }
  .sc-footer__checkout:hover {
    transform: none;
  }

  /* Add active states instead */
  .sc-item:active {
    background: var(--sc-bg-subtle);
  }
  .sc-header__close:active {
    background: var(--sc-bg-subtle);
    transform: rotate(90deg);
  }
  .sc-rec-card:active {
    transform: scale(0.98);
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .sc-empty {
    padding: 30px 24px;
  }
  .sc-empty__icon {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .sc-loading {
    padding: 30px 24px;
    min-height: 200px;
  }
}

/* ---------- Gift Message --------------------------------------------------- */
.sc-gift-message {
  margin: 12px 16px;
  background: #fafafa;
  border-radius: var(--sc-radius);
  overflow: hidden;
}
.sc-gift-message__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.sc-gift-message__header:hover {
  background: rgba(0, 0, 0, 0.03);
}
.sc-gift-message__icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.sc-gift-message__title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-text);
}
.sc-gift-message__chevron {
  font-size: 10px;
  color: var(--sc-text-muted);
  transition: transform 0.3s;
}
.sc-gift-message--open .sc-gift-message__chevron {
  transform: rotate(180deg);
}
.sc-gift-message__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sc-gift-message__body--open {
  max-height: 200px;
  padding: 0 14px 14px;
}
.sc-gift-message__input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  background: #fff;
  color: var(--sc-text);
}
.sc-gift-message__input:focus {
  outline: none;
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.12);
}
.sc-gift-message__input::placeholder {
  color: var(--sc-text-muted);
}
.sc-gift-message__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.sc-gift-message__count {
  font-size: 11px;
  color: var(--sc-text-muted);
}
.sc-gift-message__save {
  padding: 8px 16px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sc-gift-message__save:hover {
  background: var(--sc-primary-dark);
}
.sc-gift-message__save:active {
  transform: scale(0.98);
}
.sc-gift-message__save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Cart Notes ----------------------------------------------------- */
.sc-cart-notes {
  margin: 12px 16px;
  background: #fafafa;
  border-radius: var(--sc-radius);
  overflow: hidden;
}
.sc-cart-notes__header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  user-select: none;
  transition: background 0.2s;
}
.sc-cart-notes__header:hover {
  background: rgba(0, 0, 0, 0.03);
}
.sc-cart-notes__icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.sc-cart-notes__title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-text);
}
.sc-cart-notes__chevron {
  font-size: 10px;
  color: var(--sc-text-muted);
  transition: transform 0.2s ease;
}
.sc-cart-notes--open .sc-cart-notes__chevron {
  transform: rotate(180deg);
}
.sc-cart-notes__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sc-cart-notes__body--open {
  max-height: 200px;
  padding: 0 14px 14px;
}
.sc-cart-notes__input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  font-size: 13px;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  background: #fff;
}
.sc-cart-notes__input:focus {
  outline: none;
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.12);
}
.sc-cart-notes__input::placeholder {
  color: var(--sc-text-muted);
}
.sc-cart-notes__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.sc-cart-notes__count {
  font-size: 11px;
  color: var(--sc-text-muted);
}
.sc-cart-notes__save {
  padding: 8px 16px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sc-cart-notes__save:hover {
  background: var(--sc-primary-dark);
}
.sc-cart-notes__save:active {
  transform: scale(0.98);
}
.sc-cart-notes__save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Shanaya AI Tip ------------------------------------------------- */
.sc-shanaya-tip {
  margin: 14px 16px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  position: relative;
}
.sc-shanaya-tip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b8973f 0%, #d4b56a 40%, #e2ca8a 60%, #d4b56a 80%, #b8973f 100%);
  background-size: 200% 100%;
  animation: sc-shanaya-shimmer 3s ease-in-out infinite;
}
@keyframes sc-shanaya-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.sc-shanaya-tip__body {
  padding: 14px 16px 16px;
}
.sc-shanaya-tip__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sc-shanaya-tip__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8973f 0%, #d4b56a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Georgia', serif;
  box-shadow: 0 2px 8px rgba(184, 151, 63, 0.3);
  position: relative;
}
.sc-shanaya-tip__avatar::after {
  content: '✦';
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 12px;
  color: #b8973f;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  animation: sc-shanaya-sparkle 2s ease-in-out infinite;
}
@keyframes sc-shanaya-sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.sc-shanaya-tip__meta {
  flex: 1;
  min-width: 0;
}
.sc-shanaya-tip__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-shanaya-tip__name {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1c;
  letter-spacing: 0.3px;
}
.sc-shanaya-tip__badge {
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #b8973f, #c9a84e);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.3;
}
.sc-shanaya-tip__subtitle {
  font-size: 10px;
  color: #777;
  margin-top: 1px;
  letter-spacing: 0.2px;
}
.sc-shanaya-tip__dismiss {
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.sc-shanaya-tip__dismiss:hover {
  color: #888;
  background: rgba(0,0,0,0.06);
}
.sc-shanaya-tip__bubble {
  position: relative;
  background: #f5f5f6;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: none;
  border: 1px solid #e5e5e5;
}
.sc-shanaya-tip__bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #f5f5f6;
  border-left: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  transform: rotate(45deg);
}
.sc-shanaya-tip__text {
  font-size: 13px;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
}
.sc-shanaya-tip__typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
  align-items: center;
}
.sc-shanaya-tip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8973f;
  opacity: 0.5;
  animation: sc-shanaya-typing 1.2s ease-in-out infinite;
}
.sc-shanaya-tip__dot:nth-child(2) { animation-delay: 0.15s; }
.sc-shanaya-tip__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes sc-shanaya-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.sc-shanaya-tip__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #a0852e;
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}
.sc-shanaya-tip__action:hover {
  color: #87701e;
  text-decoration: underline;
}
.sc-shanaya-tip__action svg {
  transition: transform 0.2s;
}
.sc-shanaya-tip__action:hover svg {
  transform: translateX(2px);
}

/* ---------- Animation helpers ---------------------------------------------- */
.sc-fade-in {
  animation: sc-fadeIn 0.25s ease;
}
@keyframes sc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sc-slide-in {
  animation: sc-slideIn 0.4s var(--sc-ease);
}
@keyframes sc-slideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sc-scale-in {
  animation: sc-scaleIn 0.3s var(--sc-ease-bounce);
}
@keyframes sc-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Stock indicators ----------------------------------------------- */
.sc-item__stock-limit {
  font-size: 11px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
}
.sc-item__stock-low {
  font-size: 11px;
  color: #d97706;
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Notify toast --------------------------------------------------- */
.sc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--sc-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--sc-radius);
  font-size: 13px;
  font-weight: 500;
  z-index: calc(var(--sc-z) + 10);
  transition: transform 0.4s var(--sc-ease);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-toast.sc-visible {
  transform: translateX(-50%) translateY(0);
}
.sc-toast--success {
  background: var(--sc-success);
}
.sc-toast--error {
  background: var(--sc-error);
}

/* ---------- Accessibility -------------------------------------------------- */

/* Screen-reader-only utility */
.sc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus-visible rings on all interactive elements */
.sc-drawer button:focus-visible,
.sc-drawer a:focus-visible,
.sc-drawer input:focus-visible,
.sc-drawer textarea:focus-visible,
.sc-drawer select:focus-visible,
.sc-drawer [tabindex]:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default outline — :focus-visible handles it */
.sc-drawer button:focus:not(:focus-visible),
.sc-drawer a:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Reduced Motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sc-drawer,
  .sc-overlay,
  .sc-item,
  .sc-item--removing,
  .sc-item--updating,
  .sc-shipping__fill,
  .sc-offer__fill,
  .sc-empty__cta,
  .sc-footer__checkout,
  .sc-rec-card,
  .sc-loading-overlay,
  .sc-toast {
    transition: none !important;
    animation: none !important;
  }
  .sc-fade-in,
  .sc-slide-in,
  .sc-scale-in,
  .sc-empty__icon,
  .sc-loading__spinner,
  .sc-loading-overlay__spinner,
  .sc-item--updating .sc-item__qty span::after,
  .sc-shanaya__avatar {
    animation: none !important;
  }
  .sc-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .sc-item--removing {
    opacity: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}
