:root {
  --cs-primary: #2563EB;
  --cs-accent: #10B981;
  --cs-sale: #EF4444;
  --cs-bg: #F8FAFC;
  --cs-card: #FFFFFF;
  --cs-text: #0F172A;
  --cs-muted: #64748B;
  --cs-border: rgba(15, 23, 42, 0.08);
  --cs-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --cs-glass: rgba(255, 255, 255, 0.85);
  --cs-radius: 18px;
    --cs-filter-sticky-top: 140px;
    --cs-bottom-nav-height: 0px;
    --cs-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.dark-mode {
  --cs-bg: #0F172A;
  --cs-card: #1e293b;
  --cs-text: #f8fafc;
  --cs-muted: #94a3b8;
  --cs-border: rgba(248, 250, 252, 0.08);
  --cs-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --cs-glass: rgba(15, 23, 42, 0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cs-bg);
  color: var(--cs-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* UAE Dirham currency mark. Painted with currentColor so it matches the price
   text on any background, and sized in em so it tracks the font size. */
.cs-aed {
  display: inline-block;
  width: 0.92em;
  height: 0.8em;
  margin-inline-end: 0.1em;
  vertical-align: -0.03em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("aed-symbol.png") no-repeat center / contain;
  mask: url("aed-symbol.png") no-repeat center / contain;
}

/* text-decoration does not paint across the mask box, so struck-through
   compare-at prices draw their own line across the whole amount instead. */
.cs-hl-deal-compare,
.cs-store-compare {
  position: relative;
}
.cs-hl-deal-compare:has(.cs-aed),
.cs-store-compare:has(.cs-aed) {
  text-decoration: none;
}
.cs-hl-deal-compare:has(.cs-aed)::after,
.cs-store-compare:has(.cs-aed)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  border-top: 1px solid currentColor;
  pointer-events: none;
}

.cs-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .cs-page {
    min-height: 100dvh;
  }

  /* Desktop shopfront — use full viewport width (no centered 1400px column) */
  .cs-homepage {
    width: 100%;
    max-width: none;
    padding: 8px 0 28px;
  }

  .cs-home-hero {
    border-radius: 16px;
  }
}

.cs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px 8px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--cs-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cs-border);
}
.cs-header.scrolled {
  background: var(--cs-card);
  box-shadow: var(--cs-shadow);
}

/* Mobile: logo+cart row, then search row */
.cs-header-main {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo actions"
    "search search";
  align-items: center;
  gap: 8px 10px;
}
.cs-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
.cs-logo-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 12px;
}
.cs-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cs-search-row {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.cs-filter-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: var(--cs-card);
  color: var(--cs-text);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.cs-filter-toggle svg { color: var(--cs-primary); flex-shrink: 0; }
.cs-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-accent);
}
.cs-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  background: var(--cs-card);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--cs-sale);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-filter-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--cs-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.cs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cs-muted);
  font-size: 15px;
  pointer-events: none;
}
.cs-search-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: var(--cs-card);
  color: var(--cs-text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.cs-search-input:focus { border-color: var(--cs-primary); }

.cs-category-bar {
  width: 100%;
  padding: 4px 0 0;
}

.cs-category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1vw, 8px);
  width: 100%;
}

.cs-mobile-chrome-hidden {
  display: none !important;
}

.cs-category-widget {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px 3px;
  border: 1px solid var(--cs-border);
  border-radius: 9px;
  background: var(--cs-card);
  color: #0f172a;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cs-category-widget:hover {
  border-color: var(--cat-tint, var(--cs-primary));
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.cs-category-widget.active {
  border-color: var(--cat-tint, var(--cs-primary));
  background: color-mix(in srgb, var(--cat-tint, var(--cs-primary)) 12%, var(--cs-card));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-tint, var(--cs-primary)) 14%, transparent);
  color: #0f172a;
}

.cs-category-icon {
  width: clamp(22px, 5.5vw, 28px);
  height: clamp(22px, 5.5vw, 28px);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-tint, var(--cs-primary)) 14%, var(--cs-card));
  color: var(--cat-tint, var(--cs-primary));
}

.cs-category-icon svg {
  width: clamp(12px, 3.4vw, 15px);
  height: clamp(12px, 3.4vw, 15px);
}

.cs-category-media {
  width: clamp(28px, 6vw, 36px);
  height: clamp(28px, 6vw, 36px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-category-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.cs-category-widget.has-photo .cs-category-media {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.cs-category-label {
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.15;
  width: 100%;
  padding: 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}

.cs-layout {
  display: flex;
  flex-direction: column;
}

.cs-filters-sidebar {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cs-filters-sidebar.open {
  opacity: 1;
  pointer-events: auto;
}
.cs-filters-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cs-card);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 0;
  box-shadow: var(--cs-shadow);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.cs-filters-sidebar.open .cs-filters-panel {
  transform: translateY(0);
}
.cs-filters-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
  padding: 0 0 0 0;
}
.cs-filters-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cs-filters-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cs-filters-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--cs-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.cs-filters-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.cs-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
}
.cs-filters-fields select,
.cs-filters-fields input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  color: var(--cs-text);
  outline: none;
  font-family: inherit;
}
.cs-filters-fields select:focus,
.cs-filters-fields input:focus { border-color: var(--cs-primary); }
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-price-range input { flex: 1; min-width: 0; }
.filter-price-range span {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--cs-muted);
}
.cs-filter-clear {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: transparent;
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.cs-filter-clear:hover { border-color: var(--cs-primary); color: var(--cs-primary); }

.cs-collection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-collection-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  background: var(--cs-surface);
  color: var(--cs-text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.cs-collection-chip:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}

.cs-collection-chip.active {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: #fff;
}

.cs-main {
  padding: 12px 14px 32px;
  flex: 1;
  min-width: 0;
}

.cs-results-meta {
  font-size: 12px;
  color: var(--cs-muted);
  font-weight: 500;
  line-height: 1.3;
}

.cs-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cs-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cs-card);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  cursor: pointer;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cs-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
}
.cs-product-open { cursor: pointer; }
.cs-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.cs-product-media .cs-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.cs-product-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.35s ease;
}
.cs-product-card:hover .cs-product-img {
  transform: scale(1.04);
}

/* Market products — classic contained photo (not edge-to-edge crop) */
.cs-product-card--market .cs-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.04));
}

.cs-product-card--market .cs-product-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.cs-product-card--market:hover .cs-product-img {
  transform: scale(1.03);
}

.cs-home-section .cs-product-card--market .cs-product-media {
  padding: 12px;
}

.cs-home-section .cs-product-card--market .cs-product-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cs-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  opacity: 0.35;
  background: linear-gradient(160deg, #f1f5f9, #e2e8f0);
}
.cs-product-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .cs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cs-product-card {
    border-radius: 14px;
  }
  .cs-product-media {
    aspect-ratio: 1 / 1;
  }
  .cs-product-body { padding: 8px 8px 10px; }
  .cs-product-title { font-size: 12px; margin: 2px 0 6px; }
  .cs-product-chips { gap: 3px; margin-bottom: 8px; flex-wrap: nowrap; }
  .cs-chip { font-size: 8px; padding: 2px 5px; }
  .cs-pay-btn { padding: 5px 2px; }
  .cs-pay-lbl { font-size: 7px; }
  .cs-pay-amt { font-size: 8px; }
  .cs-btn { padding: 8px 4px; font-size: 10px; }
  .cs-product-actions .cs-btn-share { flex: 0 0 28px; width: 28px; min-width: 28px; }
}
.cs-product-brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-primary);
}
.cs-product-title {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.3;
}
.cs-product-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  min-width: 0;
}
.cs-chip {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--cs-primary);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.cs-chip-market {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.cs-chip-store {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.cs-chip-preorder {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.28);
}
.market-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-pay-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.cs-pay-row-single .cs-pay-btn { flex: 1 1 100%; }
.cs-pay-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 3px;
  border-radius: 10px;
  border: 1.5px solid var(--cs-border);
  background: var(--cs-card);
  color: var(--cs-text);
  font-family: inherit;
  cursor: pointer;
}
.cs-pay-btn.active {
  border-color: var(--cs-primary);
  background: rgba(37, 99, 235, 0.1);
}
.cs-pay-btn.cs-pay-offer.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}
.cs-pay-lbl {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cs-muted);
  display: flex;
  align-items: center;
  gap: 2px;
}
.cs-pay-offer-icon { color: #f59e0b; }
.cs-pay-amt { font-size: 9px; font-weight: 700; }

.cs-pd-payment-wrap .cs-pay-btn {
  padding: 10px 6px;
  gap: 3px;
}

.cs-pd-payment-wrap .cs-pay-amt {
  font-size: 13px;
}

.cs-pay-installment-mult {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--cs-muted);
}

.cs-product-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}
.cs-product-actions .cs-btn-cart,
.cs-product-actions .cs-btn-buy { flex: 1 1 0; min-width: 0; }
.cs-product-actions .cs-btn-share {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.cs-btn {
  padding: 10px 6px;
  border-radius: 14px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.cs-btn-cart {
  background: rgba(37, 99, 235, 0.1);
  color: var(--cs-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.cs-btn-cart.in-cart { background: var(--cs-primary); color: #fff; }
.cs-btn-buy { background: var(--cs-accent); color: #fff; }
.cs-btn-share {
  background: var(--cs-card);
  color: var(--cs-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.cs-empty { padding: 48px 20px; text-align: center; color: var(--cs-muted); }

.cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
  width: 100%;
}
.cs-pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  background: var(--cs-card);
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.cs-pagination-btn:hover:not(:disabled) {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}
.cs-pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cs-pagination-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal {
  background: var(--cs-card);
  border-radius: var(--cs-radius);
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--cs-muted);
}
.modal h2 { font-size: 18px; margin-bottom: 12px; }
.cs-buy-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cs-form-field { display: flex; flex-direction: column; gap: 6px; }
.cs-form-field span { font-size: 12px; font-weight: 600; color: var(--cs-muted); }
.cs-form-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: var(--cs-bg);
  color: var(--cs-text);
}
.cs-form-field input:focus {
  outline: none;
  border-color: var(--cs-primary);
}
.cs-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn-outline {
  background: transparent;
  color: var(--cs-text);
  border: 1px solid var(--cs-border);
}
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--cs-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-sm { padding: 4px 8px; font-size: 12px; }
.btn-danger { background: var(--cs-sale); }
.meta { font-size: 11px; color: var(--cs-muted); }
.cs-cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cs-border);
}
.cs-cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
.cs-cart-info { flex: 1; min-width: 0; }
.cs-cart-payment {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}
.cs-cart-pay-label { font-weight: 600; color: var(--cs-primary); }
.cs-cart-pay-amt { font-weight: 700; color: var(--cs-accent); }
.cs-cart-payments { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cs-cart-pay-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
}
.cs-cart-pay-chip-lbl {
  color: var(--cs-muted);
  text-transform: uppercase;
  font-size: 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cs-text);
  color: var(--cs-bg);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--cs-shadow);
}

@media (min-width: 768px) {
  .cs-header {
    max-width: none;
    margin: 0;
    padding: 10px 20px 8px;
    width: 100%;
  }

  .cs-header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
    gap: 12px 16px;
  }

  .cs-logo {
    font-size: 20px;
  }

  .cs-logo-img {
    width: 40px;
    height: 40px;
  }

  .cs-search-row {
    max-width: none;
  }

  .cs-category-bar {
    padding-top: 6px;
  }

  .cs-category-widget {
    flex-direction: row;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 10px;
    min-height: 0;
  }

  .cs-category-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .cs-category-icon svg {
    width: 13px;
    height: 13px;
  }

  .cs-category-label {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
  }

  .cs-filter-toggle { display: none; }
  .cs-filters-close { display: none; }

  .cs-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    max-width: none;
    margin: 0;
    padding: 12px 16px 28px;
    width: 100%;
    box-sizing: border-box;
  }

  .cs-filters-sidebar {
    position: relative;
    inset: unset;
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    z-index: auto;
    max-height: none;
  }

  .cs-filters-panel {
    position: fixed;
    top: var(--cs-filter-sticky-top);
    left: var(--cs-filter-fixed-left, 16px);
    width: var(--cs-filter-fixed-width, 260px);
    z-index: 40;
    transform: none;
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    padding: 16px 16px 16px;
  }

  .cs-filters-fields {
    overflow: visible;
    padding-bottom: 0;
  }

  .cs-main {
    padding: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .cs-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .cs-filters-sidebar { width: 280px; }
  .cs-product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
}

@media (min-width: 1400px) {
  .cs-product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
}

/* Desktop: filters are a slide-in drawer behind the Filters button, not a fixed column */
@media (min-width: 768px) {
  .cs-filter-toggle {
    display: flex;
  }
  .cs-filters-close {
    display: flex;
  }
  .cs-layout {
    display: block;
  }
  .cs-filters-sidebar,
  .cs-filters-sidebar.open {
    position: fixed;
    inset: 0;
    width: auto;
    max-height: none;
    align-self: auto;
    flex-shrink: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
  }
  .cs-filters-sidebar {
    opacity: 0;
    pointer-events: none;
  }
  .cs-filters-sidebar.open {
    opacity: 1;
    pointer-events: auto;
  }
  .cs-filters-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(340px, 86vw);
    max-height: none;
    overflow-y: auto;
    border-radius: 0 18px 18px 0;
    padding: 18px 18px 24px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .cs-filters-sidebar.open .cs-filters-panel {
    transform: translateX(0);
  }
  .cs-main {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* Hide filters outside Electronics category */
.cs-filter-toggle[hidden],
.cs-filters-sidebar[hidden] {
  display: none !important;
}

.cs-layout-no-filters {
  flex-direction: column !important;
}

.cs-layout-no-filters .cs-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Staff cost badge (Centresouq staff view only) */
.cs-staff-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 6px 0 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  font-size: 11px;
  line-height: 1.3;
}

.cs-staff-cost-label {
  color: #92400e;
  font-weight: 600;
}

.cs-staff-cost strong {
  color: #78350f;
  font-weight: 700;
}

.cs-staff-cost-vendor {
  width: 100%;
  font-size: 10px;
  color: #a16207;
}

/* Homepage */
.cs-homepage {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 12px 0 32px;
}

.cs-home-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .cs-homepage {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    gap: 16px;
    align-items: stretch;
  }

  .cs-home-hero-row {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: 1fr;
    gap: 0;
    height: clamp(240px, 22vw, 320px);
    min-height: 240px;
    max-height: 320px;
  }

  .cs-home-store-rail {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    height: clamp(240px, 22vw, 320px);
    min-height: 240px;
    max-height: 320px;
  }

  .cs-home-hero {
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .cs-home-hero-viewport {
    min-height: 0;
    height: 100%;
  }

  .cs-home-hero-inner {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    padding-bottom: 16px;
  }

  .cs-home-hero-media {
    min-height: 0;
    max-height: 100%;
  }

  .cs-home-hero-media-plate {
    width: min(100%, 220px);
    height: auto;
    max-height: 100%;
  }

  .cs-home-sub-banners {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cs-home-highlights {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .cs-homepage > .cs-home-section,
  .cs-homepage > section:not(.cs-home-hero-row):not(.cs-home-sub-banners):not(.cs-home-highlights):not(.cs-home-store-rail) {
    grid-column: 1 / -1;
  }
}

.cs-home-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(56, 189, 248, 0.35) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 0%, rgba(99, 102, 241, 0.28) 0%, transparent 50%),
    linear-gradient(135deg, #020617 0%, #0f172a 28%, #1d4ed8 68%, #2563eb 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 18px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.18);
  min-width: 0;
  touch-action: pan-y;
}

.cs-home-hero-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.cs-home-hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8%);
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--cs-hero-tint, #1d4ed8) 42%, transparent) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #020617 0%,
      #0f172a 26%,
      var(--cs-hero-tint, #1d4ed8) 68%,
      color-mix(in srgb, var(--cs-hero-tint, #1d4ed8) 78%, #38bdf8) 100%
    );
}

.cs-home-hero-slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.cs-home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  pointer-events: none;
}

.cs-home-hero-dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease, box-shadow 0.2s ease;
}

