/* ============================================================
   E-COMMERCE DESIGN SYSTEM
   Modern, scalable, mobile-first UI architecture
   ============================================================ */

:root {
  /* COLORS — Warm Marketplace Palette */
  --ds-color-primary: #FF9900;
  --ds-color-primary-hover: #E68A00;
  --ds-color-primary-light: #FFF3E0;
  --ds-color-secondary: #232F3E;
  --ds-color-secondary-hover: #1A2433;
  --ds-color-secondary-light: #37475A;
  
  --ds-color-text-main: #2D3436;
  --ds-color-text-muted: #636E72;
  --ds-color-text-light: #95A5A6;
  
  --ds-color-bg-body: #FAFAF7;
  --ds-color-bg-surface: #FFFFFF;
  --ds-color-bg-subtle: #F0EDE8;
  
  --ds-color-border: #E5E0D8;
  --ds-color-border-hover: #D4CEC6;

  --ds-color-bg-card: #FFFFFF;

  --ds-color-success: #16A34A;
  --ds-color-warning: #F59E0B;
  --ds-color-danger: #DC2626;
  --ds-color-info: #3B82F6;

  /* TYPOGRAPHY — Warby Parker-style elegant sans-serif */
  --ds-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ds-font-size-base: 14px;
  --ds-font-size-sm: 13px;
  --ds-font-size-xs: 12px;
  --ds-font-size-lg: 16px;
  --ds-font-size-h3: 18px;
  --ds-font-size-h2: 26px;
  --ds-font-size-h1: 32px;
  
  /* SPACING */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 16px;
  --ds-space-4: 24px;
  --ds-space-5: 32px;
  --ds-space-6: 48px;
  
  /* SHADOWS & BORDERS — Amazon clean style */
  --ds-radius-sm: 4px;
  --ds-radius-md: 8px;
  --ds-radius-lg: 8px;
  --ds-radius-full: 9999px;
  
  --ds-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --ds-shadow-md: 0 2px 8px rgba(45,52,54,0.07);
  --ds-shadow-lg: 0 4px 16px rgba(45,52,54,0.10);

  /* LAYOUT */
  --ds-max-width: 1400px;
  --ds-header-height: 72px;
  --ds-nav-height: 40px;
  
  /* TRANSITIONS */
  --ds-transition-fast: 0.15s ease-in-out;
  --ds-transition-normal: 0.25s ease-in-out;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ds-font-family);
  font-size: var(--ds-font-size-base);
  color: var(--ds-color-text-main);
  background-color: var(--ds-color-bg-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--ds-space-3) 0;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ds-color-text-main);
}

h1 { font-size: var(--ds-font-size-h1); }
h2 { font-size: var(--ds-font-size-h2); }
h3 { font-size: var(--ds-font-size-h3); }

p {
  margin: 0 0 var(--ds-space-3) 0;
}

a {
  color: #C45500;
  text-decoration: none;
  transition: color var(--ds-transition-fast);
}

a:hover {
  color: var(--ds-color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ds-color-primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

/* ------------------------------------------------------------
   UTILITIES & LAYOUT
   ------------------------------------------------------------ */
.ds-container {
  max-width: var(--ds-max-width);
  margin: 0 auto;
  padding: 0 var(--ds-space-3);
  width: 100%;
}

.ds-flex { display: flex; }
.ds-flex-col { flex-direction: column; }
.ds-items-center { align-items: center; }
.ds-justify-between { justify-content: space-between; }
.ds-justify-center { justify-content: center; }
.ds-gap-1 { gap: var(--ds-space-1); }
.ds-gap-2 { gap: var(--ds-space-2); }
.ds-gap-3 { gap: var(--ds-space-3); }
.ds-gap-4 { gap: var(--ds-space-4); }
.ds-gap-5 { gap: var(--ds-space-5); }

.ds-grid { display: grid; }
.ds-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ds-mt-1 { margin-top: var(--ds-space-1); }
.ds-mt-2 { margin-top: var(--ds-space-2); }
.ds-mt-3 { margin-top: var(--ds-space-3); }
.ds-mt-4 { margin-top: var(--ds-space-4); }
.ds-mb-1 { margin-bottom: var(--ds-space-1); }
.ds-mb-2 { margin-bottom: var(--ds-space-2); }
.ds-mb-3 { margin-bottom: var(--ds-space-3); }
.ds-mb-4 { margin-bottom: var(--ds-space-4); }

.ds-p-2 { padding: var(--ds-space-2); }
.ds-p-3 { padding: var(--ds-space-3); }
.ds-p-4 { padding: var(--ds-space-4); }

.ds-text-center { text-align: center; }
.ds-text-right { text-align: right; }
.ds-text-muted { color: var(--ds-color-text-muted); }
.ds-text-primary { color: var(--ds-color-primary); }
.ds-text-success { color: var(--ds-color-success); }
.ds-text-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
.ds-text-sm { font-size: var(--ds-font-size-sm); }
.ds-text-xs { font-size: var(--ds-font-size-xs); }
.ds-font-bold { font-weight: 700; }
.ds-font-medium { font-weight: 500; }

.ds-hidden { display: none; }
@media (min-width: 768px) {
  .ds-md-flex { display: flex; }
  .ds-md-grid { display: grid; }
  .ds-md-hidden { display: none; }
}

/* ------------------------------------------------------------
   COMPONENTS
   ------------------------------------------------------------ */

/* Buttons */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: 10px 16px;
  border-radius: var(--ds-radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--ds-transition-fast);
  text-align: center;
  white-space: nowrap;
}
.ds-btn:active {
  transform: scale(0.97);
}
.ds-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ds-btn-primary {
  background-color: var(--ds-color-primary);
  color: #fff;
  font-weight: 700;
}
.ds-btn-primary:not(:disabled):hover {
  background-color: var(--ds-color-primary-hover);
  color: #fff;
}

.ds-btn-secondary {
  background-color: var(--ds-color-secondary);
  color: #fff;
}
.ds-btn-secondary:not(:disabled):hover {
  background-color: var(--ds-color-secondary-hover);
  color: #fff;
}

.ds-btn-outline {
  background-color: transparent;
  border-color: var(--ds-color-border);
  color: var(--ds-color-text-main);
}
.ds-btn-outline:not(:disabled):hover {
  border-color: var(--ds-color-text-muted);
  background-color: var(--ds-color-bg-subtle);
}

.ds-btn-ghost {
  background-color: transparent;
  color: var(--ds-color-text-muted);
}
.ds-btn-ghost:not(:disabled):hover {
  background-color: var(--ds-color-bg-subtle);
  color: var(--ds-color-text-main);
}

.ds-btn-full { width: 100%; }

.ds-btn-sm {
  padding: 6px 12px;
  font-size: var(--ds-font-size-sm);
}

/* Cards — MIC flat style */
.ds-card {
  background-color: var(--ds-color-bg-surface);
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-color-border);
  box-shadow: var(--ds-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ds-card-hoverable:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: var(--ds-color-border-hover);
  transform: translateY(-2px);
}
.ds-card-header {
  padding: var(--ds-space-3);
  border-bottom: 1px solid var(--ds-color-border);
  font-weight: 700;
  background-color: var(--ds-color-bg-surface);
}
.ds-card-body {
  padding: var(--ds-space-3);
}
.ds-card-footer {
  padding: var(--ds-space-3);
  border-top: 1px solid var(--ds-color-border);
  background-color: var(--ds-color-bg-subtle);
}

/* Product Card — Clean Minimal (Warby Parker-inspired) */
.ds-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-color: transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ds-product-card:hover {
  border-color: var(--ds-color-border);
  box-shadow: 0 4px 20px rgba(45,52,54,0.08);
}
.ds-product-card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 110%;
  background-color: var(--ds-color-bg-surface);
  overflow: hidden;
}
.ds-product-card__img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ds-product-card:hover .ds-product-card__img {
  transform: scale(1.04);
  opacity: 0.95;
}
.ds-product-card__info {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.ds-product-card__title {
  font-size: 13px;
  color: var(--ds-color-text-main);
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  min-height: 36px;
}
.ds-product-card__title:hover { color: var(--ds-color-primary); }
.ds-product-card__price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.ds-product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-color-text-main);
  letter-spacing: -0.3px;
}
.ds-product-card__price-old {
  font-size: 12px;
  color: var(--ds-color-text-light);
  text-decoration: line-through;
}

/* Card: Discount Badge */
.ds-product-card__discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: var(--ds-color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  line-height: 1.3;
}
/* Card: Tag badges (trending, best seller, new) */
.ds-product-card__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ds-tag-trending { background: var(--ds-color-primary); color: #222; }
.ds-tag-best { background: var(--ds-color-secondary); color: #fff; }
.ds-tag-new { background: #10B981; color: #fff; }
.ds-tag-deal { background: #8B5CF6; color: #fff; }

/* Card: Rating Row */
.ds-product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--ds-color-text-muted);
}
.ds-product-card__stars {
  display: inline-flex;
  gap: 1px;
  color: #F59E0B;
}
.ds-product-card__stars svg { width: 12px; height: 12px; }
.ds-product-card__rating-val { font-weight: 600; color: var(--ds-color-text-main); }
.ds-product-card__sold {
  font-size: 11px;
  color: var(--ds-color-text-light);
}

/* Card: Trust / Meta Row — hidden by default for clean Warby look */
.ds-product-card__meta {
  display: none;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ds-color-text-light);
  margin-top: 2px;
}
.ds-product-card__delivery {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ds-color-success);
  font-size: 11px;
  font-weight: 600;
}
.ds-product-card__stock-low {
  color: var(--ds-color-secondary);
  font-size: 11px;
  font-weight: 600;
}

