/* ==========================================================================
   EvoStore-Inspired Premium Ecommerce Design System (OpenCart Catalog)
   ========================================================================== */

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

:root {
  --ec-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --ec-bg-main: #f8fafc;
  --ec-bg-card: #ffffff;
  --ec-bg-subtle: #f1f5f9;
  --ec-text-main: #0f172a;
  --ec-text-muted: #64748b;
  --ec-text-light: #94a3b8;
  
  --ec-primary: #1d4ed8;
  --ec-primary-hover: #1e40af;
  --ec-primary-light: #eff6ff;
  --ec-primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  
  --ec-accent: #0f172a;
  --ec-accent-hover: #1e293b;
  
  --ec-danger: #ef4444;
  --ec-danger-light: #fef2f2;
  --ec-success: #10b981;
  --ec-success-light: #ecfdf5;
  --ec-warning: #f59e0b;
  
  --ec-border: #e2e8f0;
  --ec-border-light: #f1f5f9;
  --ec-border-dark: #cbd5e1;
  
  /* Shadows */
  --ec-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --ec-shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.04);
  --ec-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --ec-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --ec-shadow-hover: 0 14px 30px -4px rgba(29, 78, 216, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  
  /* Radius */
  --ec-radius-sm: 8px;
  --ec-radius-md: 12px;
  --ec-radius-lg: 18px;
  --ec-radius-xl: 24px;
  --ec-radius-full: 9999px;
  
  /* Transitions */
  --ec-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
body {
  font-family: var(--ec-font-family);
  background-color: var(--ec-bg-main);
  color: var(--ec-text-main);
  line-height: 1.55;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

#container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-bottom: 3.5rem;
}

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

a {
  color: var(--ec-primary);
  text-decoration: none;
  transition: var(--ec-transition);
}

a:hover {
  color: var(--ec-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.cursor-pointer {
  cursor: pointer;
}

/* ==========================================================================
   Top Announcement / Utility Bar
   ========================================================================== */
#top {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#top a, #top span {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: var(--ec-transition);
}

#top a:hover {
  color: #ffffff;
}

#top .dropdown-menu {
  border-radius: var(--ec-radius-md);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-lg);
  padding: 6px;
  min-width: 170px;
  margin-top: 6px;
}

#top .dropdown-item {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--ec-radius-sm);
  color: var(--ec-text-main);
  font-weight: 500;
}

#top .dropdown-item:hover {
  background-color: var(--ec-primary-light);
  color: var(--ec-primary);
}

/* Currency & Language Forms */
#form-currency .dropdown-toggle, #form-language .dropdown-toggle {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 0;
  cursor: pointer;
}

/* ==========================================================================
   Header & Main Branding Row
   ========================================================================== */
header.ec-main-header {
  background-color: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--ec-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--ec-shadow-xs);
  transition: var(--ec-transition);
}

header.ec-main-header.is-sticky {
  padding: 12px 0;
  box-shadow: var(--ec-shadow-md);
}

/* Logo */
#logo {
  margin: 0;
  display: flex;
  align-items: center;
}

#logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ec-text-main);
  letter-spacing: -0.03em;
  text-decoration: none;
}

#logo a .ec-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--ec-primary-gradient);
  color: #fff;
  border-radius: var(--ec-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

#logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* Live Prominent Search Bar */
.ec-search-box {
  position: relative;
  width: 100%;
}

.ec-search-box .input-group {
  border-radius: var(--ec-radius-full);
  background-color: var(--ec-bg-subtle);
  border: 1px solid var(--ec-border);
  overflow: hidden;
  transition: var(--ec-transition);
}

.ec-search-box .input-group:focus-within {
  background-color: #ffffff;
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.ec-search-box input.form-control {
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-text-main);
  box-shadow: none;
}

.ec-search-box input.form-control::placeholder {
  color: var(--ec-text-muted);
}

.ec-search-box .btn-search {
  border: none;
  background: var(--ec-primary);
  color: #ffffff;
  padding: 0 22px;
  font-size: 15px;
  border-radius: var(--ec-radius-full);
  margin: 3px;
  transition: var(--ec-transition);
}

.ec-search-box .btn-search:hover {
  background: var(--ec-primary-hover);
}

/* Autocomplete Results Dropdown */
.ec-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  box-shadow: var(--ec-shadow-lg);
  z-index: 1050;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  padding: 8px;
}

