/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* --- THEME SYSTEM & VARIABLES --- */
:root {
  /* Default to Berry Theme */
  --primary: #831c91;
  --primary-rgb: 131, 28, 145;
  --primary-light: #d552a3;
  --primary-dark: #462c7d;
  --primary-bg: #f5e8f8;
  --cream: #fcf0fd;
  --cream-dark: #f0d8f5;
  --warm-white: #fff8ff;
  --brown: #462c7d;
  --brown-light: #831c91;
  --text: #2e1a5a;
  --text-secondary: #462c7d;
  --text-muted: #831c91;
  --text-light: #d552a3;
  --bg: #f9f4fa;
  --bg-card: #ffffff;
  --border: rgba(131, 28, 145, 0.12);
  --border-light: rgba(131, 28, 145, 0.06);
  --error: #c45b5b;
  --success: #6b9e6c;
  --font-family: 'Outfit', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(131, 28, 145, 0.04);
  --shadow-md: 0 12px 32px rgba(131, 28, 145, 0.08);
  --shadow-lg: 0 20px 48px rgba(131, 28, 145, 0.14);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sunset Theme */
body[data-theme="sunset"] {
  --primary: #d63060;
  --primary-rgb: 214, 48, 96;
  --primary-light: #f07090;
  --primary-dark: #a01040;
  --primary-bg: #ffd6e8;
  --cream: #ffe4ee;
  --cream-dark: #ffccd9;
  --warm-white: #fff8fa;
  --brown: #8b2040;
  --brown-light: #c04060;
  --text: #2d0e1e;
  --text-secondary: #6b2040;
  --text-muted: #a06080;
  --text-light: #c890a8;
  --bg: #fcf3f6;
  --bg-card: #ffffff;
  --border: rgba(214, 48, 96, 0.12);
  --border-light: rgba(214, 48, 96, 0.06);
  --error: #d63060;
  --success: #4caf50;
  --shadow-sm: 0 4px 12px rgba(214, 48, 96, 0.04);
  --shadow-md: 0 12px 32px rgba(214, 48, 96, 0.08);
  --shadow-lg: 0 20px 48px rgba(214, 48, 96, 0.14);
}

/* Vintage/Light Theme */
body[data-theme="vintage"] {
  --primary: #c4704b;
  --primary-rgb: 196, 112, 75;
  --primary-light: #d4896a;
  --primary-dark: #a85a38;
  --primary-bg: #fdf5f0;
  --cream: #faf3eb;
  --cream-dark: #f0e4d4;
  --warm-white: #fffbf7;
  --brown: #5c3d2e;
  --brown-light: #8b6b5a;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --text-muted: #9e9893;
  --text-light: #b8b2ac;
  --bg: #f7f4f0;
  --bg-card: #ffffff;
  --border: rgba(196, 112, 75, 0.12);
  --border-light: rgba(196, 112, 75, 0.06);
  --error: #c45b5b;
  --success: #6b9e6c;
  --shadow-sm: 0 4px 12px rgba(196, 112, 75, 0.04);
  --shadow-md: 0 12px 32px rgba(196, 112, 75, 0.08);
  --shadow-lg: 0 20px 48px rgba(196, 112, 75, 0.14);
}

/* --- RESET & LAYOUT --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 85px; /* Space for mobile bottom nav */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Animated Mesh Gradient Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(241, 99, 136, 0.4) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 60%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.25) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, 5%) scale(1.05);
  }
  66% {
    transform: translate(-5%, 2%) scale(0.95);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: transparent;
}

/* --- HEADER & TOPBAR --- */
.top-bar {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.top-bar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  letter-spacing: -1px;
  position: relative;
  transition: var(--transition);
  user-select: none;
}

.logo:hover {
  transform: scale(1.03);
}

