/* ==========================================================================
   EComScope Theme Design System - OpenCart Classic Storefront
   Refined, non-bold, pixel-accurate OpenCart aesthetics
   ========================================================================== */

:root {
  --ecs-primary: #01693A;
  --ecs-primary-hover: #01532e;
  --ecs-primary-light: #F3FAF2;
  --ecs-accent: #FF8A00;
  --ecs-success: #01693A;
  --ecs-danger: #E84946;
  --ecs-text-main: #222222;
  --ecs-text-muted: #555555;
  --ecs-bg: #ffffff;
  --ecs-surface: #ffffff;
  --ecs-border: #e2e8e3;
  --ecs-border-light: #edf2ee;
  --ecs-card-bg: #ffffff;
  --ecs-radius-sm: 6px;
  --ecs-radius-md: 10px;
  --ecs-radius-lg: 12px;
  --ecs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --ecs-shadow-md: 0 8px 24px rgba(1, 105, 58, 0.08);
  --ecs-shadow-lg: 0 16px 36px rgba(1, 105, 58, 0.12);
  --ecs-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--ecs-font-sans);
  background-color: var(--ecs-bg);
  color: var(--ecs-text-main);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Headings: Clean, normal weights, balanced sizing */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222222;
  font-family: var(--ecs-font-sans);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 26px;
  margin: 0 0 15px 0;
}

h2 {
  font-size: 22px;
  margin: 0 0 15px 0;
}

h3 {
  font-size: 18px;
  margin: 0 0 12px 0;
}

