/* ==========================================================================
   Indigo Prints Modern Marketplace Design System
   Inspired by Novella, eBay, Nextgen, Mixtas & Balenciaga
   ========================================================================== */

:root {
  /* Brand Identity */
  --brand-purple: #54007E;
  --brand-purple-dark: #380054;
  --brand-purple-light: #700FAF;
  --brand-purple-subtle: #F6EEFA;

  --brand-red: #FF0000;
  --brand-red-dark: #CC0000;
  --brand-red-subtle: #FEEBEB;

  /* Neutral Slate Palette */
  --black: #0F172A;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* E-Commerce Accents */
  --accent-gold: #FFA41C;
  --price-red: #CC0C39;
  --stock-green: #007600;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* 1. Top Announcement Bar (Novella & eBay style) */
.top-notice-bar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--slate-200);
  font-size: 12.5px;
  color: var(--slate-600);
  padding: 7px 0;
}

.top-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-notice-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-notice-right a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

/* 2. Clean White Header (Novella & eBay Style) */
.marketplace-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

/* Authentic Logo Link */
.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Center Search Bar (Novella Style) */
.header-search-wrap {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all 0.2s;
}

.header-search-form:focus-within {
  background: var(--white);
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(84, 0, 126, 0.12);
}

.search-dept-select {
  background: transparent;
  border: none;
  border-right: 1px solid var(--slate-300);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  outline: none;
  cursor: pointer;
  max-width: 160px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--slate-900);
  outline: none;
}

.search-input::placeholder {
  color: var(--slate-400);
}

.search-btn {
  background: var(--black);
  color: var(--white);
  width: 40px;
  height: 36px;
  margin-right: 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.search-btn:hover {
  background: var(--brand-purple);
}

.search-btn svg {
  width: 17px;
  height: 17px;
}

/* Right Header Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.currency-region-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
}

.currency-region-pill select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  outline: none;
  cursor: pointer;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.header-action-btn:hover {
  color: var(--brand-purple);
  background: #F8FAFC;
}

.cart-rfq-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.cart-rfq-pill-btn:hover {
  background: var(--brand-purple);
}

.cart-pill-badge {
  background: var(--brand-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

/* 3. Subnav Bar (Categories & Store Switcher) */
.marketplace-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 4px 0;
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subnav-links-left {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.subnav-links-left::-webkit-scrollbar { display: none; }

.subnav-btn {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-700);
  background: transparent;
  border-radius: var(--radius-full);
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}

.subnav-btn:hover {
  background: var(--slate-100);
  color: var(--brand-purple);
}

.subnav-btn.active {
  background: var(--slate-900);
  color: var(--white);
  font-weight: 700;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-600);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.subnav-link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.subnav-link.active {
  background: var(--slate-900);
  color: var(--white);
  font-weight: 600;
}

.subnav-right-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.sister-store-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-purple);
  background: var(--brand-purple-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}

.sister-store-pill:hover {
  background: var(--brand-purple);
  color: var(--white);
}

/* ==========================================================================
   HOMEPAGE COMPONENTS (Novella, eBay & Mixtas Style)
   ========================================================================== */

/* 4. Editorial Hero Banner (Novella Image 3 Style) */
.hero-editorial-section {
  padding: 24px 0 16px;
}

.hero-editorial-card {
  background: linear-gradient(135deg, #F9F7F5 0%, #F1EDE8 100%);
  border: 1px solid #EAE3DC;
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.hero-editorial-text .eyebrow-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-purple);
  background: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  margin-bottom: 16px;
}

.hero-editorial-text h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-editorial-text p {
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-black-pill {
  background: var(--black);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-black-pill:hover {
  background: var(--brand-purple);
  transform: translateY(-1px);
}

.btn-outline-pill {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline-pill:hover {
  border-color: var(--slate-900);
  background: #F8FAFC;
}

.hero-trust-bullets {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12.5px;
  color: var(--slate-700);
  font-weight: 600;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 18px;
}

.hero-feature-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-preview-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12));
  transition: transform 0.3s;
}

.hero-preview-img:hover {
  transform: scale(1.03);
}

/* 5. Circular "Shop by Category" Strip (Novella Image 3 & eBay Image 5) */
.category-circles-section {
  padding: 36px 0 24px;
}

.section-head-clean {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head-clean h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
}

.section-view-all-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-800);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.section-view-all-link:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.category-circles-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.cat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.cat-circle-card:hover {
  transform: translateY(-3px);
}

.cat-circle-icon-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.cat-circle-card:hover .cat-circle-icon-box {
  border-color: var(--brand-purple);
  box-shadow: 0 4px 12px rgba(84, 0, 126, 0.15);
  background: var(--white);
}

