/* ==========================================================================
   FASHIONOS - Luxury Enterprise Design System
   Matches Pixel-Perfect UI Design Specification
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-app: #F8F9FB;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-subtle: #F3F4F6;
  --bg-hover: #F8FAFC;
  
  /* Text Colors */
  --text-primary: #18181B;
  --text-secondary: #71717A;
  --text-muted: #A1A1AA;
  --text-inverse: #FFFFFF;
  
  /* Brand Accents */
  --accent-dark: #18181B;
  --accent-gold: #D97706;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;

  /* Borders & Shadows */
  --border-light: #E4E4E7;
  --border-subtle: #F1F1F4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layout Wrapper */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-app);
}

/* ==========================================================================
   1. LEFT SIDEBAR NAVIGATION
   ========================================================================== */
.app-sidebar {
  width: 240px;
  min-width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}

/* Sidebar Logo */
.sidebar-logo {
  padding: 0 8px 24px 8px;
}

.logo-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-accent {
  color: #71717A;
  font-weight: 600;
}

.logo-subtitle {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
}

/* Nav Menu */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  color: var(--text-secondary);
}

.nav-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: #1E1E24;
  color: #FFFFFF;
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: #FFFFFF;
}

/* Promo Card at Bottom of Sidebar */
.sidebar-promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  margin-top: 16px;
  background-color: #EFECE6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
}