.cs-home-hero-dot.is-active {
  width: 20px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.cs-home-hero::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cs-home-hero::after {
  content: '';
  position: absolute;
  inset: auto -8% -35% auto;
  width: 48%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.cs-home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 200px;
  height: 100%;
  min-width: 0;
  padding-bottom: 22px;
}

@media (min-width: 768px) {
  .cs-home-hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(140px, 0.9fr);
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-items: stretch;
  }

  .cs-home-hero-media {
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: clamp(10px, 1.5vw, 16px);
  }

  .cs-home-hero-media-plate {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
  }
}

.cs-home-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 24px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cs-home-hero-media-plate {
  position: relative;
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  max-height: 100%;
  padding: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.cs-home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cs-home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 12px);
  padding: clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 34px);
  color: #fff;
  min-width: 0;
}

@media (min-width: 768px) {
  .cs-home-hero-content {
    padding: clamp(18px, 2.6vw, 36px) clamp(8px, 1vw, 16px) clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px);
  }
}

.cs-home-hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.cs-home-hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cs-home-hero-text {
  margin: 0;
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
  max-width: 38ch;
}

.cs-home-hero-cta {
  width: fit-content;
  margin-top: 4px;
  padding: clamp(10px, 1.3vw, 12px) clamp(16px, 2.1vw, 22px);
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: clamp(12px, 1.35vw, 14px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cs-home-hero-cta:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
}

/* Store banner rail — swipeable promo cards */
.cs-home-store-rail {
  --cs-store-rail-radius: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  border-radius: var(--cs-store-rail-radius);
  overflow: visible;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  border: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cs-home-store-rail-head,
.cs-home-store-rail-label {
  display: none !important;
}

.cs-home-store-rail-viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--cs-store-rail-radius);
  background: #0f172a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 14px 36px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.14);
  cursor: grab;
}

.cs-home-store-rail-viewport:active {
  cursor: grabbing;
}

@media (min-width: 900px) {
  .cs-home-store-rail {
    min-height: 0;
  }

  .cs-home-store-rail-viewport {
    flex: 1 1 0;
    min-height: 0;
  }
}

.cs-home-store-rail-track {
  display: none;
}

.cs-home-store-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: grab;
  background: #1e293b;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12%) scale(1.02);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.cs-home-store-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.cs-home-store-card:hover {
  box-shadow: none;
}

.cs-home-store-card:hover .cs-home-store-card-cover {
  transform: scale(1.04);
}

.cs-home-store-rail-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.cs-home-store-rail-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, width 0.22s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cs-home-store-rail-dot.is-active {
  width: 22px;
  background: #84cc16;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.22);
}

.cs-home-store-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  pointer-events: none;
}

.cs-home-store-card-cover--empty {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.5), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(99, 102, 241, 0.4), transparent 42%),
    linear-gradient(145deg, #0f172a, #1e3a8a 65%, #2563eb);
}

.cs-home-store-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.72) 100%);
  pointer-events: none;
}

.cs-home-store-card-brand {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  pointer-events: none;
}

.cs-home-store-card-logo {
  width: clamp(34px, 4vw, 42px);
  height: clamp(34px, 4vw, 42px);
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.cs-home-store-card-logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #1e40af;
}

.cs-home-store-card-name {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .cs-home-store-rail {
    --cs-store-rail-radius: 26px;
    min-height: 200px;
    height: clamp(190px, 52vw, 230px);
  }

  .cs-home-store-rail-viewport {
    min-height: 190px;
  }

  .cs-home-store-rail-dots {
    bottom: 8px;
    gap: 7px;
  }

  .cs-home-store-rail-dot {
    width: 7px;
    height: 7px;
  }

  .cs-home-store-rail-dot.is-active {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-home-store-card,
  .cs-home-store-card-cover,
  .cs-home-hero-cta,
  .cs-home-store-rail-dot,
  .cs-home-hero-slide,
  .cs-home-hero-dot {
    transition: none;
  }
}

.cs-home-sub-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .cs-home-sub-banners { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.cs-home-sub-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 88px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.cs-home-sub-banner-title {
  font-size: 13px;
  font-weight: 700;
}

.cs-home-sub-banner-sub {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.cs-home-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Homepage product rows: denser, fills screen width */
.cs-home-section .cs-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cs-home-section .cs-product-card {
  min-width: 0;
  border-radius: 14px;
}

.cs-home-section .cs-product-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
}

.cs-home-section .cs-product-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cs-home-section .cs-product-body {
  padding: 8px 8px 10px;
}

.cs-home-section .cs-product-brand {
  font-size: clamp(7px, 2vw, 10px);
}

.cs-home-section .cs-product-title {
  font-size: clamp(11px, 2.6vw, 13px);
  margin: 2px 0 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-home-section .cs-product-chips {
  gap: 3px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}

.cs-home-section .cs-chip {
  font-size: clamp(7px, 1.6vw, 9px);
  padding: 2px 4px;
}

.cs-home-section .cs-pay-row {
  gap: 2px;
  margin-bottom: 6px;
}

.cs-home-section .cs-pay-btn {
  padding: clamp(3px, 1vw, 6px) 2px;
  border-radius: 8px;
}

.cs-home-section .cs-pay-lbl {
  font-size: clamp(6px, 1.6vw, 8px);
}

.cs-home-section .cs-pay-amt {
  font-size: clamp(7px, 1.8vw, 9px);
}

.cs-home-section .cs-btn {
  padding: clamp(6px, 1.8vw, 9px) clamp(3px, 1vw, 6px);
  font-size: clamp(8px, 2.2vw, 11px);
}

.cs-home-section .cs-product-actions .cs-btn-share {
  flex: 0 0 clamp(24px, 7vw, 32px);
  width: clamp(24px, 7vw, 32px);
  min-width: clamp(24px, 7vw, 32px);
}

@media (min-width: 480px) {
  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 640px) {
  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1600px) {
  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
  }
}

.cs-home-section--quad .cs-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .cs-home-section--quad .cs-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

/* New Products by store — same panel + 2×2 card model as Best Selling */
.cs-home-section--new-by-store {
  gap: 0;
}

.cs-home-new-store-stacks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 720px) {
  .cs-home-new-store-stacks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .cs-home-new-store-stacks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cs-home-store-new-col {
  width: 100%;
  min-height: 0;
}

/* Always match Best Selling: 2×2 (or 2×3 when a store shows 6) */
.cs-home-store-new-col .cs-hl-feature-grid,
.cs-home-store-new-col--4 .cs-hl-feature-grid,
.cs-home-store-new-col--6 .cs-hl-feature-grid {
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-home-store-new-col .cs-hl-feature {
  min-height: 168px;
}

/* Noon-style 3-column highlights: Best Selling | Best Deal | Most Visited */
.cs-home-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .cs-home-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-height: 420px;
  }
}

.cs-hl-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  background: #f3f4f6;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cs-hl-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.cs-hl-col-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.cs-hl-all-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: #374151;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.cs-hl-all-btn:hover {
  background: #111827;
}

.cs-hl-feature-grid,
.cs-hl-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.cs-hl-feature {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: var(--hl-tone, #e8f5e9);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cs-hl-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.cs-hl-feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 110px;
  padding: 14px 12px 6px;
}

.cs-hl-feature-img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
}

.cs-hl-feature-fallback {
  font-size: 36px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.25);
}

.cs-hl-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px 12px;
}

.cs-hl-feature-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-hl-feature-sub {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.cs-hl-deal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-height: 0;
}

.cs-hl-deal-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 10px 10px 36px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.cs-hl-deal-tag {
  align-self: flex-start;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-hl-deal-off {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.cs-hl-deal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin-bottom: 8px;
}

.cs-hl-deal-img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.cs-hl-deal-fallback {
  font-size: 28px;
  opacity: 0.35;
}

.cs-hl-deal-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 4px;
}

.cs-hl-deal-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cs-hl-deal-compare {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
}

.cs-hl-deal-price {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.cs-hl-deal-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.cs-hl-deal-add:hover,
.cs-hl-deal-add.in-cart {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cs-hl-focus-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.cs-hl-focus {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-height: 160px;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #0f172a;
  text-align: left;
  font-family: inherit;
}

.cs-hl-focus-media {
  position: absolute;
  inset: 0;
}

.cs-hl-focus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-hl-focus-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.15) 100%);
}

.cs-hl-focus-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 16px;
  color: #fff;
}

.cs-hl-focus-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cs-hl-focus-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 12em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-hl-focus-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.cs-hl-focus-mini-row {
  display: none;
}

@media (max-width: 899px) {
  .cs-hl-col--selling,
  .cs-hl-col--deals,
  .cs-hl-col--focus {
    min-height: 0;
  }

  .cs-hl-feature-media {
    min-height: 96px;
  }

  .cs-hl-feature-img {
    max-height: 96px;
  }

  .cs-hl-focus {
    min-height: 160px;
  }
}

.cs-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cs-home-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.cs-home-section-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.cs-home-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cs-browse-hub-page {
  padding-bottom: 8px;
}

.cs-browse-hub-hero {
  margin: 0 0 20px;
  padding: 20px 16px 8px;
}

.cs-browse-hub-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cs-text, #0f172a);
}

.cs-browse-hub-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--cs-muted, #64748b);
}

.cs-browse-hub-section .cs-subcat-grid {
  padding: 0 12px 4px;
}

.cs-browse-hub--shop {
  padding-top: 4px;
}

.cs-browse-hub--shop .cs-hub-collection,
.cs-browse-hub .cs-hub-collection,
.cs-browse-hub-section .cs-subcat-grid,
.cs-browse-hub .cs-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 4px 4px 16px;
  overflow: visible;
  flex-wrap: unset;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: auto;
}

.cs-browse-hub--shop .cs-subcat-widget,
.cs-browse-hub .cs-hub-collection .cs-subcat-widget,
.cs-browse-hub-section .cs-subcat-widget,
.cs-browse-hub .cs-subcat-widget {
  width: 100%;
  max-width: none;
  flex: unset;
  scroll-snap-align: unset;
}

.cs-browse-hub-section .cs-home-section-head,
.cs-browse-hub--shop .cs-browse-hub-hero {
  display: none;
}

.cs-hub-collection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 16px;
}

.cs-browse-hub--categories .cs-hub-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 4px 16px;
}

.cs-browse-hub--categories .cs-hub-tile {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.cs-browse-hub--categories .cs-hub-tile-media {
  width: 100%;
  height: 88px;
  max-width: none;
  border-radius: 0;
  background: #f8fafc;
}

.cs-browse-hub--categories .cs-hub-tile-media svg {
  width: 30px;
  height: 30px;
}

.cs-browse-hub--categories .cs-hub-tile-label {
  font-size: 13px;
  padding: 10px 8px 12px;
  width: 100%;
}

.cs-hub-collection-brands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-hub-collection-brands .cs-subcat-widget {
  width: 100%;
}

.cs-hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 8px;
  border: 1px solid color-mix(in srgb, var(--cat-tint, #2563eb) 22%, #e2e8f0);
  border-radius: 14px;
  background: color-mix(in srgb, var(--cat-tint, #2563eb) 8%, #fff);
  color: var(--cs-text, #0f172a);
  cursor: pointer;
  text-align: center;
}

.cs-hub-tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--cat-tint, #2563eb);
  overflow: hidden;
}

.cs-hub-tile-media svg {
  width: 26px;
  height: 26px;
}

.cs-hub-tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hub-tile-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .cs-hub-collection,
  .cs-hub-collection-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cs-browse-hub--categories .cs-hub-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cs-home-section--subrow .cs-subcat-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
  gap: 12px 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cs-home-section--subrow .cs-subcat-widget {
  flex: 0 0 auto;
  width: 118px;
  max-width: 118px;
  scroll-snap-align: start;
}

.cs-home-section--subrow .cs-subcat-media {
  width: min(100%, 112px);
  margin-inline: auto;
}

@media (max-width: 767px) {
  .cs-home-section--subrow .cs-subcat-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-template-columns: none;
    grid-auto-columns: 96px;
    justify-content: start;
    gap: 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cs-home-section--subrow .cs-subcat-grid::-webkit-scrollbar {
    display: none;
  }

  .cs-home-section--subrow .cs-subcat-widget {
    flex: unset;
    width: 96px;
    max-width: 96px;
    scroll-snap-align: start;
  }
}

.cs-subcat-bar {
  margin: 0;
  padding: 0;
}

.cs-catalog-with-subs .cs-subcat-bar {
  margin-bottom: 18px;
}

/* Catalog subcategory strip — compact widgets, wrap all subs (no stretch gaps) */
.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(104px, 128px));
  justify-content: start;
  align-items: start;
  gap: 12px 14px;
  width: 100%;
  overflow: visible;
  padding: 2px 0 14px;
}

.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-widget {
  width: 100%;
  max-width: 128px;
  flex: unset;
  min-width: 0;
}

.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-media {
  width: min(100%, 118px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-widget:hover .cs-subcat-media {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-widget.active .cs-subcat-media {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 6px 16px rgba(37, 99, 235, 0.1);
}

.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.cs-catalog-with-subs {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* One-row subcategory carousel with side arrows */
.cs-subcat-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cs-subcat-grid--row,
.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid--row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cs-subcat-grid--row::-webkit-scrollbar {
  display: none;
}
.cs-subcat-grid--row .cs-subcat-widget,
.cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid--row .cs-subcat-widget {
  flex: 0 0 auto;
  width: 112px;
  max-width: 112px;
  scroll-snap-align: start;
}
.cs-subcat-nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--cs-border);
  background: var(--cs-card);
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.cs-subcat-carousel.is-scrollable .cs-subcat-nav {
  display: inline-flex;
}
.cs-subcat-nav:hover:not(:disabled) {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}
.cs-subcat-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 767px) {
  .cs-subcat-carousel.is-scrollable .cs-subcat-nav {
    display: none;
  }
  .cs-subcat-grid--row .cs-subcat-widget,
  .cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid--row .cs-subcat-widget {
    width: 92px;
    max-width: 92px;
  }
}

/* Compact category tiles — never stretch to fill the row when few items */
.cs-subcat-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(104px, 128px));
  justify-content: start;
  gap: 12px;
  width: 100%;
}

.cs-home-section .cs-subcat-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cs-home-section .cs-subcat-widget {
  flex: 0 0 auto;
  width: 118px;
  max-width: 118px;
  scroll-snap-align: start;
}

.cs-subcat-widget {
  min-width: 0;
  width: 100%;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--cs-text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: none;
}

.cs-subcat-widget:hover {
  transform: translateY(-2px);
}

.cs-subcat-widget.active .cs-subcat-media {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cs-primary) 22%, transparent);
}