.cat-circle-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-circle-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.25;
  transition: color 0.15s;
}

.cat-circle-card:hover .cat-circle-name {
  color: var(--brand-purple);
}

/* 6. 3-Column Promo Cards Grid (Novella Image 3 & eBay Image 5) */
.promo-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 48px;
}

.promo-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.promo-card:hover {
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.promo-card.dark-theme {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.promo-card.dark-theme .promo-title {
  color: var(--white);
}

.promo-card.dark-theme .promo-sub {
  color: var(--slate-400);
}

.promo-card.dark-theme .promo-link {
  color: var(--white);
}

.promo-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 6px;
  display: block;
}

.promo-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 6px;
}

.promo-sub {
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.promo-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-link:hover {
  text-decoration: underline;
}

.promo-img-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 7. Product Cards Grid (Novella, Nextgen & eBay Style) */
.product-showcase-section {
  margin-bottom: 48px;
}

.novella-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.novella-product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.novella-product-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Card Badges & Wishlist Button */
.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 24px;
}

.badge-express-clean {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.badge-markup-clean {
  background: var(--brand-purple-subtle);
  color: var(--brand-purple);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.wishlist-heart-btn {
  color: var(--slate-400);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.wishlist-heart-btn:hover {
  color: var(--brand-red);
}

.wishlist-heart-btn svg {
  width: 17px;
  height: 17px;
}

/* Product Card Image */
.card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}

.novella-product-card:hover .card-image-box img {
  transform: scale(1.05);
}

/* Product Card Meta */
.card-category-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-400);
  margin-bottom: 4px;
}

.card-title-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  cursor: pointer;
  transition: color 0.15s;
}

.card-title-link:hover {
  color: var(--brand-purple);
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 12px;
}

.card-rating-row .stars {
  color: var(--accent-gold);
  font-size: 13px;
}

.card-rating-row .score {
  font-weight: 700;
  color: var(--slate-700);
}

.card-rating-row .reviews-count {
  color: var(--slate-400);
}

/* Bottom Price & Add Action */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-price-primary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
}

.card-price-strike {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: line-through;
}

.quick-cart-btn {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.quick-cart-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.quick-cart-btn svg {
  width: 17px;
  height: 17px;
}

/* 8. Trust & Delivery Guarantee Bar (Novella Image 3 Style) */
.trust-guarantee-bar {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item-clean {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.trust-item-clean strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.trust-item-clean span {
  font-size: 12.5px;
  color: var(--slate-500);
  line-height: 1.35;
  display: block;
}

/* 9. Faceted Shopping Catalog Layout ("Shop All") */
.catalog-faceted-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0 64px;
  scroll-margin-top: 130px;
}

.catalog-sidebar-card {
  position: sticky;
  top: 130px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--slate-600);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.results-meta-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-meta-text strong {
  color: var(--slate-900);
  font-weight: 700;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-purple-subtle);
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-controls label {
  font-size: 13px;
  color: var(--slate-500);
}

.results-controls select {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  background: #F8FAFC;
  border: 1px solid var(--slate-300);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
}

.results-controls select:focus {
  border-color: var(--brand-purple);
}

.price-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 72px;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-800);
  outline: none;
  font-family: inherit;
}

.price-input:focus {
  border-color: var(--brand-purple);
}

.price-apply-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--slate-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.price-apply-btn:hover {
  background: var(--brand-purple);
}

.sidebar-filter-group {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.sidebar-filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.category-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.category-filter-list::-webkit-scrollbar {
  width: 5px;
}

.category-filter-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-filter-list::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 9999px;
}

.category-filter-list::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

.category-filter-item,
.filter-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.category-filter-item:hover,
.filter-tree-item:hover {
  background: #F8FAFC;
  color: var(--brand-purple);
}

.category-filter-item.active,
.filter-tree-item.active {
  background: var(--brand-purple-subtle);
  color: var(--brand-purple);
  font-weight: 700;
  border-color: rgba(84, 0, 126, 0.15);
}

.category-filter-item span:first-child,
.filter-tree-item span:first-child {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.category-filter-item .count-badge,
.category-filter-item .count,
.filter-tree-item .count-badge,
.filter-tree-item .count {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  line-height: 1.4;
}

.category-filter-item.active .count-badge,
.category-filter-item.active .count,
.filter-tree-item.active .count-badge,
.filter-tree-item.active .count {
  background: #E9D5FF;
  color: var(--brand-purple);
}

/* Catalog Top Control Bar */
.catalog-top-controls {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.catalog-sort-select {
  padding: 6px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  outline: none;
}

/* 10. Product Detail Modal (Nextgen Image 2 Style) */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-modal-dialog {
  background: var(--white);
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--slate-600);
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: var(--black);
  color: var(--white);
}

.nextgen-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Nextgen Image Gallery */
.nextgen-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nextgen-main-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  object-fit: contain;
}