.ec-search-suggestions.show {
  display: block;
  animation: ecFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ec-suggestion-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ec-text-muted);
  padding: 6px 12px;
  margin-bottom: 2px;
}

.ec-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--ec-radius-md);
  text-decoration: none;
  color: var(--ec-text-main);
  transition: var(--ec-transition);
}

.ec-suggestion-item:hover {
  background-color: var(--ec-bg-subtle);
}

.ec-suggestion-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--ec-radius-sm);
  border: 1px solid var(--ec-border-light);
  padding: 2px;
  flex-shrink: 0;
}

.ec-suggestion-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.ec-suggestion-meta {
  font-size: 12px;
  color: var(--ec-text-muted);
}

.ec-suggestion-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ec-primary);
  margin-left: auto;
  white-space: nowrap;
}

/* Header Action Buttons (Account, Wishlist, Cart) */
.ec-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ec-bg-subtle);
  border: 1px solid var(--ec-border);
  color: var(--ec-text-main);
  padding: 8px 14px;
  border-radius: var(--ec-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--ec-transition);
}

.ec-action-btn:hover {
  background-color: #ffffff;
  border-color: var(--ec-primary);
  color: var(--ec-primary);
  box-shadow: var(--ec-shadow-sm);
}

.ec-action-btn .ec-badge-count {
  background-color: var(--ec-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--ec-radius-full);
  line-height: 1;
}

.ec-cart-btn {
  background: var(--ec-primary-gradient);
  border: 1px solid var(--ec-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.2);
}

.ec-cart-btn:hover {
  background: var(--ec-primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

/* Mini Cart Dropdown */
#cart .dropdown-menu {
  width: 380px;
  max-width: 90vw;
  padding: 16px;
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-lg);
  margin-top: 10px;
}

.ec-minicart-table td {
  padding: 10px 6px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ec-border-light);
  font-size: 13px;
}

.ec-minicart-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--ec-radius-sm);
  background: var(--ec-bg-subtle);
  border: 1px solid var(--ec-border);
}

/* ==========================================================================
   Secondary Category Navigation Bar (#menu)
   ========================================================================== */
#menu.ec-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--ec-border);
  padding: 0;
  margin-bottom: 24px;
}

#menu .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

#menu .nav-item {
  position: static;
}

#menu .nav-link {
  color: var(--ec-text-main);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--ec-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ec-transition);
}

#menu .nav-link:hover, #menu .nav-link.active {
  color: var(--ec-primary);
  background-color: var(--ec-primary-light);
}

#menu .ec-nav-badge-deal {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--ec-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mega dropdown */
#menu .dropdown-menu {
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-lg);
  padding: 18px;
  margin-top: 4px;
}

@media (min-width: 992px) {
  #menu .dropdown:hover > .dropdown-menu {
    display: block;
    animation: ecFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

#menu .dropdown-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

#menu .dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--ec-radius-sm);
  color: var(--ec-text-secondary);
}

#menu .dropdown-item:hover {
  color: var(--ec-primary);
  background-color: var(--ec-primary-light);
  transform: translateX(3px);
}

/* ==========================================================================
   Hero Promotional Banner & Cards
   ========================================================================== */
.ec-hero-wrapper {
  margin-bottom: 36px;
}

.ec-hero-main-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1d4ed8 100%) !important;
  border-radius: var(--ec-radius-xl);
  padding: 48px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ec-shadow-lg);
  min-height: 300px;
}