h4 {
  font-size: 14px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

h5 {
  font-size: 13px;
  margin: 0 0 6px 0;
  font-weight: 600;
}

a {
  color: #01693A;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #01532e;
  text-decoration: underline;
}

.ecs-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================================================
   1. OpenCart Top Utility Bar
   ========================================================================== */
.ecs-top-bar {
  background-color: #f7fbf8;
  border-bottom: 1px solid #e5ede7;
  padding: 5px 0;
  font-size: 12px;
  color: #4b5e50;
}

.ecs-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ecs-top-left,
.ecs-top-right {
  display: flex;
  align-items: center;
}

.ecs-top-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ecs-top-links li {
  position: relative;
  list-style: none;
}

.ecs-top-links a,
.ecs-top-link {
  color: #4b5e50;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ecs-top-links a svg,
.ecs-top-link svg {
  color: #01693A;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ecs-top-links a:hover,
.ecs-top-link:hover {
  color: #01693A;
  text-decoration: none;
}

.ecs-top-links a:hover svg,
.ecs-top-link:hover svg {
  transform: scale(1.15);
}

/* Scaled, neat Counter Pill Badges in Top Header */
.ecs-top-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background-color: #01693A;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.ecs-top-links a:hover .ecs-top-counter,
.ecs-top-link:hover .ecs-top-counter {
  background-color: #FF8A00;
  color: #ffffff;
  transform: scale(1.08);
}

.ecs-account-dropdown .dropdown-menu {
  border: 1px solid #e2ede5 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 6px 0 !important;
  font-size: 12.5px !important;
  margin-top: 4px !important;
}

.ecs-account-dropdown .dropdown-item {
  color: #334438;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.ecs-account-dropdown .dropdown-item:hover {
  background-color: #F3FAF2;
  color: #01693A;
}

.ecs-dropdown {
  position: relative;
  display: inline-block;
}

.ecs-dropdown-toggle {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.ecs-dropdown-toggle:hover {
  color: #444444;
}

.ecs-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  min-width: 140px;
  list-style: none;
  margin: 4px 0 0 0;
  padding: 5px 0;
  z-index: 1000;
}

.ecs-dropdown:hover .ecs-dropdown-menu {
  display: block;
}

.ecs-dropdown-menu li {
  list-style: none;
}

.ecs-dropdown-menu a {
  display: block;
  padding: 6px 14px;
  color: #555555;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.ecs-dropdown-menu a:hover {
  background-color: #01693A;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   2. Main Header (Logo, Search, Cart Widget)
   ========================================================================== */
.ecs-header {
  background: #ffffff;
  padding: 22px 0 10px 0;
}

.ecs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ecs-header-col-logo {
  flex-shrink: 0;
  width: 250px;
}

.ecs-brand-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ecs-header-logo-img {
  max-height: 48px;
  max-width: 220px;
  height: auto;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: block;
}

.ecs-logo-brand-text {
  font-size: 26px;
  font-weight: 700;
  color: #01693A;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ecs-header-col-search {
  flex: 1;
  max-width: 520px;
}

.ecs-search-form {
  width: 100%;
}

.ecs-input-group {
  display: flex;
  width: 100%;
}

.ecs-search-input {
  flex: 1;
  height: 42px;
  padding: 6px 18px;
  font-size: 13px;
  color: #222222;
  background-color: #ffffff;
  border: 1.5px solid #d8ebd7;
  border-radius: 50px 0 0 50px;
  box-shadow: none;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.ecs-search-input:focus {
  border-color: #01693A;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(1, 105, 58, 0.15);
}

.ecs-input-group-btn {
  display: flex;
}

/* ==========================================================================
   Search Bar (VegShop Exact Capsule Pill Style)
   ========================================================================== */
.search_bar form,
.ecs-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #dce5dd;
  border-radius: 50px;
  padding: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  position: relative;
  height: 48px;
  transition: all 0.25s ease;
}

.search_bar form:focus-within,
.ecs-search-form:focus-within {
  border-color: #01693A;
  box-shadow: 0 0 0 3px rgba(1, 105, 58, 0.12);
}

.cat_input,
.ecs-search-input {
  border: none !important;
  outline: none !important;
  height: 46px;
  padding: 0 52px 0 20px !important;
  width: 100%;
  border-radius: 50px !important;
  color: #222222;
  font-size: 13.5px;
  background: transparent !important;
  box-shadow: none !important;
}

.cc_button,
.ecs-search-btn {
  background-color: #FF8A00;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
}

.cc_button:hover,
.ecs-search-btn:hover {
  background-color: #01693A;
  color: #ffffff;
  transform: scale(1.05);
}

.ecs-header-col-cart {
  flex-shrink: 0;
}

/* ==========================================================================
   VegShop Mini-Cart Badge & Total Display
   ========================================================================== */
.whc_badge,
.ecs-cart-badge-count {
  background-color: #F3FAF2;
  color: #01693A;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  transition: all 0.25s ease;
}

.ecs-cart-btn:hover .whc_badge,
.ecs-cart-btn:hover .ecs-cart-badge-count {
  background-color: #01693A;
  color: #ffffff;
}

.ecs-cart-widget .ecs-cart-btn {
  background-color: #ffffff;
  border: 1px solid #dce5dd;
  border-radius: 50px;
  padding: 5px 16px 5px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.ecs-cart-widget .ecs-cart-btn:hover {
  border-color: #01693A;
  box-shadow: 0 4px 15px rgba(1, 105, 58, 0.12);
  transform: translateY(-1px);
}

/* ==========================================================================
   3. VegShop Main Navigation Bar Strip (#main-header)
   ========================================================================== */
#main-header,
.ecs-main-nav-wrapper {
  position: relative;
  width: 100%;
  z-index: 100;
  background-color: #01693A;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(1, 105, 58, 0.16);
}

.ecs-navbar {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0;
  min-height: 50px;
  box-shadow: none !important;
  padding: 0 !important;
}

.ecs-nav-inner {
  padding: 0;
}

.ecs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ecs-nav-item {
  position: relative;
  list-style: none;
}

/* Distinct All Categories Left Button (VegShop Dark Green Block) */
.ecs-all-categories-item {
  background-color: #01532e;
  position: relative;
}

.ecs-all-categories-btn {
  padding: 11px 18px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: capitalize !important;
  letter-spacing: 0.2px;
  background-color: #01532e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecs-all-categories-btn:hover {
  background-color: #014526 !important;
  color: #ffffff !important;
}

.ecs-all-categories-menu {
  min-width: 250px !important;
  border-radius: 0 0 10px 10px !important;
  border: 1px solid #e2e8e3 !important;
  border-top: 3px solid #01693A !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;
  margin-top: 0 !important;
}

.ecs-all-categories-menu .dropdown-item {
  padding: 8px 16px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #222222;
  border-bottom: 1px solid #f3f6f3;
  transition: all 0.2s ease;
}

.ecs-all-categories-menu .dropdown-item:hover {
  background-color: #F3FAF2 !important;
  color: #01693A !important;
  padding-left: 20px;
}

.ecs-navbar .nav-link,
.ecs-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.15px;
  text-decoration: none;
  text-shadow: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ecs-navbar .nav-link:hover,
.ecs-nav-link:hover,
.ecs-nav-item:hover > .ecs-nav-link {
  background-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
}

.ecs-dropdown-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background-color: #ffffff;
  border: 1px solid #e7ede8;
  border-top: 3px solid #01693A;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1000;
  margin-top: 0;
}

.ecs-nav-item:hover .ecs-dropdown-nav-menu {
  display: block;
}

.ecs-dropdown-nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecs-dropdown-nav-menu .dropdown-item,
.ecs-dropdown-nav-inner a {
  display: block;
  padding: 8px 18px;
  color: #222222 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.15s ease;
}

.ecs-dropdown-nav-menu .dropdown-item:hover,
.ecs-dropdown-nav-menu .dropdown-item:focus,
.ecs-dropdown-nav-inner a:hover,
.ecs-dropdown-nav-inner a:focus {
  background-color: #F3FAF2 !important;
  color: #01693A !important;
  text-decoration: none !important;
  padding-left: 22px;
}

.ecs-dropdown-nav-inner a.see-all,
.ecs-dropdown-nav-menu .dropdown-item.see-all {
  font-weight: 700 !important;
  color: #01693A !important;
}

.ecs-dropdown-nav-inner a.see-all:hover,
.ecs-dropdown-nav-inner a.see-all:focus,
.ecs-dropdown-nav-menu .dropdown-item.see-all:hover,
.ecs-dropdown-nav-menu .dropdown-item.see-all:focus {
  background-color: #F3FAF2 !important;
  color: #01693A !important;
}

.ecs-navbar-callout {
  font-size: 12px;
  letter-spacing: 0.1px;
}

/* VegShop Navbar Hotline Pattern */
.navbar_contact_area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar_contact_icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar_contact_area_end p,
.navbar_contact_area_end span:first-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9.5px;
  font-weight: 500;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.navbar_contact_area_end h4,
.navbar_contact_area_end span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 0;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   4. Banner Slider (OpenCart Hero Showcase)
   ========================================================================== */
.ecs-hero-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 25px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

#ecs-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
}

.ecs-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1142 / 263;
}

.ecs-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ecs-slide-banner-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.ecs-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.ecs-slider-arrow:hover {
  background: #ffffff;
  color: #01693A;
  border-color: #01693A;
  box-shadow: 0 3px 8px rgba(1, 105, 58, 0.25);
}

.ecs-slider-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.ecs-slider-prev {
  left: 12px;
}

.ecs-slider-next {
  right: 12px;
}

.ecs-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.ecs-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.ecs-slider-dot.active {
  background: #01693A;
  transform: scale(1.2);
}

@media (max-width: 576px) {
  .ecs-slider-arrow {
    width: 28px;
    height: 28px;
  }
  .ecs-slider-arrow svg {
    width: 14px;
    height: 14px;
  }
  .ecs-slider-prev {
    left: 6px;
  }
  .ecs-slider-next {
    right: 6px;
  }
  .ecs-slider-dots {
    bottom: 6px;
    gap: 5px;
  }
  .ecs-slider-dot {
    width: 7px;
    height: 7px;
  }
}

/* ==========================================================================
   5. Featured Section & OpenCart Product Card (.ecs-product-thumb)
   ========================================================================== */
.ecs-featured-section {
  margin: 28px 0 40px 0;
}

.ecs-section-heading {
  font-size: 22px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 20px 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecs-section-heading::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(to right, #e2e8e3, transparent);
  margin-left: 8px;
}

.ecs-products-grid {
  margin-bottom: 28px;
}

/* ==========================================================================
   VegShop Exact Product Card Pattern (.single_flash / .ecs-product-thumb)
   ========================================================================== */
.single_flash,
.ecs-product-thumb {
  background: #ffffff;
  border: 1px solid #e7ede8;
  border-radius: 14px;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.single_flash:hover,
.ecs-product-thumb:hover {
  border-color: #01693A;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(1, 105, 58, 0.1);
}

.flash-image,
.ecs-product-thumb .ecs-image {
  position: relative;
  width: 100%;
  height: 205px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #f0f4f1;
  border-radius: 13px 13px 0 0;
}

.flash-image a,
.ecs-product-thumb .ecs-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.flash-image img,
.ecs-product-thumb .ecs-image img,
.ecs-product-thumb .ecs-image .ecs-product-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  padding: 0 !important;
  display: block;
  transition: transform 0.4s ease;
}

.single_flash:hover .flash-image img,
.ecs-product-thumb:hover .ecs-image img,
.ecs-product-thumb:hover .ecs-image .ecs-product-img {
  transform: scale(1.04);
}

/* Discount / Sale Pill Badge (Top-Left of Image) */
.off_badge,
.ecs-product-thumb .off_badge {
  background-color: #E84946;
  color: #ffffff;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(232, 73, 70, 0.2);
  letter-spacing: 0.3px;
}

/* Hover Quick Action Floating Buttons (Wishlist, Compare) */
.ecs-card-hover-actions {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.35s ease;
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 15;
}

.single_flash:hover .ecs-card-hover-actions,
.ecs-product-thumb:hover .ecs-card-hover-actions {
  top: 50%;
}

.ecs-card-hover-actions li {
  display: inline-block;
  margin: 0;
}

.ecs-card-hover-actions li button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #333333;
  border: 1px solid #edf2ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.ecs-card-hover-actions li button:hover,
.ecs-card-hover-actions li button.active {
  background: #01693A;
  color: #ffffff;
  border-color: #01693A;
  transform: scale(1.1);
}

/* Product Card Caption & Typography */
.ecs-product-thumb .ecs-caption {
  padding: 14px 14px 8px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* VegShop 5-Star Rating Pattern */
.flash-rating {
  margin-bottom: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.flash-rating i,
.flash-rating .fa-star {
  color: #FF8A00 !important;
}

.flash-rating .frating_number {
  font-size: 11.5px;
  color: #888888;
  font-weight: 500;
  margin-left: 3px;
}

/* Product Title */
.single_flash h4,
.ecs-product-thumb .ecs-caption h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.single_flash h4 a,
.ecs-product-thumb .ecs-caption h4 a {
  color: #001728;
  text-decoration: none;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.single_flash h4 a:hover,
.ecs-product-thumb .ecs-caption h4 a:hover {
  color: #01693A;
}

.ecs-product-thumb .ecs-desc {
  font-size: 12px;
  color: #666666;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

/* VegShop Price Pattern */
.flash_price,
.ecs-product-thumb .ecs-price {
  margin: auto 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #01693A;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.flash_price .current_price,
.ecs-product-thumb .price-new,
.ecs-product-thumb .price-regular {
  color: #01693A;
  font-weight: 700;
  font-size: 17px;
}

.flash_price del,
.ecs-product-thumb .price-old del,
.ecs-product-thumb .price-old {
  color: #999999;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
}

.ecs-product-thumb .price-tax {
  display: block;
  width: 100%;
  font-size: 11px;
  color: #888888;
  font-weight: 400;
  margin-top: 2px;
}

/* VegShop Action Button Group (Full-Width Pill Add-to-Cart) */
.ecs-product-thumb .ecs-button-group {
  background-color: transparent;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px 14px;
  margin-top: auto;
}

/* Add to cart button: VegShop pill button (border-btn) */
.border-btn,
.ecs-product-thumb .ecs-btn-cart-action {
  width: 100%;
  border-radius: 30px;
  border: 1px solid #01693A;
  background-color: #F3FAF2;
  color: #01693A;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
}

.border-btn:hover,
.border-btn:focus,
.ecs-product-thumb .ecs-btn-cart-action:hover {
  background-color: #01693A;
  border-color: #01693A;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(1, 105, 58, 0.2);
}

/* ==========================================================================
   6. Brand Carousel Strip
   ========================================================================== */
.ecs-brand-carousel-wrapper {
  background: #ffffff;
  border: 1px solid #e7ede8;
  border-radius: 12px;
  padding: 16px 45px;
  position: relative;
  margin: 25px 0 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  user-select: none;
}

.ecs-brand-track-container {
  overflow: hidden;
  width: 100%;
}

.ecs-brand-track {
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.ecs-brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 16px;
  box-sizing: border-box;
}

.ecs-brand-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ecs-brand-item img {
  max-height: 44px;
  max-width: 125px;
  width: auto;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.9;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.ecs-brand-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.ecs-brand-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.ecs-brand-arrow:hover {
  background: #01693A;
  color: #ffffff;
  border-color: #01693A;
  box-shadow: 0 4px 10px rgba(1, 105, 58, 0.25);
}

.ecs-brand-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.ecs-brand-prev {
  left: 8px;
}

.ecs-brand-next {
  right: 8px;
}

.ecs-brand-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 35px 0;
}

.ecs-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cccccc;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ecs-brand-dot.active {
  background: #333333;
}

/* ==========================================================================
   7. OpenCart 4-Column Footer
   ========================================================================== */
.ecs-footer {
  background-color: #001728;
  color: #a0aec0;
  padding: 48px 0 25px 0;
  margin-top: 48px;
  font-size: 12.5px;
}

.ecs-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 25px;
}

.ecs-footer-col h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.ecs-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2.2;
}

.ecs-footer-links li {
  list-style: none;
}

.ecs-footer-links a {
  color: #8e9fae;
  text-decoration: none;
  transition: color 0.15s;
  font-size: 12.5px;
}

.ecs-footer-links a:hover {
  color: #22c55e;
  text-decoration: none;
}

.ecs-footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 25px 0 15px 0;
}

.ecs-footer-bottom {
  font-size: 12px;
  color: #64748b;
  text-align: left;
  line-height: 1.6;
}

.ecs-footer-bottom p {
  margin: 0;
}

.ecs-footer-bottom a {
  color: #888888;
  text-decoration: none;
}

.ecs-footer-bottom a:hover {
  color: #cccccc;
}

/* ==========================================================================
   8. Slide-out Mini-Cart Drawer
   ========================================================================== */
.ecs-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.ecs-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ecs-minicart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ecs-minicart-drawer.open {
  right: 0;
}

.ecs-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid #dddddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ecs-drawer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.ecs-drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888888;
}

.ecs-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.ecs-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid #dddddd;
  background: #f8fafc;
}

/* Common Buttons */
.ecs-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.ecs-btn-cart {
  background: #01693A;
  color: #ffffff;
}

.ecs-btn-cart:hover {
  background: #01532e;
  color: #ffffff;
  text-decoration: none;
}

.ecs-btn-disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ==========================================================================
   9. Toast Notifications
   ========================================================================== */
.ecs-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecs-toast {
  background: #333333;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s ease;
}

.ecs-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ecs-toast-success .ecs-toast-icon {
  color: #10b981;
}

.ecs-toast-error .ecs-toast-icon {
  color: #ef4444;
}

/* ==========================================================================
   10. Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .ecs-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecs-header-inner {
    flex-wrap: wrap;
  }

  .ecs-header-col-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .ecs-footer-grid {
    grid-template-columns: 1fr;
  }

  .ecs-top-bar-inner {
    flex-direction: column;
    gap: 6px;
  }

  .ecs-slide {
    height: 240px;
  }

  .hidden-xs {
    display: none;
  }
}

/* ==========================================================================
   CMS & Static Content Pages (Plain, unembellished, clean typography)
   ========================================================================== */
.ecs-breadcrumb {
  list-style: none;
  padding: 8px 0;
  margin: 10px 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #777777;
}

.ecs-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.ecs-breadcrumb li+li::before {
  content: "/";
  margin-right: 6px;
  color: #cccccc;
}

.ecs-breadcrumb a {
  color: #777777;
  text-decoration: none;
}

.ecs-breadcrumb a:hover {
  color: #01693A;
}

.ecs-breadcrumb span {
  color: #333333;
}

.ecs-page-heading {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 10px 0 15px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.3;
}

.ecs-page-subtitle {
  font-size: 14px;
  color: #666666;
  margin-top: -6px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.ecs-cms-content {
  font-size: 13px;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 40px;
}

.ecs-cms-content p {
  margin: 0 0 15px 0;
}

.ecs-cms-content h1,
.ecs-cms-content h2,
.ecs-cms-content h3,
.ecs-cms-content h4 {
  color: #333333;
  font-weight: 600;
  line-height: 1.3;
}

.ecs-cms-content h1 {
  font-size: 22px;
  margin: 24px 0 12px 0;
}

.ecs-cms-content h2 {
  font-size: 19px;
  margin: 22px 0 12px 0;
}

.ecs-cms-content h3 {
  font-size: 16px;
  margin: 18px 0 10px 0;
}

.ecs-cms-content h4 {
  font-size: 14px;
  margin: 15px 0 8px 0;
}

.ecs-cms-content ul,
.ecs-cms-content ol {
  margin: 0 0 16px 24px;
  padding: 0;
}

.ecs-cms-content li {
  margin-bottom: 6px;
}

.ecs-cms-content a {
  color: #01693A;
  text-decoration: none;
}

.ecs-cms-content a:hover {
  text-decoration: underline;
}

.ecs-cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12.5px;
}

.ecs-cms-content th,
.ecs-cms-content td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: left;
}

.ecs-cms-content th {
  background-color: #f8fafc;
  color: #333333;
  font-weight: 600;
}

.ecs-cms-content blockquote {
  margin: 15px 0;
  padding: 10px 18px;
  border-left: 3px solid #01693A;
  background-color: #f9fbfd;
  color: #555555;
  font-style: italic;
}

/* ==========================================================================
   Bootstrap 5 Integration & Palette Harmonization
   ========================================================================== */
.btn-primary {
  background-color: var(--ecs-primary) !important;
  border-color: #01532e !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ecs-primary-hover) !important;
  border-color: #1a7b9f !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  color: var(--ecs-primary) !important;
  border-color: var(--ecs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--ecs-primary) !important;
  border-color: var(--ecs-primary) !important;
  color: #ffffff !important;
}

.text-primary {
  color: var(--ecs-primary) !important;
}

.bg-primary {
  background-color: var(--ecs-primary) !important;
}

.bg-primary-subtle {
  background-color: var(--ecs-primary-light) !important;
}

.border-primary-subtle {
  border-color: #bce1f1 !important;
}

.breadcrumb {
  background-color: #f5f5f5;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 12px;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: #999999;
}

.breadcrumb-item a {
  color: #01693A;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #666666;
}

/* Ensure mobile images never overflow horizontally */
img {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Faceted Filter & Color Swatches */
.ecs-filter-sidebar .card-header {
  border-bottom: 1px solid #e9ecef;
}

.ecs-color-swatch-filter {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ecs-color-swatch-filter:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ecs-color-swatch-filter.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #01693A !important;
  border-color: #01693A !important;
}

/* ==========================================================================
   Product Comparison Matrix & Floating Dock
   ========================================================================== */
.ecs-product-thumb .ecs-button-group button.ecs-btn-compare-action.active {
  color: #01693A;
  background-color: #e8f4f9;
}

.ecs-compare-btn {
  height: 50px;
  width: 50px;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ecs-compare-btn:hover {
  border-color: #01693A;
  color: #01693A;
  background: #f8fafc;
}

.ecs-compare-btn.active {
  border-color: #01693A;
  background: #e8f4f9;
  color: #01693A;
}

/* Floating Compare Dock */
.ecs-compare-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1045;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform: translateY(100%);
  opacity: 0;
}

.ecs-compare-dock.visible {
  transform: translateY(0);
  opacity: 1;
}

.ecs-compare-dock.collapsed .ecs-compare-dock-body {
  display: none !important;
}

.ecs-compare-dock-inner {
  padding: 8px 16px 12px 16px;
}

.ecs-compare-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ecs-compare-dock-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.ecs-dock-slots {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 2px;
  flex: 1;
  scrollbar-width: thin;
}

.ecs-dock-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 8px;
  min-width: 160px;
  max-width: 210px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ecs-dock-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid #f1f5f9;
}

.ecs-dock-item-info {
  overflow: hidden;
  line-height: 1.25;
}

.ecs-dock-item-name {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  color: #1e293b;
  text-decoration: none;
}

.ecs-dock-item-name:hover {
  color: #01693A;
}

.ecs-dock-item-price {
  font-size: 11px;
  color: #01693A;
  font-weight: 700;
}

.ecs-dock-item-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.ecs-dock-item-remove:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.ecs-dock-empty-slot {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  min-width: 110px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #fafafa;
}

.ecs-dock-empty-slot:hover {
  border-color: #01693A;
  color: #01693A;
  background: #f0f9ff;
}

.ecs-dock-actions {
  flex-shrink: 0;
}

/* Difference Highlighter in Compare Matrix Table */
.spec-row.highlight-diff {
  background-color: #fef9c3 !important;
}

.spec-row.highlight-diff th,
.spec-row.highlight-diff td {
  background-color: inherit !important;
  font-weight: 600;
}

/* ==========================================================================
   EComScope Compare Page & Matrix Styles (Balanced, Decent Typography)
   ========================================================================== */

.ecs-compare-page {
  font-size: 13px;
}

.ecs-compare-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.45;
}

.ecs-compare-header-row th,
.ecs-compare-header-row td {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  vertical-align: top;
}

.ecs-compare-head-col {
  background-color: #f8fafc !important;
}

.ecs-compare-head-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 4px;
}