.cs-subcat-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cs-subcat-widget:hover .cs-subcat-media {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.cs-subcat-letter {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1;
  color: var(--cs-primary);
}

.cs-subcat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cs-subcat-media .cs-subcat-img {
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.cs-subcat-label {
  font-size: clamp(10px, 2.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-pd-subcats .cs-subcat-bar {
  margin-top: 0;
}

/* Product detail page */
.cs-product-detail-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-product-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-pd-toolbar {
  display: flex;
  align-items: center;
}

.cs-pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cs-border);
  background: var(--cs-card);
  color: var(--cs-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cs-pd-back:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}

.cs-pd-back-icon {
  font-size: 16px;
  line-height: 1;
}

.cs-pd-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .cs-pd-hero {
    grid-template-columns: minmax(280px, min(560px, 46%)) minmax(0, 1fr);
    gap: 28px;
  }
}

.cs-pd-media,
.cs-pd-panel {
  min-width: 0;
}

.cs-pd-media {
  max-width: min(560px, 100%);
}

.cs-pd-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: calc(var(--cs-radius) + 4px);
  box-shadow: var(--cs-shadow);
  padding: 20px;
}

@media (min-width: 640px) {
  .cs-pd-panel {
    padding: 24px;
  }
}

/* Gallery — square stage (matches 1:1 product photos), thumbs on left */
.cs-pd-gallery {
  position: relative;
  background: var(--cs-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 10px;
  width: 100%;
}

.cs-pd-gallery-split {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cs-pd-main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    #f1f5f9;
}

.cs-pd-main-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border-radius: 0;
}

.cs-pd-main-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.3;
}

.cs-pd-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 76px;
  max-height: min(520px, calc(100vw - 48px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.cs-pd-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #e2e8f0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cs-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-pd-thumb:hover {
  border-color: rgba(15, 23, 42, 0.25);
}

.cs-pd-thumb.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
  transform: scale(1.02);
}

.cs-pd-gallery-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

@media (max-width: 599px) {
  .cs-pd-media {
    max-width: none;
  }

  .cs-pd-gallery {
    padding: 8px;
    border-radius: 16px;
  }

  .cs-pd-gallery-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cs-pd-main-stage {
    max-width: none;
    border-radius: 12px;
  }

  .cs-pd-thumbs-col {
    grid-row: 2;
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
  }

  .cs-pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
  }
}

/* Product info panel */
.cs-pd-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-pd-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cs-pd-brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cs-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-pd-stock {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.cs-pd-stock-in {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.cs-pd-stock-out {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.cs-pd-stock-preorder {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.cs-pd-title {
  margin: 0;
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cs-text);
}

.cs-pd-specs {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-muted);
}

.cs-pd-price-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.cs-pd-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-pd-price-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

.cs-pd-price {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cs-text);
  line-height: 1;
}

.cs-pd-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-pd-price-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
}

.cs-pd-price-chip-accent {
  color: var(--cs-primary);
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
}

.cs-pd-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-pd-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

.cs-pd-section-hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--cs-muted);
}

.cs-pd-desc-body {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
}

.cs-pd-desc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cs-text);
  white-space: pre-wrap;
}

.cs-pd-payment-wrap .cs-pay-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 480px) {
  .cs-pd-payment-wrap .cs-pay-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cs-pd-payment-wrap .cs-pay-btn {
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--cs-border);
  background: var(--cs-bg);
}

.cs-pd-payment-wrap .cs-pay-btn.active {
  border-color: var(--cs-primary);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.cs-pd-payment-wrap .cs-pay-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cs-pd-payment-wrap .cs-pay-amt {
  font-size: 13px;
  font-weight: 800;
}

.cs-pd-buybar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--cs-card) 80%, transparent);
  padding-bottom: 2px;
}

.cs-pd-buybar-wish {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--cs-border);
  background: var(--cs-bg);
  font-size: 18px;
  cursor: pointer;
}

.cs-pd-buybar-cart {
  min-height: 44px;
  font-weight: 700;
}

.cs-pd-buybar-buy {
  min-height: 44px;
  font-weight: 700;
  padding-left: 18px;
  padding-right: 18px;
}

.cs-pd-buybar-share {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.cs-pd-related-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-pd-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 12px);
}

@media (min-width: 640px) {
  .cs-pd-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cs-pd-related-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .cs-pd-related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cs-pd-related .cs-product-card,
.cs-pd-related .cs-product-actions .cs-btn {
  cursor: pointer;
}

.cs-pd-subcats {
  margin-top: 4px;
}

/* Shop chat widget — phones use account Chat tab instead of FAB */
@media (max-width: 767px) {
  #cs-chat-root,
  #cs-chat-fab,
  .cs-chat-fab,
  #cs-chat-panel,
  .cs-chat-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.cs-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cs-chat-fab.is-hidden {
  display: none !important;
}
.cs-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 81;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 100px));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.cs-chat-panel.is-open {
  display: flex;
}
.cs-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 44px;
}
.cs-chat-head .cs-chat-user {
  flex: 1;
  min-width: 0;
  padding: 0;
  border-bottom: none;
  background: transparent;
}
.cs-chat-head .cs-chat-user[hidden] {
  display: none !important;
}
.cs-chat-head .cs-chat-identity-summary {
  width: 100%;
}
.cs-chat-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  flex-shrink: 0;
  padding: 0 2px;
}
.cs-chat-cart[hidden] {
  display: none !important;
}
.cs-chat-cart {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  max-height: 120px;
  overflow: auto;
  background: #f8fafc;
}
.cs-chat-cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-chat-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cs-chat-cart-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.cs-chat-cart-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cs-chat-cart-info { min-width: 0; flex: 1; }
.cs-chat-cart-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-chat-cart-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-chat-cart-empty { margin: 0; font-size: 11px; color: #94a3b8; }
.cs-chat-identity {
  padding: 12px;
  display: grid;
  gap: 8px;
}
.cs-chat-identity[hidden],
.cs-chat-login[hidden],
.cs-chat-user[hidden],
.cs-chat-messages[hidden],
.cs-chat-compose[hidden],
.cs-chat-phone-hint[hidden],
.cs-chat-pending[hidden],
.cs-chat-stickers[hidden],
.cs-chat-attach-sheet[hidden],
.cs-chat-panel[hidden] {
  display: none !important;
}
.cs-chat-login {
  padding: 14px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.cs-chat-login-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}
.cs-chat-login-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.cs-chat-phone-hint {
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.cs-chat-phone-hint a {
  color: var(--cs-primary);
  font-weight: 600;
}
.cs-chat-user {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.cs-chat-head .cs-chat-user {
  padding: 0;
  border-bottom: none;
  background: transparent;
}
.cs-chat-identity-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}
.cs-chat-identity-name {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-chat-identity-sep { color: #94a3b8; flex-shrink: 0; }
.cs-chat-identity-phone {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-chat-identity input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.cs-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}
.cs-chat-bubble {
  width: max-content;
  max-width: min(85vw, 34rem);
  min-width: 3.25rem;
  padding: 8px 12px 6px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}
.cs-chat-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}
.cs-chat-bubble-sender {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  opacity: 0.88;
  letter-spacing: 0.01em;
}
.cs-chat-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  line-height: 1;
}
.cs-chat-bubble-meta time {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}
.cs-chat-bubble.me {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.cs-chat-bubble.me .cs-chat-bubble-meta time {
  color: rgba(255, 255, 255, 0.85);
}
.cs-chat-bubble.staff {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom-left-radius: 5px;
}
.cs-chat-bubble.staff .cs-chat-bubble-meta time {
  color: #64748b;
}
.cs-chat-bubble:has(.cs-chat-att-loc-card) {
  padding: 0;
  max-width: min(78%, 220px);
  width: min(72vw, 220px);
  min-width: 0;
  background: transparent;
  box-shadow: none;
  gap: 4px;
}
.cs-chat-bubble.me:has(.cs-chat-att-loc-card) {
  background: transparent;
}
.cs-chat-bubble:has(.cs-chat-att-loc-card) .cs-chat-att-loc-card {
  margin-top: 0;
  flex: 0 0 auto;
  align-self: stretch;
}
.cs-chat-bubble:has(.cs-chat-att-loc-card) .cs-chat-bubble-meta {
  padding: 0 8px 6px;
}
.cs-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px calc(10px + var(--cs-safe-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.cs-chat-compose-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.cs-chat-tool-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cs-chat-tool-btn:hover,
.cs-chat-tool-btn.is-active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.cs-chat-tool-btn.is-recording {
  color: #fff;
  background: #dc2626;
}
.cs-chat-compose-input,
.cs-chat-compose input.cs-chat-compose-input,
.cs-chat-compose #cs-chat-input,
.cs-account-chat-compose #cs-account-chat-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #e2e8f0 !important;
  background: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  font-size: 14px;
  line-height: 1.3;
  color: #0f172a;
  outline: none;
  box-shadow: none !important;
}
.cs-chat-compose-input:focus,
.cs-chat-compose #cs-chat-input:focus,
.cs-account-chat-compose #cs-account-chat-input:focus {
  background: #fff !important;
  border-color: #cbd5e1 !important;
}
.cs-chat-compose-input::placeholder,
.cs-chat-compose #cs-chat-input::placeholder,
.cs-account-chat-compose #cs-account-chat-input::placeholder {
  color: #94a3b8;
}
.cs-chat-send-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.cs-chat-send-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}
.cs-chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
/* Legacy pill layout (kept for safety) */
.cs-chat-compose-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cs-chat-compose-pill #cs-chat-input,
.cs-chat-compose-pill #cs-account-chat-input,
.cs-chat-compose-pill input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 8px 4px !important;
  font-size: 15px;
  line-height: 1.3;
  color: #0f172a;
  outline: none;
  box-shadow: none !important;
  height: auto;
  min-height: 0;
}
.cs-chat-tool-btn--pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #54656f;
  background: transparent;
}
.cs-chat-tool-btn--pill:hover,
.cs-chat-tool-btn--pill.is-active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.cs-chat-action-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}
.cs-chat-action-btn:hover {
  filter: brightness(1.08);
}
.cs-chat-action-btn.is-recording {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.cs-chat-action-btn--send {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.cs-chat-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.cs-chat-action-btn[hidden] {
  display: none !important;
}
.cs-chat-pill-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cs-chat-pill-btn:hover,
.cs-chat-pill-btn.is-active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.cs-chat-round-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.cs-chat-round-btn:hover {
  filter: brightness(1.08);
}
.cs-chat-round-btn.is-recording {
  background: #dc2626;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}
.cs-chat-send-round {
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.cs-chat-send-round[hidden],
.cs-chat-round-btn[hidden] {
  display: none !important;
}
.cs-chat-compose .btn { white-space: nowrap; }
.cs-chat-icon-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cs-chat-icon-btn:hover { background: #f8fafc; }
.cs-chat-icon-btn.is-recording {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.cs-chat-icon-btn.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.cs-chat-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.cs-chat-photo-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 30;
  min-width: 140px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.cs-chat-photo-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}
.cs-chat-photo-menu button:hover { background: #f1f5f9; }
.cs-chat-stickers {
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px 10px;
  background: #f8fafc;
}
.cs-chat-stickers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}
.cs-chat-stickers-head button {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cs-chat-stickers-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  max-height: 140px;
  overflow: auto;
}
.cs-chat-sticker-item {
  border: 0;
  background: transparent;
  border-radius: 10px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cs-chat-sticker-item:hover { background: #e2e8f0; }
.cs-chat-att-sticker {
  font-size: 42px;
  line-height: 1;
  margin-top: 2px;
  user-select: none;
}
.cs-chat-bubble-sticker {
  background: transparent !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  box-shadow: none !important;
}
.cs-chat-pending-sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
}
.cs-chat-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 0;
  border-top: 1px solid #e2e8f0;
}
.cs-chat-pending-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cs-chat-pending-item img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.cs-chat-pending-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 10px 0 12px;
  font-size: 12px;
  color: #475569;
}
.cs-chat-pending-item button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cs-chat-att-photo {
  display: block;
  margin-top: 6px;
}
.cs-chat-att-photo img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(0,0,0,0.08);
}
.cs-chat-att-audio {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 6px;
  height: 36px;
}
.cs-chat-bubble.me .cs-chat-att-photo img {
  background: rgba(255,255,255,0.15);
}
.cs-chat-attach-sheet {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px 14px 14px;
}
.cs-chat-attach-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 12px;
}
.cs-chat-attach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.cs-chat-attach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  color: #475569;
}
.cs-chat-attach-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.cs-chat-attach-doc { color: #7c3aed; }
.cs-chat-attach-photo { color: #0284c7; }
.cs-chat-attach-camera { color: #e11d48; }
.cs-chat-attach-loc { color: #059669; }
.cs-chat-att-doc,
.cs-chat-att-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  max-width: 240px;
}
.cs-chat-att-loc-card {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  width: min(100%, 220px);
  height: auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f1f5f9;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  line-height: 1.25;
}
.cs-chat-bubble.me .cs-chat-att-loc-card {
  border-color: transparent;
  background: #1e40af;
  color: #fff;
  box-shadow: none;
}
.cs-chat-att-loc-map {
  position: relative;
  display: block;
  width: 100%;
  height: 112px;
  flex: 0 0 112px;
  background: #cbd5e1;
  overflow: hidden;
}
.cs-chat-att-loc-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-chat-att-loc-map--fallback {
  background:
    radial-gradient(circle at 50% 46%, rgba(37, 99, 235, 0.18), transparent 42%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 16px,
      rgba(100, 116, 139, 0.22) 16px,
      rgba(100, 116, 139, 0.22) 17px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 16px,
      rgba(100, 116, 139, 0.22) 16px,
      rgba(100, 116, 139, 0.22) 17px
    ),
    #94a3b8;
}
.cs-chat-bubble.me .cs-chat-att-loc-map--fallback {
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.14) 16px,
      rgba(255, 255, 255, 0.14) 17px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.14) 16px,
      rgba(255, 255, 255, 0.14) 17px
    ),
    #1d4ed8;
}
.cs-chat-att-loc-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -16px 0 0 -8px;
  border-radius: 50% 50% 50% 0;
  background: #ef4444;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
  pointer-events: none;
}
.cs-chat-att-loc-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #fff;
}
.cs-chat-att-loc-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px 9px;
  flex: 0 0 auto;
  background: transparent;
}
.cs-chat-att-loc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}
.cs-chat-att-loc-sub {
  font-size: 11px;
  color: #64748b;
}
.cs-chat-bubble.me .cs-chat-att-loc-sub {
  color: rgba(255, 255, 255, 0.78);
}
.cs-chat-att-loc-action {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 650;
  color: #2563eb;
}
.cs-chat-bubble.me .cs-chat-att-loc-action {
  color: #bfdbfe;
}
.cs-chat-bubble.me .cs-chat-att-doc,
.cs-chat-bubble.me .cs-chat-att-loc {
  background: rgba(255, 255, 255, 0.18);
}
.cs-chat-att-doc-icon,
.cs-chat-att-loc-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.cs-chat-att-doc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-chat-pending-doc,
.cs-chat-pending-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  max-width: 160px;
  padding: 8px 28px 8px 10px;
  font-size: 12px;
  color: #475569;
}
.cs-chat-pending-doc svg,
.cs-chat-pending-loc svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