/* Card: Quick action overlay */
.ds-product-card__actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  border-top: 1px solid var(--ds-color-border);
}
.ds-product-card:hover .ds-product-card__actions {
  transform: translateY(0);
}
/* Quick Add to Cart button */
.ds-product-card__add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 6;
  background: var(--ds-color-primary);
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--ds-radius-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.ds-product-card:hover .ds-product-card__add-btn {
  opacity: 1;
  transform: translateY(0);
}
.ds-product-card__add-btn:hover { background: var(--ds-color-primary-hover); }
/* Image wrap gradient on hover */
.ds-product-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.06) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.ds-product-card:hover .ds-product-card__img-wrap::after { opacity: 1; }

/* Forms */
.ds-form-group {
  margin-bottom: var(--ds-space-3);
}
.ds-label {
  display: block;
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  margin-bottom: var(--ds-space-1);
  color: var(--ds-color-text-muted);
}
.ds-input, .ds-select, .ds-textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-color-text-main);
  transition: border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}
.ds-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.ds-input:disabled, .ds-select:disabled, .ds-textarea:disabled {
  background-color: var(--ds-color-bg-subtle);
  color: var(--ds-color-text-light);
  cursor: not-allowed;
}
.ds-checkbox {
  width: auto;
  margin: 0;
  accent-color: var(--ds-color-primary);
  cursor: pointer;
}

/* Badges */
.ds-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ds-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--ds-transition-fast);
}
.ds-badge-primary { background-color: var(--ds-color-primary); color: #fff; }
.ds-badge-secondary { background-color: var(--ds-color-secondary); color: #fff; }
.ds-badge-danger { background-color: var(--ds-color-danger); color: #fff; }
.ds-badge-success { background-color: var(--ds-color-success); color: #fff; }
.ds-badge-outline { background-color: transparent; border: 1px solid var(--ds-color-border); color: var(--ds-color-text-muted); }

/* ---- MARKETPLACE DENSITY COMPONENTS ---- */

/* Section Header — clean minimal (Warby Parker-inspired) */
.ds-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}
.ds-section-header__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ds-color-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}
.ds-section-header__icon {
  width: 22px;
  height: 22px;
  color: var(--ds-color-primary);
}
.ds-section-header__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-full);
  transition: all 0.2s ease;
}
.ds-section-header__link:hover {
  color: var(--ds-color-primary);
  border-color: var(--ds-color-primary);
}

/* Flash Sale Banner */
.ds-flash-banner {
  background: linear-gradient(90deg, #FF9900 0%, #FFB347 50%, #FF9900 100%);
  color: #222;
  padding: var(--ds-space-2) var(--ds-space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ds-space-2);
  border-radius: var(--ds-radius-md);
}
.ds-flash-banner__title {
  font-size: var(--ds-font-size-h3);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}
.ds-flash-banner__countdown {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
}
.ds-flash-banner__digit {
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  font-weight: 700;
  font-size: 16px;
  min-width: 32px;
  text-align: center;
}
.ds-flash-banner__sep {
  font-weight: 700;
  font-size: 16px;
}

/* Dense Grid Gaps */
.ds-gap-tight { gap: 8px; }
.ds-gap-dense { gap: 6px; }

/* Horizontal Scroll Row (for flash deals) */
.ds-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ds-scroll-row::-webkit-scrollbar { height: 3px; }
.ds-scroll-row::-webkit-scrollbar-thumb { background: var(--ds-color-border); }
.ds-scroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Marketplace Section Spacing — generous Warby whitespace */
.ds-mp-section { margin-bottom: 48px; }

/* Trust Badges Row — subtle, Warby-like */
.ds-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  margin-bottom: 16px;
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
}
.ds-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.ds-trust-bar__item svg {
  width: 16px;
  height: 16px;
  color: var(--ds-color-success);
}

/* Verified Seller Inline Badge */
.ds-verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--ds-color-success);
  font-weight: 600;
}
.ds-verified svg { width: 12px; height: 12px; }

/* ---- EXTRACTED PAGE COMPONENTS (replacing inline styles) ---- */

/* Hero Banner — full-width, Warby Parker-inspired */
.ds-hero-banner {
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ds-hero-banner__content {
  position: relative;
  z-index: 10;
  max-width: 55%;
}
.ds-hero-banner__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.5px;
}
.ds-hero-banner__sub {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.8;
  line-height: 1.5;
  font-weight: 300;
}
.ds-hero-banner__decor {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
@media (max-width: 767px) {
  .ds-hero-banner { min-height: 220px; padding: 24px 16px; }
  .ds-hero-banner__content { max-width: 100%; }
  .ds-hero-banner__title { font-size: 24px; }
}

/* Hero Slider */
.ds-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-sm);
}
.ds-hero-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}
.ds-hero-slider__slide {
  min-width: 100%;
  flex-shrink: 0;
}
.ds-hero-slider__slide .ds-hero-banner {
  background-size: cover;
  background-position: center;
}
.ds-hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.ds-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.ds-hero-slider__dot--active {
  background: #fff;
}
.ds-hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.ds-hero-slider__arrow:hover { background: rgba(0,0,0,0.6); }
.ds-hero-slider__arrow--prev { left: 10px; }
.ds-hero-slider__arrow--next { right: 10px; }
@media (max-width: 767px) {
  .ds-hero-slider__arrow { width: 28px; height: 28px; font-size: 16px; }
}

/* Category Sidebar (homepage) */
.ds-cat-sidebar__header {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  background: var(--ds-color-primary);
  color: #fff;
}
.ds-cat-sidebar__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  color: var(--ds-color-text-main);
  font-size: 13px;
  border-bottom: 1px solid var(--ds-color-bg-subtle);
  transition: background 0.15s;
  text-decoration: none;
}
.ds-cat-sidebar__link:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
}
.ds-cat-sidebar__count {
  color: var(--ds-color-text-light);
  font-size: 11px;
}
.ds-cat-sidebar__footer {
  display: block;
  padding: 10px 14px;
  color: var(--ds-color-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--ds-color-border);
  text-decoration: none;
}
.ds-cat-sidebar__footer:hover {
  background: var(--ds-color-bg-subtle);
}

/* Category Tile (homepage grid) */
.ds-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  gap: 8px;
  text-align: center;
  text-decoration: none;
}
.ds-category-tile__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.ds-category-tile__icon {
  width: 56px;
  height: 56px;
  background: var(--ds-color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.ds-category-tile__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-category-tile__count {
  font-size: 11px;
  color: var(--ds-color-text-light);
}

/* Filter Row (product listing) */
.ds-filter-row {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px dashed var(--ds-color-border);
}
.ds-filter-row:last-child {
  border-bottom: none;
}
.ds-filter-row__label {
  width: 130px;
  font-weight: 600;
  color: var(--ds-color-text-muted);
  flex-shrink: 0;
}
.ds-filter-row__content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 767px) {
  .ds-filter-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .ds-filter-row__label { width: auto; }
}

/* Filter Chip (active/inactive category badges) */
.ds-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--ds-radius-full);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-text-main);
  transition: background 0.15s, color 0.15s;
}
.ds-filter-chip:hover {
  background: var(--ds-color-border);
  color: var(--ds-color-text-main);
}
.ds-filter-chip--active {
  background: var(--ds-color-primary);
  color: #fff;
  font-weight: 600;
}
.ds-filter-chip--active:hover {
  background: var(--ds-color-primary-hover);
  color: #fff;
}

/* Button Large */
.ds-btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

/* Grid Span Helper */
.ds-col-span-3 { grid-column: span 3 / span 3; }
@media (max-width: 767px) {
  .ds-col-span-3 { grid-column: span 1; }
}

/* Breadcrumb */
.ds-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  padding: var(--ds-space-3) 0;
}
.ds-breadcrumb a {
  color: #0066CC;
}
.ds-breadcrumb a:hover {
  color: var(--ds-color-primary);
}
.ds-breadcrumb-sep {
  color: var(--ds-color-text-light);
}

/* ------------------------------------------------------------
   ADDITIONAL UTILITIES
   ------------------------------------------------------------ */
.ds-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.ds-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ds-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ds-text-main { color: var(--ds-color-text-main); }
.ds-text-base { font-size: var(--ds-font-size-base); }
.ds-text-h2 { font-size: var(--ds-font-size-h2); }
.ds-text-h3 { font-size: var(--ds-font-size-h3); }
.ds-flex-wrap { flex-wrap: wrap; }
.ds-flex-shrink-0 { flex-shrink: 0; }
.ds-flex-1 { flex: 1; }
.ds-mt-auto { margin-top: auto; }
.ds-mt-5 { margin-top: var(--ds-space-5); }
.ds-mt-6 { margin-top: var(--ds-space-6); }
.ds-mb-5 { margin-bottom: var(--ds-space-5); }
.ds-mb-6 { margin-bottom: var(--ds-space-6); }
.ds-p-5 { padding: var(--ds-space-5); }
.ds-relative { position: relative; }
.ds-overflow-hidden { overflow: hidden; }
.ds-nowrap { white-space: nowrap; }
.ds-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-p-0 { padding: 0; }
.ds-cursor-pointer { cursor: pointer; }
.ds-section-bg { background-color: var(--ds-color-bg-body); min-height: 80vh; padding: var(--ds-space-4) 0; }
.ds-w-full { width: 100%; }
.ds-h-full { height: 100%; }
.ds-block { display: block; }
.ds-inline-flex { display: inline-flex; }
.ds-items-start { align-items: flex-start; }
.ds-items-end { align-items: flex-end; }
.ds-justify-end { justify-content: flex-end; }
.ds-text-left { text-align: left; }
.ds-border-t { border-top: 1px solid var(--ds-color-border); }
.ds-border-b { border-bottom: 1px solid var(--ds-color-border); }