.ec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--ec-radius-full);
  margin-bottom: 16px;
}

.ec-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.ec-hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 480px;
  margin-bottom: 28px;
}

.ec-hero-btn {
  background-color: #ffffff;
  color: #0f172a !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--ec-radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--ec-transition);
}

.ec-hero-btn:hover {
  background-color: var(--ec-primary-light);
  color: var(--ec-primary) !important;
  transform: translateY(-2px);
}

/* Secondary Promo Cards */
.ec-promo-card {
  border-radius: var(--ec-radius-lg);
  padding: 24px;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--ec-shadow-md);
  transition: var(--ec-transition);
}

.ec-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-lg);
}

.ec-promo-card-1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
}

.ec-promo-card-2 {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
}

.ec-promo-card h3,
.ec-promo-card p,
.ec-promo-card a {
  color: #ffffff !important;
}

.ec-promo-card .badge {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Popular Categories Discovery Grid
   ========================================================================== */
.ec-category-section {
  margin-bottom: 40px;
}

.ec-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ec-section-title-wrap h2, .ec-section-title-wrap h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.ec-section-subtitle {
  color: var(--ec-text-muted);
  font-size: 13.5px;
  margin: 3px 0 0 0;
}

.ec-category-card {
  background: var(--ec-bg-card);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--ec-shadow-xs);
  transition: var(--ec-transition);
  height: 100%;
}

.ec-category-card:hover {
  border-color: var(--ec-primary);
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-md);
}

.ec-category-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--ec-radius-md);
  background-color: var(--ec-primary-light);
  color: var(--ec-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--ec-transition);
}

.ec-category-card:hover .ec-category-icon-wrapper {
  background-color: var(--ec-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.ec-category-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ec-text-main);
  margin: 0;
}

.ec-category-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ec-text-muted);
  background: var(--ec-bg-subtle);
  padding: 2px 8px;
  border-radius: var(--ec-radius-full);
}

/* ==========================================================================
   Product Card Component (.product-thumb)
   ========================================================================== */
.product-thumb {
  background: var(--ec-bg-card);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--ec-shadow-xs);
  transition: var(--ec-transition);
  overflow: hidden;
}

.product-thumb:hover {
  border-color: var(--ec-border-dark);
  box-shadow: var(--ec-shadow-hover);
  transform: translateY(-4px);
}

/* Top Badges & Actions */
.ec-card-header-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ec-badge-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--ec-radius-full);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.ec-badge-stock {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--ec-radius-full);
}

/* Floating Wishlist & Compare Buttons */
.ec-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-btn-circle {
  width: 34px;
  height: 34px;
  border-radius: var(--ec-radius-full);
  background: #ffffff;
  border: 1px solid var(--ec-border);
  color: var(--ec-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: var(--ec-shadow-xs);
  transition: var(--ec-transition);
  padding: 0;
}

.ec-btn-circle:hover {
  background: var(--ec-danger-light);
  color: var(--ec-danger);
  border-color: var(--ec-danger);
  transform: scale(1.1);
}

.ec-btn-circle.active {
  background: var(--ec-danger);
  color: #ffffff;
  border-color: var(--ec-danger);
}

/* Product Image Container */
.product-thumb .image {
  background-color: #ffffff;
  border-radius: var(--ec-radius-md);
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-thumb .image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Quick View Overlay Button */
.ec-quickview-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--ec-radius-full);
  opacity: 0;
  transition: var(--ec-transition);
  white-space: nowrap;
  cursor: pointer;
}

.product-thumb:hover .ec-quickview-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ec-quickview-btn:hover {
  background: var(--ec-primary);
  color: #ffffff;
}

/* Product Card Content */
.product-thumb .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ec-brand-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ec-text-muted);
  margin-bottom: 4px;
}

.product-thumb .description h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-thumb .description h4 a {
  color: var(--ec-text-main);
  text-decoration: none;
}