.logo:hover .logo-dot {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

/* "T" — bold sans-serif for contrast */
.logo-T {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "hrift" — italic serif for elegance */
.logo-word-thrift {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "It" — bold modern sans-serif for contrast */
.logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-style: normal;
  background: linear-gradient(135deg, var(--brown) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated accent dot */
.logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-left: 2px;
  margin-bottom: 2px;
  vertical-align: baseline;
  transition: var(--transition);
  box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3);
  animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Desktop Navigation Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav-item {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 4px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-nav-item:hover {
  color: var(--primary);
}

.desktop-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

/* Header Search Bar (Desktop only) */
.header-search-container {
  display: none; /* hidden on mobile */
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 24px;
  transition: var(--transition);
}

.header-search-container:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

.header-search-container .search-icon {
  color: var(--primary);
  margin-right: 10px;
  flex-shrink: 0;
}

.header-search-container input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  outline: none;
}

/* Icon button active states */
.icon-btn.active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 768px) {
  .header-search-container {
    display: flex;
  }
}

/* --- HEADER INLINE PRICE FILTERS (Desktop only) --- */
.header-price-filters {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.04);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
  .header-price-filters {
    display: flex;
  }
}

.sub-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
  white-space: nowrap;
}

/* Price filter pills */
.price-pill {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.price-pill:hover {
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  transform: translateY(-0.5px);
}

.price-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.25);
  transform: scale(1.02);
}

/* --- CONDITION INFO BUTTON (Desktop only) --- */
.condition-info-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .condition-info-btn {
    display: flex;
  }
}

.condition-info-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.1);
}

.cond-dot-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cond-dot-inline::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--dot);
  flex-shrink: 0;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0 24px 0; /* extra padding for iOS home indicator */
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.mobile-nav-item svg {
  transition: var(--transition);
  color: var(--text-light);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active svg {
  transform: scale(1.1);
  color: var(--primary);
}

/* Responsive visibility rules */
@media (min-width: 768px) {
  .top-bar {
    padding: 14px 40px;
  }
  
  .desktop-nav {
    display: flex;
  }
  
  .mobile-bottom-nav {
    display: none;
  }
}

/* Theme Switcher */
.theme-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.05);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.theme-select-wrapper:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-1px);
}

.theme-select-wrapper select {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  padding-right: 4px;
  appearance: none;
  -webkit-appearance: none;
}

/* Icons & Badges */
.icon-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-btn:active {
  transform: translateY(0);
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-card);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5); }
  100% { transform: scale(1); }
}

/* --- MAIN VIEWS CONTAINER --- */
main {
  flex: 1;
  padding: 20px 24px 60px 24px;
  background: transparent;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CATEGORY BAR --- */
.category-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary);
}

.category-pill:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0.1));
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
  transform: translateY(-1px);
}

/* --- FEATURED BOARD --- */
/* --- HERO BANNER (THEMED) --- */
.hero-banner-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-grid-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-grid-top {
    grid-template-columns: 2fr 1fr;
  }
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.hero-card.bg-primary {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero-card.bg-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-card.bg-danger {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(225, 29, 72, 0.02));
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.hero-card.bg-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.2);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.hero-heading {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -1px;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-heading { font-size: 44px; }
}

.hero-subheading {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 80%;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
}

.hero-btn.primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.hero-btn.secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-btn.secondary:hover {
  background: var(--bg-hover);
}



.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-top h3, .hero-side-bottom h3, .hero-bottom-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-side-top p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  color: var(--primary);
}

.sale-badge {
  display: inline-block;
  background: #e11d48;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.hero-bottom-content p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.featured-board {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.featured-board-header {
  margin-bottom: 20px;
}

.featured-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.featured-title-wrapper h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
}

.featured-badge {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.featured-subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin: 0;
}

.featured-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.2) transparent;
}

.featured-scroll-track::-webkit-scrollbar {
  height: 6px;
}

.featured-scroll-track::-webkit-scrollbar-track {
  background: transparent;
}

.featured-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-full);
}

.featured-scroll-track::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.3);
}