a.cs-icon-btn {
  text-decoration: none;
  color: inherit;
}

.cs-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cs-sale);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-wishlist-btn.active {
  background: #fff0f0;
}
.cs-wishlist-btn-inline {
  position: static;
  width: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  box-shadow: none;
  border: 1px solid var(--cs-border);
}

/* Account page */
.cs-account-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    var(--cs-bg);
}
.cs-account-page .cs-header {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.cs-account-page .cs-account-header {
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo actions";
}
.cs-account-main {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 56px;
  box-sizing: border-box;
}
.cs-account-loading,
.cs-empty-inline {
  color: var(--cs-muted);
  padding: 24px 0;
}
.cs-account-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-account-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: calc(var(--cs-radius) + 4px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}
.cs-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cs-primary) 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.cs-account-avatar-photo {
  object-fit: cover;
  padding: 0;
  background: #e2e8f0;
  color: transparent;
}
.cs-account-avatar-xl {
  width: 88px;
  height: 88px;
  font-size: 28px;
}
.cs-account-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 11px;
  box-shadow: none;
}
.cs-account-nav-link--avatar {
  display: none;
}
.cs-account-nav-avatar-wrap {
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.cs-account-nav-avatar-wrap .cs-account-avatar {
  margin: 0;
}
.cs-profile-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cs-profile-photo-actions {
  min-width: 0;
  flex: 1;
}
.cs-profile-photo-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cs-text);
  line-height: 1.25;
}
.cs-profile-photo-phone {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-muted);
  line-height: 1.3;
}
.cs-profile-photo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cs-profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-profile-password-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}
@media (min-width: 720px) {
  .cs-profile-password-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}
.cs-profile-password-btn {
  white-space: nowrap;
  height: 42px;
}
.cs-profile-password-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cs-profile-password-actions:empty {
  display: none;
}
.cs-profile-password-ok {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}
.cs-profile-password-ok.hidden {
  display: none;
}
.cs-account-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 20px;
  margin: 0 auto 12px;
}
.cs-account-hero-text {
  min-width: 0;
}
.cs-account-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.cs-account-sub {
  color: var(--cs-muted);
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}
.cs-account-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border-radius: 14px;
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  box-shadow: var(--cs-shadow);
  scrollbar-width: none;
}
.cs-account-tabs::-webkit-scrollbar {
  display: none;
}
.cs-account-tab,
.cs-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--cs-muted);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  flex: 1 0 auto;
}
.cs-account-tab-icon {
  display: flex;
  opacity: 0.75;
}
.cs-account-tab.active .cs-account-tab-icon {
  opacity: 1;
}
.cs-account-tab.active,
.cs-auth-tab.active {
  background: var(--cs-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
@media (max-width: 420px) {
  .cs-account-tab-label {
    display: none;
  }
  .cs-account-tab {
    padding: 10px 12px;
    flex: 1;
  }
}
.cs-account-panel {
  animation: cs-account-fade 0.2s ease;
}
@keyframes cs-account-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cs-account-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 20px;
  box-shadow: var(--cs-shadow);
}
.cs-account-card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.cs-card-desc {
  color: var(--cs-muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.4;
}
.cs-account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cs-border);
}
.cs-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.cs-profile-card .cs-account-card-head {
  margin-bottom: 8px;
  padding-bottom: 12px;
}
.cs-profile-group {
  margin-top: 12px;
  border-radius: 14px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  overflow: hidden;
}
.cs-profile-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cs-border);
  background: rgba(37, 99, 235, 0.04);
}
.cs-profile-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cs-primary);
  flex-shrink: 0;
}
.cs-profile-group-head h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
.cs-profile-fields {
  padding: 4px 0;
}
.cs-profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 560px) {
  .cs-profile-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.cs-profile-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--cs-border);
}
.cs-profile-field:first-child {
  border-top: none;
}
.cs-profile-field-body {
  min-width: 0;
  flex: 1;
}
.cs-profile-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
  margin-bottom: 2px;
}
.cs-profile-field-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.cs-profile-field-value.is-empty {
  color: var(--cs-muted);
  font-weight: 500;
  font-style: italic;
}
.cs-profile-edit-btn {
  flex-shrink: 0;
  border: 1px solid var(--cs-border);
  background: var(--cs-card);
  color: var(--cs-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cs-profile-edit-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
}
.cs-field select {
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--cs-bg);
  color: var(--cs-text);
  font: inherit;
}
.cs-profile-form .cs-auth-error {
  margin-top: 0;
}
.cs-account-auth-wrap {
  max-width: 420px;
  margin: 24px auto 0;
}
.cs-account-auth {
  text-align: center;
}
.cs-auth-brand {
  margin-bottom: 8px;
}
.cs-auth-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
}
.cs-auth-tab {
  flex: 1;
}
.cs-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.cs-auth-form.hidden {
  display: none;
}
.cs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.cs-field input {
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--cs-bg);
  color: var(--cs-text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cs-field input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.cs-btn-block {
  width: 100%;
  justify-content: center;
}
.cs-btn-primary {
  background: var(--cs-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.cs-btn-ghost {
  background: transparent;
  border: 1px solid var(--cs-border);
  color: var(--cs-text);
}
.cs-btn-danger {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
}
.cs-btn-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}
.cs-account-danger-zone {
  margin-top: 14px;
}
.cs-account-danger-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: var(--cs-text);
}
.cs-account-danger-zone .cs-btn-danger {
  margin-top: 10px;
}
.cs-auth-error {
  color: var(--cs-sale);
  font-size: 13px;
  margin-top: 10px;
}
.cs-auth-error.hidden {
  display: none;
}
.cs-google-auth {
  margin: 4px 0 16px;
}
.cs-google-signin-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.cs-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--cs-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cs-auth-divider::before,
.cs-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cs-border);
}
.cs-auth-divider span {
  flex-shrink: 0;
}
.cs-account-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-account-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--cs-border);
}
.cs-account-cart-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--cs-bg);
}
.cs-account-cart-name {
  font-weight: 600;
  font-size: 14px;
}
.cs-account-cart-meta,
.cs-account-cart-price {
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 2px;
}
.cs-account-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
  font-size: 16px;
  border-top: 1px solid var(--cs-border);
  margin-top: 8px;
}
.cs-account-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .cs-account-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cs-account-wish-item {
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cs-bg);
}
.cs-account-wish-media img,
.cs-account-wish-media .cs-img-placeholder {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(16,185,129,0.06));
}
.cs-account-wish-body {
  padding: 10px;
  position: relative;
}
.cs-account-wish-name {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: block;
  padding-right: 28px;
}
.cs-account-wish-price {
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 4px;
}
.cs-account-wish-remove {
  position: absolute;
  top: 8px;
  right: 8px;
}
.cs-order-group-title {
  font-size: 14px;
  margin: 16px 0 8px;
  color: var(--cs-muted);
}
.cs-order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.cs-order-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--cs-border);
  background: var(--cs-card);
  color: inherit;
  text-align: left;
  font: inherit;
}
.cs-order-stat::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cs-order-stat-accent, var(--cs-primary));
}
.cs-order-stat--total { --cs-order-stat-accent: #2563eb; }
.cs-order-stat--active { --cs-order-stat-accent: #d97706; }
.cs-order-stat--done { --cs-order-stat-accent: #059669; }
.cs-order-stat--void { --cs-order-stat-accent: #ef4444; }
.cs-order-stat--spent { --cs-order-stat-accent: #7c3aed; }
.cs-order-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
.cs-order-stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}
.cs-order-stat--btn {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}
.cs-order-stat--btn::after {
  width: 3px;
  transition: width 0.15s ease;
}
.cs-order-stat--btn:hover {
  border-color: var(--cs-order-stat-accent, var(--cs-primary));
  transform: translateY(-1px);
}
.cs-order-stat--btn:focus-visible {
  outline: 2px solid var(--cs-order-stat-accent, var(--cs-primary));
  outline-offset: 2px;
}
.cs-order-stat--btn.is-active {
  border-color: var(--cs-order-stat-accent, var(--cs-primary));
  background: color-mix(in srgb, var(--cs-order-stat-accent, #2563eb) 10%, var(--cs-card));
  box-shadow: 0 0 0 1px var(--cs-order-stat-accent, var(--cs-primary)) inset;
}
.cs-order-stat--btn.is-active::after { width: 5px; }
.cs-order-stat--btn.is-active .cs-order-stat-label {
  color: var(--cs-order-stat-accent, var(--cs-primary));
}
.cs-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-order-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cs-border);
  border-radius: 18px;
  padding: 16px;
  background: var(--cs-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cs-order-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cs-order-accent, #2563eb);
}
.cs-order-card--delivered { --cs-order-accent: #059669; }
.cs-order-card--cancelled { --cs-order-accent: #ef4444; }
.cs-order-card--shipped { --cs-order-accent: #d97706; }
.cs-order-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.cs-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.cs-order-head-main {
  min-width: 0;
}
.cs-order-number {
  font-weight: 700;
  font-size: 15px;
}
.cs-order-date {
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 2px;
}
.cs-order-refs {
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 4px;
}
.cs-order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--cs-primary);
  white-space: nowrap;
}
.cs-order-status-delivered { background: rgba(16, 185, 129, 0.15); color: #059669; }
.cs-order-status-cancelled { background: rgba(239, 68, 68, 0.12); color: var(--cs-sale); }
.cs-order-status-shipped { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.cs-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.cs-order-item-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--cs-border);
}
.cs-order-item-chip--more {
  color: var(--cs-muted);
  font-weight: 600;
}
.cs-order-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--cs-border);
}
.cs-order-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cs-order-fact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
.cs-order-fact-value {
  font-size: 13px;
  font-weight: 600;
}
.cs-order-fact-value--strong {
  font-size: 15px;
  font-weight: 700;
}
.cs-order-card-actions {
  display: flex;
  justify-content: flex-end;
}
.cs-order-products {
  font-size: 13px;
  margin: 10px 0;
}
.cs-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--cs-muted);
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .cs-order-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-order-stat { padding: 12px; }
  .cs-order-stat-value { font-size: 18px; }
  .cs-order-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cs-account-modal {
  width: min(480px, 100%);
  background: var(--cs-card);
  border-radius: 16px;
  padding: 18px;
  max-height: min(88vh, 760px);
  overflow-y: auto;
}
.cs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}
.cs-modal-title {
  font-size: 18px;
  margin-bottom: 4px;
}
.cs-modal-sub {
  color: var(--cs-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.cs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.cs-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.cs-order-detail-items {
  border-top: 1px solid var(--cs-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-order-detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.cs-order-products-block {
  margin: 14px 0 0;
}
.cs-order-products-block[hidden] { display: none; }
.cs-order-products-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin: 0 0 8px;
}
.cs-order-products-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-order-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  background: var(--cs-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-order-product:hover {
  border-color: var(--cs-primary);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.cs-order-product-media {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-order-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cs-order-product-qty {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.cs-order-product-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-order-product-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cs-order-product-variant {
  font-size: 11px;
  color: var(--cs-muted);
}
.cs-order-product-price {
  font-size: 13px;
  font-weight: 700;
}
.cs-track {
  margin-top: 16px;
  border-top: 1px solid var(--cs-border);
  padding-top: 14px;
}
.cs-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cs-track-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.cs-track-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cs-muted);
  padding: 8px 0;
}
.cs-track-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--cs-primary);
  animation: cs-track-spin 0.7s linear infinite;
}
@keyframes cs-track-spin {
  to { transform: rotate(360deg); }
}
.cs-track-empty {
  font-size: 13px;
  color: var(--cs-muted);
  margin: 6px 0 0;
}
.cs-track-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.07);
  margin-bottom: 14px;
}
.cs-track-current-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-primary);
}
.cs-track-current-value {
  font-size: 16px;
  font-weight: 700;
}
.cs-track-current-meta {
  font-size: 12px;
  color: var(--cs-muted);
}
.cs-track-pod {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-primary);
}
.cs-track-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--cs-border);
}
.cs-track-event {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
}
.cs-track-event:last-child { padding-bottom: 0; }
.cs-track-dot {
  position: absolute;
  left: -23px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cs-primary);
  border: 2px solid var(--cs-card);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.cs-track-event:first-child .cs-track-dot {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}
.cs-track-event-title {
  font-size: 13px;
  font-weight: 600;
}
.cs-track-event-time {
  font-size: 11px;
  color: var(--cs-muted);
}
.cs-track-event-note {
  font-size: 12px;
  color: var(--cs-muted);
}