.product-thumb .description h4 a:hover {
  color: var(--ec-primary);
}

.product-thumb .description p {
  display: none; /* Hide long snippet in grid mode */
}

/* Star Rating */
.ec-rating-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.ec-rating-count {
  color: var(--ec-text-muted);
  font-size: 11.5px;
  margin-left: 2px;
}

/* Price Box */
.product-thumb .price {
  margin-top: auto;
  margin-bottom: 12px;
}

.product-thumb .price-new {
  font-size: 16px;
  font-weight: 800;
  color: var(--ec-text-main);
}

.product-thumb .price-old {
  font-size: 13px;
  color: var(--ec-text-muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 500;
}

.product-thumb .price-tax {
  font-size: 11px;
  color: var(--ec-text-light);
  display: block;
}

/* Add to Cart Button */
.product-thumb .button {
  margin-top: auto;
}

.ec-btn-add-cart {
  width: 100%;
  background-color: var(--ec-primary-light);
  color: var(--ec-primary);
  border: 1px solid var(--ec-primary-light);
  padding: 8px 14px;
  border-radius: var(--ec-radius-md);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--ec-transition);
}

.ec-btn-add-cart:hover {
  background-color: var(--ec-primary);
  color: #ffffff;
  border-color: var(--ec-primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* ==========================================================================
   Catalog Page Layout (Category, Search, Manufacturer)
   ========================================================================== */
/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 10px 0;
  margin-bottom: 16px;
  border: none;
  font-size: 13px;
}

.breadcrumb-item a {
  color: var(--ec-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--ec-primary);
}

.breadcrumb-item.active {
  color: var(--ec-text-main);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--ec-text-light);
}

/* Category Hero Banner */
.ec-category-banner {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ec-shadow-xs);
}

.ec-subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ec-subcat-pill {
  background: var(--ec-bg-subtle);
  border: 1px solid var(--ec-border);
  color: var(--ec-text-main);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--ec-radius-full);
  text-decoration: none;
  transition: var(--ec-transition);
}

.ec-subcat-pill:hover {
  background: var(--ec-primary-light);
  border-color: var(--ec-primary);
  color: var(--ec-primary);
}

/* Catalog Toolbar */
.ec-catalog-toolbar {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--ec-shadow-xs);
}

.ec-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ec-result-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ec-text-muted);
}

.ec-view-btn-group .btn {
  padding: 6px 10px;
  border: 1px solid var(--ec-border);
  color: var(--ec-text-muted);
  background: #ffffff;
  font-size: 14px;
}

.ec-view-btn-group .btn.active {
  background: var(--ec-primary-light);
  color: var(--ec-primary);
  border-color: var(--ec-primary);
}

.ec-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ec-toolbar-select {
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--ec-radius-md);
  border: 1px solid var(--ec-border);
  padding: 6px 12px;
  color: var(--ec-text-main);
  background-color: #ffffff;
}

/* Desktop Filter Sidebar */
.ec-filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 20px;
  box-shadow: var(--ec-shadow-xs);
  margin-bottom: 24px;
}

.ec-filter-title {
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--ec-border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ec-filter-group {
  margin-bottom: 20px;
}

.ec-filter-group-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ec-text-main);
}

.ec-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ec-text-secondary);
  padding: 4px 0;
  cursor: pointer;
}

.ec-filter-item:hover {
  color: var(--ec-primary);
}