/* Featured Card Sizing */
.featured-scroll-track .product-card {
  width: 240px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* --- SECTION HEADERS --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.see-all-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.see-all-link:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

@media(min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media(min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



/* --- PRODUCT CARD --- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.card-image-wrap {
  position: relative;
  padding-bottom: 125%; /* Slightly taller portrait */
  background: var(--cream);
  overflow: hidden;
}

.card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.condition-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
}

.condition-tag.new-with-tags { background: #e8f5e9; color: #2e7d32; }
.condition-tag.new-without-tags { background: #e3f2fd; color: #1565c0; }
.condition-tag.very-good { background: #f3e5f5; color: #7b1fa2; }
.condition-tag.good { background: #fff3e0; color: #e65100; }
.condition-tag.fair { background: #ffebee; color: #c62828; }
/* Legacy condition mappings */
.condition-tag.like-new { background: #e8f5e9; color: #2e7d32; }
.condition-tag.well-loved { background: #ffebee; color: #c62828; }

.heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.heart-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(255, 59, 48, 0.15);
}

.heart-btn.liked {
  color: #ff3b30;
}

.card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-seller {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.thrift-price {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
}

.original-price {
  font-size: 13px;
  color: #000000;
  text-decoration: line-through;
  font-weight: 500;
}

/* --- SELLER CARD MANAGEMENT --- */
.seller-card-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.seller-card-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.seller-card-wrapper .product-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.seller-card-wrapper .product-card:hover {
  transform: none;
  box-shadow: none;
}

/* Sold state */
.seller-card-wrapper.sold {
  opacity: 0.7;
  border-color: rgba(76, 175, 80, 0.3);
}

.seller-card-wrapper.sold:hover {
  opacity: 1;
}

.seller-card-wrapper.sold .card-image-wrap img {
  filter: grayscale(40%) brightness(0.9);
}

/* Sold Badge Overlay */
.sold-badge-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.sold-badge-overlay span {
  background: #4caf50;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  padding: 8px 28px;
  border-radius: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
  transform: rotate(-6deg);
}

/* Action Bar */
.seller-actions-bar {
  display: flex;
  border-top: 1px solid var(--border-light);
  background: rgba(var(--primary-rgb), 0.02);
}

.seller-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.seller-action-btn + .seller-action-btn {
  border-left: 1px solid var(--border-light);
}

/* Edit button */
.seller-action-btn.edit {
  color: #2196f3;
}

.seller-action-btn.edit:hover {
  background: rgba(33, 150, 243, 0.08);
  color: #1565c0;
}

/* Mark Sold button */
.seller-action-btn.sold {
  color: #4caf50;
}

.seller-action-btn.sold:hover {
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
}

.seller-action-btn.sold.active {
  color: white;
  background: #4caf50;
}

.seller-action-btn.sold.active:hover {
  background: #388e3c;
}

/* Delete button */
.seller-action-btn.delete {
  color: #ef5350;
}

.seller-action-btn.delete:hover {
  background: rgba(239, 83, 80, 0.08);
  color: #c62828;
}


/* --- EXPLORE VIEW --- */
.search-wrapper {
  margin-top: 20px;
  margin-bottom: 24px;
}

.search-input-container {
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-container:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--primary);
  margin-right: 12px;
}

.search-input-container input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* Filters & Hashtags */
.filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hashtag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag-chip {
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  transform: scale(1.03);
}

.tag-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.filter-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: #ffffff;
  border-color: var(--primary);
}

.filter-pill.active {
  background: var(--brown);
  color: white;
  border-color: var(--brown);
  box-shadow: 0 4px 12px rgba(70, 44, 125, 0.2);
}

/* --- WISHLIST VIEW --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 64px 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  margin-top: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-state:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 8px;
  animation: floatIcon 3.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(255, 59, 48, 0.15));
}

@keyframes floatIcon {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.empty-state h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.empty-state p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 320px;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.browse-btn, .primary-btn {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.browse-btn:hover, .primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.browse-btn:active, .primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0);
}

/* --- PROFILE & AUTH --- */
.profile-header-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-header-card.guest {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

.profile-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: white;
  transition: var(--transition);
}

.profile-avatar-wrapper.guest {
  background: rgba(var(--primary-rgb), 0.05);
  border: 2px dashed rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
}

.profile-avatar-wrapper.authenticated {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.profile-header-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.profile-header-info p {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  margin: 0;
}

/* Guest CTA Overlay inside Header */
.profile-cta-box {
  background: linear-gradient(135deg, var(--brown) 0%, var(--primary) 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: white;
  margin-top: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.profile-cta-box h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.profile-cta-box p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 420px;
}

.login-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.login-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.login-btn-premium svg {
  transition: var(--transition);
}

.login-btn-premium:hover svg {
  transform: translateX(2px);
}

/* Authenticated Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.profile-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- SELLER DASHBOARD --- */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.dashboard-welcome h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.dashboard-welcome p {
  color: var(--text-secondary);
  font-size: 14px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border-color: var(--primary-light);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

/* Empty State Styling */
.dashboard-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: rgba(var(--primary-rgb), 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.dashboard-empty-state svg {
  margin-bottom: 16px;
  color: var(--text-light);
}

.dashboard-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dashboard-empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 300px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- DASHBOARD INLINE SETTINGS --- */
.dashboard-settings-section {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.dashboard-settings-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  background-size: 200% 100%;
  animation: gradientFlow 3s linear infinite;
}

.dashboard-settings-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.dashboard-settings-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-settings-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.dashboard-settings-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

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

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

.dashboard-setting-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-setting-card:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.08);
  transform: translateY(-2px);
}

.setting-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.setting-card-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.setting-card-input {
  width: 100%;
  background: rgba(var(--primary-rgb), 0.03);
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.25s ease;
  font-family: inherit;
}

.setting-card-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

.setting-card-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
  font-weight: 500;
}

/* Toggle Switch */
.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(var(--primary-rgb), 0.03);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.setting-toggle-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.dashboard-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.profile-stat-box {
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  transition: var(--transition);
}

.profile-stat-box:hover {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-1px);
}

.profile-stat-box.highlight {
  background: var(--primary-bg);
  border-color: rgba(var(--primary-rgb), 0.12);
}

.profile-stat-box .stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.profile-stat-box .stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Settings Menu List (iOS style) */
.settings-menu-list {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.settings-menu-item:last-child {
  border-bottom: none;
}

.settings-menu-item.no-hover {
  cursor: default;
}

.settings-menu-item:not(.no-hover):hover {
  background: rgba(var(--primary-rgb), 0.03);
}

.settings-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

/* Settings Colors */
.settings-menu-icon.seller { background: rgba(255, 62, 108, 0.1); color: #ff3e6c; }
.settings-menu-icon.register { background: rgba(131, 28, 145, 0.1); color: var(--primary); }
.settings-menu-icon.theme { background: rgba(245, 127, 23, 0.1); color: #f57f17; }
.settings-menu-icon.help { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.settings-menu-icon.logout { background: rgba(211, 47, 47, 0.1); color: #d32f2f; }

.settings-menu-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.settings-menu-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.settings-menu-desc {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 1px;
}

.settings-menu-chevron {
  color: var(--text-light);
  transition: var(--transition);
  margin-left: 10px;
}

.settings-menu-item:not(.no-hover):hover .settings-menu-chevron {
  color: var(--primary);
  transform: translateX(3px);
}

/* Theme selector in settings */
.settings-menu-item .theme-select-wrapper {
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
}

.settings-menu-item select {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  outline: none;
}

/* (Bottom nav style block removed, refactored to responsive top-nav) */

/* --- MODALS & OVERLAYS --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 26, 90, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(var(--primary-rgb), 0.05);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.close-modal:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: scale(1.05);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: center;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

/* WIZARD & STEPS */
.step-indicator {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-main);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  margin-bottom: 16px;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.02);
}

.file-input-hidden {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.upload-content p {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-light);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.image-preview-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: grab;
  transition: transform 0.2s, border-color 0.2s;
}

.image-preview-item:active {
  cursor: grabbing;
}

.image-preview-item.drag-over {
  border: 2px dashed var(--primary);
  transform: scale(0.95);
  opacity: 0.8;
}

/* Make first item large */
.image-preview-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

@media (min-width: 600px) {
  .image-preview-item:first-child {
    aspect-ratio: 3 / 1;
  }
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* Prevents ghost image drag bug */
}

.image-preview-item.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--border);
  background: var(--bg-main);
  cursor: default;
}

.cover-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(var(--primary-rgb), 0.9);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  pointer-events: none;
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-weight: bold;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.delete-btn:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: scale(1.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-tabs {
  display: flex;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.role-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.role-card {
  flex: 1;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.role-card.active {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: var(--shadow-sm);
}

.role-card h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.role-card p {
  font-size: 11px;
  color: var(--text-light);
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* --- PRODUCT DETAILS PAGE (MYNTRA STYLE) --- */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.p-detail-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 60px;
}

.p-detail-images {
  position: relative;
  width: 100%;
}

.images-stack {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.images-stack::-webkit-scrollbar {
  display: none;
}

.p-detail-img-card {
  position: relative;
  width: 85%;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding-bottom: 110%; /* Tall ratio */
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.p-detail-img-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-detail-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.p-brand-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.p-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.p-handle {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 700;
  margin-left: 8px;
}

.p-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.p-title {
  font-size: 26px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  flex: 1;
}

.share-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.15);
}

.share-btn:active {
  transform: scale(0.95);
}

.p-ratings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  align-self: flex-start;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
}

.p-ratings-badge .divider {
  color: var(--border);
  margin: 0 4px;
}

.p-ratings-badge .ratings-count {
  color: #000000;
  font-weight: 500;
}

.p-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 18px 0;
}

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

.p-thrift-price {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
}

.p-original-price {
  font-size: 18px;
  color: #000000;
  text-decoration: line-through;
  font-weight: 500;
}

.p-discount-percent {
  font-size: 18px;
  color: #000000;
  font-weight: 700;
}

.p-tax-info {
  font-size: 11px;
  color: var(--success);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.p-size-section {
  margin-bottom: 24px;
}

.p-section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.size-selector-row {
  display: flex;
  gap: 12px;
}

.size-circle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: white;
  color: var(--text-secondary);
  transition: var(--transition);
}

.size-circle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.size-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.p-action-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.p-add-bag-btn {
  display: flex;
  flex: 3;
  background: #ff3e6c;
  color: white !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 62, 108, 0.25);
  transition: var(--transition);
}

.p-add-bag-btn:hover {
  background: #e6345e;
  box-shadow: 0 6px 22px rgba(255, 62, 108, 0.35);
  transform: translateY(-2px);
}

.p-add-bag-btn:active {
  transform: translateY(0);
}

.p-wishlist-btn {
  flex: 2;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.p-wishlist-btn:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  background: var(--warm-white);
}

.p-wishlist-btn:active {
  transform: translateY(0);
}

.p-desc-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
}

/* Back button in top left over images */
.back-panel-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  z-index: 10;
  transition: var(--transition);
}

.back-panel-btn:hover {
  transform: scale(1.05);
  background: white;
}

/* Widescreen splits (tablet/desktop) */
@media(min-width: 768px) {
  .p-detail-container {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
  
  .p-detail-images {
    width: 58%;
  }

  .images-stack {
    display: block;
    width: 100%;
  }

  .p-detail-img-card {
    width: 100%;
    scroll-snap-align: none;
    padding-bottom: 125%;
  }

  .p-detail-img-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }

  .p-detail-info {
    width: 42%;
    position: sticky;
    top: 90px; /* Header space offset */
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
  }
  
  /* Pinned back button only needed on mobile swipe interface */
  .back-panel-btn {
    display: none;
  }
}

/* Toast Messages */
.toast-msg {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #23123b;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.toast-msg.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Premium Seller Profile Card */
.p-seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.p-seller-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.seller-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.seller-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.12);
}

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

.seller-name-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.seller-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.2px;
}

.verified-check {
  color: #1da1f2;
  display: flex;
  align-items: center;
}

.verified-check svg {
  width: 12px;
  height: 12px;
}

.p-seller-card .seller-handle {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  background: transparent;
}

/* Seller Trust Metrics */
.seller-trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.trust-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.trust-tag.feedback {
  background: #e3f2fd;
  color: #0d47a1;
}

.trust-tag.verified {
  background: #e8f5e9;
  color: #2e7d32;
}

.trust-tag.speed {
  background: #fff3e0;
  color: #e65100;
}

/* Quality & Condition Badge styling */
.p-quality-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.quality-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.p-quality-row .condition-tag {
  position: static;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin: 0;
}

.quality-score-badge {
  background: var(--primary-bg);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
}

/* --- NOTIFICATION DRAWER --- */
.overlay.drawer-overlay {
  display: none;
  justify-content: flex-end; /* Align drawer to the right */
  align-items: stretch;
  padding: 0;
}

.overlay.drawer-overlay.active {
  display: flex;
}

.drawer-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  border-left: 1px solid var(--border);
  animation: slideInDrawer 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.drawer-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
}

.close-drawer {
  background: rgba(var(--primary-rgb), 0.05);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.close-drawer:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: scale(1.05);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-1px);
}

.notification-item.unread {
  background: rgba(var(--primary-rgb), 0.04);
  border-color: rgba(var(--primary-rgb), 0.1);
  border-left: 3px solid var(--primary);
}

.notif-icon {
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  margin-top: 2px;
}

.notif-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.notif-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-time {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

.clear-all-btn {
  width: 100%;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.clear-all-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- NEWS & ANNOUNCEMENTS BANNER --- */
.news-banner {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out;
}

.news-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.news-badge {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.news-text {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.news-text strong {
  font-weight: 700;
  color: var(--primary);
}

.close-news-banner {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.close-news-banner:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: scale(1.1);
}

/* --- LABEL WITH LINK (Form helper) --- */
.label-with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.condition-guide-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.condition-guide-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* --- CONDITION GUIDE MODAL --- */
.condition-guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.cg-item {
  border-left: 4px solid var(--cg-color, var(--primary));
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
}

.cg-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.cg-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--cg-color, var(--text));
  margin-bottom: 4px;
}

.cg-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 4px;
}

.cg-item em {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.4;
}

/* --- PREMIUM FOOTER --- */
.site-footer {
  margin-top: auto;
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 60px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  flex: 1;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .footer-links-grid {
    justify-content: flex-start;
  }
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.footer-link-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-link-col a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.footer-link-col a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.footer-quote {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
  font-style: italic;
  text-align: center;
  opacity: 0.85;
  font-family: var(--font-family);
  letter-spacing: 0.15px;
  line-height: 1.4;
  padding: 0 10px;
}

/* --- FILTERS ACCORDION --- */
.filters-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.filters-header:hover {
  background: rgba(255, 255, 255, 0.8);
}

.filters-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-main);
}

#filters-chevron {
  transition: transform 0.3s ease;
}