.cs-account-chat-card .cs-account-card-head {
  flex-wrap: wrap;
}
.cs-account-chat-top {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--cs-border);
  margin-bottom: 4px;
}
.cs-account-chat-top--desktop {
  display: none !important;
}
.cs-account-chat-top--mobile {
  display: none;
}
.cs-account-chat-user {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}
.cs-account-chat-user-name {
  font-weight: 700;
  color: var(--cs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-account-chat-user-sep { color: #94a3b8; flex-shrink: 0; }
.cs-account-chat-user-phone {
  color: var(--cs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-account-chat-hint {
  font-size: 12px;
  width: 100%;
}
.cs-account-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding: 12px 10px 14px;
  margin-bottom: 0;
  border-top: none;
  border-bottom: none;
  background: #fff;
  border-radius: 14px;
  min-height: 180px;
}
.cs-account-chat-card {
  padding: 12px !important;
  overflow: hidden;
}
.cs-account-chat-empty {
  margin: auto;
  text-align: center;
  padding: 28px 16px;
  color: var(--cs-muted);
}
.cs-account-chat-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.cs-account-chat-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--cs-text);
}
.cs-account-chat-empty-text {
  margin: 4px 0 0;
  font-size: 13px;
}
.cs-account-chat-day {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}
.cs-account-chat-day span {
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cs-account-chat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(88%, 34rem);
  width: max-content;
}
.cs-account-chat-row.me {
  align-self: flex-end;
  align-items: flex-end;
}
.cs-account-chat-row.staff {
  align-self: flex-start;
  align-items: flex-start;
}
.cs-account-chat-row .cs-chat-bubble {
  max-width: 100%;
}
.cs-account-chat-time {
  display: none;
}
.cs-account-chat-mobile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cs-account-chat-mobile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.cs-account-chat-mobile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cs-account-chat-mobile-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.2;
}
.cs-account-chat-mobile-copy span {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}
.cs-account-chat-cart {
  align-self: center;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0.95) 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.cs-account-chat-cart-label {
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.cs-account-chat-cart-items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cs-account-chat-cart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 84px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  font-size: 11px;
  text-align: center;
}
.cs-account-chat-cart-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-account-chat-cart-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cs-account-chat-cart-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cs-account-chat-cart-qty {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
}
.cs-account-chat-cart-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  line-height: 1.25;
  font-weight: 600;
  color: var(--cs-text);
  word-break: break-word;
}
.cs-account-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 8px 0 0;
  border-top: none;
  background: transparent;
}
.cs-account-chat-compose.cs-chat-compose {
  margin: 0;
}
.cs-account-chat-compose .cs-chat-compose-bar {
  width: 100%;
}
.cs-account-chat-compose input[type="text"].cs-chat-compose-input,
.cs-account-chat-compose #cs-account-chat-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #e2e8f0 !important;
  background: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  font-size: 14px;
  color: var(--cs-text, #0f172a);
  box-shadow: none !important;
}
.cs-account-chat-compose .cs-chat-compose-pill input[type="text"].cs-chat-compose-input,
.cs-account-chat-compose .cs-chat-compose-pill #cs-account-chat-input {
  height: auto;
  min-height: 40px;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 6px !important;
  font-size: 15px;
}

/* ── Buy Now checkout sheet ── */
.cs-co-overlay { align-items: flex-end; }
@media (min-width: 640px) {
  .cs-co-overlay { align-items: center; }
}
.cs-co-modal {
  max-width: 520px;
  max-height: 92vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
}
@media (min-width: 640px) {
  .cs-co-modal { border-radius: var(--cs-radius); }
}
.cs-co-modal .modal-close { z-index: 2; }
.cs-co-title {
  font-size: 18px;
  font-weight: 700;
  padding: 18px 20px 0;
  margin: 0;
}
.cs-co-subtitle {
  font-size: 13px;
  color: var(--cs-muted);
  padding: 4px 20px 12px;
  margin: 0;
  border-bottom: 1px solid var(--cs-border);
}
.cs-co-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cs-co-section { margin-bottom: 18px; }
.cs-co-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
  margin: 0 0 10px;
}
.cs-co-account-card {
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.cs-co-account-name { font-weight: 700; margin-bottom: 6px; }
.cs-co-account-line { color: var(--cs-muted); margin-top: 4px; font-size: 12px; }
.cs-co-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cs-co-auth-btn { flex: 1 1 auto; min-width: 100px; text-align: center; text-decoration: none; }
.cs-co-auth-hint { font-size: 12px; color: var(--cs-muted); margin: 0; }
.cs-co-guest-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cs-co-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 10px;
}
.cs-co-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}
.cs-co-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cs-co-item-body { flex: 1; min-width: 0; }
.cs-co-item-brand { font-size: 11px; font-weight: 600; color: var(--cs-muted); text-transform: uppercase; }
.cs-co-item-name { font-size: 14px; font-weight: 600; margin: 2px 0; }
.cs-co-item-sku { font-size: 11px; color: var(--cs-muted); }
.cs-co-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-top: 4px;
}
.cs-co-stock-ok { color: #059669; font-weight: 600; }
.cs-co-stock-warn { color: #dc2626; font-weight: 600; }
.cs-co-stock-preorder { color: #6d28d9; font-weight: 600; }
.cs-co-stock-checking { font-size: 11px; color: var(--cs-muted); margin-top: 6px; }
.cs-co-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.cs-co-qty-label { font-size: 12px; font-weight: 600; color: var(--cs-muted); }
.cs-co-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--cs-border);
  border-radius: 8px;
  overflow: hidden;
}
.cs-co-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cs-card);
  font-size: 18px;
  cursor: pointer;
  color: var(--cs-text);
}
.cs-co-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cs-co-qty-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.cs-co-line-total { margin-left: auto; font-size: 14px; }
.cs-co-fulfillment-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.cs-co-fulfillment-btn {
  padding: 10px 12px;
  border: 2px solid var(--cs-border);
  border-radius: 10px;
  background: var(--cs-card);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--cs-text);
}
.cs-co-fulfillment-btn.active {
  border-color: var(--cs-accent);
  background: color-mix(in srgb, var(--cs-accent) 8%, var(--cs-card));
}
.cs-co-address-block,
.cs-co-pickup-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-co-address-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-co-address-form select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--cs-border, #e2e8f0);
  background: #fff;
  padding: 0 12px;
  font: inherit;
}
.cs-co-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .cs-co-address-row {
    grid-template-columns: 1fr;
  }
}
.cs-co-pickup-block { display: flex; flex-direction: column; gap: 10px; }
.cs-co-pickup-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--cs-border);
  background: var(--cs-card);
}
.cs-co-pickup-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-text);
}
.cs-co-pickup-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--cs-muted);
  line-height: 1.4;
}
.cs-co-success-modal { text-align: center; }
.cs-co-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cs-accent) 14%, var(--cs-card));
  color: var(--cs-accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 52px;
}
.cs-co-success-body {
  text-align: left;
  margin: 16px 0 8px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--cs-border);
}
.cs-co-success-ref,
.cs-co-success-order,
.cs-co-success-total,
.cs-co-success-line {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--cs-text);
}
.cs-co-success-total { font-weight: 700; }
.cs-co-success-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--cs-muted);
  line-height: 1.45;
}
.cs-co-address-options { display: flex; flex-direction: column; gap: 8px; }
.cs-co-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.cs-co-radio input { margin-top: 2px; }
.cs-co-address-field.cs-co-hidden { display: none; }
.cs-co-pickup-block select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cs-border);
  border-radius: 8px;
  font: inherit;
  background: var(--cs-card);
}
.cs-co-free-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 999px;
}
.cs-co-fee-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--cs-muted);
}
.cs-co-muted { font-size: 12px; color: var(--cs-muted); margin: 0; }
.cs-co-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cs-co-pay-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 2px solid var(--cs-border);
  border-radius: 10px;
  background: var(--cs-card);
  cursor: pointer;
  text-align: left;
}
.cs-co-pay-btn.active {
  border-color: var(--cs-accent);
  background: color-mix(in srgb, var(--cs-accent) 8%, var(--cs-card));
}
.cs-co-pay-offer .cs-co-pay-label::after { content: ' 🏷️'; }
.cs-co-pay-label { font-size: 12px; font-weight: 700; }
.cs-co-pay-amt { font-size: 13px; font-weight: 600; }
.cs-co-totals {
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.cs-co-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.cs-co-total-grand {
  border-top: 1px solid var(--cs-border);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 15px;
}
.cs-co-free { color: #059669; font-weight: 700; }
.cs-co-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--cs-border);
  background: var(--cs-card);
}
.cs-co-footer .btn { flex: 1; }
.cs-co-place-btn { font-weight: 700; }
.cs-co-items-list { display: flex; flex-direction: column; gap: 10px; }
.cs-co-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.cs-co-line-remove {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.cs-account-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cs-account-checkout-btn { font-weight: 700; }
.cs-co-cart-checkout { font-weight: 700; }

/* Noon-style account dashboard */
.cs-account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 767px) {
  .cs-account-layout { grid-template-columns: 1fr; }
}
.cs-account-sidebar {
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 0;
  position: sticky;
  top: 76px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .cs-account-sidebar { position: static; }
}
.cs-account-side-hero {
  padding: 16px 14px 14px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0.04) 48%, transparent 100%),
    var(--cs-card);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
.cs-account-side-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 12px;
}
.cs-account-side-hero-main:hover .cs-account-side-hello {
  color: var(--cs-primary);
}
.cs-account-side-hero-main:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
.cs-account-side-identity {
  min-width: 0;
  flex: 1;
  pointer-events: none;
}
.cs-account-side-hero-top {
  display: none;
}
.cs-account-side-hero .cs-account-avatar,
.cs-account-side-hero .cs-account-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.cs-account-side-hello {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--cs-text);
}
.cs-account-side-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cs-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-account-side-widgets {
  display: none !important;
}
.cs-account-side-widget {
  display: none;
}
.cs-account-side-user {
  display: none;
}
.cs-account-side-logout {
  display: none;
}
.cs-account-nav-link--logout {
  color: #b91c1c;
}
.cs-account-nav-link--logout .cs-account-nav-icon {
  color: #b91c1c;
}
.cs-account-nav-link--logout:hover {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}
.cs-account-nav-group {
  padding: 8px 10px 10px;
}
.cs-account-nav-group + .cs-account-nav-group {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}
.cs-account-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
  padding: 4px 10px 8px;
}
.cs-account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cs-account-nav-link:hover { background: rgba(37, 99, 235, 0.06); }
.cs-account-nav-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.cs-account-nav-icon { display: inline-flex; color: inherit; }
.cs-account-nav-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Desktop / tablet — classic vertical sidebar (mobile icon row is max-width:767 only) */
@media (min-width: 768px) {
  .cs-account-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .cs-account-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border-radius: 22px;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 18px 40px rgba(15, 23, 42, 0.07);
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, #fff 28%),
      var(--cs-card);
    border: 1px solid rgba(148, 163, 184, 0.28);
    position: sticky;
    top: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cs-account-side-hero {
    flex-shrink: 0;
    padding: 14px 12px 12px;
    background:
      radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.18), transparent 42%),
      linear-gradient(145deg, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }

  .cs-account-side-hero-main {
    width: 100%;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .cs-account-side-hero-main:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  }

  .cs-account-side-hero .cs-account-avatar,
  .cs-account-side-hero .cs-account-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
  }

  .cs-account-side-hello {
    font-size: 1.05rem;
  }

  .cs-account-side-meta {
    font-size: 12.5px;
  }

  /* Always show full account chrome on desktop */
  .cs-account-sidebar--shortcuts .cs-account-side-hero,
  .cs-account-sidebar--shortcuts .cs-account-nav-group--settings {
    display: block !important;
  }

  .cs-profile-overview {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    padding: 18px;
  }

  .cs-profile-overview-block + .cs-profile-overview-block {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
  }

  /* Desktop keeps My account in the sidebar */
  .cs-profile-overview .cs-profile-account-links {
    display: none !important;
  }

  .cs-profile-overview .cs-profile-account-links + .cs-profile-overview-block {
    padding-top: 0;
    border-top: none;
  }

  .cs-profile-link-list {
    display: grid;
    gap: 6px;
  }

  .cs-profile-link-nest {
    display: grid;
    gap: 6px;
  }

  .cs-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.65);
    color: var(--cs-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .cs-profile-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--cs-primary);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
  }

  .cs-profile-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--cs-primary);
    flex-shrink: 0;
  }

  .cs-profile-link.active .cs-profile-link-icon {
    background: rgba(37, 99, 235, 0.16);
  }

  .cs-profile-link--logout {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.55);
  }

  .cs-profile-link--logout .cs-profile-link-icon {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.8);
  }

  .cs-account-side-hero .cs-account-avatar,
  .cs-account-side-hero .cs-account-avatar-lg {
    display: flex !important;
  }

  .cs-account-nav-link--avatar {
    display: none !important;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav,
  .cs-account-nav--icons,
  .cs-account-nav-group--settings .cs-account-nav,
  .cs-account-nav--list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 6px;
    padding: 0;
    width: 100%;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link,
  .cs-account-nav-group--settings .cs-account-nav-link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    white-space: nowrap;
    color: #334155;
    background: rgba(241, 245, 249, 0.72);
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: none;
    transition:
      background 0.16s ease,
      color 0.16s ease,
      border-color 0.16s ease,
      box-shadow 0.16s ease,
      transform 0.16s ease;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link:hover,
  .cs-account-nav-group--settings .cs-account-nav-link:hover {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.35);
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-icon,
  .cs-account-nav-group--settings .cs-account-nav-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 11px !important;
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
    flex-shrink: 0;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link.active,
  .cs-account-nav-group--settings .cs-account-nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.08));
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
    box-shadow:
      inset 0 0 0 1px rgba(37, 99, 235, 0.08),
      0 8px 18px rgba(37, 99, 235, 0.1);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link.active .cs-account-nav-icon,
  .cs-account-nav-group--settings .cs-account-nav-link.active .cs-account-nav-icon {
    background: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-label,
  .cs-account-nav-group--settings .cs-account-nav-label {
    flex: 1;
    min-width: 0;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-badge,
  .cs-account-nav-group--settings .cs-account-nav-badge {
    margin-left: auto;
  }

  .cs-account-nav-group--settings .cs-account-nav-link--logout {
    margin-top: 4px;
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.55);
    border-color: rgba(252, 165, 165, 0.45);
  }

  .cs-account-nav-group--settings .cs-account-nav-link--logout .cs-account-nav-icon {
    background: rgba(254, 202, 202, 0.9) !important;
    color: #b91c1c !important;
  }

  .cs-account-nav-group--settings .cs-account-nav-link--logout:hover {
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(248, 113, 113, 0.55);
    color: #991b1b;
  }

  .cs-account-nav-group--settings .cs-account-nav-title {
    display: block;
    padding: 2px 4px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .cs-account-nav-group--settings {
    margin-top: 0;
    flex: 0 0 auto;
    padding: 12px 12px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.65), transparent);
  }

  .cs-account-nav-group + .cs-account-nav-group {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .cs-account-nav-group--shortcuts {
    flex: 0 0 auto;
    padding: 12px 12px 10px;
  }

  .cs-account-main {
    max-width: none;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 24px;
    box-sizing: border-box;
  }

  .cs-account-page .cs-header {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 10px 24px 8px;
    box-sizing: border-box;
  }

  .cs-account-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  .cs-account-shell.cs-account-layout {
    flex: 1;
    min-height: 0;
    align-items: stretch;
    gap: 18px;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .cs-account-panel {
    min-height: 0;
    height: 100%;
  }

  .cs-account-panel > .cs-account-chat-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .cs-account-panel > .cs-account-chat-card .cs-account-chat-thread {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  /* Desktop chat: fill panel, no name header, modern messenger layout */
  .cs-account-page.cs-account-chat-mode {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-layout--chat {
    flex: 1;
    min-height: 0;
    align-items: stretch;
    height: 100%;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-sidebar {
    min-height: 0;
    height: auto;
    max-height: calc(100dvh - 32px);
  }

  .cs-account-page.cs-account-chat-mode .cs-account-panel {
    min-height: 0;
    height: 100%;
    max-height: calc(100dvh - 96px);
    gap: 0;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-card {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 !important;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 18px 40px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    background: #fff;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-top,
  .cs-account-page.cs-account-chat-mode .cs-account-chat-top--desktop {
    display: none !important;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding: 20px 22px 24px;
    gap: 10px;
    background: #fff;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-row {
    max-width: min(72%, 520px);
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-cart {
    max-width: min(78%, 480px);
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-compose {
    flex-shrink: 0;
    margin: 0;
    padding: 12px 14px 14px;
    border-top: none;
    background: #f0f2f5;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-compose-bar {
    gap: 10px;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill {
    min-height: 48px;
    padding: 4px 10px 4px 4px;
    background: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill .cs-chat-compose-input,
  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill #cs-account-chat-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    height: auto;
    min-height: 40px;
    padding: 10px 8px !important;
    font-size: 15px;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-action-btn {
    width: 48px;
    height: 48px;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-pending,
  .cs-account-page.cs-account-chat-mode .cs-chat-stickers,
  .cs-account-page.cs-account-chat-mode .cs-chat-attach-sheet {
    flex-shrink: 0;
  }

  .cs-noon-panel-head .cs-card-desc {
    display: block;
  }

  .cs-noon-panel-head--desktop {
    display: flex;
  }
}

.cs-account-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-noon-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cs-noon-panel-head--desktop {
  display: none;
}
.cs-noon-panel-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cs-noon-widget {
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  box-shadow: var(--cs-shadow);
  padding: 18px;
}
.cs-noon-widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cs-device-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
.cs-device-summary-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cs-device-summary-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--cs-muted);
  font-weight: 600;
}
.cs-device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.cs-device-row.is-current {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}
.cs-device-row-main { min-width: 0; flex: 1; }
.cs-device-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.cs-device-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
}
.cs-device-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--cs-muted);
}
.cs-device-note { margin-top: 14px; margin-bottom: 0; }
.cs-noon-widget-grid { display: grid; gap: 14px; }
.cs-noon-widget-grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .cs-noon-widget-grid-2 { grid-template-columns: 1fr; }
}
.cs-noon-field-label {
  display: block;
  font-size: 12px;
  color: var(--cs-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.cs-noon-field-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--cs-border);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--cs-text);
}
body.dark-mode .cs-noon-field-control { background: var(--cs-card); }
.cs-noon-field-control:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.cs-noon-field-value { font-size: 14px; font-weight: 600; }
.cs-noon-field-value.is-empty { color: var(--cs-muted); font-weight: 500; }
.cs-noon-field-edit { color: var(--cs-muted); display: inline-flex; }
.cs-noon-field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--cs-accent);
}
.cs-noon-gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-noon-gender-btn {
  border: 1px solid var(--cs-border);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--cs-text);
}
body.dark-mode .cs-noon-gender-btn { background: var(--cs-card); }
.cs-noon-gender-btn.active {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.cs-viewed-grid { margin-top: 4px; }

/* —— Store profile page (UI only) —— */
.cs-store-profile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 48px;
  max-width: 100%;
}
.cs-store-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.cs-store-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 180px;
  max-height: min(42vh, 420px);
  background: #0f172a;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cs-store-cover { min-height: 220px; }
}
.cs-store-cover-empty {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}
.cs-store-cover-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.12);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}
.cs-store-cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cs-store-cover-fade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 72%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.45) 42%,
    transparent 100%
  );
}
.cs-store-identity {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 16px 16px 18px;
  margin: 0;
}
@media (min-width: 768px) {
  .cs-store-identity { padding: 22px 26px 24px; gap: 18px; }
}
.cs-store-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background: #fff;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .cs-store-logo { width: 92px; height: 92px; border-radius: 20px; }
}
.cs-store-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
}
.cs-store-identity-text { flex: 1; min-width: 0; padding-bottom: 2px; }
.cs-store-name {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.cs-store-location {
  margin: 6px 0 0;
  opacity: 0.92;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.cs-store-desc {
  margin: 8px 0 0;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.5;
  max-width: 42rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-store-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cs-store-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.cs-store-social:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.cs-store-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-store-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}
.cs-store-section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cs-text);
}
.cs-store-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-muted);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  padding: 4px 10px;
}
.cs-store-collections { gap: 10px; }
/* One compact row — equal columns by count; media capped so few items never go huge */
.cs-store-subs {
  display: grid;
  grid-template-columns: repeat(var(--cs-store-sub-n, 4), minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0;
  overflow: visible;
  align-items: start;
}
.cs-store-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  color: var(--cs-text);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cs-store-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.2);
}
.cs-store-sub:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
.cs-store-sub.active {
  border-color: transparent;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
}
.cs-store-sub-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 96px);
  aspect-ratio: 1;
  height: auto;
  margin: 8px auto 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}