@media (min-width: 768px) {
  .ds-md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-md-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ds-md-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ds-md-flex-row { flex-direction: row; }
  .ds-md-block { display: block; }
}
@media (min-width: 1024px) {
  .ds-lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-lg-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ds-lg-flex-row { flex-direction: row; }
}

/* Mobile marketplace optimizations */
@media (max-width: 767px) {
  .ds-product-card__price { font-size: 15px; }
  .ds-product-card__info { padding: 8px; gap: 3px; }
  .ds-product-card__title { font-size: 12px; min-height: 32px; }
  .ds-product-card__actions { display: none !important; }
  .ds-flash-banner { flex-direction: column; gap: 8px; text-align: center; padding: 10px; }
  .ds-flash-banner__title { font-size: 16px; }
  .ds-section-header { padding-bottom: 0; margin-bottom: 16px; }
  .ds-section-header__title { font-size: 17px; }
  .ds-trust-bar { gap: 16px; flex-wrap: wrap; padding: 10px 12px; justify-content: center; }
  .ds-scroll-row > .ds-product-card { width: 140px; }
  .ds-mp-section { margin-bottom: 28px; }
  .ds-container { padding: 0 10px; }
}

/* ------------------------------------------------------------
   PAGE WRAPPER
   ------------------------------------------------------------ */
.ds-page {
  min-height: 80vh;
  padding: var(--ds-space-4) 0;
  background-color: var(--ds-color-bg-body);
}

/* ------------------------------------------------------------
   SKIP NAVIGATION (a11y)
   ------------------------------------------------------------ */
.ds-skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: var(--ds-color-primary);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--ds-radius-md) 0;
}
.ds-skip-nav:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.ds-header {
  background: var(--ds-color-secondary);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top utility bar — Amazon dark bar */
.ds-topbar {
  background: var(--ds-color-secondary);
  border-bottom: none;
  padding: 6px 0;
  font-size: var(--ds-font-size-xs);
  color: #fff;
}
.ds-topbar a {
  color: rgba(255,255,255,0.9);
  transition: color var(--ds-transition-fast);
}
.ds-topbar a:hover {
  color: #fff;
}
.ds-topbar-sep {
  color: rgba(255,255,255,0.4);
}

/* Main header row */
.ds-header-main {
  padding: 10px 0;
}

/* Logo */
.ds-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.ds-logo img {
  max-height: 36px;
}
.ds-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.ds-logo-dot {
  color: var(--ds-color-primary);
}

/* Search form — Amazon style */
.ds-search-form {
  flex: 1;
  display: flex;
  max-width: 780px;
  margin: 0 24px;
  height: 44px;
  border: 2px solid var(--ds-color-primary);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  background: var(--ds-color-bg-surface);
}
.ds-search-form select {
  width: 140px;
  border: none;
  border-right: 1px solid var(--ds-color-border);
  background: var(--ds-color-bg-subtle);
  padding: 0 12px;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  outline: none;
  cursor: pointer;
}
.ds-search-form input[type="text"] {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: background var(--ds-transition-fast);
}
.ds-search-form input[type="text"]:focus {
  background: var(--ds-color-bg-card);
}
.ds-search-form button {
  background: var(--ds-color-primary);
  color: #222;
  border: none;
  padding: 0 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--ds-transition-fast);
}
.ds-search-form button:hover {
  background: var(--ds-color-primary-hover);
}
.ds-search-category {
  border: none;
  border-right: 2px solid var(--ds-color-primary);
  padding: 0 12px;
  background: var(--ds-color-bg-subtle);
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  cursor: pointer;
  min-width: 140px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
@media (max-width: 767px) {
  .ds-search-category { display: none; }
}

/* Header action icons */
.ds-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  transition: color var(--ds-transition-fast);
}
.ds-header-action:hover {
  color: var(--ds-color-primary);
}
.ds-header-action__label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

/* Cart badge */
.ds-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--ds-color-primary);
  color: #fff;
  font-size: 11px;
  padding: 0 5px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--ds-color-secondary);
  border: 1px solid rgba(0,0,0,0.05);
  animation: ds-badge-pulse 0.4s ease;
}
@keyframes ds-badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Navigation bar */
.ds-nav {
  background: var(--ds-color-secondary-light);
  border-top: none;
  position: relative;
  z-index: 1001;
}
.ds-nav__inner {
  height: var(--ds-nav-height);
  gap: 24px;
  overflow: visible;
}
.ds-nav__link {
  color: rgba(255,255,255,0.85);
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.ds-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ds-color-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.ds-nav__link:hover {
  color: #fff;
}
.ds-nav__link:hover::after {
  transform: scaleX(1);
}

/* Categories dropdown menu */
.ds-cat-toggle-wrap { position: relative; }
.ds-cat-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: var(--ds-font-size-sm);
  color: rgba(255,255,255,0.85);
}
.ds-cat-toggle-btn:hover { color: #fff; }
.ds-cat-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 2000;
  padding: 8px 0;
  margin-top: 4px;
}
.ds-cat-menu.open { display: block; }
.ds-cat-menu__item {
  display: block;
  padding: 8px 16px;
  color: var(--ds-color-text-main);
  font-size: var(--ds-font-size-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.ds-cat-menu__item:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
}
.ds-cat-menu__item--all {
  border-top: 1px solid var(--ds-color-border);
  margin-top: 4px;
  padding-top: 12px;
  font-weight: 600;
  color: var(--ds-color-primary);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.ds-footer {
  background-color: var(--ds-color-bg-surface);
  border-top: none;
  margin-top: 64px;
  padding-top: 16px;
  color: var(--ds-color-text-muted);
}
.ds-footer a {
  color: var(--ds-color-text-muted);
  transition: color var(--ds-transition-fast);
}
.ds-footer a:hover {
  color: var(--ds-color-primary);
}
.ds-footer-tier {
  padding: var(--ds-space-5) 0;
}
.ds-footer-tier--subtle {
  background-color: var(--ds-color-bg-subtle);
}
.ds-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  font-size: var(--ds-font-size-sm);
}
.ds-footer-heading {
  font-weight: 700;
  margin-bottom: var(--ds-space-3);
  color: var(--ds-color-text-main);
}
.ds-footer-bar {
  background-color: var(--ds-color-text-main);
  color: #9CA3AF;
  padding: var(--ds-space-4) 0;
  font-size: var(--ds-font-size-xs);
}
.ds-footer-bar a {
  color: #9CA3AF;
}
.ds-footer-bar a:hover {
  color: #fff;
}

/* ------------------------------------------------------------
   TOAST NOTIFICATIONS
   ------------------------------------------------------------ */
.ds-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: var(--ds-color-text-main);
  color: #fff;
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  box-shadow: var(--ds-shadow-lg);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.ds-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ds-toast--success {
  background: var(--ds-color-success);
}
.ds-toast--error {
  background: var(--ds-color-danger);
}

/* ------------------------------------------------------------
   ALERT / FLASH MESSAGES
   ------------------------------------------------------------ */
.ds-alert {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  margin-bottom: var(--ds-space-3);
}
.ds-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ds-alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.ds-alert-error svg { stroke: #EF4444; }
.ds-alert-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.ds-alert-success svg { stroke: #10B981; }

/* ------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------ */
.ds-pagination {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  justify-content: center;
  margin-top: var(--ds-space-5);
}
.ds-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-bg-surface);
  color: var(--ds-color-text-main);
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ds-transition-fast);
}
.ds-page-btn:hover {
  background: var(--ds-color-bg-subtle);
  border-color: var(--ds-color-border-hover);
  color: var(--ds-color-text-main);
}
.ds-page-btn.active {
  background: var(--ds-color-primary);
  color: #fff;
  border-color: var(--ds-color-primary);
}

/* ------------------------------------------------------------
   FLOATING TOOL BAR
   ------------------------------------------------------------ */
.ds-floatbar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-md);
  overflow: hidden;
}
.ds-floatbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--ds-color-text-muted);
  text-decoration: none;
  font-size: var(--ds-font-size-xs);
  transition: all var(--ds-transition-fast);
  border-bottom: 1px solid var(--ds-color-bg-subtle);
}
.ds-floatbar__item:last-child {
  border-bottom: none;
}
.ds-floatbar__item:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
}
.ds-floatbar__icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}
.ds-floatbar__label {
  font-size: 10px;
  font-weight: 500;
}
@media (max-width: 767px) {
  .ds-floatbar {
    right: 8px;
    bottom: 16px;
    top: auto;
    transform: none;
  }
  .ds-floatbar__label--hide-sm {
    display: none;
  }
}

/* ------------------------------------------------------------
   GALLERY (Product Detail Page)
   ------------------------------------------------------------ */
.ds-gallery {}
.ds-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--ds-color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--ds-color-border);
}
.ds-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease-in-out;
}
.ds-gallery__nav {
  position: absolute;
  inset: 0 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.ds-gallery__main:hover .ds-gallery__nav {
  opacity: 1;
}
.ds-gallery__nav-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--ds-color-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: auto;
  box-shadow: var(--ds-shadow-sm);
  transition: background var(--ds-transition-fast);
}
.ds-gallery__nav-btn:hover {
  background: var(--ds-color-bg-subtle);
}
.ds-gallery__thumbs {
  display: flex;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-3);
  overflow-x: auto;
  padding-bottom: 4px;
}
.ds-gallery__thumb {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ds-transition-fast);
}
.ds-gallery__thumb.active,
.ds-gallery__thumb:hover {
  border-color: var(--ds-color-primary);
}
.ds-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ds-color-bg-subtle);
}