#filters-chevron.open {
  transform: rotate(180deg);
}

.filters-content {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

#explore-price-slider {
  flex: 1;
  accent-color: var(--primary);
}

.price-display {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  text-align: right;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
}

/* --- DRAWER FILTERS --- */
.filter-accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.filter-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: var(--transition);
}

.filter-accordion-header:hover {
  background: rgba(var(--primary-rgb), 0.05);
}

.filter-accordion-header span {
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.filter-accordion-header .chevron {
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.filter-accordion-header .chevron.open {
  transform: rotate(180deg);
}

.filter-accordion-content {
  padding: 0 24px 20px 24px;
  display: none;
}

.filter-accordion-content.open {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

/* STATIC PAGES CSS */
.static-page-content {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 48px;
  margin: 60px auto;
  max-width: 800px;
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.static-page-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  background-size: 200% 100%;
  animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.static-page-content h1 {
  font-size: 42px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
}

.static-page-content h3 {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.static-page-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.static-page-content ul, 
.static-page-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 17px;
}

.static-page-content li {
  margin-bottom: 14px;
}

.static-page-content strong {
  color: var(--text);
  font-weight: 700;
}

.static-page-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: opacity 0.2s ease;
}

.static-page-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.static-page-content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* FAQ Section Divider */
.faq-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  position: relative;
}

.faq-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.15), transparent);
}