/* List view mode */
.product-list .product-thumb {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.product-list .product-thumb .image {
  width: 220px;
  height: 180px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.product-list .product-thumb .description p {
  display: block;
  font-size: 13px;
  color: var(--ec-text-muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   Shop by Brand Showcase
   ========================================================================== */
.ec-brand-section {
  margin-bottom: 40px;
}

.ec-brand-card {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  text-decoration: none;
  box-shadow: var(--ec-shadow-xs);
  transition: var(--ec-transition);
}

.ec-brand-card:hover {
  border-color: var(--ec-primary);
  transform: translateY(-3px);
  box-shadow: var(--ec-shadow-md);
}

.ec-brand-card img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(80%);
  opacity: 0.8;
  transition: var(--ec-transition);
}

.ec-brand-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.ec-brand-card .ec-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-text-main);
}

/* ==========================================================================
   Trust & Benefits Section (6 Value Props)
   ========================================================================== */
.ec-trust-section {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  padding: 32px 24px;
  margin-bottom: 40px;
  box-shadow: var(--ec-shadow-sm);
}

.ec-trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.ec-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ec-radius-full);
  background: var(--ec-primary-light);
  color: var(--ec-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ec-trust-text h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.ec-trust-text p {
  font-size: 12px;
  color: var(--ec-text-muted);
  margin: 0;
}

/* ==========================================================================
   Product Details Page (#product-info)
   ========================================================================== */
#product-info {
  margin-top: 10px;
}

.ec-pdp-gallery-wrap {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  padding: 24px;
  box-shadow: var(--ec-shadow-xs);
  text-align: center;
}

.ec-pdp-main-image {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ec-pdp-main-image img {
  max-height: 360px;
  object-fit: contain;
}

.ec-pdp-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ec-pdp-thumb-item {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: var(--ec-transition);
}

.ec-pdp-thumb-item:hover, .ec-pdp-thumb-item.active {
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.ec-pdp-info-card {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  padding: 28px;
  box-shadow: var(--ec-shadow-xs);
}

.ec-pdp-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.ec-pdp-price-box {
  background: var(--ec-bg-subtle);
  border-radius: var(--ec-radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.ec-pdp-price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ec-primary);
}

.ec-pdp-price-old {
  font-size: 1.15rem;
  color: var(--ec-text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}

.ec-pdp-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.ec-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  overflow: hidden;
  background: #ffffff;
  width: 130px;
}

.ec-qty-control button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  color: var(--ec-text-main);
  cursor: pointer;
}

.ec-qty-control input {
  border: none;
  text-align: center;
  font-weight: 700;
  width: 50px;
  box-shadow: none;
}

.ec-btn-pdp-cart {
  flex-grow: 1;
  background: var(--ec-primary-gradient);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--ec-radius-md);
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
  transition: var(--ec-transition);
}

.ec-btn-pdp-cart:hover {
  background: var(--ec-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.4);
}

.ec-pdp-perks-box {
  border-top: 1px solid var(--ec-border-light);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--ec-text-secondary);
}

/* Tabs */
.ec-pdp-tabs {
  margin-top: 36px;
}

.ec-pdp-tabs .nav-tabs {
  border-bottom: 2px solid var(--ec-border);
  gap: 8px;
}

.ec-pdp-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--ec-text-muted);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0;
  background: transparent;
}

.ec-pdp-tabs .nav-link.active {
  color: var(--ec-primary);
  border-bottom-color: var(--ec-primary);
}

.ec-pdp-tab-content {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-top: none;
  border-radius: 0 0 var(--ec-radius-xl) var(--ec-radius-xl);
  padding: 28px;
  box-shadow: var(--ec-shadow-xs);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.ec-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 48px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.ec-footer h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

footer.ec-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--ec-transition);
}

footer.ec-footer a:hover {
  color: #ffffff;
  transform: translateX(3px);
  display: inline-block;
}

footer.ec-footer ul li {
  margin-bottom: 10px;
}

.ec-footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ec-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.ec-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ==========================================================================
   Empty States & Skeletons
   ========================================================================== */
.ec-empty-state {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--ec-shadow-sm);
  margin: 20px 0;
}

.ec-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--ec-radius-full);
  background: var(--ec-bg-subtle);
  color: var(--ec-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 18px;
}