/* Share / action button on gallery */
.ds-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ds-color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ds-shadow-sm);
  transition: all var(--ds-transition-fast);
}
.ds-btn-icon:hover {
  background: var(--ds-color-bg-subtle);
  border-color: var(--ds-color-border-hover);
}

/* ------------------------------------------------------------
   SHOP PAGE COMPONENTS
   ------------------------------------------------------------ */

/* Shop Banner */
.ds-shop-banner {
  background: linear-gradient(135deg, var(--ds-color-secondary) 0%, var(--ds-color-secondary-light) 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-md);
}
.ds-shop-banner__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: center/cover no-repeat;
}
.ds-shop-banner__inner {
  position: relative;
  z-index: 10;
  padding: 30px;
  display: flex;
  gap: 20px;
  color: #fff;
  align-items: flex-end;
}
.ds-shop-banner__logo {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--ds-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: var(--ds-shadow-md);
}
.ds-shop-banner__logo img {
  max-width: 100%;
  max-height: 100%;
}
.ds-shop-banner__logo-text {
  font-size: 36px;
  font-weight: 900;
  color: #999;
}
.ds-shop-banner__info {
  flex: 1;
}
.ds-shop-banner__name {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: #fff;
}
.ds-shop-banner__verified {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.4);
}
.ds-shop-banner__meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
}
.ds-shop-banner__actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  flex-shrink: 0;
}
.ds-shop-banner__actions .ds-btn {
  padding: 10px 20px;
  border-radius: var(--ds-radius-md);
  font-weight: 700;
  text-align: center;
}

/* Shop Tab Nav */
.ds-shop-nav {
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  border-top: none;
  display: flex;
  padding: 0 30px;
  border-radius: 0 0 var(--ds-radius-md) var(--ds-radius-md);
}
.ds-shop-nav__link {
  padding: 15px 20px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--ds-transition-fast), border-color var(--ds-transition-fast);
  color: var(--ds-color-text-main);
}
.ds-shop-nav__link:hover {
  color: var(--ds-color-primary);
}
.ds-shop-nav__link.active {
  color: var(--ds-color-primary);
  border-bottom-color: var(--ds-color-primary);
}

/* Shop Sidebar */
.ds-shop-sidebar {
  width: 240px;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  flex-shrink: 0;
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}
.ds-shop-sidebar__heading {
  background: var(--ds-color-bg-subtle);
  padding: 15px;
  font-weight: 700;
  color: var(--ds-color-text-main);
  border-bottom: 1px solid var(--ds-color-border);
  font-size: var(--ds-font-size-sm);
}
.ds-shop-sidebar__list {
  padding: 10px 0;
}
.ds-shop-sidebar__link {
  display: block;
  padding: 10px 15px;
  color: var(--ds-color-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--ds-transition-fast);
}
.ds-shop-sidebar__link:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
}
.ds-shop-sidebar__link.active {
  font-weight: 700;
  color: var(--ds-color-primary);
  background: var(--ds-color-primary-light);
}
.ds-shop-sidebar__contact {
  padding: 15px;
  font-size: 13px;
  color: var(--ds-color-text-muted);
}

/* Shop Toolbar */
.ds-shop-toolbar {
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--ds-radius-md);
}
.ds-shop-toolbar select {
  border: 1px solid var(--ds-color-border);
  padding: 5px 12px;
  outline: none;
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-font-size-sm);
  background: var(--ds-color-bg-surface);
  color: var(--ds-color-text-main);
}

/* Shop Product Grid */
.ds-shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* Shop product card (inline variant for shop page) */
.ds-shop-product {
  display: block;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}
.ds-shop-product:hover {
  border-color: var(--ds-color-primary);
  box-shadow: var(--ds-shadow-md);
}
.ds-shop-product__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--ds-color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-shop-product__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ds-shop-product__info {
  padding: 15px;
}
.ds-shop-product__name {
  font-size: 13px;
  color: var(--ds-color-text-main);
  line-height: 1.4;
  margin-bottom: 10px;
  height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ds-shop-product__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-color-text-main);
  margin-bottom: 5px;
}
.ds-shop-product__meta {
  font-size: 12px;
  color: var(--ds-color-text-light);
}

/* Shop reviews panel */
.ds-shop-panel {
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  padding: 30px;
  border-radius: 0;
}
.ds-shop-panel__heading {
  font-size: var(--ds-font-size-h3);
  margin: 0 0 20px;
  color: var(--ds-color-text-main);
}
.ds-shop-panel__empty {
  padding: 40px;
  text-align: center;
  color: var(--ds-color-text-light);
}
.ds-shop-review {
  padding: 20px 0;
  border-bottom: 1px solid var(--ds-color-bg-subtle);
}
.ds-shop-review:last-child {
  border-bottom: none;
}
.ds-shop-review__stars {
  color: var(--ds-color-secondary);
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-size: 12px;
}
.ds-shop-review__text {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  margin-bottom: 10px;
  line-height: 1.6;
}
.ds-shop-review__meta {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-light);
}

/* ------------------------------------------------------------
   404 / ERROR PAGE
   ------------------------------------------------------------ */
.ds-error-page {
  padding: 80px 0;
  text-align: center;
}
.ds-error-page svg {
  margin: 0 auto 20px;
}
.ds-error-page__code {
  font-size: 48px;
  font-weight: 700;
  color: var(--ds-color-text-light);
  margin-bottom: var(--ds-space-2);
}
.ds-error-page__title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ds-color-text-main);
  margin-bottom: var(--ds-space-2);
}
.ds-error-page__desc {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  margin-bottom: var(--ds-space-4);
}

/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */
.ds-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}
.ds-page-header__title {
  font-size: var(--ds-font-size-h2);
  font-weight: 700;
  color: var(--ds-color-text-main);
  margin: 0;
}
.ds-page-header__sub {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  margin-top: var(--ds-space-1);
}

/* ------------------------------------------------------------
   SIDEBAR FILTER
   ------------------------------------------------------------ */
.ds-sidebar-filter {
  background: var(--ds-color-bg-card);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  padding: var(--ds-space-4);
}
.ds-sidebar-filter__heading {
  font-size: var(--ds-font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ds-color-text-main);
  margin-bottom: var(--ds-space-3);
  padding-bottom: var(--ds-space-2);
  border-bottom: 1px solid var(--ds-color-border);
}
.ds-sidebar-filter__group { margin-bottom: var(--ds-space-4); }
.ds-sidebar-filter__item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-1) 0;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  cursor: pointer;
}

/* ------------------------------------------------------------
   PAGINATION ACTIVE STATE
   ------------------------------------------------------------ */
.ds-pagination {
  display: flex;
  align-items: center;
  gap: var(--ds-space-1);
}
.ds-pagination a, .ds-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--ds-space-2);
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  color: var(--ds-color-text-main);
  text-decoration: none;
  border: 1px solid var(--ds-color-border);
  transition: all var(--ds-transition-fast);
}
.ds-pagination a:hover {
  border-color: var(--ds-color-primary);
  color: var(--ds-color-primary);
}
.ds-pagination .active {
  background: var(--ds-color-primary);
  border-color: var(--ds-color-primary);
  color: #fff;
  font-weight: 700;
}

/* ------------------------------------------------------------
   STAT CARD
   ------------------------------------------------------------ */
.ds-stat-card {
  background: var(--ds-color-bg-card);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  padding: var(--ds-space-4);
  text-align: center;
}
.ds-stat-card__value {
  font-size: var(--ds-font-size-h2);
  font-weight: 700;
  color: var(--ds-color-text-main);
  line-height: 1;
  margin-bottom: var(--ds-space-1);
}
.ds-stat-card__label {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sponsored section header variant */
.ds-section-header--sponsored { border-bottom-color: var(--ds-color-secondary); }
.ds-section-header--sponsored .ds-section-header__title {
  font-size: 14px;
  color: var(--ds-color-text-muted);
}

/* ------------------------------------------------------------
   RESPONSIVE: Mobile Stack
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .ds-header-main .ds-container {
    flex-wrap: wrap;
  }
  .ds-search-form {
    order: 10;
    max-width: 100%;
    margin-top: var(--ds-space-2);
  }
  .ds-search-form select {
    display: none;
  }
  .ds-topbar .ds-container {
    flex-wrap: wrap;
    gap: var(--ds-space-1);
    justify-content: center;
  }
  .ds-nav__inner {
    gap: 16px;
    padding: 0 4px;
  }
  .ds-shop-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .ds-shop-banner__actions {
    flex-direction: row;
    width: 100%;
  }
  .ds-shop-banner__actions .ds-btn {
    flex: 1;
  }
  .ds-shop-nav {
    padding: 0 10px;
    overflow-x: auto;
  }
  .ds-shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  /* Stack shop layout on mobile */
  .ds-shop-layout {
    flex-direction: column;
  }
  .ds-shop-sidebar {
    width: 100%;
  }
  .ds-footer .ds-grid {
    grid-template-columns: 1fr;
  }
  /* Hero slider mobile */
  .ds-hero-slider { border-radius: 0; }
  /* Scroll row touch momentum */
  .ds-scroll-row { -webkit-overflow-scrolling: touch; }
  /* Header action labels hidden on mobile */
  .ds-header-action__label { display: none; }
  /* Trust bar scrollable on mobile */
  .ds-trust-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Modal full-width on mobile */
  .ds-modal__panel { max-width: calc(100% - 32px); }
  /* Page header stack */
  .ds-page-header { flex-direction: column; align-items: flex-start; }
  /* Sidebar filter full-width */
  .ds-sidebar-filter { margin-bottom: var(--ds-space-3); }
}

