/* collectors-market/styles.css */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Clean Light Theme Backgrounds */
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-sidebar: #f8fafc;
  
  /* Collect X Branding Color Accents (Black, White, Yellow) */
  --primary: #000000;         /* Bold Black */
  --primary-light: #1e293b;   /* Charcoal Slate */
  --primary-glow: rgba(0, 0, 0, 0.08);
  
  --gold: #d97706;            /* Deep metallic yellow/gold border */
  --gold-light: #f59e0b;      /* Bright logo yellow */
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  /* Text styling (Always Black / Dark Slate) */
  --text-primary: #0a0f1d;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  /* Metallic Yellow Border variables */
  --border-color: #e2e8f0;    /* Soft dividing borders */
  --border-metallic-yellow: #fbbf24;
  --border-focus: #fbbf24;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-metallic: 0 0 10px rgba(245, 158, 11, 0.15);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-metallic-yellow);
}

/* Glassmorphic Navigation with Metallic Yellow bottom border */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--border-metallic-yellow);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Custom CSS COLLECT X Brand Logo */
.logo-collectx {
  background: #000000;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 1.5px solid var(--border-metallic-yellow);
}

.logo-collect-txt {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-collect-txt span {
  color: var(--border-metallic-yellow);
  font-size: 1.55rem;
  font-weight: 900;
  margin-left: 0.15rem;
  font-style: italic;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  display: inline-block;
  transform: skewX(-5deg);
}

.logo-tagline-txt {
  color: #a1a1aa; /* Light gray */
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  line-height: 1;
}

/* Nav search bar styling */
.nav-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid var(--border-color);
  border-radius: 30px;
  padding: 0.25rem 0.5rem 0.25rem 1rem;
  width: 100%;
  max-width: 400px;
  transition: var(--transition-normal);
}

.nav-search:focus-within {
  border-color: var(--border-metallic-yellow);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.nav-search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.nav-search button {
  background: var(--primary); /* Black button */
  border: none;
  color: #ffffff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.nav-search button:hover {
  background: var(--border-metallic-yellow);
  color: #000;
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--border-metallic-yellow);
}

.nav-btn-icon {
  position: relative;
}

.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary); /* Black badge */
  color: #ffffff;
  border: 1px solid var(--border-metallic-yellow);
  font-size: 0.7rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1.5px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-profile-menu:hover {
  border-color: var(--border-metallic-yellow);
  background: #e2e8f0;
}

.user-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-metallic-yellow);
}