.cs-store-sub-media-all {
  color: #2563eb;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  padding: 0;
}
.cs-store-sub.active .cs-store-sub-media,
.cs-store-sub.active .cs-store-sub-media-all {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.cs-store-sub-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.cs-store-sub-initial {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #64748b;
  letter-spacing: -0.03em;
}
.cs-store-sub.active .cs-store-sub-initial { color: #fff; }
.cs-store-sub-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px 0;
  min-width: 0;
  text-align: center;
  background: transparent;
}
.cs-store-sub.active .cs-store-sub-meta {
  background: transparent;
}
.cs-store-sub-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .cs-store-subs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }
  .cs-store-sub {
    flex: 0 0 88px;
    width: 88px;
    max-width: 88px;
  }
  .cs-store-sub-media {
    width: 64px;
    margin-top: 8px;
    padding: 8px;
  }
  .cs-store-profile { gap: 16px; }
  .cs-store-hero { border-radius: 16px; }
}
@media (min-width: 768px) {
  .cs-store-sub-name { font-size: 13px; }
}
body.dark-mode .cs-store-sub {
  background: var(--cs-card);
  border-color: var(--cs-border);
  box-shadow: none;
}
body.dark-mode .cs-store-sub-media {
  background: rgba(248, 250, 252, 0.06);
}
body.dark-mode .cs-store-sub-meta {
  background: transparent;
}
body.dark-mode .cs-store-count {
  background: rgba(248, 250, 252, 0.06);
}

