/* ==========================================================================
   THEME 2: eCommerce & Product Showcase (Pro Storefront Design System)
   ========================================================================== */
:root {
  --ecom-primary: #10b981;
  --ecom-primary-dark: #059669;
  --ecom-primary-deep: #064e3b;
  --ecom-indigo: #4f46e5;
  --ecom-bg: #f8fafc;
  --ecom-card: #ffffff;
  --ecom-text: #0f172a;
  --ecom-muted: #64748b;
  --ecom-border: #e2e8f0;
}

body.theme-ecommerce {
  background-color: var(--ecom-bg);
  color: var(--ecom-text);
  font-family: var(--font-body);
}

/* Header & Store Navigation */
.theme-ecommerce .site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.theme-ecommerce .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-ecommerce .brand-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ecom-text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.03em;
}

.theme-ecommerce .brand-logo i {
  color: var(--ecom-primary);
  font-size: 1.4rem;
}

.theme-ecommerce .brand-logo span {
  color: var(--ecom-primary-dark);
}

.theme-ecommerce .nav-menu {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  align-items: center;
}

.theme-ecommerce .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  transition: color var(--transition-fast);
}

.theme-ecommerce .nav-link:hover {
  color: var(--ecom-primary-dark);
}

.theme-ecommerce .btn-signup-nav {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  gap: 0.45rem !important;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3) !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.theme-ecommerce .btn-signup-nav:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45) !important;
}

.theme-ecommerce .btn-cart {
  background: #ecfdf5;
  color: var(--ecom-primary-dark);
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all var(--transition-fast);
}

.theme-ecommerce .btn-cart:hover {
  background: var(--ecom-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.theme-ecommerce .mobile-menu-btn {
  background: transparent;
  border: 1px solid #a7f3d0;
  color: #059669;
  border-radius: 8px;
}

@media (max-width: 1240px) {
  .theme-ecommerce .nav-menu {
    gap: 0.75rem;
  }
  .theme-ecommerce .nav-link {
    font-size: 0.825rem;
  }
}

@media (max-width: 991px) {
  .theme-ecommerce .nav-menu {
    background: #ffffff !important;
    border-bottom: 2px solid #059669 !important;
  }
  .theme-ecommerce .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
  }
}


/* Storefront Hero */
.theme-ecommerce .ecom-hero {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(5, 150, 105, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
  padding: 3rem 0 3.25rem;
  border-bottom: 1px solid var(--ecom-border);
}

.theme-ecommerce .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.theme-ecommerce .hero-tag {
  background: #d1fae5;
  color: var(--ecom-primary-dark);
  border: 1px solid #a7f3d0;
  font-size: 0.775rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.theme-ecommerce .hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #064e3b;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.03em;
}

.theme-ecommerce .hero-desc {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 560px;
}

.theme-ecommerce .hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.theme-ecommerce .btn-ecom-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-ecommerce .btn-ecom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.theme-ecommerce .hero-featured-card {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -12px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
  max-width: 420px;
  margin: 0 auto;
}

/* Category Filter Bar */
.theme-ecommerce .category-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-ecommerce .category-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--ecom-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-ecommerce .category-pill:hover,
.theme-ecommerce .category-pill.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

/* Products Showcase */
.theme-ecommerce .products-section {
  padding: 3rem 0;
  background: #ffffff;
}

.theme-ecommerce .product-grid,
.theme-ecommerce .products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

@media (max-width: 1200px) {
  .theme-ecommerce .product-grid,
  .theme-ecommerce .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 860px) {
  .theme-ecommerce .product-grid,
  .theme-ecommerce .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .theme-ecommerce .product-grid,
  .theme-ecommerce .products-grid {
    grid-template-columns: 1fr !important;
  }
}

.theme-ecommerce .product-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.theme-ecommerce .product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
}

.theme-ecommerce .product-img-box,
.theme-ecommerce .product-img-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.theme-ecommerce .product-img-box img,
.theme-ecommerce .product-img-wrapper img,
.theme-ecommerce .product-img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 0.75rem !important;
  transition: transform 0.4s ease !important;
}

.theme-ecommerce .product-card:hover .product-img {
  transform: scale(1.08) !important;
}

.theme-ecommerce .product-badge-discount {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.theme-ecommerce .product-body {
  padding: 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.theme-ecommerce .product-category-name {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.35rem !important;
}

.theme-ecommerce .product-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-bottom: 0.45rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8rem !important;
}

.theme-ecommerce .product-desc {
  font-size: 0.825rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin-bottom: 0.85rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex-grow: 1 !important;
}

.theme-ecommerce .product-rating-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin-bottom: 0.85rem !important;
}

.theme-ecommerce .rating-text {
  font-size: 0.75rem !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

.theme-ecommerce .product-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin-top: auto !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid #f1f5f9 !important;
}

.theme-ecommerce .price-container {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.5rem !important;
}

.theme-ecommerce .effective-price {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #064e3b !important;
}

.theme-ecommerce .regular-price {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
}

.theme-ecommerce .product-buy-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.65rem 1rem !important;
  border-radius: 6px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32) !important;
  transition: all 0.25s ease !important;
}

.theme-ecommerce .product-buy-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* Portfolio / Case Studies */
.theme-ecommerce .portfolio-section {
  padding: 2.75rem 0;
  background: #f8fafc;
}

.theme-ecommerce .portfolio-grid,
.theme-ecommerce .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.theme-ecommerce .portfolio-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ecom-border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-normal);
}

.theme-ecommerce .portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border-color: #a7f3d0;
}

/* Footer */
.theme-ecommerce .site-footer {
  background: linear-gradient(135deg, #022c22 0%, #011812 100%);
  border-top: 3px solid #059669;
  box-shadow: 0 -10px 30px rgba(16, 185, 129, 0.18);
  color: #ecfdf5;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .theme-ecommerce .hero-grid {
    grid-template-columns: 1fr;
  }
  .theme-ecommerce .hero-title {
    font-size: 2.25rem;
  }
  .theme-ecommerce .portfolio-grid,
  .theme-ecommerce .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .theme-ecommerce .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }
  .theme-ecommerce .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .theme-ecommerce .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .theme-ecommerce .portfolio-grid,
  .theme-ecommerce .team-grid {
    grid-template-columns: 1fr;
  }
}