@media (max-width: 480px) {
  .ds-shop-product-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   TOOLBAR
   ------------------------------------------------------------ */
.ds-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: var(--ds-color-bg-subtle);
  padding: 10px 15px;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-font-size-sm);
}
.ds-toolbar__results { color: var(--ds-color-text-muted); }
.ds-toolbar__results em { color: var(--ds-color-primary); font-weight: 700; font-style: normal; }
.ds-toolbar__sort {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: var(--ds-font-size-sm);
}
.ds-toolbar__sep {
  width: 1px;
  height: 16px;
  background: var(--ds-color-border);
}
.ds-toolbar .ds-input {
  width: 200px;
  height: 28px;
  font-size: var(--ds-font-size-sm);
  padding: 0 8px;
}
.ds-toolbar .ds-select {
  height: 28px;
  font-size: var(--ds-font-size-sm);
  min-width: 130px;
  padding: 0 6px;
}

/* ------------------------------------------------------------
   CHIP / TAG
   ------------------------------------------------------------ */
.ds-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-text-muted);
  border: 1px solid var(--ds-color-border);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   LINK
   ------------------------------------------------------------ */
.ds-link {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ds-transition-fast);
}
.ds-link:hover {
  color: var(--ds-color-primary);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   ICON BUTTON
   ------------------------------------------------------------ */
.ds-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-bg-card);
  color: var(--ds-color-text-muted);
  cursor: pointer;
  transition: all var(--ds-transition-fast);
}
.ds-icon-btn:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
  border-color: var(--ds-color-primary);
}

/* ------------------------------------------------------------
   MODAL / DIALOG
   ------------------------------------------------------------ */
.ds-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  padding: var(--ds-space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ds-modal.ds-modal--open {
  opacity: 1;
  visibility: visible;
}
.ds-modal__panel {
  background: var(--ds-color-bg-card);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-6);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--ds-shadow-lg);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.3s ease;
}
.ds-modal--open .ds-modal__panel {
  transform: scale(1) translateY(0);
}
.ds-modal__panel--md { max-width: 560px; }
.ds-modal__panel--lg { max-width: 720px; }
.ds-modal__close {
  position: absolute;
  top: var(--ds-space-3);
  right: var(--ds-space-3);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-color-text-muted);
  transition: color var(--ds-transition-fast);
}
.ds-modal__close:hover { color: var(--ds-color-text-main); }
.ds-modal__header {
  padding: var(--ds-space-4) var(--ds-space-6);
  border-bottom: 1px solid var(--ds-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ds-modal__body { padding: var(--ds-space-6); }
.ds-modal__footer {
  padding: var(--ds-space-4) var(--ds-space-6);
  border-top: 1px solid var(--ds-color-border);
  display: flex;
  gap: var(--ds-space-2);
  justify-content: flex-end;
}

/* ------------------------------------------------------------
   CTA / PROMO CARD (replaces amz-deal-card)
   ------------------------------------------------------------ */
.ds-promo-card {
  background: var(--ds-color-bg-card);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-space-6);
  text-align: center;
  margin-top: var(--ds-space-4);
}
.ds-promo-card__title {
  font-size: var(--ds-font-size-lg);
  font-weight: 700;
  color: var(--ds-color-text-main);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   SUPPLIER / SHOP LIST CARD (shops/index)
   ------------------------------------------------------------ */
.ds-supplier-card {
  display: flex;
  background: var(--ds-color-bg-card);
  border: 1px solid var(--ds-color-border);
  transition: border-color var(--ds-transition-fast);
  margin-bottom: 15px;
}
.ds-supplier-card:hover {
  border-color: var(--ds-color-primary);
}
.ds-supplier-card__main {
  flex: 1;
  display: flex;
  padding: 20px;
  border-right: 1px solid var(--ds-color-bg-subtle);
}
.ds-supplier-card__logo {
  width: 100px;
  height: 100px;
  border: 1px solid var(--ds-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
  overflow: hidden;
}
.ds-supplier-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ds-supplier-card__logo-text {
  font-size: 32px;
  font-weight: 900;
  color: var(--ds-color-border);
}
.ds-supplier-card__info { flex: 1; }
.ds-supplier-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0066CC;
  text-decoration: none;
  line-height: 1.2;
}
.ds-supplier-card__name:hover { text-decoration: underline; }
.ds-supplier-card__verified {
  border: 1px solid #dfc79b;
  background: #fdf7eb;
  color: #956a29;
  padding: 2px 6px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.ds-supplier-card__meta {
  font-size: 12px;
  color: var(--ds-color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-supplier-card__highlights {
  margin-top: 12px;
  background: var(--ds-color-bg-subtle);
  padding: 10px;
  font-size: 12px;
  color: var(--ds-color-text-muted);
  display: flex;
  gap: 15px;
  border-radius: var(--ds-radius-sm);
}
.ds-supplier-card__actions {
  width: 240px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--ds-color-bg-subtle);
}
.ds-supplier-card__rating {
  font-size: 24px;
  font-weight: 700;
  color: var(--ds-color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ds-supplier-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--ds-radius-sm);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity var(--ds-transition-fast);
}
.ds-supplier-card__btn:hover { opacity: .85; }
.ds-supplier-card__btn--primary {
  background: var(--ds-color-primary);
  color: #fff;
  border: 1px solid var(--ds-color-primary);
}
.ds-supplier-card__btn--secondary {
  background: var(--ds-color-bg-card);
  color: var(--ds-color-text-main);
  border: 1px solid var(--ds-color-border);
}

/* Notification / Conflict Panel (products/view cart modal) */
.ds-notification {
  background: var(--ds-color-bg-card);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-space-4);
  box-shadow: var(--ds-shadow-md);
}
.ds-notification__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: opacity var(--ds-transition-fast);
  text-decoration: none;
}
.ds-notification__btn:hover { opacity: .85; }
.ds-conflict-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: opacity var(--ds-transition-fast);
}
.ds-conflict-panel__btn:hover { opacity: .85; }

/* Responsive: supplier card stack on mobile */
@media (max-width: 767px) {
  .ds-supplier-card {
    flex-direction: column;
  }
  .ds-supplier-card__main {
    border-right: none;
    border-bottom: 1px solid var(--ds-color-bg-subtle);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ds-supplier-card__logo { margin-right: 0; margin-bottom: 12px; }
  .ds-supplier-card__actions {
    width: 100%;
    flex-direction: row;
    padding: 12px;
  }
  .ds-supplier-card__btn { flex: 1; }
  .ds-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .ds-toolbar__sort {
    flex-wrap: wrap;
  }
}

/* ============================================================
   PRODUCT DETAIL PAGE (PDP) COMPONENTS
   ============================================================ */

/* Gallery */
.ds-gallery__main {
  cursor: zoom-in;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--ds-color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}
.ds-gallery__main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease-in-out;
}
.ds-gallery__nav {
  position: absolute;
  inset: 0 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
.ds-gallery__main:hover .ds-gallery__nav { opacity: 1; }
.ds-gallery__nav-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--ds-color-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: auto;
  box-shadow: var(--ds-shadow-sm);
}
.ds-gallery__thumbs {
  overflow-x: auto;
  padding-bottom: 4px;
}
.ds-gallery__thumb {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.ds-gallery__thumb--active,
.ds-gallery__thumb:hover { border-color: var(--ds-color-primary); }
.ds-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ds-color-bg-subtle);
}

/* Share button (floating in gallery) */
.ds-gallery__share {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--ds-shadow-sm);
}

/* Price Box */
.ds-price-box {
  background: var(--ds-color-bg-subtle);
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-md);
}
.ds-price-main {
  font-size: 28px;
  color: var(--ds-color-text-main);
  line-height: 1;
  font-weight: 700;
}

/* Quantity Stepper */
.ds-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--ds-color-border);
}
.ds-qty-stepper__btn {
  width: 32px;
  height: 32px;
  background: var(--ds-color-bg-subtle);
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.ds-qty-stepper__input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--ds-color-border);
  border-right: 1px solid var(--ds-color-border);
  font-size: 14px;
}

/* Supplier Avatar */
.ds-avatar {
  width: 64px;
  height: 64px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ds-avatar--sm { width: 36px; height: 36px; }
.ds-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ds-avatar__letter {
  font-weight: 700;
  font-size: 24px;
  color: var(--ds-color-text-muted);
}
.ds-avatar--sm .ds-avatar__letter {
  font-size: 14px;
  color: var(--ds-color-primary);
}

/* CTA buttons (large PDP style) */
.ds-btn-cta {
  font-size: 16px;
  padding: 14px;
}
.ds-btn-cta-secondary {
  font-size: 14px;
  padding: 12px;
}

/* Related product sidebar */
.ds-related-sidebar {
  position: sticky;
  top: 120px;
}
.ds-related-item {
  text-decoration: none;
  padding: 8px;
  border-radius: var(--ds-radius-md);
  transition: background 0.2s;
}
.ds-related-item:hover { background: var(--ds-color-bg-subtle); }
.ds-related-item__img {
  width: 70px;
  height: 70px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ds-related-item__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 4px;
}
.ds-related-item__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Review items */
.ds-review-item {
  padding-bottom: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
}
.ds-review-summary {
  padding-bottom: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
}
.ds-review-big-rating {
  font-size: 48px;
  line-height: 1;
}
.ds-review-bar-col {
  max-width: 300px;
  width: 100%;
}
.ds-review-bar-label { min-width: 40px; }
.ds-review-bar {
  flex: 1;
  height: 8px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-full);
  overflow: hidden;
}
.ds-review-bar__fill {
  height: 100%;
  background: var(--ds-color-warning);
  border-radius: var(--ds-radius-full);
}
.ds-review-bar-pct { min-width: 32px; }