.promo-bg-layer {
  position: absolute;
  inset: 0;
  background-image: url('assets/silk_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: saturate(0.9);
}

.sidebar-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 237, 230, 0) 30%, rgba(240, 237, 230, 0.95) 85%);
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.promo-dash {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.promo-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.promo-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.promo-arrow-btn:hover {
  transform: translateX(3px);
}

.promo-arrow-btn i {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
}

/* ==========================================================================
   2. MAIN APP CONTAINER & TOP BAR
   ========================================================================== */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header */
.top-header {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Search Bar */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 440px;
}

.header-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  height: 40px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 54px 0 40px;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.06);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.kbd-badge {
  position: absolute;
  right: 12px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

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

/* Season Dropdown */
.season-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.season-dropdown {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 13px 13px !important;
  border: 1px solid var(--border-light, #E4E4E7) !important;
  border-radius: var(--radius-md, 10px) !important;
  padding: 8px 36px 8px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-primary, #18181B) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.season-dropdown:hover {
  border-color: #71717A !important;
  background-color: #FAFAFA !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2318181B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.season-dropdown:focus {
  border-color: var(--accent-gold, #D97706) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.season-selector .dropdown-icon {
  display: none !important;
}

/* Notification Bell */
.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.notification-btn i {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  border-radius: var(--radius-full);
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #18181B;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-role .inline-icon {
  width: 12px;
  height: 12px;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  display: none;
  z-index: 1000;
}

.user-dropdown-menu.show {
  display: block;
}

.dropdown-header {
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-header strong {
  font-size: 0.85rem;
  color: #111827;
}

.dropdown-header small {
  font-size: 0.75rem;
  color: #6B7280;
}

.dropdown-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #111827;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #F3F4F6;
}

.dropdown-item i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   3. PAGE CONTENT CONTAINER & VIEWS
   ========================================================================== */
.page-container {
  padding: 32px;
  flex: 1;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

/* View Headers (Secondary Views) */
.view-header {
  margin-bottom: 24px;
}

.view-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   4. HERO BANNER (ALL SKUS)
   ========================================================================== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF9F6 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.hero-left {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-breadcrumbs {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Hero Right Visual with Silk Drapery Accent */
.hero-right-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 36px;
}

.hero-silk-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/silk_bg.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent 0%, black 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 70%);
}

.hero-quote {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: #3F3F46;
  text-align: right;
}

/* ==========================================================================
   5. 6 TOP KPI CARDS STRIP
   ========================================================================== */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.kpi-icon-box i {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
  stroke-width: 1.8;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.kpi-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-sans);
}

.kpi-trend {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.kpi-trend i {
  width: 12px;
  height: 12px;
}

.trend-up {
  color: var(--accent-green);
}

.trend-down {
  color: var(--accent-red);
}

.trend-neutral {
  color: var(--accent-blue);
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.kpi-sparkline {
  margin-top: 10px;
  height: 16px;
  width: 100%;
  position: relative;
}

.kpi-sparkline::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: contain;
}

.spark-up::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' fill='none'%3E%3Cpath d='M0 16 Q 25 18, 50 10 T 100 4' stroke='%2310B981' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.spark-down::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' fill='none'%3E%3Cpath d='M0 4 Q 25 2, 50 12 T 100 16' stroke='%23EF4444' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.spark-neutral::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' fill='none'%3E%3Cpath d='M0 10 Q 30 6, 60 14 T 100 8' stroke='%233B82F6' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* ==========================================================================
   6. 7-FACET FILTER BAR
   ========================================================================== */
.facet-filters-bar {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Universal Luxury Dropdown & Select System */
select,
.filter-select {
  width: 100% !important;
  height: 38px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 13px 13px !important;
  border: 1px solid var(--border-light, #E4E4E7) !important;
  border-radius: var(--radius-sm, 7px) !important;
  padding: 0 34px 0 12px !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 550 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-primary, #18181B) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 36px !important;
  display: block !important;
}

select:hover,
.filter-select:hover {
  border-color: #71717A !important;
  background-color: #FAFAFA !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2318181B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

select:focus,
.filter-select:focus {
  border-color: var(--accent-gold, #D97706) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

select:disabled,
.filter-select:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background-color: #F4F4F5 !important;
  border-color: #E4E4E7 !important;
}

select option,
.filter-select option {
  background-color: #FFFFFF !important;
  color: #18181B !important;
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 9px 12px !important;
}

select optgroup,
.filter-select optgroup {
  font-weight: 700 !important;
  color: #71717A !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: #F8FAFC !important;
}

.filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.select-arrow {
  display: none !important;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-filter-more {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-more:hover {
  background-color: var(--bg-subtle);
}

.btn-filter-more i {
  width: 15px;
  height: 15px;
}

.btn-export-csv {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-export-csv:hover {
  background-color: #27272A;
}

.btn-export-csv i {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   7. TABLE TOOLBAR & QUICK TABS
   ========================================================================== */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-tab {
  background-color: transparent;
  border: 1px solid transparent;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-tab:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.quick-tab.active {
  background-color: #18181B;
  color: #FFFFFF;
  font-weight: 600;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  overflow: hidden;
}

.view-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.view-btn i {
  width: 16px;
  height: 16px;
}

.table-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
}

.table-search-box .inline-search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.table-search-box input {
  width: 100%;
  height: 34px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px 0 32px;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
}

.table-search-box input:focus {
  border-color: var(--text-primary);
}

/* Sort Selector */
.sort-selector {
  position: relative;
}

.btn-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.btn-sort i {
  width: 14px;
  height: 14px;
}

.sort-arrow {
  color: var(--text-muted);
}

.sort-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 200px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 60;
}

.sort-dropdown-menu.show {
  display: block;
}

.sort-opt {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.1s ease;
}

.sort-opt:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.sort-opt.active {
  background-color: #18181B;
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   8. ENTERPRISE DATA TABLE & ROWS
   ========================================================================= */
.table-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-scroll-container {
  overflow-x: auto;
  max-width: 100%;
}

.fashion-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.fashion-table thead {
  background-color: #FAFAFA;
  border-bottom: 1px solid var(--border-light);
}

.fashion-table th {
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.fashion-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.fashion-table th.sortable:hover {
  color: var(--text-primary);
}

.fashion-table th.sortable i {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-left: 2px;
  color: var(--text-muted);
}

.fashion-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.fashion-table tbody tr:hover {
  background-color: #FBFBFC;
}

.fashion-table td {
  padding: 14px 14px;
  vertical-align: middle;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Specific Column Styling */
.td-checkbox, .th-checkbox {
  width: 40px;
  text-align: center;
}

.fashion-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.td-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Brand & Cohort Badges */
.badge-brand {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #EFF6FF;
  color: #2563EB;
}

.badge-cohort {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
}

.cohort-activewear { background-color: #E0F2FE; color: #0284C7; }
.cohort-sports { background-color: #F3E8FF; color: #7C3AED; }
.cohort-western { background-color: #FFE4E6; color: #E11D48; }
.cohort-essentials { background-color: #E0F7FA; color: #00838F; }
.cohort-denim { background-color: #ECFDF5; color: #059669; }
.cohort-ethnic { background-color: #FEF3C7; color: #D97706; }

/* Product Title Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}

.product-thumb {
  width: 40px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.product-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Size Breakdown Pills */
.size-pills-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.size-pill {
  padding: 2px 6px;
  background-color: var(--bg-subtle);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.size-pill.oos {
  color: var(--text-muted);
  opacity: 0.6;
}

.size-pill-more {
  padding: 2px 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Stock Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.status-in-stock {
  background-color: #ECFDF5;
  color: #059669;
}
.status-in-stock .status-dot { background-color: #059669; }

.status-low-stock {
  background-color: #FEF3C7;
  color: #D97706;
}
.status-low-stock .status-dot { background-color: #D97706; }

.status-out-of-stock {
  background-color: #FEE2E2;
  color: #DC2626;
}
.status-out-of-stock .status-dot { background-color: #DC2626; }

/* Pricing */
.price-bold {
  font-weight: 700;
  color: var(--text-primary);
}

.mrp-strike {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.75rem;
}

.discount-red {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.78rem;
}

.rating-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-star i {
  color: #F59E0B;
  fill: #F59E0B;
  width: 13px;
  height: 13px;
}

.btn-action-more {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
}

.btn-action-more:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   9. PAGINATION FOOTER
   ========================================================================== */
.table-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
}

.pagination-info {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.1s ease;
}

.page-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.page-btn.active {
  background-color: #18181B;
  color: #FFFFFF;
  font-weight: 600;
}

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

/* ==========================================================================
   10. CHARTS & CATEGORY CARDS GRID
   ========================================================================== */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-canvas-wrap {
  height: 280px;
  position: relative;
}

.category-cards-grid, .brands-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.info-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   11. SKU DETAIL DRAWER / MODAL
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sku-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  z-index: 101;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.open .sku-drawer {
  right: 0;
}

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

.drawer-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: #EFF6FF;
  color: #2563EB;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.drawer-sku-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.drawer-close-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

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

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1280px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .app-sidebar {
    width: 200px;
    min-width: 200px;
  }
  .header-search-wrap {
    width: 280px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   13. FASHION INTELLIGENCE & ADVANCED MODELING SUITE
   ========================================================================== */

/* White Space Opportunities */
.whitespace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.whitespace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.whitespace-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.whitespace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #D97706 0%, #F59E0B 100%);
}

.opp-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
}

/* Pricing Elasticity Simulator Widget */
.simulator-container {
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.simulator-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #A1A1AA;
}

.slider-val-tag {
  color: #FBBF24;
  font-weight: 700;
}

.sim-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #3F3F46;
  outline: none;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.simulator-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sim-metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.sim-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.sim-metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.sim-metric-delta {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-pos { color: #34D399; }
.delta-neg { color: #F87171; }

/* Stockout Revenue Loss Banner */
.stockout-alert-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stockout-alert-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 2px;
}

.stockout-alert-text p {
  font-size: 0.82rem;
  color: #B45309;
}

.urgency-badge {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.urgency-high { background: #FEE2E2; color: #DC2626; }
.urgency-moderate { background: #FEF3C7; color: #D97706; }

/* Size Curve Progress */
.size-curve-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.size-curve-label {
  width: 140px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.size-curve-bars {
  flex: 1;
  display: flex;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.size-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  transition: width 0.3s ease;
}

/* Color Palette Swatches */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.swatch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.swatch-color-pill {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.velocity-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 4px;
}
.velocity-rapid { background: #DCFCE7; color: #16A34A; }
.velocity-steady { background: #E0E7FF; color: #4338CA; }
.velocity-niche { background: #F3F4F6; color: #6B7280; }

/* Sizing Distortion Matrix */
.fit-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-subtle);
  overflow: hidden;
  margin-top: 4px;
}

.fit-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: #10B981;
}

/* Print Deck Styles */
@media print {
  .app-sidebar, .top-header, .facet-filters-bar, .table-toolbar, .btn, .filter-actions, .floating-copilot-btn {
    display: none !important;
  }
  .app-wrapper, .app-main, .page-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: #FFF !important;
  }
  .app-view {
    display: block !important;
    page-break-after: always;
  }
  .hero-banner {
    border: 1px solid #CCC !important;
  }
}

/* ==========================================================================
   14. GHANSHYAM AI COPILOT CHATBOT SYSTEM
   ========================================================================== */
.chat-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 270px);
  min-height: 580px;
  overflow: hidden;
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #18181B 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.chat-ai-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-ai-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.chat-chips-row {
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.chat-chip {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
  transform: translateY(-1px);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #FAFAFC;
}

.chat-msg {
  display: flex;
  gap: 14px;
  max-width: 85%;
  animation: fadeIn 0.2s ease;
}

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-ai {
  align-self: flex-start;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-msg-ai .msg-avatar {
  background: #18181B;
  color: #F59E0B;
}

.chat-msg-user .msg-avatar {
  background: #3B82F6;
  color: #FFFFFF;
}

.msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.chat-msg-user .msg-bubble {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.82rem;
}

.msg-bubble th, .msg-bubble td {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.msg-bubble th {
  background: var(--bg-subtle);
  font-weight: 700;
}

.msg-bubble strong {
  color: var(--text-primary);
}
.chat-msg-user .msg-bubble strong {
  color: #FBBF24;
}

.msg-bubble ul, .msg-bubble ol {
  margin: 8px 0 8px 20px;
}

.chat-input-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  align-items: center;
}

.chat-text-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.chat-text-input:focus {
  border-color: var(--accent-gold);
}

.btn-chat-send {
  background: linear-gradient(135deg, #18181B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.btn-chat-send:hover {
  transform: scale(1.05);
}

/* Floating Copilot Trigger Button (Hidden) */
.floating-copilot-btn {
  display: none !important;
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, #18181B 0%, #D97706 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
  z-index: 99;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-copilot-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.45);
}

.copilot-sparkle {
  font-size: 1.1rem;
  animation: pulse 1.5s infinite;
}

/* ==========================================================================
   15. COMPETITOR INTELLIGENCE & HEAD-TO-HEAD BENCHMARKING
   ========================================================================== */
.compare-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.compare-selectors-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.compare-vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181B;
  color: #F59E0B;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.compare-brand-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-hover);
}

.compare-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.compare-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.compare-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.compare-metric-label {
  color: var(--text-secondary);
}

.compare-metric-val {
  font-weight: 700;
  color: var(--text-primary);
}

.threat-badge {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.threat-high { background: #FEE2E2; color: #DC2626; }
.threat-moderate { background: #FEF3C7; color: #D97706; }
.threat-low { background: #DCFCE7; color: #16A34A; }

/* ==========================================================================
   LUXURY BRAND DIRECTORY & C-SUITE DOSSIER STYLES
   ========================================================================== */
.brand-luxury-card {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.brand-luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D97706, #F59E0B, #18181B);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.brand-luxury-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.brand-luxury-card:hover::before {
  opacity: 1;
}

.brand-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-monogram-crest {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #F59E0B;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.brand-card-title-group {
  flex: 1;
  overflow: hidden;
}

.brand-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-parent-corp {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-metrics-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.brand-metric-pill {
  background: #F8F9FB;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.brand-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.brand-csuite-preview {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.02) 0%, rgba(217, 119, 6, 0.03) 100%);
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.brand-csuite-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.brand-csuite-row strong {
  color: var(--text-primary);
}

.btn-audit-dark {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.btn-audit-dark:hover {
  background: #27272A;
}

.btn-csuite-gold {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
  text-align: center;
}

.btn-csuite-gold:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   17. EXECUTIVE WAREHOUSE & CURVE HEALTH COMMAND CENTER
   ========================================================================== */
.wh-command-bar {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.wh-command-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981 0%, #F59E0B 50%, #EF4444 100%);
}

.wh-radial-gauge-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 24px;
  border-right: 1px solid var(--border-light);
}

.wh-radial-svg-wrap {
  position: relative;
  width: 86px;
  height: 86px;
}

.wh-radial-svg {
  transform: rotate(-90deg);
  width: 86px;
  height: 86px;
}

.wh-radial-bg {
  fill: none;
  stroke: #F4F4F5;
  stroke-width: 8;
}

.wh-radial-progress {
  fill: none;
  stroke: #10B981;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.wh-radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.wh-radial-pct {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18181B;
  line-height: 1;
}

.wh-radial-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.wh-gauge-meta h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181B;
  margin-bottom: 3px;
}

.wh-gauge-meta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.wh-bleed-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wh-bleed-stat-item {
  display: flex;
  flex-direction: column;
}

.wh-bleed-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-loss-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseLoss 2s infinite;
}

@keyframes pulseLoss {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.wh-bleed-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #18181B;
}

.wh-bleed-value.loss-red {
  color: #DC2626;
}

.wh-command-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Category Filter Bar */
.wh-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.wh-cat-pill {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wh-cat-pill:hover {
  background: #F4F4F5;
  color: #18181B;
}

.wh-cat-pill.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.2);
}

/* Interactive Broken Curve Detector */
.curve-diagnostic-card {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.curve-diagnostic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.curve-diagnostic-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #18181B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.size-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.size-health-chip {
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.size-health-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #A1A1AA;
}

.size-health-chip.status-broken {
  background: #FEF2F2;
  border-color: #FECACA;
}

.size-health-chip.status-warning {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.size-health-chip.status-healthy {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.chip-size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip-size-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #18181B;
}

.chip-status-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.chip-status-tag.tag-broken {
  background: #FEE2E2;
  color: #DC2626;
}

.chip-status-tag.tag-warning {
  background: #FEF3C7;
  color: #D97706;
}

.chip-status-tag.tag-healthy {
  background: #D1FAE5;
  color: #059669;
}

.chip-units-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chip-loss-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #DC2626;
  margin-top: 2px;
}

/* Production Size Curve Studio */
.production-studio-card {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-title-group h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #18181B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-title-group p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.studio-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.run-size-btn-group {
  display: flex;
  background: #F4F4F5;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.btn-run-size {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-run-size.active {
  background: #FFFFFF;
  color: #18181B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.studio-ratio-bar-wrap {
  margin: 16px 0 24px 0;
}

.studio-ratio-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.studio-ratio-stacked-bar {
  display: flex;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.studio-ratio-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.1;
  transition: width 0.4s ease;
  position: relative;
}

.studio-ratio-segment span.sub {
  font-size: 0.6rem;
  opacity: 0.85;
  font-weight: 600;
}

.cutting-ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cutting-ticket-card {
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.cutting-ticket-card:hover {
  border-color: #A1A1AA;
  background: #FFFFFF;
}

.ticket-size-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #18181B;
}

.ticket-ratio-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #D97706;
  margin-top: 2px;
}

.ticket-units-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #18181B;
  margin: 6px 0 2px 0;
}

.ticket-depletion-days {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Restock Simulation Modal */
.restock-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.restock-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.restock-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.restock-modal-backdrop.active .restock-modal-card {
  transform: translateY(0);
}

.restock-modal-header {
  background: #18181B;
  color: #FFFFFF;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.restock-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.restock-modal-close {
  background: transparent;
  border: none;
  color: #A1A1AA;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.restock-modal-close:hover {
  color: #FFFFFF;
}

.restock-modal-body {
  padding: 24px;
}

/* ==========================================================================
   18. ADVANCED BRAND VS BRAND & SIMILAR PRODUCTS COMPARATOR
   ========================================================================== */
.battle-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.battle-preset-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.battle-preset-chip {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #F4F4F5;
  color: #27272A;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s ease;
}

.battle-preset-chip:hover {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.btn-swap-brands {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181B;
  color: #F59E0B;
  border: 2px solid #27272A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-swap-brands:hover {
  background: #F59E0B;
  color: #18181B;
  transform: rotate(180deg) scale(1.08);
}

.duel-verdict-banner {
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: center;
}

.duel-verdict-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duel-verdict-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.duel-verdict-text .title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #A1A1AA;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.duel-verdict-text .winner {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* Similar Products Matcher */
.similar-products-container {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.similar-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.similar-cat-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.similar-cat-pill {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.similar-cat-pill:hover {
  background: #F4F4F5;
  color: #18181B;
}

.similar-cat-pill.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.similar-search-wrap {
  position: relative;
  min-width: 240px;
}

.similar-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  background: #FAFAFA;
  outline: none;
  transition: all 0.15s ease;
}

.similar-search-input:focus {
  border-color: #18181B;
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

.similar-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.similar-duels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
}

.product-duel-card {
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.product-duel-card:hover {
  border-color: #A1A1AA;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
}

.duel-item-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.duel-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #E4E4E7;
}

.duel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-duel-card:hover .duel-img-wrap img {
  transform: scale(1.04);
}

.duel-brand-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(24, 24, 27, 0.85);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.duel-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #18181B;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  height: 2.5em;
}

.duel-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.duel-selling-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181B;
}

.duel-mrp {
  font-size: 0.72rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.duel-discount {
  font-size: 0.7rem;
  font-weight: 800;
  color: #DC2626;
}

.duel-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* VS Pillar */
.duel-vs-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
}

.duel-vs-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18181B;
  color: #F59E0B;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.duel-gap-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.duel-gap-cheaper {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.duel-gap-expensive {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.duel-gap-equal {
  background: #F4F4F5;
  color: #3F3F46;
  border: 1px solid #E4E4E7;
}

/* Competitor Vulnerability & Market Share Conquest Radar */
.conquest-radar-container {
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.conquest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.conquest-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.conquest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: #D97706;
}

.conquest-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.conquest-img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E4E4E7;
  flex-shrink: 0;
}

.conquest-info {
  flex: 1;
  min-width: 0;
}

.conquest-brand-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #D97706;
  letter-spacing: 0.5px;
}

.conquest-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #18181B;
  margin: 2px 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conquest-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.conquest-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181B;
}

.conquest-mrp {
  font-size: 0.78rem;
  color: #A1A1AA;
  text-decoration: line-through;
}

.conquest-discount {
  font-size: 0.75rem;
  color: #EF4444;
  font-weight: 700;
}

.conquest-vuln-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.conquest-vuln-reason {
  font-size: 0.76rem;
  font-weight: 700;
  color: #B45309;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.conquest-vuln-action {
  font-size: 0.75rem;
  color: #78350F;
  line-height: 1.4;
}

.conquest-revenue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-counter-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 10px;
}

.btn-counter-drop:hover {
  background: #D97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-duel-sku-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 6px;
}

.btn-duel-sku-counter:hover {
  background: #D97706;
}

/* ==============================================================================
   TRENDS INTELLIGENCE OS & REVENUE GENERATION ENGINE STYLES
   ============================================================================== */

/* Revenue Pulse Ticker Bar */
.trends-revenue-pulse {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .trends-revenue-pulse {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trends-revenue-pulse {
    grid-template-columns: 1fr;
  }
}

.pulse-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulse-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.pulse-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-stat-info {
  min-width: 0;
}

.pulse-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.pulse-stat-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.2;
}

.pulse-stat-sub {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trends Section Card */
.trends-section-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Trend Filter Chips Bar */
.trend-filter-chips-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.trend-chip {
  background: #F4F4F5;
  color: #52525B;
  border: 1px solid #E4E4E7;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-primary);
}

.trend-chip:hover {
  background: #E4E4E7;
  color: #18181B;
}

.trend-chip.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Trend Radar Cards Grid */
.trend-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .trend-radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trend-radar-grid {
    grid-template-columns: 1fr;
  }
}

.trend-radar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.trend-radar-card:hover {
  border-color: #A1A1AA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.trend-radar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D97706, #F59E0B, #10B981);
}

.trend-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trend-cat-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #71717A;
  letter-spacing: 0.06em;
}

.trend-stage-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.stage-rapid-surge {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stage-emerging {
  background: rgba(59, 130, 246, 0.12);
  color: #1D4ED8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.trend-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #18181B;
  line-height: 1.35;
  margin-bottom: 8px;
}

.trend-spec-strip {
  background: #F8F9FA;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #52525B;
  line-height: 1.4;
  margin-bottom: 14px;
}

.trend-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.trend-metric-item {
  text-align: center;
}

.trend-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #18181B;
  font-family: var(--font-primary);
}

.trend-metric-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: #71717A;
  text-transform: uppercase;
  margin-top: 2px;
}

.btn-simulate-capsule {
  width: 100%;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: var(--font-primary);
}

.btn-simulate-capsule:hover {
  background: #3B82F6;
  transform: translateY(-1px);
}

/* White-Space Harvest Grid */
.whitespace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .whitespace-grid {
    grid-template-columns: 1fr;
  }
}

.whitespace-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.whitespace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.whitespace-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181B;
}

.whitespace-score-badge {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.whitespace-gmv-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.whitespace-gmv-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #065F46;
}

.whitespace-gmv-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
}

.whitespace-desc {
  font-size: 0.78rem;
  color: #52525B;
  line-height: 1.45;
  margin-bottom: 14px;
}

.whitespace-action-btn {
  background: #18181B;
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.whitespace-action-btn:hover {
  background: #10B981;
}

/* Trends Dual Grid (Margin Bleed & Liquidate) */
.trends-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .trends-dual-grid {
    grid-template-columns: 1fr;
  }
}

/* Capsule Modal Specific Styles */
.capsule-batch-btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.capsule-batch-btn {
  flex: 1;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #52525B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.capsule-batch-btn.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.capsule-metric-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .capsule-metric-quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

.capsule-metric-card {
  background: #F8F9FA;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.capsule-metric-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18181B;
}

.capsule-metric-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: #71717A;
  text-transform: uppercase;
  margin-top: 2px;
}






/* ==========================================================================
   Exact Pixel-Perfect Styles from Reference UI
   ========================================================================== */

.btn-deck {
  background-color: #18181B;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-deck:hover {
  background-color: #27272A;
}

.btn-deck i {
  width: 15px;
  height: 15px;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #71717A;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background-color: #F4F4F5;
  border: 1px solid #E4E4E7;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-item-gold {
  border: 1px solid #FDE047 !important;
  background-color: #FEFCE8 !important;
  color: #B45309 !important;
  font-weight: 600 !important;
  margin-top: 4px;
}

.nav-item-gold .nav-icon {
  color: #D97706 !important;
}

.nav-item-gold:hover {
  background-color: #FEF08A !important;
  border-color: #FACC15 !important;
}

.nav-item-gold.active {
  background-color: #F59E0B !important;
  color: #FFFFFF !important;
  border-color: #D97706 !important;
}

.nav-item-gold.active .nav-icon {
  color: #FFFFFF !important;
}

.hero-title {
  font-family: 'Playfair Display', 'Cinzel', Georgia, serif !important;
  font-size: 2.85rem !important;
  font-weight: 700 !important;
  color: #18181B !important;
  letter-spacing: 0.01em !important;
  margin: 4px 0 6px 0 !important;
}

.badge-brand {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.badge-cohort {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.cohort-sports { background-color: #F3E8FF; color: #7C3AED; border-color: #E9D5FF; }
.cohort-tailored { background-color: #ECFDF5; color: #059669; border-color: #D1FAE5; }
.cohort-executive { background-color: #E0F2FE; color: #0284C7; border-color: #BAE6FD; }
.cohort-luxury { background-color: #FFF1F2; color: #E11D48; border-color: #FFE4E6; }
.cohort-casual { background-color: #FEF3C7; color: #D97706; border-color: #FDE68A; }

.size-pill {
  background-color: #F4F4F5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #71717A;
  display: inline-block;
  margin-right: 4px;
  border: 1px solid #E4E4E7;
}

.size-pill-more {
  font-size: 0.7rem;
  color: #A1A1AA;
  font-weight: 600;
}

/* Pagination Bar */
.table-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.table-results-meta {
  font-weight: 500;
  color: var(--text-secondary);
}

.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  border-color: #A1A1AA;
}

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

.btn-page i {
  width: 14px;
  height: 14px;
}

.page-indicator {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
}

/* ==========================================================================
   20. CROSS-PLATFORM "SAME PRODUCT. EVERYWHERE." SUITE (EXACT MOCKUP DESIGN)
   ========================================================================== */

.cross-nav-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-back-list {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #18181B;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-back-list:hover {
  background-color: var(--bg-subtle);
}

.cross-indexer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
}

.btn-cluster-nav {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #18181B;
  transition: all 0.15s ease;
}

.btn-cluster-nav:hover {
  background: var(--bg-subtle);
  border-color: #A1A1AA;
}

.btn-cluster-nav i {
  width: 14px;
  height: 14px;
}

/* Spotlight 2-Column Grid */
.cross-spotlight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .cross-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Card: Unified Product Card */
.cross-product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 60px 240px 1fr 140px;
  gap: 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .cross-product-card {
    grid-template-columns: 1fr;
  }
}

/* Thumbnails Column */
.cross-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-thumb-item {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  background: #F8FAFC;
  transition: border-color 0.15s ease;
}

.cross-thumb-item.active, .cross-thumb-item:hover {
  border-color: #18181B;
}

.cross-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Image Wrap */
.cross-main-img-wrap {
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.cross-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Product Meta Details */
.cross-meta-details {
  display: flex;
  flex-direction: column;
}

.cross-tag-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cross-canon-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  line-height: 1.25;
}

.cross-pill-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cross-pill-tag {
  background: #F1F5F9;
  color: #475569;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.cross-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-bottom: 14px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.spec-val-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-bold {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
}

.color-dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Swatches */
.cross-swatches-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cross-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.swatch-circle.active {
  outline: 2px solid #0F172A;
  outline-offset: 2px;
}

.swatch-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  margin-left: 2px;
}

/* AI Confidence Box */
.cross-ai-badge-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.cross-unified-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.cross-unified-badge i {
  width: 13px;
  height: 13px;
}

.cross-ai-score-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1;
}

.cross-ai-score-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 2px;
}

.cross-ai-logic-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3B82F6;
  text-decoration: none;
  margin-top: 14px;
}

.cross-ai-logic-link:hover {
  text-decoration: underline;
}

/* Right Column: Intel & AI Insights Card */
.cross-sidebar-intel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cross-intel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.cross-intel-header {
  margin-bottom: 12px;
}

.intel-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.intel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.badge-beta {
  background: #F3E8FF;
  color: #7C3AED;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.cross-insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cross-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.4;
}

.cross-insight-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.intel-footer-btn {
  margin-top: 16px;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.btn-intel-action {
  width: 100%;
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s ease;
}

.btn-intel-action:hover {
  color: #0F172A;
}

/* ==========================================================================
   BOTTOM SECTION: COMPARISON MATRIX & ANALYTICS WIDGETS
   ========================================================================== */

.cross-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .cross-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.cross-matrix-container {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.matrix-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.matrix-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}

.matrix-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 2px;
}

.matrix-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-date-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748B;
}

.date-chip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 600;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.date-chip i {
  width: 12px;
  height: 12px;
}

.btn-watchlist {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-watchlist:hover {
  opacity: 0.9;
}

.btn-watchlist i {
  width: 13px;
  height: 13px;
}

/* Matrix Table Styling */
.matrix-table-wrap {
  overflow-x: auto;
}

.cross-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.cross-comparison-table th {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
}

.cross-comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.matrix-th-label {
  width: 140px;
  min-width: 130px;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-header-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-logo-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.matrix-row-label {
  font-weight: 600;
  color: #64748B;
  font-size: 0.75rem;
  background: #F8FAFC;
}

.matrix-thumb {
  width: 44px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.matrix-prod-title-cell {
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  max-width: 220px;
}

.matrix-sku-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #475569;
}

.matrix-price-bold {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.matrix-mrp-strike {
  font-size: 0.78rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.matrix-discount-green {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.stock-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-dot-in {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.stock-dot-low {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

.stock-dot-out {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
}

.btn-channel-action {
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}

.btn-channel-myntra {
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
}

.btn-channel-myntra:hover {
  background: #FCE7F3;
}

.btn-channel-amazon {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.btn-channel-amazon:hover {
  background: #FDE68A;
}

.btn-channel-website {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.btn-channel-website:hover {
  background: #DBEAFE;
}

.btn-channel-firstcry {
  background: #FFF7ED;
  color: #EA580C;
  border: 1px solid #FFEDD5;
}

.btn-channel-firstcry:hover {
  background: #FFEDD5;
}

/* Right Analytics Sidebar Widgets */
.cross-widget-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
}

.widget-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94A3B8;
}

.widget-mini-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 1px solid var(--border-light, #E4E4E7) !important;
  border-radius: 6px !important;
  padding: 3px 24px 3px 9px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  background-color: #FFFFFF !important;
  color: #334155 !important;
  outline: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 11px 11px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease !important;
}

.widget-mini-select:hover {
  border-color: #71717A !important;
  background-color: #FAFAFA !important;
}

.widget-mini-select:focus {
  border-color: var(--accent-gold, #D97706) !important;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18) !important;
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.btn-quick-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.btn-quick-action:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-quick-action i {
  width: 14px;
  height: 14px;
  color: #64748B;
}

/* ==========================================================================
   21. MASTER LIST VIEW (BEFORE SELECTING) STYLES
   ========================================================================== */
.table-scroll-container {
  overflow-x: auto;
  max-width: 100%;
}

.cross-list-prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cross-list-thumb {
  width: 44px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  flex-shrink: 0;
}

.cross-list-prod-info {
  display: flex;
  flex-direction: column;
}

.cross-list-prod-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #0F172A;
  line-height: 1.3;
}

.cross-list-prod-sku {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 2px;
}

.cross-list-swatches-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.swatch-mini-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.brand-cell-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  color: #1E293B;
}

.brand-mini-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #F1F5F9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

/* Marketplace Mini Pricing Box */
.market-mini-price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 6px;
}

.market-price-val {
  font-weight: 800;
  font-size: 0.82rem;
  color: #0F172A;
}

.market-stock-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
}

.chip-instock {
  background: #ECFDF5;
  color: #059669;
}

.chip-lowstock {
  background: #FEF3C7;
  color: #D97706;
}

.chip-notlisted {
  background: #F1F5F9;
  color: #94A3B8;
  font-weight: 500;
}

.chip-oos {
  background: #FFF1F2;
  color: #E11D48;
}

/* Price variance badge */
.variance-badge {
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.variance-high {
  background: #FEE2E2;
  color: #DC2626;
}

.variance-mid {
  background: #FEF3C7;
  color: #D97706;
}

.variance-low {
  background: #ECFDF5;
  color: #059669;
}

/* Sparkline SVG */
.sparkline-svg {
  width: 60px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.sparkline-poly {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-green {
  stroke: #10B981;
}

.sparkline-red {
  stroke: #EF4444;
}

/* AI Insight Cell */
.ai-insight-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.35;
}

.ai-icon-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-icon-dot i {
  width: 10px;
  height: 10px;
}

.btn-row-menu {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-row-menu:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-row-menu i {
  width: 16px;
  height: 16px;
}

.table-clickable-row {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.table-clickable-row:hover td {
  background-color: #F8FAFC !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-studio-tab:hover {
  color: #0F172A !important;
}

/* ==========================================================================
   PRODUCT DEEP INSPECTION MODAL (PIXEL-PERFECT LUXURY STYLING)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 16px;
  width: 95%;
  max-width: 1060px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.96) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background: #FAFAFA;
}

.modal-pretitle {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D97706;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(92vh - 70px);
}

.modal-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-image-column {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.modal-primary-image-wrap {
  width: 220px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
}

.modal-image-shell {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-primary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-hero-copy {
  flex: 1;
  min-width: 0;
}

.prod-brand {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D97706;
  margin-bottom: 4px;
  display: inline-block;
}

.modal-hero-copy .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.modal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dq-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.dq-tag.dq-derived {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.dq-tag.dq-observed {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.dq-tag.dq-predicted {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.live-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.modal-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.modal-stat-card {
  min-width: 0;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  overflow: hidden;
}

.modal-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-stat-value.modal-stat-accent {
  color: #D97706;
}

.prediction-panel {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #8B5CF6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 4px;
}

.prediction-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.prediction-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4C1D95;
}

.prediction-copy {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.modal-section-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.modal-mini-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

.modal-mini-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.modal-mini-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #10B981;
}

.modal-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.attribute-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.attribute-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
}

.attribute-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.attribute-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.attribute-chip {
  font-size: 0.72rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-primary);
}

.modal-list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.15s ease;
}

.modal-platform {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0F172A;
  color: #FFFFFF;
  margin-right: 8px;
}

.matrix-sku {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.modal-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.modal-row-price {
  font-weight: 700;
  color: #0F172A;
}

.modal-row-muted {
  color: #64748B;
  font-size: 0.75rem;
}

.modal-link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
}

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

.inventory-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-color-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
}

.inventory-color-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inventory-color-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.inventory-color-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.inventory-color-total {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
}



/* =====================================================================
   MODAL LOADING STATE
   ===================================================================== */
.modal-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
}
.modal-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #1e293b;
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-loading-text { font-size: 13px; color: #64748b; }

/* Modal Image Thumbnails */
.modal-image-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-img-thumb {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.modal-img-thumb:hover, .modal-img-thumb.active {
  opacity: 1;
  border-color: #06b6d4;
}

/* =====================================================================
   INVENTORY COLOR/SIZE GRID
   ===================================================================== */
.inv-color-groups { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.inv-color-block {
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px;
}
.inv-color-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.inv-color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); flex-shrink: 0; margin-top: 3px; }
.inv-color-info { flex: 1; min-width: 0; }
.inv-color-name { font-size: 15px; font-weight: 700; color: #f1f5f9; line-height: 1.2; }
.inv-color-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.inv-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; letter-spacing: 0.3px; text-transform: uppercase; }
.inv-badge-count { background: rgba(99,102,241,0.18); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.inv-badge-stock { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.inv-badge-avail { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.inv-color-stats { text-align: right; flex-shrink: 0; }
.inv-stat-total { font-size: 22px; font-weight: 800; color: #f1f5f9; line-height: 1; }
.inv-stat-total small { font-size: 11px; font-weight: 500; color: #64748b; margin-left: 3px; }
.inv-stat-row { display: flex; gap: 8px; font-size: 11px; color: #64748b; margin-top: 4px; justify-content: flex-end; flex-wrap: wrap; }
.text-danger { color: #f87171 !important; }
.text-warn { color: #fbbf24 !important; }
.text-success { color: #4ade80 !important; }
.inv-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.inv-size-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px 6px;
  transition: transform 0.15s, border-color 0.15s;
  cursor: default;
}
.inv-size-pill:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.inv-size-pill.is-oos { opacity: 0.45; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.inv-size-pill.is-avail-only { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.04); }
.inv-size-pill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.inv-size-label { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.inv-size-qty { font-size: 16px; font-weight: 800; color: #f1f5f9; line-height: 1; }
.inv-size-pill-bar { height: 3px; background: linear-gradient(90deg, #6366f1, #06b6d4); border-radius: 2px; min-width: 2px; margin-bottom: 5px; }
.inv-size-pill-sku { font-size: 9px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.inv-size-pill-vel { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.inv-rollup-note { margin-top: 8px; font-size: 11px; color: #64748b; padding: 6px 10px; background: rgba(245,158,11,0.06); border-radius: 6px; border-left: 3px solid rgba(245,158,11,0.4); }

/* =====================================================================
   7-DAY TREND PANEL
   ===================================================================== */
.trend-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 12px 0 16px 0; }
@media (max-width: 700px) { .trend-panel-grid { grid-template-columns: 1fr; } }
.trend-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.trend-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.trend-card-title { font-size: 13px; font-weight: 800; color: #0F172A; }
.trend-card-meta { font-size: 11px; font-weight: 600; color: #64748B; background: #E2E8F0; padding: 2px 8px; border-radius: 4px; }
.trend-card-chart { overflow: visible; margin: 8px 0; }
.trend-card-chart svg { display: block; width: 100%; height: 60px; overflow: visible; }
.trend-card-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #475569; margin-top: 6px; padding: 0 4px; }
.trend-card-foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #334155; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #CBD5E1; }
.product-insights-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-insight-pill { font-size: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.insight-good { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.insight-warn { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.insight-neutral { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.trend-day-table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: 10px; border: 1px solid #E2E8F0; background: #FFFFFF; }
.trend-day-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.trend-day-table th, .trend-day-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #F1F5F9; }
.trend-day-table th { background: #F8FAFC; color: #475569; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #E2E8F0; }
.trend-day-table td { color: #0F172A; font-weight: 600; }
.trend-day-table tr:last-child td { border-bottom: none; }
.trend-day-table tr:hover td { background: #F8FAFC; }

/* =====================================================================
   SCRAPE RUN LOG TABLE
   ===================================================================== */
.scrape-log-table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: 10px; border: 1px solid #E2E8F0; background: #FFFFFF; }
.scrape-log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.scrape-log-table th, .scrape-log-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #F1F5F9; }
.scrape-log-table th { background: #F8FAFC; color: #475569; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #E2E8F0; }
.scrape-log-table td { color: #0F172A; }
.scrape-log-table tr:last-child td { border-bottom: none; }
.scrape-log-table tr:hover td { background: #F8FAFC; }
.log-row-has-errors td { background: rgba(239,68,68,0.04); }
.log-platform-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.log-platform-tag.shopify { background: rgba(99,191,96,0.15); color: #6bbf60; }
.log-platform-tag.myntra { background: rgba(255,63,108,0.15); color: #ff3f6c; }
.log-platform-tag.amazon { background: rgba(255,153,0,0.15); color: #ff9900; }
.log-status-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.log-status-ok { background: rgba(34,197,94,0.12); color: #4ade80; }
.log-status-run { background: rgba(99,102,241,0.15); color: #818cf8; }
.log-status-err { background: rgba(239,68,68,0.12); color: #f87171; }
.log-num { text-align: right; font-variant-numeric: tabular-nums; }
.log-num-err { color: #f87171 !important; font-weight: 700; }
.log-num-good { color: #4ade80 !important; font-weight: 700; }
.log-date { font-size: 10px; white-space: nowrap; }

/* =====================================================================
   CROSS-CHANNEL SIZE AVAILABILITY & ARBITRAGE MATRIX
   ===================================================================== */
.cross-size-matrix-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

.badge-size-system {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-size-system.numeric {
  background: #F5F3FF;
  color: #6D28D9;
  border-color: #DDD6FE;
}

.cross-arbitrage-alerts-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 14px;
}

.cross-arbitrage-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  padding: 10px 14px;
  border-radius: 6px;
  gap: 12px;
}

.arbitrage-alert-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #92400E;
}

.arbitrage-alert-left i {
  color: #D97706;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-rebalance-action {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-rebalance-action:hover {
  background: #B45309;
}

.size-avail-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
}

.size-avail-chip.in-stock {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.size-avail-chip.in-stock i {
  color: #059669;
  width: 12px;
  height: 12px;
}

.size-avail-chip.oos {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.size-avail-chip.oos i {
  color: #DC2626;
  width: 12px;
  height: 12px;
}

.arbitrage-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.arbitrage-chip i {
  color: #EA580C;
  width: 13px;
  height: 13px;
}

.status-chip.success-run {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* AI Model Architecture & Telemetry Card */
.ai-model-telemetry-body {
  padding: 14px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-arch-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #1E293B;
  line-height: 1.4;
}

.model-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.model-metric-tile {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.model-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.model-metric-lbl {
  font-size: 0.68rem;
  color: #64748B;
  text-transform: uppercase;
  margin-top: 2px;
}

.btn-teach-model {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}

.btn-teach-model:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.35);
}

/* =====================================================================
   MATERIALS & COLORS (ATTRIBUTE ANALYTICS) VIEW STYLES
   ===================================================================== */
.materials-hero-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.15fr 1.55fr 1.1fr;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
}

@media (max-width: 1200px) {
  .materials-hero-banner {
    grid-template-columns: 1fr;
  }
}

.materials-hero-left {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.materials-hero-left .hero-breadcrumbs {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #94A3B8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.materials-hero-left .hero-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 6px 0;
}

.materials-hero-left .hero-sub {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.materials-hero-center-visual {
  position: relative;
  height: 155px;
  overflow: hidden;
}

.materials-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.98);
}

.materials-hero-overlay-text {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 1.4px;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.materials-hero-overlay-text .hero-dash {
  font-size: 1.1rem;
  margin-top: 2px;
  line-height: 1;
}

.materials-ai-insight-card {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border-left: 1px solid #BAE6FD;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-insight-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-insight-sparkle {
  width: 15px;
  height: 15px;
  color: #0284C7;
}

.ai-insight-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0369A1;
  letter-spacing: 0.8px;
}

.ai-insight-text {
  font-size: 0.86rem;
  color: #0C4A6E;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0;
}

.ai-insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-insight-stat {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
}

.ai-insight-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
  margin-left: 4px;
}

.ai-insight-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.15s;
}

.ai-insight-btn:hover {
  transform: translateX(2px);
  background: #F8FAFC;
}

.ai-insight-btn i {
  width: 15px;
  height: 15px;
}

/* Sub-Navigation Tabs & Controls */
.materials-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.materials-tabs-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.mat-tab-btn {
  border: none;
  background: transparent;
  color: #475569;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mat-tab-btn:hover {
  color: #0F172A;
}

.mat-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.materials-filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mat-filter-select {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Top 4 KPI Cards */
.materials-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .materials-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.materials-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px 14px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mat-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mat-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
}

.mat-kpi-icon i {
  width: 17px;
  height: 17px;
}

.mat-kpi-growth {
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mat-kpi-growth.green {
  color: #10B981;
}

.mat-kpi-growth.green i {
  width: 12px;
  height: 12px;
}

.mat-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 4px;
}

.mat-kpi-label {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}

.mat-kpi-sparkline {
  height: 24px;
  width: 100%;
  margin-top: 10px;
}

.mat-kpi-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Middle Section 3 Columns */
.materials-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 1150px) {
  .materials-middle-grid {
    grid-template-columns: 1fr;
  }
}

.materials-panel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.panel-subtitle {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
  margin-bottom: 0;
}

.panel-mini-select {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}

.panel-header-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
}

.panel-header-link:hover {
  text-decoration: underline;
}

/* Color Demand List */
.color-demand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.color-demand-row {
  display: grid;
  grid-template-columns: 16px 54px 1fr 48px 52px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.color-dot-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.color-row-name {
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
}

.color-progress-track {
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.color-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.color-row-pct {
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.color-row-delta {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.color-row-delta.green {
  color: #10B981;
}

.color-row-delta.red {
  color: #EF4444;
}

.panel-footer-link {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.panel-footer-link a {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
}

.panel-footer-link a:hover {
  text-decoration: underline;
}

/* Trending Colors Grid */
.trending-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .trending-colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trending-color-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trending-color-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trending-swatch-wrap {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: #F8FAFC;
}

.trending-swatch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-status-tag {
  position: absolute;
  bottom: 7px;
  left: 7px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.trending-status-tag.rising {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.trending-status-tag.accelerating {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.trending-status-tag.emerging {
  background: #FFE4E6;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.trending-status-tag.steady {
  background: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.trending-card-body {
  padding: 10px;
}

.trending-color-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
}

.trending-growth-stat {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 2px 0 6px 0;
}

.trending-meta-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

/* Color Lifecycle List */
.color-lifecycle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lifecycle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 0.78rem;
}

.lifecycle-item:last-child {
  border-bottom: none;
}

.lifecycle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 105px;
}

.lifecycle-name {
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
}

.lifecycle-stage-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.lifecycle-icon {
  width: 20px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.lifecycle-icon.green {
  color: #10B981;
}

.lifecycle-icon.blue {
  color: #2563EB;
}

.lifecycle-icon.teal {
  color: #0D9488;
}

.lifecycle-icon.red {
  color: #EF4444;
}

.lifecycle-icon.gray {
  color: #94A3B8;
}

/* Bottom Section 3 Columns */
.materials-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 1150px) {
  .materials-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* Heatmap Table */
.matrix-heatmap-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.mat-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.mat-matrix-table th {
  padding: 8px 10px;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
}

.mat-matrix-table th:first-child {
  text-align: left;
}

.mat-matrix-table td {
  padding: 8px 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  font-weight: 500;
}

.mat-matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.heat-cell-high {
  background: #FEE2E2;
  color: #991B1B !important;
  font-weight: 700 !important;
  border-radius: 4px;
}

.heat-cell-mid {
  background: #FFF1F2;
  color: #BE123C !important;
  font-weight: 600 !important;
  border-radius: 4px;
}

/* Top Colorway Products */
.top-colorways-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.top-colorway-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F8FAFC;
}

.top-colorway-item:last-child {
  border-bottom: none;
}

.colorway-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.colorway-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #F8FAFC;
}

.colorway-title-wrap {
  display: flex;
  flex-direction: column;
}

.colorway-product-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
}

.colorway-brand-shade {
  font-size: 0.7rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.colorway-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.colorway-growth-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #10B981;
}

.colorway-views-text {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 1px;
}

/* Category Highlight in Matrix Table */
.col-highlight {
  background: rgba(37, 99, 235, 0.07) !important;
  color: #1E40AF !important;
  font-weight: 700 !important;
  border-left: 1px solid rgba(37, 99, 235, 0.2);
  border-right: 1px solid rgba(37, 99, 235, 0.2);
}

th.col-highlight {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
}

/* Sub-Tab Dynamic Studio Containers */
.subtab-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInMat 0.25s ease-in-out;
}

@keyframes fadeInMat {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.subtab-header-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.subtab-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
}

.subtab-header-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 3px;
}

.subtab-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1000px) {
  .subtab-grid-2col {
    grid-template-columns: 1fr;
  }
}

.subtab-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .subtab-grid-3col {
    grid-template-columns: 1fr;
  }
}

.subtab-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .subtab-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.palette-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.palette-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.palette-card-swatch {
  height: 60px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.palette-card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
}

.palette-card-hex {
  font-size: 0.7rem;
  font-family: monospace;
  color: #64748B;
}

.palette-card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #475569;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

/* ==========================================================================
   TRACKED BRANDS DIRECTORY (PIXEL-PERFECT REPLICA)
   ========================================================================== */

.brands-hero-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.brands-hero-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.brands-hero-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717A;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brands-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #18181B;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  line-height: 1.15;
  text-transform: none;
}

.brands-hero-desc {
  font-size: 0.88rem;
  color: #71717A;
  line-height: 1.45;
  margin: 0;
}

.brands-hero-right-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brands-hero-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  mask-image: linear-gradient(90deg, transparent 0%, black 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%);
}

.brands-hero-quote-card {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.brands-quote-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  color: #18181B;
}

.brands-quote-dash {
  font-size: 0.9rem;
  color: #18181B;
  font-weight: 800;
  margin-top: 4px;
}

/* Control & Filter Toolbar (Exact single-row layout) */
.brands-control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.brands-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: nowrap;
}

.brands-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brands-search-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #A1A1AA;
  pointer-events: none;
}

.brands-search-input {
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  background: #FFFFFF;
  color: #18181B;
  width: 155px;
  outline: none;
  transition: border-color 0.15s ease;
}

.brands-search-input:focus {
  border-color: #18181B;
}

.brands-toolbar-select {
  height: 38px;
  padding: 0 24px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  -webkit-appearance: none;
  color: #18181B;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  width: auto !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brands-toolbar-select:focus {
  border-color: #18181B;
}

.brands-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.brands-mode-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #71717A;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.brands-mode-btn:hover {
  background: #F4F4F5;
  color: #18181B;
}

.brands-mode-btn.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.brands-mode-btn svg {
  width: 14px;
  height: 14px;
}

/* Brands 4-Column Grid */
.brands-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 1360px) {
  .brands-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .brands-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Brand Card Anatomy */
.brand-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.brand-card-cover {
  position: relative;
  height: 135px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brand-cover-model {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.brand-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, rgba(255,255,255,0.7) 58%, rgba(255,255,255,0) 85%);
  pointer-events: none;
}

.brand-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  color: #18181B;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 2;
}

.brand-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.15s ease;
}

.brand-heart-btn:hover {
  transform: scale(1.15);
}

.brand-heart-btn.favorited svg {
  fill: #EF4444;
  stroke: #EF4444;
}

.brand-heart-btn svg {
  width: 15px;
  height: 15px;
}

.brand-cover-logo-wrap {
  position: relative;
  z-index: 2;
  padding-left: 14px;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-art-logo {
  font-weight: 800;
  color: #18181B;
  line-height: 1.15;
}

.brand-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #18181B;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-segment-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.seg-tailored {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.seg-casual {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.seg-executive {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.seg-luxury {
  background: #FDF4FF;
  color: #9333EA;
  border: 1px solid #F0ABFC;
}

/* Marketplace Pills */
.brand-mkt-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mkt-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.mkt-pill.mkt-zero {
  color: #94A3B8;
}

.mkt-badge-logo.myntra-m {
  color: #FF3F6C;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: sans-serif;
}

.mkt-badge-logo.amazon-a {
  color: #FF9900;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: sans-serif;
}

.mkt-badge-logo.shopify-s {
  color: #059669;
  display: flex;
  align-items: center;
}

.mkt-pill-more {
  background: #F1F5F9;
  color: #64748B;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid #E2E8F0;
}

/* Brand Stats Row (2 Columns) */
.brand-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 2px;
}

.brand-stat-col {
  display: flex;
  flex-direction: column;
}

.brand-stat-col .stat-caption {
  font-size: 0.72rem;
  color: #71717A;
  font-weight: 500;
  margin-bottom: 2px;
}

.brand-stat-col .stat-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-stat-col .stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18181B;
}

.brand-stat-col .stat-growth {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.brand-stat-col .stat-growth.green {
  color: #10B981;
}

.brand-stat-col .stat-growth.red {
  color: #EF4444;
}

/* Brand Action Buttons */
.brand-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-brand-primary {
  flex: 1;
  height: 38px;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-brand-primary:hover {
  background: #27272A;
}

.btn-brand-options {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-brand-options:hover {
  border-color: #A1A1AA;
  color: #18181B;
}

/* ==========================================================================
   CATEGORIES ASSORTMENT DIRECTORY (PIXEL-PERFECT REPLICA)
   ========================================================================== */

.categories-hero-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.categories-hero-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.categories-hero-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717A;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.categories-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #18181B;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  line-height: 1.15;
  text-transform: none;
}

.categories-hero-desc {
  font-size: 0.88rem;
  color: #71717A;
  line-height: 1.45;
  margin: 0;
}

.categories-hero-right-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.categories-hero-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  mask-image: linear-gradient(90deg, transparent 0%, black 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%);
}

.categories-hero-quote-card {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.categories-quote-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  color: #18181B;
}

.categories-quote-dash {
  font-size: 0.9rem;
  color: #18181B;
  font-weight: 800;
  margin-top: 4px;
}

/* Categories Control Toolbar */
.categories-control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.categories-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: nowrap;
}

.categories-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.categories-search-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #A1A1AA;
  pointer-events: none;
}

.categories-search-input {
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  background: #FFFFFF;
  color: #18181B;
  width: 170px;
  outline: none;
  transition: border-color 0.15s ease;
}

.categories-search-input:focus {
  border-color: #18181B;
}

.categories-toolbar-select {
  height: 38px;
  padding: 0 24px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  -webkit-appearance: none;
  color: #18181B;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  width: auto !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.categories-toolbar-select:focus {
  border-color: #18181B;
}

.categories-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.categories-mode-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #71717A;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.categories-mode-btn:hover {
  background: #F4F4F5;
  color: #18181B;
}

.categories-mode-btn.active {
  background: #18181B;
  color: #FFFFFF;
  border-color: #18181B;
}

.categories-mode-btn svg {
  width: 14px;
  height: 14px;
}

/* Categories 4-Column Cards Grid */
.categories-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 1360px) {
  .categories-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .categories-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Category Card Anatomy */
.category-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.category-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.category-pre-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717A;
  text-transform: uppercase;
}

.category-style-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.cat-badge-blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.cat-badge-rose {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FEE2E2;
}

.cat-badge-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #D1FAE5;
}

.cat-badge-indigo {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #E0E7FF;
}

.cat-badge-amber {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FEF3C7;
}

.category-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18181B;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.category-silhouette-showcase {
  height: 110px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Metric Row 1: Avg Selling Price, Avg Discount, Trend */
.category-metrics-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: center;
  gap: 8px;
}

.cat-top-stat {
  display: flex;
  flex-direction: column;
}

.cat-top-caption {
  font-size: 0.68rem;
  color: #71717A;
  font-weight: 500;
  margin-bottom: 2px;
}

.cat-top-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181B;
}

.cat-top-value.green {
  color: #059669;
}

.cat-spark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.cat-spark-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cat-spark-sub {
  font-size: 0.62rem;
  color: #71717A;
  font-weight: 500;
}

/* Metric Row 2: Total Inventory vs Total SKUs */
.category-metrics-bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  padding: 8px 10px;
}

.cat-bot-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-bot-icon {
  width: 16px;
  height: 16px;
  color: #71717A;
  flex-shrink: 0;
}

.cat-bot-info {
  display: flex;
  flex-direction: column;
}

.cat-bot-caption {
  font-size: 0.65rem;
  color: #71717A;
  font-weight: 500;
}

.cat-bot-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #18181B;
  white-space: nowrap;
}

/* Action Row */
.category-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.btn-category-explore {
  flex: 1;
  height: 36px;
  background: #F4F4F5;
  color: #18181B;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-category-explore:hover {
  background: #E4E4E7;
}

.btn-category-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E4E4E7;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181B;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-category-circle:hover {
  border-color: #18181B;
  background: #F4F4F5;
}