.ec-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ec-empty-text {
  color: var(--ec-text-muted);
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto 20px auto;
}

/* ==========================================================================
   Toast Alerts (#alert)
   ========================================================================== */
#alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  top: auto;
  width: 360px;
  max-width: 90vw;
  margin: 0;
  z-index: 1080;
}

#alert .alert {
  border-radius: var(--ec-radius-md);
  border: none;
  box-shadow: var(--ec-shadow-lg);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ecSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#alert .alert-success {
  background: #064e3b;
  color: #ecfdf5;
}

#alert .alert-danger {
  background: #7f1d1d;
  color: #fef2f2;
}

/* Animations */
@keyframes ecFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .ec-hero-title {
    font-size: 1.85rem;
  }
  
  .ec-hero-main-card {
    padding: 32px 24px;
  }
  
  .ec-pdp-main-image {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .ec-hero-title {
    font-size: 1.5rem;
  }
  
  .product-thumb {
    padding: 12px;
  }
  
  .product-thumb .image {
    height: 150px;
  }
  
  .product-thumb .image img {
    max-height: 130px;
  }
  
  .product-thumb .description h4 {
    font-size: 13px;
    height: 34px;
  }
  
  .product-thumb .price-new {
    font-size: 14.5px;
  }
  
  .ec-btn-add-cart {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   Homepage Module Sections (Featured / Bestseller / Latest / Special)
   ========================================================================== */
.ec-featured-section,
.ec-bestseller-section,
.ec-latest-section,
.ec-special-section {
  margin-bottom: 48px;
}

/* ==========================================================================
   Compare Table
   ========================================================================== */
.ec-compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.ec-compare-table th,
.ec-compare-table td {
  border: 1px solid var(--ec-border);
  padding: 12px 16px;
  vertical-align: middle;
}

.ec-compare-table thead td {
  background-color: var(--ec-bg-subtle);
  font-weight: 700;
  color: var(--ec-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-compare-table tbody tr:hover td {
  background-color: #fafbfd;
}

/* ==========================================================================
   Product Detail Page — Subscription Plan
   ========================================================================== */
.subscription.d-none {
  display: none !important;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ec-bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--ec-border-dark);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ec-primary);
}

/* ==========================================================================
   Product Card Aliases & Quickview Modal Classes
   ========================================================================== */

/* Price aliases used in product card */
.ec-price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--ec-primary);
}

.ec-price-old {
  font-size: 12px;
  color: var(--ec-text-muted);
  text-decoration: line-through;
}

.ec-pricing-box {
  margin: 4px 0 8px;
}

/* Mini-cart items wrapper */
.ec-minicart-items {
  max-height: 280px;
  overflow-y: auto;
}

/* Quick View Modal */
.ec-quickview-modal .modal-content {
  border-radius: var(--ec-radius-xl);
  border: none;
  box-shadow: var(--ec-shadow-lg);
}

.ec-qv-gallery {
  position: relative;
}

.ec-qv-main-image {
  background: var(--ec-bg-subtle);
  border-radius: var(--ec-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: 300px;
  overflow: hidden;
}

.ec-qv-main-image img,
#ec-qv-main-img {
  max-height: 260px;
  object-fit: contain;
}

.ec-qv-thumb-item {
  width: 54px;
  height: 54px;
  border-radius: var(--ec-radius-sm);
  border: 2px solid var(--ec-border);
  padding: 4px;
  cursor: pointer;
  transition: var(--ec-transition);
  overflow: hidden;
}

.ec-qv-thumb-item:hover,
.ec-qv-thumb-item.active {
  border-color: var(--ec-primary);
}

.ec-qv-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ec-text-main);
  line-height: 1.35;
}

.ec-qv-desc {
  font-size: 13px;
  color: var(--ec-text-muted);
  line-height: 1.6;
}

/* Product card qty wrapper alias */
.ec-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PDP main image/link IDs */
#ec-pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--ec-transition);
}