/* Store product grid polish (scoped — does not alter global catalog cards elsewhere) */
.cs-store-profile .cs-product-grid {
  gap: 14px;
}
.cs-store-profile .cs-store-product-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.cs-store-profile .cs-store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.16);
}
.cs-store-profile .cs-store-product-card .cs-product-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
}
.cs-store-profile .cs-store-product-card .cs-product-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.cs-store-profile .cs-store-product-card .cs-product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}
.cs-store-profile .cs-store-product-card .cs-product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}
.cs-store-profile .cs-store-product-card .cs-product-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 4px 0 0;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.cs-store-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.28);
}
.cs-store-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0 0;
}
.cs-store-price {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.cs-store-compare {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.cs-store-stock {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  margin: 8px 0 0;
  padding: 4px 9px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.02em;
}
.cs-store-stock-in {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}
.cs-store-stock-out {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}
.cs-store-stock-pre {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.cs-store-rating {
  font-size: 12px;
  color: #d97706;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}
.cs-store-rating span {
  color: var(--cs-muted);
  margin-left: 4px;
  font-weight: 600;
}
.cs-store-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.cs-store-profile .cs-store-product-actions .cs-btn {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-store-profile .cs-btn-quickview {
  order: 2;
  background: #fff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}
.cs-store-profile .cs-btn-quickview:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}
.cs-store-profile .cs-store-product-actions .cs-btn-cart {
  order: 1;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.cs-store-profile .cs-store-product-actions .cs-btn-cart:hover {
  filter: brightness(1.04);
}
.cs-store-profile .cs-store-product-actions .cs-btn-cart.in-cart {
  background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.3);
}
.cs-store-profile .cs-empty {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.02);
  padding: 36px 20px;
}
.cs-store-profile .cs-pagination {
  margin-top: 8px;
  padding-top: 4px;
}
@media (min-width: 900px) {
  .cs-store-product-actions {
    grid-template-columns: 1fr 1.15fr;
  }
  .cs-store-profile .cs-btn-quickview { order: 0; }
  .cs-store-profile .cs-store-product-actions .cs-btn-cart { order: 0; }
}
@media (max-width: 767px) {
  .cs-store-profile .cs-product-grid { gap: 10px; }
  .cs-store-profile .cs-store-product-card .cs-product-media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
  }
  .cs-store-profile .cs-store-product-card .cs-product-title {
    font-size: 13px;
    min-height: 2.5em;
  }
  .cs-store-price { font-size: 1.02rem; }
  .cs-store-profile .cs-store-product-actions .cs-btn {
    min-height: 36px;
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* ── Mobile app shell (shop + account) ── */
.cs-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --cs-bottom-nav-height: 60px;
    --cs-bottom-nav-reserve: 86px;
  }

  /* Floating frosted bar detached from the screen edges. */
  .cs-bottom-nav {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--cs-safe-bottom));
    z-index: 70;
    align-items: stretch;
    justify-content: space-between;
    gap: 2px;
    min-height: 60px;
    padding: 7px 6px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.18),
      0 2px 10px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
  }

  .cs-bottom-nav-shape {
    display: none;
  }

  /* Liquid-glass capsule that slides behind the selected tab. */
  .cs-bottom-nav::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: var(--cs-nav-pill-w, 64px);
    transform: translate3d(calc(var(--cs-nav-pill-x, 50%) - 50%), 0, 0);
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.42) 48%,
        rgba(255, 255, 255, 0.18) 100%
      ),
      linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.42) 0%,
        rgba(129, 140, 248, 0.34) 48%,
        rgba(244, 114, 182, 0.28) 100%
      );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 1),
      inset 0 -8px 16px rgba(255, 255, 255, 0.55),
      0 8px 18px rgba(99, 102, 241, 0.22);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
      transform 0.42s cubic-bezier(0.34, 1.36, 0.44, 1),
      width 0.32s ease,
      opacity 0.25s ease;
  }

  .cs-bottom-nav.cs-nav-pill-ready::before {
    opacity: 1;
  }

  .cs-bottom-nav-item {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    padding: 6px 2px;
    border-radius: 21px;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    touch-action: manipulation;
    transition: color 0.28s ease, transform 0.28s ease;
    background: transparent;
  }

  .cs-bottom-nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    transition: color 0.28s ease, transform 0.28s ease;
  }

  .cs-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
  }

  .cs-bottom-nav-icon svg {
    width: 22px;
    height: 22px;
  }

  .cs-bottom-nav-item.active {
    color: #0f172a;
    background: transparent;
  }

  .cs-bottom-nav-item.active .cs-bottom-nav-icon-wrap {
    transform: translateY(-1px);
  }

  .cs-bottom-nav-item.active .cs-bottom-nav-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
  }

  .cs-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    transition: color 0.28s ease, font-weight 0.28s ease;
  }

  .cs-bottom-nav-item.active .cs-bottom-nav-label {
    color: #0f172a;
    font-weight: 700;
  }

  body.dark-mode .cs-bottom-nav {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.68));
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.dark-mode .cs-bottom-nav::before {
    border-color: rgba(255, 255, 255, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 100%),
      linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.3) 0%,
        rgba(129, 140, 248, 0.26) 52%,
        rgba(236, 72, 153, 0.18) 100%
      );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 6px 16px rgba(0, 0, 0, 0.35);
  }

  body.dark-mode .cs-bottom-nav-item {
    color: #94a3b8;
  }

  body.dark-mode .cs-bottom-nav-item.active,
  body.dark-mode .cs-bottom-nav-item.active .cs-bottom-nav-label {
    color: #f8fafc;
  }

  @media (prefers-reduced-motion: reduce) {
    .cs-bottom-nav::before {
      transition: opacity 0.2s ease;
    }
  }

  .cs-page,
  .cs-account-page {
    padding-bottom: calc(var(--cs-bottom-nav-reserve) + var(--cs-safe-bottom) + 8px);
  }

  .cs-main {
    padding: 8px 12px 16px;
    min-width: 0;
    background: transparent;
  }

  .cs-account-main {
    padding: 12px 14px calc(var(--cs-safe-bottom, 0px) + 8px);
  }

  .cs-header-actions .cs-hide-on-mobile-tabbar {
    display: none;
  }

  /* Mobile: logo + search row; bottom nav replaces status and category strip */
  .cs-status,
  #cs-status,
  .cs-header-actions,
  .cs-category-bar,
  .cs-mobile-chrome-hidden {
    display: none !important;
  }

  .cs-bottom-nav {
    display: flex !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + var(--cs-safe-bottom)) !important;
    min-height: 60px;
    max-height: none !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  .cs-bottom-nav-shape {
    display: none !important;
  }

  .cs-header-main {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo search";
    gap: 10px;
    align-items: center;
  }

  .cs-logo {
    display: inline-flex !important;
    grid-area: logo;
    flex-shrink: 0;
    padding: 0;
    max-width: none;
    overflow: visible;
  }

  .cs-logo-img {
    width: 38px;
    height: 38px;
  }

  .cs-search-row {
    grid-area: search;
    min-width: 0;
  }

  /* One continuous page: search sits above content with no header chrome */
  .cs-page {
    background: var(--cs-bg);
  }

  .cs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px;
    background: var(--cs-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
  }

  .cs-header.scrolled {
    background: var(--cs-bg);
    box-shadow: none;
  }

  .cs-layout {
    margin: 0;
    padding: 0;
    border: none;
    gap: 0;
    background: transparent;
  }

  .cs-layout-no-filters .cs-main {
    padding-top: 8px;
  }

  .cs-browse-hub-hero {
    display: none !important;
  }

  .cs-browse-hub-page,
  .cs-browse-hub,
  .cs-browse-hub--shop,
  .cs-browse-hub--categories,
  .cs-browse-hub--brands {
    padding-top: 0;
    margin-top: 0;
  }

  .cs-hub-collection,
  .cs-browse-hub .cs-hub-collection {
    padding-top: 4px !important;
  }

  .cs-main:has(.cs-browse-hub--categories) {
    display: block;
    min-height: 0;
  }

  .cs-main:has(.cs-browse-hub--categories) #search-results {
    min-height: 0;
  }

  .cs-homepage {
    padding-top: 4px;
  }

  .cs-main:has(.cs-homepage) {
    padding-top: 6px;
  }

  .cs-account-page .cs-header {
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px;
    background: var(--cs-bg);
    border-bottom: none;
    box-shadow: none;
    display: none;
  }

  .cs-account-page .cs-logo {
    display: block !important;
  }

  .cs-account-page .cs-header-actions {
    display: flex !important;
  }

  /* Modern mobile account dashboard */
  .cs-account-main {
    padding: 12px 14px calc(var(--cs-bottom-nav-height) + var(--cs-safe-bottom) + 20px);
    max-width: none;
  }

  .cs-account-shell,
  .cs-account-layout {
    gap: 12px;
  }

  .cs-account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 0;
    position: static;
    overflow: hidden;
  }

  .cs-account-sidebar .cs-account-nav-group + .cs-account-nav-group {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .cs-account-side-hero {
    padding: 12px 12px 10px;
  }

  .cs-account-side-hero-main {
    gap: 10px;
  }

  .cs-account-side-hero .cs-account-avatar,
  .cs-account-side-hero .cs-account-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .cs-account-side-hello {
    font-size: 15px;
  }

  /* On Orders / Viewed / Wishlist / Cart / Chat / Profile — icon row only */
  .cs-account-sidebar--shortcuts .cs-account-side-hero,
  .cs-account-sidebar--shortcuts .cs-account-nav-group--settings {
    display: none !important;
  }

  .cs-account-sidebar--shortcuts .cs-account-nav-group--shortcuts {
    padding-top: 8px;
  }

  /* Avatar sits in the shortcuts row on mobile */
  .cs-account-nav-link--avatar {
    display: flex !important;
  }

  .cs-account-side-hero .cs-account-avatar,
  .cs-account-side-hero .cs-account-avatar-lg {
    display: none !important;
  }

  .cs-account-side-hero-main {
    padding-left: 2px;
  }

  /* Avatar + shortcuts icon row — phones only */
  .cs-account-nav-group--shortcuts .cs-account-nav,
  .cs-account-nav--icons {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    overflow: visible !important;
    flex-direction: unset !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    padding: 8px 1px 6px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    color: var(--cs-muted);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(37, 99, 235, 0.07);
    color: var(--cs-primary);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--cs-primary);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link.active .cs-account-nav-icon {
    background: var(--cs-primary);
    color: #fff;
  }

  /* Profile avatar: same active chrome as Orders / Chat */
  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar .cs-account-nav-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    padding: 0 !important;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.07) !important;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar .cs-account-nav-avatar-wrap .cs-account-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
    border-radius: 11px;
    box-shadow: none;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--cs-primary);
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar.active .cs-account-nav-avatar-wrap {
    background: var(--cs-primary) !important;
    box-shadow: none;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar.active .cs-account-nav-avatar-wrap .cs-account-avatar {
    background: var(--cs-primary);
    color: #fff;
  }

  .cs-account-nav-group--shortcuts .cs-account-nav-link--avatar.active .cs-account-nav-icon {
    background: var(--cs-primary) !important;
    color: #fff;
  }

  .cs-account-nav-group--shortcuts {
    margin: 0;
    padding: 6px 4px 8px;
    border: none;
  }

  .cs-account-side-logout,
  .cs-account-side-widgets {
    display: none !important;
  }

  .cs-account-nav-badge {
    display: none;
  }

  .cs-account-nav-group--settings {
    margin-top: 0;
    padding: 8px 6px 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
  }

  .cs-account-nav-group--settings .cs-account-nav-title {
    display: block;
    padding: 4px 8px 8px;
  }

  .cs-account-nav-group--settings .cs-account-nav,
  .cs-account-nav--list {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible !important;
    flex-direction: unset !important;
    padding: 0;
  }

  .cs-account-nav-group--settings .cs-account-nav-link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    background: rgba(241, 245, 249, 0.65);
  }

  .cs-account-nav-group--settings .cs-account-nav-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--cs-primary);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
  }

  .cs-account-nav-group--settings .cs-account-nav-link--logout {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.55);
  }

  .cs-account-nav-group--settings .cs-account-nav-link--logout .cs-account-nav-icon {
    color: #b91c1c;
  }

  .cs-account-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Full-screen chat when Chat tab is active */
  html.cs-mobile .cs-account-page.cs-account-chat-mode,
  .cs-account-page.cs-account-chat-mode {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding-bottom: 0 !important;
    background: #e8eef6;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-main {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px 0 0;
    padding-bottom: 0;
  }

  /* Hide shop bottom nav while account chat is open */
  body.cs-account-chat-open .cs-bottom-nav,
  html.cs-mobile body.cs-account-chat-open .cs-bottom-nav {
    display: none !important;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-layout--chat {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    grid-template-columns: none !important;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-sidebar {
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    margin: 0 10px 6px;
    border-radius: 16px;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-panel {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-card {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    background: #fff;
    overflow: hidden;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-top--mobile {
    display: none !important;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 12px 12px 16px;
    gap: 10px;
    background: #fff;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-compose {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 8px 8px calc(10px + var(--cs-safe-bottom, 0px));
    border-top: none;
    background: #f0f2f5;
  }

  .cs-account-page.cs-account-chat-mode .cs-account-chat-compose .cs-chat-compose-bar {
    gap: 8px;
    align-items: center;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill {
    min-height: 48px;
    padding: 4px 8px 4px 4px;
    background: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill .cs-chat-compose-input,
  .cs-account-page.cs-account-chat-mode .cs-chat-compose-pill #cs-account-chat-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto;
    min-height: 40px;
    padding: 10px 6px !important;
    font-size: 16px;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-tool-btn--pill {
    width: 40px;
    height: 40px;
    color: #54656f;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-action-btn {
    width: 48px;
    height: 48px;
  }

  .cs-account-page.cs-account-chat-mode .cs-empty-inline {
    padding: 24px 16px;
  }

  .cs-account-page.cs-account-chat-mode .cs-chat-pending,
  .cs-account-page.cs-account-chat-mode .cs-chat-stickers,
  .cs-account-page.cs-account-chat-mode .cs-chat-attach-sheet {
    flex-shrink: 0;
    width: 100%;
  }

  .cs-noon-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 2px 0;
    padding: 0;
  }

  .cs-noon-panel-head--desktop {
    display: none !important;
  }

  .cs-noon-panel-head h2 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
  }

  .cs-noon-panel-head .cs-card-desc {
    display: none;
  }

  .cs-noon-widget {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--cs-border);
    background: var(--cs-card);
    box-shadow: none;
  }

  .cs-profile-overview {
    margin: 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    gap: 18px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .cs-profile-overview-block {
    width: 100%;
    min-width: 0;
  }

  .cs-profile-overview-block + .cs-profile-overview-block {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .cs-profile-account-links {
    display: block !important;
  }

  .cs-profile-overview .cs-profile-account-links + .cs-profile-overview-block {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .cs-profile-overview .cs-noon-widget-title {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .cs-profile-link-list {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .cs-profile-link-nest {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
  }

  .cs-profile-link-nest .cs-profile-link {
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 52px;
  }

  .cs-profile-link-nest .cs-profile-link--parent {
    background: #f8fafc;
  }

  .cs-profile-link-nest .cs-profile-link--nested {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    border-radius: 12px;
    min-height: 48px;
    padding: 11px 12px;
    box-sizing: border-box;
  }

  .cs-profile-link-nest .cs-profile-link--logout {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.7);
    border: 1px solid rgba(252, 165, 165, 0.45);
  }

  .cs-profile-link-nest .cs-profile-link--parent:hover {
    background: #fff;
  }

  .cs-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .cs-profile-link > span:last-child {
    flex: 1;
    min-width: 0;
  }

  .cs-profile-link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(-45deg);
    flex-shrink: 0;
    opacity: 0.85;
  }

  .cs-profile-link:hover {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .cs-profile-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.07));
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  }

  .cs-profile-link.active::after {
    border-color: #2563eb;
  }

  .cs-profile-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    flex-shrink: 0;
  }

  .cs-profile-link.active .cs-profile-link-icon {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  }

  .cs-profile-link--logout {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.55);
    border-color: rgba(252, 165, 165, 0.4);
  }

  .cs-profile-link--logout::after {
    border-color: #f87171;
  }

  .cs-profile-link--logout .cs-profile-link-icon {
    color: #b91c1c;
    background: rgba(254, 202, 202, 0.85);
  }

  .cs-profile-overview .cs-profile-photo-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
  }

  .cs-profile-overview .cs-account-avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .cs-profile-overview .cs-profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .cs-profile-overview .cs-profile-photo-name {
    font-size: 1.05rem;
  }

  .cs-profile-overview .cs-profile-photo-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }

  .cs-profile-overview .cs-profile-photo-btns .cs-btn,
  .cs-profile-overview .cs-profile-photo-btns label.cs-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .cs-profile-overview .cs-noon-widget-grid {
    gap: 10px;
  }

  .cs-profile-overview .cs-noon-field-control {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .cs-noon-widget-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cs-muted);
    margin-bottom: 10px;
  }

  .cs-noon-field-control {
    min-height: 48px;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .cs-noon-gender {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cs-noon-gender-btn {
    min-height: 44px;
    border-radius: 12px;
    justify-content: center;
  }

  .cs-account-cart-item,
  .cs-account-wish-item {
    border-radius: 14px;
  }

  .toast {
    bottom: calc(var(--cs-bottom-nav-height) + var(--cs-safe-bottom) + 12px);
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  .cs-chat-fab {
    display: none !important;
  }

  .cs-chat-panel {
    display: none !important;
  }

  .cs-pd-buybar {
    bottom: calc(var(--cs-bottom-nav-height) + var(--cs-safe-bottom));
    padding-bottom: 10px;
    z-index: 5;
  }

  .cs-pd-thumbs-col {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cs-pd-thumb {
    scroll-snap-align: start;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(16px + var(--cs-safe-bottom));
  }

  .cs-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .cs-account-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
  }

  .cs-co-modal {
    max-height: min(94vh, 900px);
  }

  .cs-co-footer {
    padding-bottom: calc(14px + var(--cs-safe-bottom));
  }

  .cs-co-footer .btn,
  .cs-co-qty-btn,
  .cs-co-line-remove {
    min-height: 44px;
    min-width: 44px;
  }

  .cs-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .cs-noon-panel-head h2 {
    font-size: 18px;
  }

  .cs-account-nav-link {
    min-height: 44px;
    flex-shrink: 0;
  }

  .cs-pagination-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .cs-product-grid {
    gap: 12px;
  }

  .cs-product-title {
    font-size: 13px;
    line-height: 1.35;
  }

  .cs-chip {
    font-size: 9px;
    padding: 3px 6px;
  }

  .cs-pay-btn {
    min-height: 44px;
    padding: 6px 4px;
  }

  .cs-pay-lbl {
    font-size: 9px;
  }

  .cs-pay-amt {
    font-size: 10px;
  }

  .cs-btn {
    min-height: 40px;
    padding: 10px 8px;
    font-size: 11px;
  }

  .cs-product-actions .cs-btn-share {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .cs-wishlist-btn {
    width: 40px;
    height: 40px;
  }

  .cs-product-card .cs-wishlist-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .cs-filters-fields select,
  .cs-filters-fields input[type="number"] {
    min-height: 44px;
    font-size: 16px;
  }

  .cs-filters-close {
    width: 44px;
    height: 44px;
  }

  .cs-home-hero,
  .cs-home-section {
    margin-left: 0;
    margin-right: 0;
  }

  .cs-account-cart-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .cs-account-cart-item .cs-account-cart-price {
    grid-column: 2;
  }

  .cs-account-chat-compose .btn {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .cs-chat-compose-input,
  .cs-chat-compose #cs-chat-input,
  .cs-account-chat-compose #cs-account-chat-input,
  .cs-chat-identity input {
    min-height: 40px;
    height: 40px;
    font-size: 16px;
  }

  .cs-chat-tool-btn,
  .cs-chat-send-btn {
    width: 40px;
    height: 40px;
  }

  .cs-chat-icon-btn {
    width: 44px;
    height: 44px;
  }

  .cs-bottom-nav-item {
    font-size: 10px;
  }

  .cs-bottom-nav-icon-wrap {
    position: relative;
  }

  .cs-bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--cs-sale);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .cs-bottom-nav-badge[hidden] {
    display: none !important;
  }

  /* Category bar hidden on mobile (bottom nav Category tab) */

  /* Subcategory strip (catalog) — horizontal scroll on mobile */
  .cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid,
  .cs-pd-subcats .cs-subcat-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-grid::-webkit-scrollbar,
  .cs-pd-subcats .cs-subcat-grid::-webkit-scrollbar {
    display: none;
  }

  .cs-catalog-with-subs > .cs-subcat-bar .cs-subcat-widget,
  .cs-pd-subcats .cs-subcat-widget {
    flex: 0 0 auto;
    width: 88px;
    max-width: 88px;
    scroll-snap-align: start;
  }

  .cs-home-section .cs-subcat-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-template-columns: none;
    grid-auto-columns: 96px;
    gap: 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cs-home-section .cs-subcat-widget {
    width: 96px;
    max-width: 96px;
    scroll-snap-align: start;
  }

  /* Shop / brand / category hubs — full wrapping grid, no scroll */
  .cs-browse-hub .cs-subcat-grid,
  .cs-browse-hub-section .cs-subcat-grid,
  .cs-browse-hub .cs-hub-collection,
  .cs-hub-collection {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 10px 8px;
    overflow: visible !important;
    flex-wrap: unset !important;
    scroll-snap-type: none !important;
    padding: 4px 2px 20px;
  }

  .cs-browse-hub--categories .cs-hub-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    grid-template-rows: none !important;
    gap: 10px !important;
    padding: 8px 12px 24px !important;
    flex: unset !important;
    min-height: 0 !important;
    align-content: start !important;
  }

  .cs-browse-hub-page:has(.cs-browse-hub--categories),
  .cs-browse-hub--categories {
    display: block;
    min-height: 0;
  }

  .cs-browse-hub--categories .cs-hub-tile {
    min-height: 0;
    height: auto;
    padding: 0;
    justify-content: flex-start;
    gap: 0;
    border-radius: 16px;
  }

  .cs-browse-hub--categories .cs-hub-tile-media {
    width: 100%;
    height: 96px;
    max-width: none;
    border-radius: 0;
  }

  .cs-browse-hub--categories .cs-hub-tile-media svg {
    width: 34px;
    height: 34px;
  }

  .cs-browse-hub--categories .cs-hub-tile-label {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 8px 12px;
    width: 100%;
    text-align: center;
  }

  /* Mobile categories hub — accordion line widgets + 4-across sub row */
  .cs-browse-hub--categories.cs-cat-hub-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 16px;
  }

  .cs-cat-line-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 12px 8px;
  }

  .cs-cat-line-group {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cs-cat-line-widget {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: var(--cs-text, #0f172a);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .cs-cat-line-widget:active {
    background: #f8fafc;
  }

  .cs-cat-line-widget.active {
    border-color: color-mix(in srgb, var(--cat-tint, #2563eb) 35%, #93c5fd);
    background: color-mix(in srgb, var(--cat-tint, #2563eb) 6%, #fff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .cs-cat-line-group.is-open .cs-cat-line-widget {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #e2e8f0;
  }

  .cs-cat-line-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    color: var(--cat-tint, var(--cs-primary));
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 4px;
  }

  .cs-cat-line-media svg {
    width: 26px;
    height: 26px;
  }

  .cs-cat-line-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }

  .cs-cat-line-letter {
    font-size: 20px;
    font-weight: 800;
    color: var(--cat-tint, var(--cs-primary));
  }

  .cs-cat-line-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .cs-cat-line-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--cat-tint, var(--cs-primary));
    background: color-mix(in srgb, var(--cat-tint, #2563eb) 10%, #f1f5f9);
  }

  .cs-cat-line-chevron .cs-cat-line-arrow {
    display: block;
    transition: transform 0.2s ease;
  }

  .cs-cat-line-widget.active .cs-cat-line-chevron .cs-cat-line-arrow {
    transform: rotate(90deg);
  }

  .cs-cat-line-group .cs-cat-hub-subs {
    margin: 0 0 2px;
    padding: 8px 8px 10px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: #fafbfc;
  }

  .cs-cat-sub-line-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cs-cat-sub-line-widget {
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
  }

  .cs-cat-sub-line-widget .cs-cat-line-media {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    padding: 3px;
  }

  .cs-cat-sub-line-widget .cs-cat-line-media .cs-subcat-letter {
    font-size: 18px;
    font-weight: 800;
    color: var(--cs-primary);
  }

  .cs-cat-sub-line-widget .cs-cat-line-media .cs-subcat-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }

  .cs-cat-sub-line-widget .cs-cat-line-label {
    font-size: 14px;
    font-weight: 600;
  }

  .cs-cat-sub-line-widget .cs-cat-line-chevron {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
  }

  .cs-cat-line-chevron--link .cs-cat-line-arrow {
    transform: none;
    opacity: 0.75;
  }

  .cs-cat-hub-subs--empty {
    padding: 8px 12px 16px;
  }

  .cs-cat-hub-view-all {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    background: var(--cs-card);
    color: var(--cs-primary);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
  }

  .cs-browse-hub .cs-subcat-widget,
  .cs-browse-hub-section .cs-subcat-widget,
  .cs-hub-collection .cs-subcat-widget {
    width: 100% !important;
    max-width: none !important;
    flex: unset !important;
    scroll-snap-align: unset !important;
  }

  .cs-browse-hub--brands .cs-hub-collection,
  .cs-hub-collection-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
  }

  .cs-hub-collection .cs-subcat-media {
    width: 100%;
    max-width: 72px;
    margin: 0 auto;
  }

  .cs-hub-collection .cs-subcat-media svg {
    width: 28px;
    height: 28px;
  }

  .cs-hub-collection .cs-subcat-label {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .cs-subcat-media {
    aspect-ratio: 1;
    border-radius: 16px;
  }

  /* Homepage — modern mobile storefront */
  .cs-main:has(.cs-homepage) {
    padding: 6px 14px 20px;
  }

  .cs-homepage {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 4px 0 12px;
  }

  .cs-home-hero {
    border-radius: 20px;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .cs-home-hero::before,
  .cs-home-hero::after {
    display: none;
  }

  .cs-home-hero-viewport {
    min-height: clamp(152px, 44vw, 176px);
    height: auto;
  }

  .cs-home-hero-slide {
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--cs-hero-tint, #f97316) 82%, #0f172a) 0%,
      var(--cs-hero-tint, #f97316) 100%
    );
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cs-home-hero-slide.is-active {
    border-radius: 20px;
  }

  .cs-home-store-rail {
    --cs-store-rail-radius: 26px;
    width: 100%;
  }

  .cs-home-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    min-height: clamp(152px, 44vw, 176px);
    height: auto;
    padding-bottom: 26px;
  }

  .cs-home-hero-media {
    order: 0;
    padding: 0 8px 0 0;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
  }

  .cs-home-hero-media-plate {
    position: static;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .cs-home-hero-img {
    position: static;
    inset: auto;
    max-height: clamp(108px, 34vw, 136px);
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.22));
    transform: translateY(6px) scale(1.06);
  }

  .cs-home-hero-content {
    padding: 14px 8px 12px 16px;
    gap: 5px;
    justify-content: center;
  }

  .cs-home-hero-badge {
    display: none;
  }

  .cs-home-hero-title {
    font-size: clamp(1.02rem, 4.4vw, 1.2rem);
    line-height: 1.12;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cs-home-hero-text {
    font-size: 11px;
    line-height: 1.35;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
  }

  .cs-home-hero-cta {
    width: fit-content;
    min-height: 34px;
    margin-top: 4px;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: var(--cs-hero-cta, #5b21b6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  }

  .cs-home-hero-dots {
    bottom: 8px;
    gap: 6px;
  }

  .cs-home-hero-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.45);
  }

  .cs-home-hero-dot.is-active {
    width: 18px;
    background: #fff;
  }

  .cs-home-sub-banners {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 2px 6px;
    margin: 0 -2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cs-home-sub-banners::-webkit-scrollbar {
    display: none;
  }

  .cs-home-sub-banner {
    flex: 0 0 min(42%, 168px);
    scroll-snap-align: start;
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  }

  .cs-home-sub-banner-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .cs-home-sub-banner-sub {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    opacity: 0.92;
  }

  .cs-home-section {
    gap: 12px;
  }

  .cs-home-section-head {
    align-items: center;
    padding: 0 2px;
  }

  .cs-home-section-title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .cs-home-section-sub {
    display: none;
  }

  .cs-home-view-all {
    flex-shrink: 0;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    font-size: 12px;
    font-weight: 700;
  }

  .cs-home-section .cs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cs-home-section .cs-product-card {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  }

  .cs-home-section .cs-product-media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
  }

  .cs-home-section .cs-product-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .cs-home-section .cs-product-card--market .cs-product-media {
    padding: 10px;
  }

  .cs-home-section .cs-product-card--market .cs-product-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cs-home-section .cs-product-body {
    padding: 8px 8px 10px;
  }

  .cs-home-section .cs-product-title {
    font-size: 12px;
    font-weight: 700;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .cs-home-section .cs-product-brand {
    font-size: 9px;
  }

  .cs-home-section .cs-chip {
    font-size: 8px;
  }

  .cs-home-section .cs-pay-lbl {
    font-size: 7px;
  }

  .cs-home-section .cs-pay-amt {
    font-size: 9px;
    font-weight: 700;
  }

  .cs-home-section .cs-btn {
    font-size: 10px;
    min-height: 34px;
    border-radius: 10px;
  }

  .cs-home-section .cs-subcat-grid {
    gap: 10px;
  }

  /* Catalog listing */
  .cs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cs-product-media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
  }

  .cs-product-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .cs-product-card--market .cs-product-media {
    padding: 10px;
  }

  .cs-product-card--market .cs-product-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cs-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
  }

  .cs-product-actions .cs-btn-cart,
  .cs-product-actions .cs-btn-buy {
    min-height: 40px;
    font-size: 11px;
  }

  /* Product detail */
  .cs-product-detail,
  .cs-product-detail-page {
    gap: 16px;
  }

  .cs-pd-back {
    min-height: 44px;
    padding: 10px 16px;
  }

  .cs-pd-title {
    font-size: 1.35rem;
  }

  .cs-pd-buybar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 12px 0 10px;
    margin: 0 -2px;
  }

  .cs-pd-buybar-wish {
    grid-row: span 2;
  }

  .cs-pd-buybar-cart,
  .cs-pd-buybar-buy {
    min-height: 48px;
    font-size: 14px;
  }

  .cs-pd-payment-wrap .cs-pay-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-pd-payment-wrap .cs-pay-btn {
    min-height: 56px;
  }

  /* Account auth & forms */
  .cs-account-auth-wrap {
    padding: 0 4px;
  }

  .cs-account-auth {
    padding: 20px 16px;
  }

  .cs-auth-tab {
    min-height: 44px;
    flex: 1;
  }

  .cs-field input,
  .cs-field select,
  .cs-noon-field-control {
    min-height: 48px;
    font-size: 16px;
  }

  .cs-btn-block,
  .cs-account-checkout-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .cs-account-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-co-pay-row,
  .cs-co-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cs-co-item {
    padding: 10px 0;
  }

  .cs-co-item-img {
    width: 56px;
    height: 56px;
  }

  .cs-store-profile .cs-store-hero {
    border-radius: 16px;
    overflow: hidden;
  }

  .cs-store-profile .cs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-empty {
    padding: 28px 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .cs-page {
    max-width: 100vw;
  }

  .cs-pd-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }

  img.cs-product-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .cs-product-card--market img.cs-product-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cs-homepage,
  .cs-catalog-with-subs,
  .cs-product-detail {
    animation: cs-mobile-fade-in 0.28s ease-out;
  }

  @keyframes cs-mobile-fade-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .cs-chat-panel {
    max-height: min(85vh, 400px);
  }
}

@media (min-width: 768px) {
  .cs-bottom-nav {
    display: none !important;
  }
}

/* Shop contact footer — home + category pages */
.cs-shop-footer {
  width: 100%;
  margin-top: 28px;
  background: #fff;
  border-top: 1px solid #e8edf3;
}

.cs-shop-footer[hidden],
body.cs-shop-footer-hidden .cs-shop-footer {
  display: none !important;
}

.cs-shop-footer-brand-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 18px 16px 16px;
  box-sizing: border-box;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.cs-shop-footer-brand {
  display: none;
}

.cs-shop-footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
}

.cs-shop-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #1e3a8a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  line-height: 0;
  box-sizing: border-box;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cs-shop-footer-social:hover {
  color: #fff;
  background: #1e3a8a;
  border-color: #1e3a8a;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.22);
  transform: translateY(-1px);
}

.cs-shop-footer-social:active {
  transform: scale(0.96);
  box-shadow: none;
}

.cs-shop-footer-social svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cs-shop-footer-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 20px;
  box-sizing: border-box;
}