/* Empty review state */
.ds-empty-review {
  padding: var(--ds-space-5) 0;
  color: var(--ds-color-border);
}
.ds-empty-review svg { margin-bottom: 16px; }

/* Utility: col-span-2 */
.ds-col-span-2 { grid-column: span 2 / span 2; }
@media (max-width: 767px) {
  .ds-col-span-2 { grid-column: span 1; }
  .ds-col-span-3 { grid-column: span 1; }
}

/* Utility: text-decoration-none */
.ds-text-no-decoration { text-decoration: none; }

/* Utility: line-height relaxed */
.ds-leading-relaxed { line-height: 1.7; }
.ds-leading-tall { line-height: 1.8; }

/* Review form area */
.ds-review-form-bg {
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-space-4);
}

/* PDP Mobile Responsive */
@media (max-width: 767px) {
  .ds-gallery__main { aspect-ratio: auto; min-height: 280px; }
  .ds-gallery__nav { display: none; }
  .ds-gallery__thumbs { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .ds-gallery__thumb { width: 48px; height: 48px; }
  .ds-price-main { font-size: 22px; }
  .ds-qty-stepper__input { width: 40px; }
  .ds-related-sidebar { position: static; }
  .ds-related-item__img { width: 56px; height: 56px; }
  .ds-review-big-rating { font-size: 36px; }
  .ds-review-bar-col { max-width: 100%; }
}

/* ============================================================
   CATEGORIES PAGE COMPONENTS
   ============================================================ */

.ds-empty-state {
  padding: 60px;
  text-align: center;
}
.ds-empty-state svg {
  margin: 0 auto 16px;
}
.ds-empty-state__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ds-empty-state__desc {
  font-size: 14px;
  color: var(--ds-color-text-muted);
}

.ds-category-card__img-link {
  display: block;
  height: 160px;
  overflow: hidden;
  background: var(--ds-color-bg-subtle);
}
.ds-category-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.ds-category-card__img-link:hover img { transform: scale(1.05); }

.ds-category-card__count {
  font-size: 13px;
  color: var(--ds-color-text-muted);
  margin-bottom: 10px;
}
.ds-category-card__sub-list {
  border-top: 1px solid var(--ds-color-border);
  padding-top: 10px;
  margin-bottom: 10px;
}
.ds-category-card__sub-list ul {
  margin: 0;
  list-style: disc;
  padding-left: 20px;
}
.ds-category-card__sub-list li {
  padding: 2px 0;
}
.ds-category-card__sub-count {
  color: var(--ds-color-text-muted);
  font-size: 12px;
}

/* Categories Mobile */
@media (max-width: 767px) {
  .ds-category-card__img-link { height: 120px; }
  .ds-empty-state { padding: 40px 20px; }
}

/* ============================================================
   CATEGORY DEPARTMENT CARDS — Amazon Style
   ============================================================ */
.ds-cat-dept-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.ds-cat-dept-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.ds-cat-dept-card__header {
  display: block;
  padding: 14px 16px 10px;
  text-decoration: none;
}
.ds-cat-dept-card__title {
  font-size: var(--ds-font-size-base);
  font-weight: 700;
  color: var(--ds-color-text-main);
  line-height: 1.3;
}
.ds-cat-dept-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 16px;
  text-decoration: none;
  aspect-ratio: 2 / 1.3;
}
.ds-cat-dept-card__img-cell {
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-cat-dept-card__img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.ds-cat-dept-card:hover .ds-cat-dept-card__img-cell img {
  transform: scale(1.04);
}
.ds-cat-dept-card__img-cell--empty {
  background: linear-gradient(135deg, #f7f7f7, #eee);
}
.ds-cat-dept-card__img-cell--full {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  aspect-ratio: auto;
}
.ds-cat-dept-card__icon {
  width: 32px;
  height: 32px;
  color: var(--ds-color-text-muted);
  opacity: 0.5;
}
.ds-cat-dept-card__icon svg {
  width: 100%;
  height: 100%;
}
.ds-cat-dept-card__icon--lg {
  width: 48px;
  height: 48px;
}
.ds-cat-dept-card__subs {
  padding: 10px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ds-cat-dept-card__sub-link {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.ds-cat-dept-card__sub-link:hover {
  color: var(--ds-color-primary);
  text-decoration: underline;
}
.ds-cat-dept-card__sub-more {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 2px;
}
.ds-cat-dept-card__sub-more:hover { text-decoration: underline; }
.ds-cat-dept-card__see-all {
  display: block;
  padding: 10px 16px;
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-primary);
  text-decoration: none;
  border-top: 1px solid var(--ds-color-border);
  margin-top: auto;
}
.ds-cat-dept-card__see-all:hover {
  background: var(--ds-color-bg-subtle);
  text-decoration: underline;
}

/* ============================================================
   HELP CENTER — Amazon Style
   ============================================================ */
.ds-help-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.ds-help-topic-card:hover {
  border-color: var(--ds-color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ds-help-topic-card__icon {
  width: 28px;
  height: 28px;
  color: var(--ds-color-primary);
  flex-shrink: 0;
}
.ds-help-topic-card__icon svg {
  width: 100%;
  height: 100%;
}
.ds-help-topic-card__label {
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-text-main);
  line-height: 1.3;
}

/* Help section */
.ds-help-section { overflow: hidden; }
.ds-help-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-color-border);
  background: var(--ds-color-bg-subtle);
}
.ds-help-section__icon {
  width: 24px;
  height: 24px;
  color: var(--ds-color-primary);
  flex-shrink: 0;
}
.ds-help-section__icon svg { width: 100%; height: 100%; }
.ds-help-section__title {
  font-size: var(--ds-font-size-base);
  font-weight: 700;
  color: var(--ds-color-text-main);
  margin: 0;
}
.ds-help-section__body { padding: 0; }

/* FAQ accordion */
.ds-help-faq {
  border-bottom: 1px solid var(--ds-color-border);
}
.ds-help-faq:last-child { border-bottom: 0; }
.ds-help-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-text-main);
  line-height: 1.5;
  gap: 12px;
}
.ds-help-faq__question:hover {
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-primary);
}
.ds-help-faq__chevron {
  flex-shrink: 0;
  color: var(--ds-color-text-muted);
  transition: transform 0.2s;
}
.ds-help-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.ds-help-faq__answer p {
  padding: 0 20px 16px;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  line-height: 1.7;
  margin: 0;
}
/* Open state */
.ds-help-faq--open .ds-help-faq__chevron { transform: rotate(180deg); }
.ds-help-faq--open .ds-help-faq__answer { max-height: 300px; }
.ds-help-faq--open .ds-help-faq__question { color: var(--ds-color-primary); }

/* ============================================================
   PRODUCT INQUIRY FORM
   ============================================================ */
.ds-inquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .ds-inquiry-form__row { grid-template-columns: 1fr; }
}
.ds-inquiry-form__field {
  margin-bottom: 16px;
}
.ds-inquiry-form__row .ds-inquiry-form__field {
  margin-bottom: 0;
}
.ds-inquiry-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-color-text-main);
  margin-bottom: 6px;
}
.ds-inquiry-form__ref {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ds-color-bg-subtle);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  margin-top: 16px;
}
.ds-inquiry-form__ref img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-color-border);
}

/* ============================================================
   APPS COMING SOON PAGE
   ============================================================ */
.ds-apps-hero { padding: 0; overflow: hidden; }
.ds-apps-hero__content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}
@media (max-width: 767px) {
  .ds-apps-hero__content { flex-direction: column; padding: 24px; gap: 24px; }
}

/* Phone mockup */
.ds-apps-hero__mockup { flex-shrink: 0; }
.ds-apps-phone {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  background: #1a1a1a;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 0 0 2px #333;
  position: relative;
}
.ds-apps-phone__notch {
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.ds-apps-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ds-apps-phone__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
}
.ds-apps-phone__status-bar span { display: flex; gap: 4px; align-items: center; }
.ds-apps-phone__app-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid #eee;
}
.ds-apps-phone__placeholder { padding: 12px 14px; flex: 1; }
.ds-apps-phone__card-skeleton {
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ds-skeleton-shimmer 1.5s infinite;
  margin-bottom: 10px;
}
.ds-apps-phone__card-skeleton--short { height: 36px; width: 70%; }
.ds-apps-phone__grid-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.ds-apps-phone__grid-skeleton > div {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ds-skeleton-shimmer 1.5s infinite;
}

/* Text content */
.ds-apps-hero__text { flex: 1; min-width: 0; }
.ds-apps-hero__badge {
  display: inline-block;
  background: var(--ds-color-primary);
  color: #fff;
  font-size: var(--ds-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.ds-apps-hero__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ds-color-text-main);
  line-height: 1.2;
  margin: 0 0 12px;
}
.ds-apps-hero__desc {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 480px;
}

/* Feature list */
.ds-apps-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-apps-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ds-apps-features li svg { flex-shrink: 0; margin-top: 2px; }
.ds-apps-features li strong {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
}
.ds-apps-features li span {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
}

/* Notify form */
.ds-apps-notify { margin-bottom: 24px; }
.ds-apps-notify__label {
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-text-main);
  margin: 0 0 8px;
}
.ds-apps-notify__form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.ds-apps-notify__form .ds-input { flex: 1; }