.ecs-compare-head-sub {
  font-size: 12px;
  color: #64748b;
}

.ecs-compare-remove-btn {
  width: 26px;
  height: 26px;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.ecs-compare-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ecs-primary);
  margin-bottom: 5px;
}

.ecs-compare-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px 0;
  min-height: 38px;
  max-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecs-compare-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ecs-compare-title a:hover {
  color: var(--ecs-primary);
}

.ecs-compare-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.ecs-compare-price {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ecs-primary);
  letter-spacing: -0.2px;
}

.ecs-compare-old-price {
  font-size: 12.5px;
  color: #8c98a4;
  text-decoration: line-through;
}

.ecs-compare-discount {
  font-size: 10.5px;
  font-weight: 700;
  color: #dc2626;
  background-color: #fee2e2;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.2;
}

.ecs-compare-btn-cart {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
}

.ecs-compare-section-header {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 16px !important;
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-top: 1px solid var(--ecs-border) !important;
  border-bottom: 1px solid var(--ecs-border) !important;
}

.ecs-compare-row-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background-color: #f8fafc !important;
  padding: 12px 16px !important;
  width: 220px;
  min-width: 200px;
  vertical-align: middle;
}

.ecs-compare-spec-val {
  font-size: 13px !important;
  color: #334155 !important;
  font-weight: 500;
  line-height: 1.45;
  vertical-align: middle;
}