.cs-shop-footer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 4px 18px;
  text-decoration: none;
  color: inherit;
  border-left: 1px solid #e8edf3;
}

.cs-shop-footer-item:first-child {
  border-left: none;
  padding-left: 4px;
}

.cs-shop-footer-item:last-child {
  padding-right: 4px;
}

.cs-shop-footer-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-shop-footer-icon svg {
  width: 24px;
  height: 24px;
}

.cs-shop-footer-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-shop-footer-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cs-shop-footer-text {
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .cs-shop-footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 16px 14px 20px;
  }

  .cs-shop-footer-item {
    padding: 14px 12px;
    border-left: none;
    border-top: 1px solid #eef2f7;
  }

  .cs-shop-footer-item:nth-child(-n + 3) {
    border-top: none;
  }
}

@media (max-width: 900px) {
  .cs-shop-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 16px 14px 20px;
  }

  .cs-shop-footer-item {
    padding: 14px 12px;
    border-left: none;
    border-top: 1px solid #eef2f7;
  }

  .cs-shop-footer-item:nth-child(1),
  .cs-shop-footer-item:nth-child(2) {
    border-top: none;
  }

  .cs-shop-footer-item:nth-child(odd) {
    border-right: 1px solid #eef2f7;
  }
}

.cs-profile-social-widget {
  display: none;
}

@media (max-width: 767px) {
  .cs-shop-footer {
    margin-top: 18px;
    margin-bottom: 0;
    border-bottom: none;
  }

  #cs-shop-footer .cs-shop-footer-brand-widget {
    display: none !important;
  }

  .cs-profile-social-widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 12px 4px;
    border-top: none;
    background: transparent;
  }

  .cs-profile-social-widget .cs-shop-footer-brand--static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
  }

  .cs-shop-footer-brand-widget {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-top: 1px solid #eef2f7;
  }

  .cs-shop-footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .cs-shop-footer-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .cs-shop-footer-brand:active {
    transform: scale(0.96);
  }

  .cs-shop-footer-socials {
    width: auto;
    flex: 0 0 auto;
    gap: 10px;
    padding: 0;
    border-top: none;
  }

  .cs-shop-footer-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #1e3a8a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
  }

  .cs-shop-footer-social:hover {
    color: #fff;
    background: #1e3a8a;
    border-color: #1e3a8a;
  }

  .cs-shop-footer-social svg {
    width: 20px;
    height: 20px;
  }

  .cs-shop-footer-inner {
    display: none;
    grid-template-columns: 1fr;
    padding: 0 12px 10px;
  }

  .cs-shop-footer.is-open .cs-shop-footer-inner {
    display: grid;
    animation: cs-footer-details-in 0.22s ease;
  }

  .cs-shop-footer.is-open .cs-shop-footer-brand-widget {
    padding-bottom: 6px;
  }

  .cs-shop-footer-item {
    border-right: none !important;
    border-top: 1px solid #eef2f7;
    padding: 12px 6px;
  }

  .cs-shop-footer-item:first-child {
    border-top: none;
  }

  .cs-shop-footer-title {
    font-size: 14px;
  }

  .cs-shop-footer-text {
    white-space: normal;
  }
}

@keyframes cs-footer-details-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— PWA install prompt —— */
.cs-pwa-install {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cs-pwa-install[hidden] {
  display: none !important;
}

.cs-pwa-install-card {
  position: relative;
  width: min(100%, 420px);
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.25);
  animation: cs-pwa-slide-up 0.28s ease;
}

@keyframes cs-pwa-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-pwa-install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cs-pwa-install-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 28px;
}

.cs-pwa-install-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex: 0 0 auto;
}

.cs-pwa-install-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cs-pwa-install-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.cs-pwa-install-ios {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.4;
}

.cs-pwa-install-ios[hidden] {
  display: none !important;
}

.cs-pwa-install-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

.cs-pwa-install-primary,
.cs-pwa-install-secondary {
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cs-pwa-install-primary {
  border: none;
  background: #2563eb;
  color: #fff;
}

.cs-pwa-install-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

@media (min-width: 768px) {
  .cs-pwa-install {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-pwa-install-card {
    animation: none;
  }
}