.nextgen-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.nextgen-thumb-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1.5px solid var(--slate-200);
  padding: 6px;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.15s;
}

.nextgen-thumb-img.active, .nextgen-thumb-img:hover {
  border-color: var(--black);
}

/* Nextgen Right Buy Panel */
.nextgen-info-panel {
  display: flex;
  flex-direction: column;
}

.nextgen-dept-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.nextgen-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 12px;
}

.nextgen-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.nextgen-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--slate-700);
  margin-bottom: 20px;
}

/* Size Pills (Nextgen Style) */
.size-selector-wrap {
  margin-bottom: 24px;
}

.size-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
  display: block;
}

.size-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-pill-btn {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  transition: all 0.15s;
}

.size-pill-btn:hover {
  border-color: var(--black);
}

.size-pill-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  font-weight: 700;
}

/* Nextgen Add to Cart Button */
.btn-nextgen-add {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  margin-bottom: 24px;
}

.btn-nextgen-add:hover {
  background: var(--brand-purple);
  transform: translateY(-1px);
}

/* Collapsible Accordions */
.nextgen-accordion {
  border-top: 1px solid var(--slate-200);
  padding: 14px 0;
}

.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}

.accordion-content {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-top: 10px;
}

/* Rating & Reviews Scoreboard (Nextgen Style) */
.reviews-scoreboard-box {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.score-big {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.score-big span {
  font-size: 24px;
  color: var(--slate-400);
  font-weight: 500;
}

.score-sub {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 4px;
}

.rating-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate-600);
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--slate-900);
  border-radius: var(--radius-full);
}

/* 11. Minimalist Clean Footer (Novella & eBay Style) */
.marketplace-footer-clean {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding-top: 48px;
}

.footer-newsletter-box {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.newsletter-text h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.newsletter-text p {
  font-size: 13.5px;
  color: var(--slate-500);
}

.newsletter-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  width: 100%;
  max-width: 440px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  font-size: 13.5px;
  outline: none;
  background: transparent;
}

.newsletter-form button {
  background: var(--black);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}

.newsletter-form button:hover {
  background: var(--brand-purple);
}

.footer-links-columns {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--slate-600);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.footer-legal-bar-clean {
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-400);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .novella-products-grid { grid-template-columns: repeat(4, 1fr); }
  .category-circles-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer-links-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-editorial-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-feature-preview { display: none; }
  .promo-tri-grid { grid-template-columns: 1fr; }
  .novella-products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-faceted-layout { grid-template-columns: 1fr; }
  .nextgen-modal-grid { grid-template-columns: 1fr; }
  .trust-guarantee-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter-box { flex-direction: column; align-items: stretch; }
  .newsletter-form { max-width: 100%; }
}

@media (max-width: 600px) {
  .top-notice-right { display: none; }
  .header-main-row { flex-wrap: wrap; }
  .header-search-wrap { order: 3; max-width: 100%; width: 100%; }
  .category-circles-grid { grid-template-columns: repeat(2, 1fr); }
  .novella-products-grid { grid-template-columns: 1fr; }
  .trust-guarantee-bar { grid-template-columns: 1fr; }
  .footer-links-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RFQ CART DRAWER & DEALS CAROUSEL EXTENSION
   ========================================================================== */

/* RFQ Cart Drawer (Slide-out) */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
}

.cart-drawer-panel {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
}

.cart-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.15s;
}

.cart-drawer-close:hover {
  background: var(--black);
  color: var(--white);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--slate-200);
  background: #F8FAFC;
}

.drawer-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
}

.drawer-subtotal-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
}

/* Horizontal Deals Carousel Track */
.amz-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 16px 0 32px;
}

.amz-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
}
.amz-carousel-track::-webkit-scrollbar { display: none; }

.amz-deal-item {
  flex: 0 0 220px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.amz-deal-item:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.deal-item-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 10px;
}

.deal-item-discount-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.discount-tag {
  background: var(--brand-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.deal-tag-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
}

.deal-item-price {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  margin-right: 6px;
}

.deal-item-strike {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: line-through;
}

.deal-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.amz-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  color: var(--slate-800);
  transition: all 0.15s;
}

.amz-carousel-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.amz-carousel-btn.prev { left: -16px; }
.amz-carousel-btn.next { right: -16px; }