.faq-section-divider svg {
  color: var(--primary);
  flex-shrink: 0;
  opacity: 0.7;
}

.faq-section-divider span {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.faq-item.active {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(var(--primary-rgb), 0.18);
  transform: translateY(-4px);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .chevron {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
  color: var(--text-light);
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 50%;
  padding: 6px;
  width: 32px;
  height: 32px;
}

.faq-item:hover .faq-question .chevron {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.faq-item.active .faq-question .chevron {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-inner {
  padding: 0 28px 28px 28px;
}

.faq-answer-inner p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .static-page-content {
    margin: 20px;
    padding: 24px;
  }
}

/* --- SELLER STORE VIEW --- */
.store-banner-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}
.store-banner-bg {
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.store-banner-content {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.store-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background-color: #ffffff;
  margin-top: -45px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}
.store-info {
  margin-bottom: 16px;
}
.store-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.store-title-row h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.store-handle {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}
.store-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.store-stat-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 171, 0, 0.15);
  color: #c98800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}
.store-stat-text {
  font-size: 14px;
  color: var(--text-light);
}
.store-stat-text b {
  color: var(--text-dark);
}
.store-bio {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  max-width: 600px;
}
.store-follow-btn {
  align-self: flex-start;
  min-width: 120px;
}

@media (max-width: 767px) {
  .modal-content {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }
}

/* --- HERO CANVAS CARD (ANTI-GREED CARD) --- */
.hero-canvas-card {
  width: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-canvas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 90%);
}

.hero-canvas-glow-1 {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(50px);
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: transform 0.8s ease;
}

.hero-canvas-card:hover .hero-canvas-glow-1 {
  transform: translate(20px, 20px) scale(1.1);
}

.hero-canvas-glow-2 {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.6);
  filter: blur(50px);
  pointer-events: none;
  transition: transform 0.8s ease;
}