/* Store badges */
.ds-apps-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ds-apps-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  cursor: default;
  opacity: 0.5;
  position: relative;
}
.ds-apps-badge::after {
  content: 'Soon';
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ds-color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}
.ds-apps-badge--apple { background: #000; }
.ds-apps-badge--google { background: #414141; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Focus-visible outlines for keyboard navigation */
.ds-btn:focus-visible,
.ds-product-card:focus-within,
.ds-card:focus-within,
a:focus-visible {
  outline: 2px solid var(--ds-color-primary);
  outline-offset: 2px;
}

/* Skip to content link (add <a class="ds-skip" href="#main">Skip</a> in layout) */
.ds-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--ds-color-primary);
  color: #fff;
  font-weight: 600;
}
.ds-skip:focus {
  left: 10px;
  top: 10px;
}

/* ------------------------------------------------------------
   SKELETON LOADER
   ------------------------------------------------------------ */
@keyframes ds-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.ds-skeleton {
  background: linear-gradient(90deg, var(--ds-color-bg-subtle) 25%, var(--ds-color-bg-surface) 50%, var(--ds-color-bg-subtle) 75%);
  background-size: 800px 100%;
  animation: ds-shimmer 1.5s infinite linear;
  border-radius: var(--ds-radius-sm);
}
.ds-skeleton--circle { border-radius: 50%; }
.ds-skeleton--text { height: 14px; margin-bottom: 8px; }
.ds-skeleton--title { height: 20px; width: 60%; margin-bottom: 12px; }
.ds-skeleton--img { height: 180px; }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.ds-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ds-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--ds-transition-normal), visibility var(--ds-transition-normal), transform var(--ds-transition-normal), background var(--ds-transition-fast);
}
.ds-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ds-back-to-top:hover {
  background: var(--ds-color-primary-hover);
}
.ds-back-to-top:active {
  transform: scale(0.93);
}
@media (max-width: 767px) {
  .ds-back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

/* ============================================================
   WISHLIST HEART ON PRODUCT CARDS
   ============================================================ */
.ds-product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: var(--ds-radius-full);
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ds-transition-fast), transform var(--ds-transition-fast), background var(--ds-transition-fast);
  padding: 0;
}
.ds-product-card:hover .ds-product-card__wishlist,
.ds-product-card__wishlist.active {
  opacity: 1;
}
.ds-product-card__wishlist:hover {
  background: #fff;
  transform: scale(1.15);
}
.ds-product-card__wishlist svg {
  width: 16px;
  height: 16px;
  stroke: var(--ds-color-text-muted);
  fill: none;
  transition: fill var(--ds-transition-fast), stroke var(--ds-transition-fast);
}
.ds-product-card__wishlist.active svg {
  fill: var(--ds-color-primary);
  stroke: var(--ds-color-primary);
}
/* Share button on product card */
.ds-product-card__share {
  position: absolute;
  top: 44px;
  right: 8px;
  z-index: 3;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--ds-transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.ds-product-card:hover .ds-product-card__share { opacity: 1; }
.ds-product-card__share:hover { background: #fff; }
/* Shift tag badge when share is present */
.ds-product-card__tag { right: 8px; top: 80px; }

/* ============================================================
   SEARCH SUGGESTIONS DROPDOWN
   ============================================================ */
.ds-search-wrap {
  flex: 1;
  position: relative;
  max-width: 780px;
  margin: 0 24px;
}
.ds-search-wrap .ds-search-form {
  margin: 0;
  max-width: none;
}
.ds-search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  border-top: none;
  box-shadow: var(--ds-shadow-lg);
  max-height: 380px;
  overflow-y: auto;
}
.ds-search-suggestions--open {
  display: block;
}
.ds-search-suggestions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ds-color-text-main);
  transition: background var(--ds-transition-fast);
}
.ds-search-suggestions__item:hover,
.ds-search-suggestions__item--active {
  background: var(--ds-color-bg-subtle);
}
.ds-search-suggestions__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--ds-radius-sm);
  flex-shrink: 0;
}
.ds-search-suggestions__name {
  flex: 1;
  font-size: var(--ds-font-size-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-search-suggestions__name mark {
  background: rgba(230, 0, 18, 0.12);
  color: var(--ds-color-primary);
  padding: 0 1px;
  border-radius: 2px;
}
.ds-search-suggestions__cat {
  display: block;
  font-size: 10px;
  color: var(--ds-color-text-muted);
  font-weight: 400;
  margin-top: 1px;
}
.ds-search-suggestions__price {
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-primary);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .ds-search-wrap { margin: 0; order: 10; margin-top: var(--ds-space-2); }
}

/* ============================================================
   STICKY ADD-TO-CART BAR (PDP)
   ============================================================ */
.ds-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--ds-color-bg-surface);
  border-top: 1px solid var(--ds-color-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 10px 0;
  transform: translateY(100%);
  transition: transform var(--ds-transition-normal);
}
.ds-sticky-cta--visible {
  transform: translateY(0);
}
.ds-sticky-cta__inner {
  max-width: var(--ds-container-max);
  margin: 0 auto;
  padding: 0 var(--ds-space-4);
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
}
.ds-sticky-cta__name {
  flex: 1;
  font-weight: 600;
  font-size: var(--ds-font-size-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-sticky-cta__price {
  font-weight: 700;
  font-size: var(--ds-font-size-lg);
  color: var(--ds-color-primary);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .ds-sticky-cta__name { display: none; }
  .ds-sticky-cta__inner { gap: var(--ds-space-3); }
  .ds-sticky-cta { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.ds-social-icons a {
  color: inherit;
  opacity: 0.7;
  transition: opacity var(--ds-transition-fast), transform var(--ds-transition-fast);
}
.ds-social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ============================================================
   CART PAGE UTILITY CLASSES
   ============================================================ */
.ds-page-body {
  background-color: var(--ds-color-bg-body);
  min-height: 80vh;
  padding: var(--ds-space-4) 0;
}
.ds-empty-card {
  padding: var(--ds-space-8) var(--ds-space-4);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--ds-radius-lg);
}
.ds-empty-card__icon {
  width: 120px;
  height: 120px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ds-space-4);
}

/* ============================================================
   HOVER UTILITY CLASSES (Tailwind-like)
   ============================================================ */
.hover\:ds-bg-subtle:hover { background-color: var(--ds-color-bg-subtle); }
.hover\:ds-shadow:hover { box-shadow: var(--ds-shadow-md); }
.hover\:ds-underline:hover { text-decoration: underline; }
.hover\:ds-text-main:hover { color: var(--ds-color-text-main); }
.hover\:ds-text-primary:hover { color: var(--ds-color-primary); }
.hover\:ds-text-danger:hover { color: var(--ds-color-danger); }

/* Grid span helper: full width on mobile, auto on desktop */
.ds-col-span-full-mobile { grid-column: span 2; }
@media (min-width: 1024px) {
  .ds-col-span-full-mobile { grid-column: span 1; }
}

/* ============================================================
   CART PAGE COMPONENTS
   ============================================================ */

/* Icon box (40x40 flex-centered) */
.ds-icon-box {
  width: 40px; height: 40px;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT LISTING COMPONENTS
   ============================================================ */
.ds-price-filter {
  display: flex;
  align-items: center;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  background: #fff;
}
.ds-price-filter__input {
  border: none;
  padding: 6px 8px;
  width: 80px;
  outline: none;
  font-size: var(--ds-font-size-sm);
}
.ds-price-filter__sep {
  background: var(--ds-color-bg-subtle);
  padding: 6px 8px;
  color: var(--ds-color-text-muted);
}
.ds-filter-divider {
  width: 1px; height: 20px;
  background: var(--ds-color-border);
}
.ds-listing-toolbar {
  padding: 12px 16px;
}
.ds-sort-select {
  width: auto;
  padding: 4px 32px 4px 12px;
  min-height: 32px;
}
.ds-btn-success { background-color: var(--ds-color-success); color: #fff; border-color: var(--ds-color-success); }

/* Cart item image thumbnail */
.ds-cart-item-img {
  width: 120px; height: 120px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  border: 1px solid var(--ds-color-border);
}
.ds-cart-item-img__inner {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--ds-space-2);
}

/* Featured / "also viewed" card image */
.ds-cart-featured-img {
  aspect-ratio: 1;
  background: var(--ds-color-bg-subtle);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ds-cart-featured-img__inner {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  padding: var(--ds-space-2);
}
.ds-cart-featured-info {
  padding: var(--ds-space-3);
}

/* Line-clamp 2 utility */
.ds-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Order summary sidebar */
.ds-order-summary {
  padding: var(--ds-space-5);
  position: sticky;
  top: 120px;
}

/* Progress bar (shipping threshold) */
.ds-progress-bar {
  height: 6px;
  background: var(--ds-color-bg-subtle);
  border-radius: var(--ds-radius-full);
  overflow: hidden;
}
.ds-progress-bar__fill {
  height: 100%;
  background: var(--ds-color-primary);
  border-radius: var(--ds-radius-full);
  transition: width 0.4s;
}

/* Large-screen 2-col span */
.ds-lg-col-span-2 { grid-column: span 1; }
@media (min-width: 1024px) {
  .ds-lg-col-span-2 { grid-column: span 2 / span 2; }
}

/* ============================================================
   CHECKOUT STEPPER
   ============================================================ */
.ds-checkout-page {
  background-color: var(--ds-color-bg-body);
  min-height: 80vh;
  padding: var(--ds-space-4) 0;
}
.ds-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ds-space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ds-stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  color: var(--ds-color-text-muted);
}
.ds-stepper__step--active {
  color: var(--ds-color-primary);
  font-weight: 700;
}
.ds-stepper__circle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-bg-subtle);
  color: var(--ds-color-text-muted);
  border: 1px solid var(--ds-color-border);
  font-size: var(--ds-font-size-sm);
  font-weight: 700;
}
.ds-stepper__circle--active {
  background: var(--ds-color-primary);
  color: var(--ds-color-text-inverse);
  border-color: var(--ds-color-primary);
}
.ds-stepper__line {
  width: 64px; height: 1px;
  background: var(--ds-color-border);
  margin: 0 12px;
}
.ds-checkout-form {
  padding: var(--ds-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--ds-color-border);
  border-top-color: var(--ds-color-primary);
  border-radius: 50%;
  animation: ds-spin 0.6s linear infinite;
}
.ds-loading {
  pointer-events: none;
  position: relative;
}
.ds-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ds-spin 0.6s linear infinite;
  position: absolute;
  top: 50%; left: 50%;
  margin: -7px 0 0 -7px;
}

