/* ==========================================================================
   SHOP LANDING PAGE - Modern E-commerce Design
   ========================================================================== */

/* Landing Page Container */
.shop-landing {
  min-height: 100vh;
  background-color: #09090b;
  background-color: var(--color-background, #09090b);
}

/* ==========================================================================
   3D Showcase Carousel
   ========================================================================== */

.showcase-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.showcase-header {
  text-align: center;
  margin-bottom: 2rem;
}

.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.showcase-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f4f4f5;
  margin: 0;
}

.showcase-container {
  position: relative;
  height: 460px;
  perspective: 1200px;
  overflow: visible;
}

.showcase-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Individual showcase items */
.showcase-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 420px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.showcase-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
}

.showcase-item.far-prev {
  transform: translate(calc(-50% - 480px), -50%) rotateY(45deg) scale(0.6);
  opacity: 0.3;
  z-index: 1;
  filter: blur(2px);
}

.showcase-item.prev {
  transform: translate(calc(-50% - 260px), -50%) rotateY(35deg) scale(0.8);
  opacity: 0.7;
  z-index: 2;
}

.showcase-item.active {
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 5;
}

.showcase-item.next {
  transform: translate(calc(-50% + 260px), -50%) rotateY(-35deg) scale(0.8);
  opacity: 0.7;
  z-index: 2;
}

.showcase-item.far-next {
  transform: translate(calc(-50% + 480px), -50%) rotateY(-45deg) scale(0.6);
  opacity: 0.3;
  z-index: 1;
  filter: blur(2px);
}

/* Showcase card */
.showcase-card {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #18181b 0%, #111113 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid #27272a;
  transition: all 0.4s ease;
}

.showcase-item.active .showcase-card {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 60px -15px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
}

.showcase-item.active .showcase-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(59, 130, 246, 0.4);
}

/* Showcase image */
.showcase-image {
  position: relative;
  height: 200px;
  background: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.showcase-item.active .showcase-image img {
  animation: float 3s ease-in-out infinite;
}

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

.showcase-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-item.active .showcase-glow {
  opacity: 1;
}

/* Showcase info */
.showcase-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.showcase-badge.best {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.showcase-badge.deal {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.showcase-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Showcase description - visible */
.showcase-desc {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.showcase-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.showcase-price .price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
}

.showcase-price .price-currency {
  font-size: 1rem;
  color: #a1a1aa;
}

.showcase-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.showcase-item.active .showcase-cta {
  opacity: 1;
  transform: translateY(0);
}

.showcase-item.active .showcase-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Navigation arrows */
.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.9);
  border: 1px solid #27272a;
  color: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.showcase-nav:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-50%) scale(1.1);
}

.showcase-nav.prev {
  left: 1rem;
}

.showcase-nav.next {
  right: 1rem;
}

/* Progress dots */
.showcase-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27272a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-dot:hover {
  background: #3f3f46;
}

.progress-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

/* Empty state */
.showcase-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #71717a;
}

.showcase-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase-container {
    height: 380px;
  }

  .showcase-item {
    width: 240px;
    height: 340px;
  }

  .showcase-item.far-prev,
  .showcase-item.far-next {
    display: none;
  }

  .showcase-item.prev {
    transform: translate(calc(-50% - 180px), -50%) rotateY(30deg) scale(0.75);
  }

  .showcase-item.next {
    transform: translate(calc(-50% + 180px), -50%) rotateY(-30deg) scale(0.75);
  }
}

@media (max-width: 768px) {
  .showcase-container {
    height: 360px;
  }

  .showcase-item {
    width: 220px;
    height: 320px;
  }

  .showcase-item.prev,
  .showcase-item.next {
    opacity: 0.5;
    transform: translate(calc(-50% - 120px), -50%) rotateY(25deg) scale(0.7);
  }

  .showcase-item.next {
    transform: translate(calc(-50% + 120px), -50%) rotateY(-25deg) scale(0.7);
  }

  .showcase-nav {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .showcase-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .showcase-title {
    font-size: 1.5rem;
  }

  .showcase-container {
    height: 340px;
  }

  .showcase-item {
    width: 200px;
    height: 300px;
  }

  .showcase-item.prev,
  .showcase-item.next {
    display: none;
  }

  .showcase-nav.prev {
    left: 0.5rem;
  }

  .showcase-nav.next {
    right: 0.5rem;
  }

  .showcase-info {
    padding: 1rem;
  }

  .showcase-name {
    font-size: 0.875rem;
  }

  .showcase-price .price-value {
    font-size: 1.5rem;
  }
}

/* Hero CTA Button (used in empty states) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.hero-cta:hover {
  background: #2563eb;
  transform: translateY(-2px);
  color: white;
}

/* Light mode adjustments */
[data-theme="light"] .shop-landing {
  background-color: #f8fafc;
}

[data-theme="light"] .showcase-title {
  color: #0f172a;
}

[data-theme="light"] .showcase-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
}

[data-theme="light"] .showcase-image {
  background: #f1f5f9;
}

[data-theme="light"] .showcase-name {
  color: #0f172a;
}