.ecs-compare-rating-cell {
  vertical-align: middle;
}

.ecs-compare-rating-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #d97706;
}

.ecs-compare-rating-count {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  margin-left: 4px;
}

.ecs-stock-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.ecs-stock-badge.in-stock {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ecs-stock-badge.out-of-stock {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ecs-compare-bottom-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ecs-primary);
}

.ecs-compare-empty-slot {
  min-height: 240px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fafbfc;
}

.ecs-compare-empty-slot .empty-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 2px;
}

.ecs-compare-empty-slot .empty-subtitle {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.diff-badge {
  font-size: 10px !important;
  font-weight: 600;
  padding: 2px 5px;
}

.ecs-compare-prod-cell:hover .ecs-compare-img-wrap img {
  transform: scale(1.05);
  transition: transform 0.25s ease;
}

/* ==========================================================================
   OpenCart Classic Enclosed Breadcrumb (Compact Spacing & Chevron Dividers)
   ========================================================================== */
nav[aria-label="breadcrumb"] {
  margin-bottom: 0 !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 14px;
  margin: 6px 0 12px 0;
  list-style: none;
  background-color: #fbfbfb;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #94a3b8;
  border-right: 1.5px solid #94a3b8;
  transform: rotate(45deg);
  margin: 0 10px;
  padding: 0;
  float: none;
}

.breadcrumb a {
  color: #01693A;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb a:hover {
  color: #01532e;
  text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active,
.breadcrumb .breadcrumb-item.active span {
  color: #334155;
  font-weight: 500;
  font-size: 12px;
}

.breadcrumb .fa-home {
  color: #01693A;
  font-size: 13px;
}

/* ==========================================================================
   Filtration Segment & Category Sidebar Typography & Styling (OpenCart)
   ========================================================================== */
.ecs-category-list-group {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.ecs-category-list-group .list-group-item {
  font-family: var(--ecs-font-sans);
  font-size: 12px;
  color: #444444;
  padding: 8px 14px;
  border-color: #f1f5f9;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease;
  background-color: #ffffff;
  text-decoration: none;
  display: block;
}

.ecs-category-list-group .list-group-item:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.ecs-category-list-group .list-group-item:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.ecs-category-list-group .list-group-item:hover {
  background-color: #f8fafc;
  color: #01693A;
}

.ecs-category-list-group .list-group-item.active {
  background-color: #01693A !important;
  background-image: linear-gradient(to bottom, #01693A, #01532e);
  border-color: #01532e !important;
  color: #ffffff !important;
  font-weight: 600;
}

.ecs-category-list-group .list-group-item.active:hover {
  background-color: #01532e !important;
  color: #ffffff !important;
}

.ecs-category-list-group .ecs-sub-item {
  padding-left: 20px;
  font-size: 12px;
  color: #444444;
  background-color: #fafbfc;
}

.ecs-category-list-group .ecs-sub-item:hover {
  background-color: #f1f5f9;
  color: #01693A;
}

.ecs-category-list-group .ecs-sub-item.active {
  background-color: #01693A !important;
  border-color: #01532e !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Faceted Filter Sidebar Typography & Styling */
.ecs-filter-sidebar {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: var(--ecs-font-sans);
  background-color: #ffffff;
  margin-bottom: 20px;
}

.ecs-filter-sidebar .card-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.ecs-filter-sidebar .card-body {
  padding: 14px;
}

.ecs-filter-sidebar .ecs-filter-group {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

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

.ecs-filter-sidebar .ecs-filter-group-title,
.ecs-filter-sidebar h6 {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155 !important;
  margin-bottom: 8px;
}

.ecs-filter-sidebar .form-check {
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.4;
  min-height: auto;
}

.ecs-filter-sidebar .form-check-label {
  font-size: 12px !important;
  color: #444444 !important;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ecs-filter-sidebar .form-check-label:hover {
  color: #01693A !important;
}

.ecs-filter-sidebar .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-color: #cbd5e1;
  cursor: pointer;
}

.ecs-filter-sidebar .form-check-input:checked {
  background-color: #01693A;
  border-color: #01693A;
}

.ecs-filter-sidebar .badge {
  font-size: 11px !important;
  font-weight: 500;
  color: #64748b !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2px 6px;
  border-radius: 3px;
}

.ecs-filter-sidebar .form-control-sm {
  font-size: 12px;
  height: 30px;
  border-color: #cbd5e1;
  border-radius: 4px;
  color: #334155;
}

.ecs-filter-sidebar .btn-outline-primary {
  font-size: 12px;
  padding: 4px 10px;
  border-color: #01693A;
  color: #01693A;
}

.ecs-filter-sidebar .btn-outline-primary:hover {
  background-color: #01693A;
  border-color: #01693A;
  color: #ffffff;
}

/* ==========================================================================
   OpenCart Classic Product Details Tabs (Description, Spec, Reviews)
   ========================================================================== */
.ecs-pdp-nav-tabs {
  border-bottom: 1px solid #dddddd;
}

.ecs-pdp-nav-tabs .nav-link {
  font-family: var(--ecs-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  padding: 10px 18px;
  border-radius: 4px 4px 0 0;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  background: transparent;
}

.ecs-pdp-nav-tabs .nav-link:hover {
  border-color: #eeeeee #eeeeee #dddddd;
  color: #01693A;
}

.ecs-pdp-nav-tabs .nav-link.active {
  color: #333333;
  background-color: #ffffff;
  border-color: #dddddd #dddddd #ffffff;
}

.ecs-pdp-tabs-container {
  display: flow-root;
  clear: both;
}

.ecs-pdp-tab-content {
  border-color: #dddddd !important;
  background-color: #ffffff;
  font-family: var(--ecs-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: #444444;
  display: flow-root;
  clear: both;
}

.ecs-pdp-tab-content h6 {
  font-size: 13px;
  color: #333333;
}

.ecs-full-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
  display: flow-root;
  clear: both;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ecs-full-desc::after {
  content: "";
  display: table;
  clear: both;
}

/* Sanitize legacy HTML with inline floats/fixed widths that break page layouts */
.ecs-full-desc p,
.ecs-full-desc div,
.ecs-full-desc h1,
.ecs-full-desc h2,
.ecs-full-desc h3,
.ecs-full-desc h4,
.ecs-full-desc h5,
.ecs-full-desc h6 {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Eliminate empty legacy spacer divs, trailing line breaks, and excess bottom margins */
.ecs-full-desc .hr,
.ecs-full-desc div.hr {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ecs-full-desc p:last-child {
  margin-bottom: 0 !important;
}

.ecs-full-desc p:empty {
  display: none !important;
}

.ecs-full-desc p br:last-child {
  display: none !important;
}

/* ==========================================================================
   OpenCart Related Products (4-Product Space / Horizontal Scroll Track)
   ========================================================================== */
.ecs-related-products-section {
  clear: both;
  display: block;
  margin-top: 24px !important;
}

.ecs-related-products-section .ecs-section-heading {
  font-size: 18px;
  font-weight: 600;
  color: #444444;
}

.ecs-related-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

.ecs-related-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.ecs-related-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.ecs-related-scroll-container::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.ecs-related-card-item {
  flex: 0 0 calc(25% - 12px);
  min-width: 220px;
  display: flex;
}

@media (max-width: 991px) {
  .ecs-related-card-item {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 575px) {
  .ecs-related-card-item {
    flex: 0 0 100%;
  }
}

/* ==========================================================================
   Decent Product Variants (No box/card, compact chips)
   ========================================================================== */
.ecs-variants-wrap {
  margin-bottom: 20px;
}

.ecs-variants-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.ecs-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecs-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 30px;
  font-family: var(--ecs-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #444444;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.ecs-variant-chip:hover {
  border-color: #01693A;
  color: #01693A;
  background-color: #f8fafc;
}

.ecs-variant-chip.selected {
  border-color: #01693A;
  background-color: #f0f9ff;
  color: #01532e;
  font-weight: 600;
  box-shadow: 0 0 0 1px #01693A;
}

.ecs-variant-chip .chip-price {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.ecs-variant-chip.selected .chip-price {
  color: #01532e;
  font-weight: 500;
}

/* ==========================================================================
   Decent Add to Cart & Purchase Controls (Height 36px, compact, clean)
   ========================================================================== */
.ecs-pdp-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ecs-qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  overflow: hidden;
}

.ecs-qty-stepper button {
  border: none;
  background-color: #f8fafc;
  width: 32px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.ecs-qty-stepper button:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.ecs-qty-input {
  width: 44px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  outline: none;
  padding: 0;
}

.ecs-btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 22px;
  font-family: var(--ecs-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background-color: #01693A;
  background-image: linear-gradient(to bottom, #01693A, #01532e);
  border: 1px solid #01532e;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ecs-btn-add-cart:hover {
  background-color: #01532e;
  background-image: none;
  border-color: #1a789c;
  color: #ffffff;
}

.ecs-btn-icon-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.ecs-btn-icon-action:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

.ecs-btn-icon-action.active {
  color: #ef4444;
  border-color: #fca5a5;
  background-color: #fef2f2;
}

/* ==========================================================================
   Product Key Attributes & Meta Card Presentation (Clean, Modern, Aligned)
   ========================================================================== */
.ecs-product-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.ecs-meta-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.ecs-meta-table tr:not(:last-child) td {
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.ecs-meta-table tr:not(:first-child) td {
  padding-top: 8px;
}

.ecs-meta-table tr:first-child td {
  padding-top: 2px;
}

.ecs-meta-table tr:last-child td {
  padding-bottom: 2px;
}

.ecs-meta-table .ecs-meta-label {
  width: 165px;
  min-width: 145px;
  color: #64748b;
  font-weight: 500;
  vertical-align: middle;
  padding-right: 14px;
}

.ecs-meta-table .ecs-meta-value {
  color: #0f172a;
  vertical-align: middle;
}

.ecs-meta-sku {
  background: #f1f5f9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
}

.ecs-meta-chips-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ecs-meta-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.ecs-meta-chip.selected {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #3b82f6 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.ecs-color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.ecs-meta-single-val {
  display: inline-flex;
  align-items: center;
}

.ecs-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.ecs-stock-pill.in-stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ecs-stock-pill.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ecs-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ecs-stock-pill.in-stock .ecs-stock-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ecs-stock-pill.out-of-stock .ecs-stock-dot {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Backward compatibility for meta list */
.ecs-product-meta-list {
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 16px 0;
  padding: 0;
}

.ecs-product-meta-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ecs-product-meta-list .ecs-meta-label {
  min-width: 155px;
  color: #64748b;
  font-weight: 500;
}

.ecs-product-meta-list .ecs-meta-value {
  color: #1e293b;
}

.ecs-spec-table {
  border-color: #e2e8f0;
}

.ecs-spec-table thead.table-light th.ecs-spec-group-title {
  background-color: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 14px;
  border-bottom: 2px solid #cbd5e1;
}

.ecs-spec-table td.ecs-spec-attr-name {
  width: 32%;
  font-weight: 600;
  color: #475569;
  background-color: #f8fafc;
  padding: 8px 14px;
}

.ecs-spec-table td.ecs-spec-attr-val {
  color: #1e293b;
  padding: 8px 14px;
}

.ecs-price-contact {
  color: #01693A !important;
  font-weight: 700 !important;
}

.ecs-catalog-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

.ecs-catalog-desc p {
  margin-bottom: 4px;
}

.ecs-catalog-desc p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Catalog Pagination Component
   ========================================================================== */
.ecs-pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 16px 0;
  width: 100%;
}

.ecs-pagination-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ecs-page-item {
  display: inline-block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ecs-page-item::before,
.ecs-page-item::marker {
  content: none !important;
  display: none !important;
}

.ecs-page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.ecs-page-link:hover {
  background-color: #f8fafc !important;
  color: #01693A !important;
  border-color: #01693A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(1, 105, 58, 0.15) !important;
}

.ecs-page-item.active .ecs-page-link {
  background: #01693A !important;
  color: #ffffff !important;
  border-color: #01693A !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(1, 105, 58, 0.3) !important;
  pointer-events: none !important;
  transform: translateY(-1px) !important;
}

.ecs-page-item.disabled .ecs-page-link {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  opacity: 0.65 !important;
}

.ecs-page-link.ecs-page-ellipsis {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  min-width: 24px !important;
  padding: 0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.ecs-prev-link,
.ecs-next-link {
  font-weight: 600 !important;
  padding: 0 16px !important;
  gap: 4px !important;
}

/* ==========================================================================
   Product Detail Page (PDP) Image Gallery & Zoom Frame
   ========================================================================== */
.ecs-pdp-main-image-wrap {
  background: var(--ecs-card-bg, #ffffff);
  border: 1px solid var(--ecs-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  position: relative;
  height: 480px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ecs-pdp-main-image-wrap #pdp-main-image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
  transition: transform 0.3s ease, opacity 0.15s ease;
}

@media (max-width: 768px) {
  .ecs-pdp-main-image-wrap {
    height: 340px;
    padding: 10px;
  }
}

.ecs-gallery-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--ecs-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ecs-gallery-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ecs-primary);
}

.ecs-gallery-thumb-btn.active {
  border-color: var(--ecs-primary) !important;
  box-shadow: 0 0 0 1px var(--ecs-primary);
}

.ecs-gallery-thumb-btn img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
}