/* ============================================================
   V6: VISUAL DOMINANCE SYSTEM (Phase C)
   ============================================================ */

/* 3-level emphasis hierarchy */
.ds-emphasis-high {
  font-weight: 700;
  font-size: var(--ds-font-size-lg);
  color: var(--ds-color-primary);
  letter-spacing: -0.01em;
}
.ds-emphasis-medium {
  font-weight: 600;
  font-size: var(--ds-font-size-base);
  color: var(--ds-color-text-main);
}
.ds-emphasis-low {
  font-weight: 400;
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
}

/* Hero gradient overlay */
.ds-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
.ds-hero-banner { position: relative; }
.ds-hero-banner__content { position: relative; z-index: 2; }

/* Card shadow hierarchy */
.ds-shadow-subtle  { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.ds-shadow-hover   { box-shadow: 0 4px 12px rgba(0,0,0,0.10); }
.ds-shadow-elevated { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* ============================================================
   V6: SCARCITY + URGENCY (Phase D)
   ============================================================ */

/* Stock progress bar */
.ds-stock-bar {
  width: 100%;
  height: 6px;
  background: var(--ds-color-bg-subtle);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.ds-stock-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.ds-stock-bar__fill--low { background: var(--ds-color-danger); }
.ds-stock-bar__fill--medium { background: var(--ds-color-warning); }
.ds-stock-bar__fill--high { background: var(--ds-color-success); }
.ds-stock-bar-label {
  font-size: var(--ds-font-size-xs);
  font-weight: 600;
  color: var(--ds-color-danger);
  margin-top: 2px;
}

/* Deal countdown timer */
.ds-deal-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-font-size-sm);
  font-weight: 700;
  color: #e65100;
}
.ds-deal-timer__icon { flex-shrink: 0; }
.ds-deal-timer__digit {
  background: #e65100;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: var(--ds-font-size-sm);
  min-width: 24px;
  text-align: center;
}
.ds-deal-timer__sep { color: #e65100; font-weight: 700; }

/* ============================================================
   V6: SKELETON LOADERS + PERCEIVED SPEED (Phase F)
   ============================================================ */

/* Product card skeleton */
.ds-product-card--skeleton {
  pointer-events: none;
  min-height: 280px;
}
.ds-product-card--skeleton .ds-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ds-skeleton-shimmer 1.5s infinite;
  border-radius: var(--ds-radius-sm);
}
@keyframes ds-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ds-skeleton--card-img { height: 180px; width: 100%; }
.ds-skeleton--card-title { height: 14px; width: 80%; margin: 12px 8px 0; }
.ds-skeleton--card-price { height: 18px; width: 50%; margin: 8px 8px 0; }
.ds-skeleton--card-meta  { height: 10px; width: 60%; margin: 8px 8px 12px; }

/* Progressive image fade */
.ds-img-fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ds-img-fade--loaded { opacity: 1; }

/* ============================================================
   V6: BUNDLE UPSELL (Phase I)
   ============================================================ */

.ds-bundle-card {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  background: var(--ds-color-bg-subtle);
  border: 2px dashed var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  flex-wrap: wrap;
}
.ds-bundle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
  text-align: center;
  min-width: 100px;
  max-width: 140px;
}
.ds-bundle-item__img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-color-border);
  background: #fff;
}
.ds-bundle-item__name {
  font-size: var(--ds-font-size-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-bundle-item__price {
  font-size: var(--ds-font-size-sm);
  font-weight: 700;
  color: var(--ds-color-primary);
}
.ds-bundle-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--ds-color-text-muted);
  flex-shrink: 0;
}
.ds-bundle-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4);
  background: #fff;
  border-radius: var(--ds-radius-md);
  border: 2px solid var(--ds-color-primary);
  text-align: center;
  min-width: 140px;
}
.ds-bundle-total__label {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.ds-bundle-total__price {
  font-size: var(--ds-font-size-lg);
  font-weight: 700;
  color: var(--ds-color-primary);
}
.ds-bundle-total__save {
  font-size: var(--ds-font-size-xs);
  font-weight: 700;
  color: var(--ds-color-success);
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Inline field error */
.ds-field-error {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-danger);
  min-height: 18px;
  margin-top: 2px;
}

/* Delivery ETA badge */
.ds-delivery-eta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(16,185,129,0.08);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-color-success);
}
.ds-delivery-eta svg { flex-shrink: 0; }

/* Rewards micro-notification */
.ds-reward-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: var(--ds-font-size-sm);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.ds-reward-toast.show,
.ds-reward-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reward tier mini-bar */
.ds-reward-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-font-size-xs);
  font-weight: 600;
  color: #92400e;
}
.ds-reward-mini__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ds-reward-mini__icon { font-size: 1.1em; }
.ds-reward-mini__text { white-space: nowrap; }
.ds-reward-mini__next {
  white-space: nowrap;
  font-size: var(--ds-font-size-xs);
  color: #b45309;
}
.ds-reward-mini__bar {
  flex: 1;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
  min-width: 60px;
}
.ds-reward-mini__fill,
.ds-reward-mini__bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Reduced motion: disable all transitions and animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   GALLERY HOVER ZOOM
   ============================================================ */
.ds-gallery { position: relative; }
.ds-gallery__zoom-lens {
  position: absolute;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.3);
  border: 2px solid var(--ds-color-primary);
  pointer-events: none;
  display: none;
  z-index: 5;
}
.ds-gallery__zoom-lens--active { display: block; cursor: crosshair; }
.ds-gallery__zoom-result {
  position: absolute;
  left: calc(100% + 12px);
  top: 0;
  width: 400px; height: 400px;
  background-repeat: no-repeat;
  background-color: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  box-shadow: var(--ds-shadow-lg);
  display: none;
  z-index: 50;
  pointer-events: none;
}
.ds-gallery__zoom-result--active { display: block; }
.ds-gallery__main { cursor: crosshair; }
@media (max-width: 767px) {
  .ds-gallery__zoom-lens,
  .ds-gallery__zoom-result { display: none !important; }
  .ds-gallery__main { cursor: pointer; }
}

/* ============================================================
   TRUST PANEL (PDP right column)
   ============================================================ */
.ds-trust-panel {
  padding: var(--ds-space-4);
}
.ds-trust-panel__header {
  font-weight: 700;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  margin-bottom: var(--ds-space-3);
  padding-bottom: var(--ds-space-2);
  border-bottom: 1px solid var(--ds-color-border);
}
.ds-trust-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ds-color-bg-subtle);
}
.ds-trust-panel__item:last-child { border-bottom: none; }
.ds-trust-panel__item svg { flex-shrink: 0; margin-top: 2px; }
.ds-trust-panel__label {
  font-weight: 600;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
}
.ds-trust-panel__value {
  font-size: var(--ds-font-size-xs);
  color: var(--ds-color-text-muted);
  margin-top: 2px;
}

/* ============================================================
   HEADER DROPDOWN & NOTIFICATION BELL
   ============================================================ */
.ds-header-dropdown {
  position: relative;
}
.ds-header-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--ds-color-bg-surface);
  border: 1px solid var(--ds-color-border);
  box-shadow: var(--ds-shadow-lg);
  z-index: 100;
  padding: var(--ds-space-2) 0;
}
.ds-header-dropdown:hover .ds-header-dropdown__panel {
  display: block;
}
.ds-header-dropdown__greeting {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-weight: 700;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  border-bottom: 1px solid var(--ds-color-border);
  margin-bottom: var(--ds-space-1);
}
.ds-header-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--ds-space-3);
  font-size: var(--ds-font-size-sm);
  color: var(--ds-color-text-main);
  text-decoration: none;
  transition: background var(--ds-transition-fast);
}
.ds-header-dropdown__link:hover {
  background: var(--ds-color-bg-subtle);
}
.ds-header-dropdown__divider {
  height: 1px;
  background: var(--ds-color-border);
  margin: var(--ds-space-1) 0;
}
.ds-notification-bell {
  position: relative;
}

/* ============================================================
   FLY-TO-CART ANIMATION
   ============================================================ */
.ds-fly-dot {
  position: fixed;
  width: 14px; height: 14px;
  background: var(--ds-color-primary);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s ease;
}
@keyframes ds-badge-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
}
.ds-cart-badge--bounce {
  animation: ds-badge-bounce 0.5s ease;
}

/* ============================================================
   TRUST STRIP (footer, cart, checkout)
   ============================================================ */
.ds-trust-strip {
  background: var(--ds-color-bg-subtle);
  border-top: 1px solid var(--ds-color-border);
  border-bottom: 1px solid var(--ds-color-border);
  padding: var(--ds-space-3) 0;
}
.ds-trust-strip__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ds-font-size-sm);
  font-weight: 500;
  color: var(--ds-color-text-muted);
}
.ds-trust-strip__item svg {
  color: var(--ds-color-success);
  flex-shrink: 0;
}
.ds-trust-strip--compact {
  background: none;
  border: none;
  padding: var(--ds-space-2) 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--ds-space-4);
}