[data-theme="light"] .showcase-desc {
  color: #64748b;
}

[data-theme="light"] .product-desc {
  color: #64748b;
}

[data-theme="light"] .showcase-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .progress-dot {
  background: #e2e8f0;
}

[data-theme="light"] .progress-dot:hover {
  background: #cbd5e1;
}

[data-theme="light"] .category-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .category-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .pill-count {
  background: #f1f5f9;
}

[data-theme="light"] .deals-ribbon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(249, 115, 22, 0.03) 100%);
  border-color: rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .arrivals-ribbon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .ribbon-title {
  color: #0f172a;
}

[data-theme="light"] .ribbon-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

[data-theme="light"] .product-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .product-img {
  background: #f1f5f9;
}

[data-theme="light"] .product-name {
  color: #0f172a;
}

[data-theme="light"] .spec-tag {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .quick-view {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .bottom-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .stat-pill,
[data-theme="light"] .feature-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .section-title,
[data-theme="light"] .section-title-sm {
  color: #0f172a;
}

/* ==========================================================================
   Compact Category Bar
   ========================================================================== */

.category-bar {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.category-bar-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

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

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 2rem;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: #27272a;
  color: #f4f4f5;
  border-color: #3b82f6;
}

.category-pill i {
  font-size: 0.75rem;
  color: #3b82f6;
}

.pill-count {
  background: #27272a;
  padding: 0.125rem 0.375rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  color: #71717a;
}

.category-pill:hover .pill-count {
  background: #3b82f6;
  color: white;
}

/* ==========================================================================
   Deals & Arrivals Ribbons
   ========================================================================== */

.deals-ribbon,
.arrivals-ribbon {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
}

.deals-ribbon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.arrivals-ribbon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.2);
}

.ribbon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ribbon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f4f4f5;
}

.deals-ribbon .ribbon-title i {
  color: #ef4444;
}

.arrivals-ribbon .ribbon-title i {
  color: #3b82f6;
}

.ribbon-nav {
  display: flex;
  gap: 0.375rem;
}

.ribbon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ribbon-btn:hover {
  background: #3b82f6;
  color: white;
}

.ribbon-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  justify-content: center;
}

.ribbon-scroll::-webkit-scrollbar {
  display: none;
}

.ribbon-scroll .product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

/* When ribbon has many items, align to start for scrolling */
.ribbon-scroll:has(.product-card:nth-child(7)) {
  justify-content: flex-start;
}

/* Fallback for browsers without :has() - use JS class */
.ribbon-scroll.has-scroll {
  justify-content: flex-start;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

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

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #27272a;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f4f4f5;
  margin: 0;
}

.section-title-sm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0;
}

.section-title i,
.section-title-sm i {
  color: #3b82f6;
  font-size: 0.875rem;
}