.user-role-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.user-role-badge.buyer { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.user-role-badge.seller { background: rgba(16, 185, 129, 0.15); color: #059669; }
.user-role-badge.admin { background: #000000; color: var(--border-metallic-yellow); border: 1px solid var(--border-metallic-yellow); }

/* Role Switcher floating panel with Metallic Yellow Border */
.role-switcher-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.role-switcher-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.role-switch-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.role-switch-btn:hover {
  background: #e2e8f0;
  border-color: var(--border-metallic-yellow);
}

.role-switch-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.role-switch-btn.active span {
  color: var(--border-metallic-yellow);
}

/* Category Slider/Nav */
.categories-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 2rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--border-metallic-yellow);
  background: #f8fafc;
}

.category-tab {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-tab:hover {
  border-color: var(--border-metallic-yellow);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--primary); /* Black tab */
  color: var(--border-metallic-yellow);
  border-color: var(--border-metallic-yellow);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-bottom: 2.5px solid var(--border-metallic-yellow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 4rem;
}

.hero-badge {
  background: var(--border-metallic-yellow);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.hero-btn {
  background: var(--border-metallic-yellow);
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Home Section Layout */
.section-container {
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.75rem;
  background: var(--border-metallic-yellow);
  border-radius: 2px;
}

/* Main Grid & Filters Layout */
.marketplace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Filter Sidebar with Metallic Yellow Border */
.filter-sidebar {
  background: var(--bg-sidebar);
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

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

.filter-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-checkbox:hover {
  color: var(--text-primary);
}

.filter-checkbox input {
  accent-color: var(--border-metallic-yellow);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.price-inputs input {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.price-inputs input:focus {
  border-color: var(--border-metallic-yellow);
}

.clear-filters-btn {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 0.5rem;
}

.clear-filters-btn:hover {
  border-color: var(--border-metallic-yellow);
  color: var(--text-primary);
  background: var(--gold-glow);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Product Card with hover glow */
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-metallic-yellow);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12), 0 0 12px rgba(245, 158, 11, 0.1);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border-color);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.favorite-btn-floating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-color);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.favorite-btn-floating:hover {
  transform: scale(1.1);
  border-color: #ef4444;
  color: #ef4444;
}

.favorite-btn-floating.favorited {
  color: #ef4444;
}

.condition-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.condition-badge.sellado { background: #10b981; color: white; }
.condition-badge.nuevo { background: #3b82f6; color: white; }
.condition-badge.usado { background: #f59e0b; color: white; }
.condition-badge.cajadanada { background: #ef4444; color: white; }
.condition-badge.sincaja { background: #64748b; color: white; }

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
  cursor: pointer;
}

.card-title:hover {
  color: var(--gold);
}

.card-seller {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.card-seller span {
  font-weight: 600;
  color: var(--text-primary);
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border-color);
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.card-btn {
  background: var(--primary); /* Black button */
  border: none;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-btn:hover {
  background: var(--border-metallic-yellow);
  color: #000;
  transform: translateY(-1px);
}

.card-btn.ebay-btn {
  background: #002f87;
  color: white;
}
.card-btn.ebay-btn:hover {
  background: #0056e0;
}

/* Individual Product Page Layout */
.product-details-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-wrapper {
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-main-wrapper:hover {
  border-color: var(--border-metallic-yellow);
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  transition: var(--transition-fast);
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--border-metallic-yellow);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-meta-header {
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 1rem;
}

.product-title-detail {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.product-condition-tag {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.product-brand-category {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.product-price-detail {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stock-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.stock-indicator.in-stock { background: rgba(16, 185, 129, 0.12); color: #059669; }
.stock-indicator.low-stock { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.stock-indicator.out-of-stock { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.seller-profile-card {
  background: var(--bg-sidebar);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.seller-profile-card:hover {
  border-color: var(--border-metallic-yellow);
}

.seller-profile-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.seller-name {
  font-weight: 700;
  color: var(--text-primary);
}

.seller-rating {
  font-size: 0.85rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.action-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-large {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  width: 100%;
}

.btn-large.primary-btn {
  background: var(--primary); /* Black button */
  color: #ffffff;
  border: 1.5px solid var(--border-metallic-yellow);
  box-shadow: var(--shadow-sm);
}
.btn-large.primary-btn:hover {
  background: var(--border-metallic-yellow);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.btn-large.secondary-btn {
  background: #ffffff;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}
.btn-large.secondary-btn:hover {
  border-color: var(--border-metallic-yellow);
  background: var(--bg-card-hover);
}

.btn-large.favorite-action-btn {
  grid-column: span 2;
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-large.favorite-action-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.btn-large.favorite-action-btn.active {
  color: white;
  background: #ef4444;
  border-color: transparent;
}

.btn-large.ebay-action-btn {
  grid-column: span 2;
  background: #002f87;
  color: white;
}
.btn-large.ebay-action-btn:hover {
  background: #004ecc;
  transform: translateY(-2px);
}

/* Tabs for reviews and details */
.product-tabs {
  margin-top: 3rem;
  border-top: 1.5px solid var(--border-color);
}

.tabs-headers {
  display: flex;
  gap: 2rem;
  border-bottom: 1.5px solid var(--border-color);
}

.tab-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 0;
  color: var(--text-secondary);
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-header.active {
  color: var(--gold);
  border-bottom-color: var(--border-metallic-yellow);
}

.tab-content {
  padding: 1.5rem 0;
}

/* Reviews styles */
.reviews-summary-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
  background: #f8fafc;
  border: 2px solid var(--border-metallic-yellow);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.rating-big-box {
  text-align: center;
}

.rating-big-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 1.5rem;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  color: var(--gold-light);
}

.review-comment {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.review-media-gallery {
  display: flex;
  gap: 0.5rem;
}

.review-media-item {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
}

/* Form Review Submit */
.review-form-card {
  background: var(--bg-sidebar);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-form-card:hover {
  border-color: var(--border-metallic-yellow);
}

.review-form-stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1rem;
}

.review-form-stars .star-select.active {
  color: var(--gold-light);
}

.form-textarea {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  width: 100%;
  border-radius: 8px;
  padding: 0.75rem;
  font-family: var(--font-body);
  outline: none;
  min-height: 100px;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--border-metallic-yellow);
}

.form-file-input-wrapper {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-file-upload {
  border: 1.5px dashed var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: inline-block;
  cursor: pointer;
  font-size: 0.85rem;
  background: #ffffff;
  transition: var(--transition-fast);
}

.custom-file-upload:hover {
  border-color: var(--border-metallic-yellow);
  background: var(--bg-card-hover);
}

/* Sliding Drawer Cart with Yellow Metallic Border */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: 420px;
  background: #ffffff;
  border-left: 3px solid var(--border-metallic-yellow);
  z-index: 1001;
  box-shadow: -10px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.cart-drawer-backdrop.open + .cart-drawer, .cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--border-metallic-yellow);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 1rem;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}

.cart-item-details {
  flex-grow: 1;
}

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

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 0.25rem;
}

.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--border-metallic-yellow);
}

.qty-num {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.cart-item-remove:hover {
  color: #ef4444;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1.5px solid var(--border-color);
  background: #f8fafc;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total-line {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1.5px dashed var(--border-color);
  color: var(--text-primary);
}

.cart-checkout-btn {
  margin-top: 1rem;
}

/* Checkout Page Styles with Gold borders */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.checkout-card {
  background: var(--bg-card);
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.checkout-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.5rem;
  color: var(--text-primary);
}

.checkout-form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-form-group.full-width {
  grid-template-columns: 1fr;
}

.checkout-input-wrapper label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.checkout-input-wrapper input, .checkout-input-wrapper select {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-body);
  outline: none;
}

.checkout-input-wrapper input:focus {
  border-color: var(--border-metallic-yellow);
}

/* Stripe Visualizer card styling */
.stripe-payout-visualizer {
  background: #fafafa;
  border: 2.5px solid #6366f1; /* purple/stripe theme border */
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.stripe-payout-visualizer::before {
  content: 'Stripe Connect Payout Simulator';
  position: absolute;
  top: 0;
  right: 0;
  background: #6366f1;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-bottom-left-radius: 6px;
}

.stripe-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.stripe-flow-step {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(99, 102, 241, 0.3);
  padding-bottom: 0.4rem;
  color: var(--text-secondary);
}

.stripe-flow-step:last-child {
  border: none;
}

/* Dashboards Shell (Admin & Seller Panels) */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.dashboard-sidebar {
  background: var(--bg-sidebar);
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  padding: 1rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.db-menu-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.db-menu-item:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.db-menu-item.active {
  background: var(--primary); /* Black menu background */
  color: var(--border-metallic-yellow);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stat cards grid */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--border-metallic-yellow);
}

.stat-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 700;
}
.stat-card-change.up { color: #059669; }
.stat-card-change.down { color: #dc2626; }

/* Dashboard Tables */
.db-table-card {
  background: #ffffff;
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.db-table-header {
  padding: 1.25rem;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.db-table-wrapper {
  overflow-x: auto;
}

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

.db-table th {
  background: #f1f5f9;
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-bottom: 1.5px solid var(--border-color);
}

.db-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.db-table tr:hover td {
  background: #f8fafc;
  color: var(--text-primary);
}

.db-table tr:last-child td {
  border-bottom: none;
}

/* Approval Actions Buttons */
.action-btn-small {
  border: none;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-btn-small.approve { background: #10b981; }
.action-btn-small.approve:hover { background: #059669; }
.action-btn-small.reject { background: #ef4444; }
.action-btn-small.reject:hover { background: #dc2626; }
.action-btn-small.suspend { background: var(--border-metallic-yellow); color: black; }
.action-btn-small.suspend:hover { background: var(--gold); color: white; }

/* Status tags */
.status-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.status-tag.approved, .status-tag.paid, .status-tag.delivered { background: rgba(16, 185, 129, 0.12); color: #059669; }
.status-tag.pending, .status-tag.processing, .status-tag.en_riesgo { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.status-tag.rejected, .status-tag.cancelled, .status-tag.refunded { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.status-tag.shipped { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.status-tag.disputed { background: rgba(168, 85, 247, 0.12); color: #7c3aed; border: 1.5px solid #7c3aed; }

/* Create/Edit Product Form inside dashboards */
.db-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Modal Popup standard with Yellow border */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.modal-content {
  background: #ffffff;
  border: 3px solid var(--border-metallic-yellow);
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  color: var(--text-primary);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-body {
  padding: 1.5rem;
}

/* Subscriptions selector cards */
.subscription-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.sub-plan-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.sub-plan-card:hover {
  border-color: var(--border-metallic-yellow);
  background: var(--bg-card-hover);
}

.sub-plan-card.active {
  border-color: var(--border-metallic-yellow);
  background: var(--gold-glow);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.sub-plan-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.sub-plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.sub-plan-features {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

/* CSS Charts for Admin Overview */
.chart-container {
  height: 220px;
  background: #ffffff;
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-bars-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding-top: 1rem;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-grow: 1;
}

.chart-bar-value {
  width: 28px;
  background: var(--primary); /* Black bars */
  border-top: 2px solid var(--border-metallic-yellow);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: height var(--transition-slow);
  position: relative;
}

.chart-bar-value:hover::before {
  content: attr(data-val);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid var(--border-metallic-yellow);
}

.chart-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Account Profile with Yellow Border */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.profile-card {
  background: var(--bg-card);
  border: 2px solid var(--border-metallic-yellow);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-metallic-yellow);
  margin-bottom: 1rem;
}

/* Footer Section */
footer {
  background: #000000; /* Contrast black footer */
  border-top: 3px solid var(--border-metallic-yellow);
  padding: 3rem 2rem;
  margin-top: 5rem;
  text-align: center;
  color: #a1a1aa;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive elements */
@media(max-width: 1024px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .product-details-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .db-form-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 600px) {
  .navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-search {
    max-width: 100%;
    order: 3;
  }
  .hero-slider {
    height: 300px;
  }
  .hero-content {
    padding: 0 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .subscription-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Shipping Rates & Parcel Cards Styles (Shippo Integrations) */
.shipping-rate-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.shipping-rate-card:hover {
  border-color: var(--border-metallic-yellow);
}

.shipping-rate-card.selected {
  border-color: var(--border-metallic-yellow);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
  background: #fffdf5;
}

/* Print Styles for Shippo Labels */
@media print {
  body * {
    visibility: hidden;
  }
  #global-modal, #global-modal * {
    visibility: visible;
  }
  #global-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  /* Hide print buttons and header inside modal when printing */
  .cart-close-btn, #modal-title, .modal-header, .action-btn-small {
    display: none !important;
  }
}

/* Mobile-first and Responsive Overrides */
@media (max-width: 768px) {
  /* Hide desktop-only nav links to avoid horizontal scroll */
  .nav-links {
    display: none !important;
  }
  
  /* Show mobile-friendly bottom tab bar */
  .mobile-bottom-nav {
    display: flex !important;
  }
  
  /* Add body padding so bottom nav doesn't overlap content */
  body {
    padding-bottom: 75px !important;
  }
  
  /* Stack navbar vertically to fit screen width */
  .navbar {
    flex-direction: column !important;
    gap: 0.6rem !important;
    padding: 0.75rem 1rem !important;
    align-items: center !important;
  }
  
  /* Search input takes full width on mobile */
  .nav-search {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Collapse profiles grids to prevent horizontal overflow */
  .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Compact quick role switcher on mobile */
  .role-switcher-floating {
    bottom: 80px !important; /* Move up to clear the bottom nav */
    right: 10px !important;
    max-width: 180px !important;
    padding: 0.5rem !important;
  }
  
  .role-switcher-title {
    font-size: 0.7rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .role-switch-btn {
    padding: 0.3rem !important;
    font-size: 0.7rem !important;
  }
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #ffffff;
  border-top: 2.5px solid var(--border-metallic-yellow);
  display: none; /* Hidden on desktop */
  justify-content: space-around;
  align-items: center;
  z-index: 1500; /* Stays above sliding drawer overlays */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  padding: 0 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.2rem;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-item span {
  font-size: 0.65rem;
  font-family: var(--font-heading);
}

.mobile-nav-item i {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.mobile-nav-item:hover i, .mobile-nav-item:hover span {
  color: var(--gold-light);
}