.hero-canvas-card:hover .hero-canvas-glow-2 {
  transform: translate(-20px, -20px) scale(1.1);
}

.hero-canvas-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-canvas-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-canvas-title {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-title-highlight {
  color: #ffe066;
  text-shadow: 0 0 20px rgba(255, 224, 102, 0.3);
}

.hero-title-dot {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 14px;
  font-size: 1.75rem;
  vertical-align: middle;
}

.hero-canvas-disclaimer {
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-canvas-disclaimer::before,
.hero-canvas-disclaimer::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}

@media (max-width: 768px) {
  .hero-canvas-card {
    min-height: auto;
    padding: 36px 20px;
  }
  
  .hero-canvas-title {
    font-size: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
  }
  
  .hero-title-dot {
    display: none;
  }
  
  .hero-canvas-badge {
    font-size: 9.5px;
    padding: 4px 12px;
    margin-bottom: 16px;
  }
  
  .hero-canvas-disclaimer {
    font-size: 0.8rem;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 280px;
    flex-direction: column;
    gap: 4px;
  }
  
  .hero-canvas-disclaimer::before,
  .hero-canvas-disclaimer::after {
    display: none;
  }
}

/* --- THEMED BACK BUTTON --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.back-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(-3px);
  box-shadow: var(--shadow-md);
  background: var(--primary-bg);
}

.back-btn svg {
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

/* --- PREMIUM SINGLE SIZE BADGE --- */
.single-size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: default;
}

.single-size-badge:hover {
  background: var(--primary-bg);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* --- PREMIUM ACCOUNT SETTINGS CARD & GRID --- */
@media (min-width: 768px) {
  .account-settings-grid {
    grid-template-columns: 280px 1fr !important;
    align-items: start;
  }
}

.account-settings-grid input {
  transition: var(--transition) !important;
}

.account-settings-grid input:focus {
  border-color: var(--primary) !important;
  background: white !important;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1) !important;
}

#account-avatar-preview {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.profile-header-card:hover #account-avatar-preview {
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--shadow-lg) !important;
}

/* Featured Board Promotion Banner Hover Effect */
.featured-promo-banner {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.featured-promo-banner:hover {
  transform: translateY(-2px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.12) !important;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