.view-all {
  color: #3b82f6;
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.view-all:hover {
  text-decoration: underline;
}

.section-nav {
  display: flex;
  gap: 0.375rem;
}

.scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.scroll-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* ==========================================================================
   Category Products Section
   ========================================================================== */

.category-products-section {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Product Grids
   ========================================================================== */

/* Standard product grid - used in category/search pages */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.product-grid .product-card {
  flex: 0 1 180px;
  max-width: 220px;
}

@media (min-width: 768px) {
  .product-grid .product-card {
    flex: 0 1 200px;
    max-width: 240px;
  }
}

@media (min-width: 1200px) {
  .product-grid .product-card {
    flex: 0 1 calc(20% - 0.8rem);
    max-width: none;
  }
}

/* Dense product grid - used in landing page */
.product-grid-dense {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.product-grid-dense .product-card {
  flex: 0 1 150px;
  max-width: 180px;
}

@media (min-width: 768px) {
  .product-grid-dense .product-card {
    flex: 0 1 160px;
    max-width: 200px;
  }
}

@media (min-width: 1200px) {
  .product-grid-dense .product-card {
    flex: 0 1 calc(16.666% - 0.625rem);
    max-width: none;
  }
}

@media (min-width: 768px) {
  .product-grid-dense {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

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

/* ==========================================================================
   Product Card - Compact Design
   ========================================================================== */

.product-card {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.product-card.compact {
  border-radius: 0.375rem;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-img {
  position: relative;
  height: 140px;
  background: #0a0a0b;
  overflow: hidden;
}

.product-card.compact .product-img {
  height: 110px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

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

/* Product Badges - Compact */
.product-badges {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge i {
  font-size: 0.5rem;
}

.badge-deal {
  background: #ef4444;
  color: white;
}

.badge-new {
  background: #10b981;
  color: white;
}

.badge-limited {
  background: #f59e0b;
  color: white;
}

.badge-best-price {
  background: #10b981;
  color: white;
  padding: 0.125rem 0.25rem;
}

.badge-best-price i {
  font-size: 0.55rem;
}

/* Product Name - Compact */
.product-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e4e4e7;
  padding: 0.5rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}

.product-card.compact .product-name {
  font-size: 0.7rem;
  padding: 0.375rem 0.5rem;
  -webkit-line-clamp: 2;
}

/* Product Description - visible on cards */
.product-desc {
  font-size: 0.7rem;
  color: #a1a1aa;
  padding: 0 0.5rem 0.375rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card.compact .product-desc {
  font-size: 0.65rem;
  padding: 0 0.375rem 0.25rem;
  -webkit-line-clamp: 2;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.5rem 0.375rem;
}

.product-rating .rating-stars {
  display: flex;
  gap: 1px;
}

.product-rating .rating-stars .fa-star {
  font-size: 0.65rem;
  color: #fbbf24;
}

.product-rating .rating-stars .far.fa-star {
  color: #3f3f46;
}

.product-rating .rating-count {
  font-size: 0.6rem;
  color: #71717a;
}

.product-card.compact .product-rating {
  padding: 0 0.375rem 0.25rem;
}

.product-card.compact .product-rating .rating-stars .fa-star {
  font-size: 0.55rem;
}

.product-card.compact .product-rating .rating-count {
  font-size: 0.5rem;
}

/* Product Meta - Compact */
.product-meta {
  padding: 0 0.5rem;
}

.product-brand {
  font-size: 0.6rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Specs - Compact */
.quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.spec-tag {
  display: inline-block;
  background: #18181b;
  color: #a1a1aa;
  padding: 1px 0.375rem;
  border-radius: 0.125rem;
  font-size: 0.55rem;
  font-weight: 500;
  border: 1px solid #27272a;
}

/* Brand Badges - Compact */
.brand-badge {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 0.125rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: white;
}

.brand-intel {
  background: linear-gradient(135deg, #0071c5 0%, #00aeef 100%);
}

.brand-amd {
  background: linear-gradient(135deg, #ed1c24 0%, #ff6600 100%);
}

.brand-nvidia {
  background: linear-gradient(135deg, #76b900 0%, #a4ce3a 100%);
}

/* Price Section - Compact */
.price-section {
  padding: 0.25rem 0.5rem 0.375rem;
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.old-price {
  font-size: 0.65rem;
  color: #71717a;
  text-decoration: line-through;
}

.price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b82f6;
}

.product-card.compact .price {
  font-size: 0.8rem;
}

/* Card Stock Status */
.card-stock-status {
  padding: 0 0.5rem 0.25rem;
  font-size: 0.6rem;
  font-weight: 500;
}

.card-in-stock {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-supplier-stock {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.card-delivery {
  color: #71717a;
  font-weight: 400;
}

.card-out-of-stock {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-stock-status i {
  font-size: 0.55rem;
}

/* Product Actions - Compact */
.product-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem 0.5rem;
  margin-top: auto;
}

.add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-to-cart span {
  display: none;
}

.add-to-cart:hover {
  background: #2563eb;
}

.quick-view {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  color: #71717a;
  border-radius: 0.25rem;
  border: 1px solid #27272a;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.quick-view:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* ==========================================================================
   Bottom Stats & Features Bar
   ========================================================================== */

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.bottom-stats,
.bottom-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-pill,
.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.stat-pill i,
.feature-pill i {
  font-size: 0.7rem;
  color: #3b82f6;
}

.feature-pill i {
  color: #10b981;
}

@media (max-width: 768px) {
  .bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bottom-stats,
  .bottom-features {
    justify-content: center;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .product-grid .product-card {
    flex: 0 1 calc(25% - 0.75rem);
    max-width: none;
  }

  .product-grid-dense .product-card {
    flex: 0 1 calc(25% - 0.5625rem);
    max-width: none;
  }
}

@media (max-width: 768px) {
  .product-grid .product-card {
    flex: 0 1 calc(33.333% - 0.667rem);
  }

  .product-grid-dense .product-card {
    flex: 0 1 calc(33.333% - 0.5rem);
  }

  .product-grid-dense {
    gap: 0.5rem;
  }

  .ribbon-scroll .product-card {
    flex: 0 0 140px;
  }

  .category-pill {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .pill-count {
    display: none;
  }
}

@media (max-width: 576px) {
  .product-grid .product-card {
    flex: 0 1 calc(50% - 0.5rem);
  }

  .product-grid-dense .product-card {
    flex: 0 1 calc(50% - 0.375rem);
  }

  .ribbon-scroll .product-card {
    flex: 0 0 130px;
  }

  .section-header-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .deals-ribbon,
  .arrivals-ribbon {
    padding: 0.75rem;
  }
}

/* ==========================================================================
   Light Mode Adjustments
   ========================================================================== */

[data-theme="light"] .hero-carousel {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

[data-theme="light"] .shop-landing {
  background-color: #f8fafc;
}

[data-theme="light"] .product-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .category-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .stats-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .features-section {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .category-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: #e2e8f0;
}

[data-theme="light"] .product-img {
  background: #f1f5f9;
}

[data-theme="light"] .quick-view {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .feature-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: #e2e8f0;
}

[data-theme="light"] .spec-tag {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .scroll-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.product-card {
  animation: fadeInUp 0.4s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* Badge pulse animation for best price */
.badge-best-price {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
