/* Portal Theme: Clean White with Deep Blue Accents */
:root {
  --ep-bg: #ffffff;
  --ep-bg-alt: #f4f7fb;
  --ep-surface: #ffffff;
  --ep-border: #d1dbe6;
  --ep-border-strong: #a8b8cc;
  --ep-text: #142033;
  --ep-text-soft: #4f6074;
  --ep-primary: #a0a080;
  --ep-primary-rgb: 160, 160, 128;
  --ep-primary-accent: #b0b090;
  --ep-primary-soft: #e0e0d0;
  --ep-accent: #a0a080;
  --ep-danger: #c62828;
  --ep-warning: #a46816;
  --ep-success: #0d6a43;
  --ep-radius-xs: 3px;
  --ep-radius-sm: 6px;
  --ep-radius-md: 10px;
  --ep-radius-lg: 16px;
  --ep-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .02);
  --ep-shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --ep-shadow-lg: 0 10px 28px -4px rgba(15, 23, 42, .15), 0 6px 12px -6px rgba(15, 23, 42, .08);
  --ep-focus: 0 0 0 3px rgba(var(--ep-primary-rgb), .32);
  --ep-gradient-primary: linear-gradient(135deg, #a0a080, #b0b090 55%, #c0b0a0);
  --ep-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--ep-font-stack);
  background: var(--ep-bg-alt);
  color: var(--ep-text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Layout Shell */
.ep-shell-header {
  background: #fff;
  border-bottom: 1px solid var(--ep-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.ep-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ep-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ep-primary);
  text-decoration: none;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.ep-brand img {
  height: 40px;
}

.ep-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

.ep-nav a {
  color: var(--ep-text-soft);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 6px 8px;
  transition: .2s;
  white-space: nowrap;
}

.ep-nav a.active,
.ep-nav a:hover {
  color: var(--ep-primary);
}

.ep-nav a.active::after,
.ep-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--ep-primary);
}

.ep-user-link {
  color: var(--ep-text-soft);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px
}

.ep-user-link.active,
.ep-user-link:hover {
  background: rgba(var(--ep-primary-rgb), .06);
  color: var(--ep-primary)
}

/* Cart icon in header */
.ep-cart-icon {
  vertical-align: middle;
  margin-right: 8px;
  color: var(--ep-text-soft);
  width: 28px;
  height: 28px
}

.ep-cart-icon--thick {
  width: 28px;
  height: 28px;
  fill: var(--ep-text);
}

.ep-cart-badge {
  background: var(--ep-primary-soft);
  color: var(--ep-primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .65rem;
  font-weight: 600;
  margin-left: 6px
}

.ep-nav a .ep-visually-hidden {
  display: none
}

/* Ensure mobile-only nav user block is hidden by default (avoid duplicate controls on desktop) */
.ep-nav-user {
  display: none !important
}

/* Desktop header user menu (moved from template inline styles) */
.ep-user-menu {
  display: flex;
  align-items: center;
  gap: 12px
}

.ep-user-menu form {
  margin: 0
}

.ep-user-menu .ep-lang-select {
  border: 1px solid var(--ep-border);
  background: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer
}


/* Inline small badge on buy button */
.ep-buy-btn {
  position: relative;
  overflow: visible
}

.ep-inline-added-badge {
  position: absolute;
  right: -10px;
  top: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ep-primary);
  border-radius: 999px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: .78rem;
  box-shadow: 0 6px 18px rgba(var(--ep-primary-rgb), .12);
  transform: scale(1);
  transition: transform .18s ease, opacity .3s ease
}

.ep-inline-added-badge--hide {
  transform: scale(.85);
  opacity: 0
}

.ep-search-bar {
  flex: 1;
  position: relative;
}

.ep-search-bar input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 120px 11px 16px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  font-size: .9rem;
  background: #fff;
  color: var(--ep-text);
  transition: .2s;
}

.ep-search-bar input:focus {
  outline: none;
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(var(--ep-primary-rgb), .12);
}

.ep-search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ep-gradient-primary);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--ep-primary-rgb), .22);
}

.ep-search-bar button:hover {
  filter: brightness(1.08);
}

/* Search suggestions dropdown */
.ep-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 60px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(7, 31, 70, .14);
  max-height: 450px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  scroll-behavior: smooth;
}

.ep-search-suggestions.ep-show {
  display: block;
}

.ep-suggestions-section {
  padding: 12px 0;
}

.ep-suggestions-section:not(:last-child) {
  border-bottom: 1px solid var(--ep-border);
}

.ep-suggestions-header {
  padding: 8px 16px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ep-text-soft);
}

.ep-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  color: var(--ep-text);
}

.ep-suggestion-item:hover {
  background: var(--ep-bg-alt);
}

.ep-suggestion-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ep-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-primary);
  font-size: .7rem;
  font-weight: 600;
}

.ep-suggestion-text {
  flex: 1;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ep-text);
}

.ep-no-suggestions {
  padding: 24px 16px;
  text-align: center;
  font-size: .8rem;
  color: var(--ep-text-soft);
}

/* Scrollbar styling for suggestions */
.ep-search-suggestions::-webkit-scrollbar,
.ep-hero-suggestions::-webkit-scrollbar {
  width: 8px;
}

.ep-search-suggestions::-webkit-scrollbar-track,
.ep-hero-suggestions::-webkit-scrollbar-track {
  background: var(--ep-bg-alt);
  border-radius: 10px;
}

.ep-search-suggestions::-webkit-scrollbar-thumb,
.ep-hero-suggestions::-webkit-scrollbar-thumb {
  background: var(--ep-border-strong);
  border-radius: 10px;
}

.ep-search-suggestions::-webkit-scrollbar-thumb:hover,
.ep-hero-suggestions::-webkit-scrollbar-thumb:hover {
  background: var(--ep-primary);
}

/* Hero / Spotlight */
.ep-hero {
  max-width: 1280px;
  margin: 32px auto 8px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.ep-hero-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  padding: 48px 52px 54px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.ep-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 95% 12%, rgba(var(--ep-primary-rgb), .12), transparent 58%);
  opacity: 1;
  pointer-events: none;
}

.ep-hero-card h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
  line-height: 1.18;
  color: var(--ep-text);
  font-weight: 700;
  letter-spacing: .3px;
  position: relative;
}

.ep-hero-card p {
  margin: 0 0 28px;
  font-size: .95rem;
  color: var(--ep-text-soft);
  max-width: 560px;
  position: relative;
}

.ep-hero-banner {
  max-width: 1320px;
  margin: 40px auto 0;
  padding: 0 32px;
  position: relative;
}

.ep-hero-banner-inner {
  background: linear-gradient(135deg, rgba(var(--ep-primary-rgb), .14), rgba(var(--ep-primary-rgb), .08));
  border: 1px solid rgba(var(--ep-primary-rgb), .18);
  border-radius: 26px;
  padding: 68px 80px 74px;
  box-shadow: 0 18px 48px rgba(7, 31, 70, .18);
  position: relative;
  overflow: visible;
}

.ep-hero-banner-inner::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--ep-primary-rgb), .22), transparent 65%);
  opacity: .7;
  pointer-events: none;
  z-index: 0;
}

.ep-hero-banner-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.ep-hero-banner-content h1 {
  margin: 0 0 18px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ep-text);
}

.ep-hero-banner-content p {
  margin: 0 0 36px;
  font-size: 1rem;
  color: var(--ep-text-soft);
  line-height: 1.6;
}

.ep-hero-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 100;
}

.ep-hero-search form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(var(--ep-primary-rgb), .22);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 26px rgba(7, 31, 70, .16);
  backdrop-filter: blur(6px);
}

.ep-hero-search input {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--ep-text);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}

.ep-hero-search input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(var(--ep-primary-rgb), .28);
}

.ep-hero-search button {
  background: var(--ep-gradient-primary);
  border: none;
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(var(--ep-primary-rgb), .25);
}

.ep-hero-search button:hover {
  filter: brightness(1.08);
}

.ep-hero-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 31, 70, .14);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  scroll-behavior: smooth;
}

.ep-hero-suggestions:not(.ep-hidden) {
  display: block;
}

.ep-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ep-stat {
  background: var(--ep-primary-soft);
  border: 1px solid #b6c9e6;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.ep-stat span {
  font-size: .6rem;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--ep-primary);
  text-transform: uppercase;
}

.ep-stat strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ep-primary);
}

/* Homepage stats & benefits */
.ep-stats-section {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.ep-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.ep-stat-card {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(var(--ep-primary-rgb), .14);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 32px rgba(7, 31, 70, .08);
  position: relative;
  overflow: hidden;
}

.ep-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(var(--ep-primary-rgb), .12), transparent 65%);
  opacity: .85;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.ep-stat-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-stat-card__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--ep-primary-rgb), .78);
}

.ep-stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .06em;
}

.ep-benefits-section {
  max-width: 1320px;
  margin: 68px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ep-benefits-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-benefits-header h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .06em;
}

.ep-benefits-header p {
  margin: 0;
  font-size: .9rem;
  color: var(--ep-text-soft);
}

.ep-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ep-benefit-card {
  background: #fff;
  border: 1px solid rgba(var(--ep-primary-rgb), .16);
  border-radius: 20px;
  padding: 26px 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(7, 31, 70, .08);
  transition: .2s ease;
}

.ep-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 31, 70, .1);
  border-color: rgba(var(--ep-primary-rgb), .28);
}

.ep-benefit-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(var(--ep-primary-rgb), .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-primary);
  box-shadow: inset 0 0 0 1px rgba(var(--ep-primary-rgb), .2);
}

.ep-benefit-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ep-text);
}

.ep-benefit-body p {
  margin: 0;
  font-size: .82rem;
  color: var(--ep-text-soft);
  line-height: 1.55;
}

/* Trust section */
.ep-trust-section {
  padding: 72px 0 58px;
  margin-top: 56px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.ep-trust-section::before {
  content: "";
  position: absolute;
  inset: -40% 45% auto -30%;
  height: 320px;
  background: radial-gradient(circle at center, rgba(var(--ep-primary-rgb), .12), transparent 62%);
  pointer-events: none;
}

.ep-trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.ep-trust-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-trust-head h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .05em;
}

.ep-trust-head p {
  margin: 0;
  font-size: .9rem;
  color: var(--ep-text-soft);
}

.ep-trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.ep-trust-bubble {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ep-primary-rgb), .26);
  background: rgba(var(--ep-primary-rgb), .08);
  color: var(--ep-primary);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  box-shadow: 0 6px 16px rgba(7, 31, 70, .08);
}

.ep-trust-metrics {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ep-trust-metric {
  min-width: 180px;
  background: var(--ep-bg-alt);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(var(--ep-primary-rgb), .12);
  box-shadow: 0 10px 24px rgba(7, 31, 70, .08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.ep-trust-metric__value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ep-primary);
  letter-spacing: .08em;
}

.ep-trust-metric__label {
  font-size: .75rem;
  color: var(--ep-text-soft);
  text-transform: uppercase;
  letter-spacing: .18em;
}

/* Cards / product grid preview */
.ep-section-title {
  max-width: 1280px;
  margin: 40px auto 12px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-section-title h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ep-text);
}

.ep-link-inline {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ep-primary);
  text-decoration: none;
  letter-spacing: .5px;
}

.ep-link-inline:hover {
  text-decoration: underline;
}

/* cart bottom link: remove underline entirely */
.ep-cart-bottom-link,
.ep-cart-bottom-link:hover {
  text-decoration: none;
}

.ep-product-grid {
  max-width: 100%;
  margin: 0;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ep-product-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  color: var(--ep-text);
  text-decoration: none;
}

.ep-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(var(--ep-primary-rgb), .08), transparent 70%);
  opacity: 0;
  transition: .3s;
}

.ep-product-card:hover::before {
  opacity: 1;
}

.ep-product-card:hover {
  border-color: var(--ep-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.ep-product-card h3 {
  font-size: .88rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ep-text);
}

.ep-product-card .ep-sku {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--ep-text-soft);
}

.ep-price {
  font-weight: 600;
  color: var(--ep-primary);
  font-size: 1rem;
}

.ep-add-btn {
  margin-top: auto;
  background: var(--ep-gradient-primary);
  border: none;
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.ep-add-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

/* Product card variants */
.ep-product-card[data-variant='compact'] {
  padding: 10px 12px;
}

.ep-product-card figure {
  margin: 0;
  background: var(--ep-primary-soft);
  border: 1px solid #adc5e5;
  border-radius: 12px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-product-card figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ep-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ep-badges span {
  background: #eef4fa;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ep-text-soft);
}

.ep-home-category {
  min-height: 180px;
  gap: 14px;
  text-decoration: none;
}

.ep-home-category figure {
  margin: 0;
  background: var(--ep-primary-soft);
  border: 1px solid rgba(var(--ep-primary-rgb), .25);
  border-radius: 14px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-home-category__cta {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ep-primary);
  margin-top: auto;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ep-home-category:hover .ep-home-category__cta {
  color: var(--ep-primary-accent);
}

/* Catalog layout */
.ep-catalog-shell {
  max-width: 1900px;
  margin: 0 auto 84px;
  padding: 0 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.ep-filter-panel {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: var(--ep-shadow-md);
  /* sidebar scrolls with page now */
  position: static;
  max-height: none;
  overflow: visible;
}

.ep-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ep-filter-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .04em;
}

.ep-filter-clear {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ep-primary-rgb), .22);
  background: rgba(var(--ep-primary-rgb), .08);
  color: var(--ep-primary);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: .2s ease;
}

.ep-filter-clear:hover {
  background: rgba(var(--ep-primary-rgb), .14);
  border-color: rgba(var(--ep-primary-rgb), .32);
}

.ep-filter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep-filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-filter-title {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ep-text);
  letter-spacing: .03em;
}

.ep-filter-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  font-size: .85rem;
  background: var(--ep-surface);
  color: var(--ep-text);
}

.ep-filter-input:focus {
  outline: none;
  border-color: var(--ep-primary);
  box-shadow: var(--ep-focus);
}

.ep-filter-input--sm {
  font-size: .78rem;
  padding: 8px 12px;
}

.ep-filter-input--price {
  font-size: .78rem;
  padding: 8px 10px;
}

.ep-category-search {
  margin-bottom: 8px;
}

.ep-category-list {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}

.ep-category-list::-webkit-scrollbar {
  width: 6px;
}

.ep-category-list::-webkit-scrollbar-track {
  background: transparent;
}

.ep-category-list::-webkit-scrollbar-thumb {
  background: rgba(var(--ep-primary-rgb), .25);
  border-radius: 20px;
}

.ep-category-list::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ep-primary-rgb), .38);
}

.ep-category-group {
  display: flex;
  flex-direction: column;
}

.ep-category-group--nested {
  margin-left: 20px;
  position: relative;
}

.ep-category-group--nested::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(var(--ep-primary-rgb), .2);
}

.ep-category-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s ease;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ep-text);
  position: relative;
}

.ep-category-radio:hover {
  background: rgba(var(--ep-primary-rgb), .06);
}

.ep-category-radio.is-checked {
  background: rgba(var(--ep-primary-rgb), .12);
  color: var(--ep-primary);
  font-weight: 600;
}

.ep-category-radio.has-children {
  font-weight: 600;
}

.ep-category-radio.has-children .ep-category-children {
  display: block;
}

.ep-category-radio input[type="radio"] {
  accent-color: var(--ep-primary);
  cursor: pointer;
  margin: 0;
}

.ep-category-name {
  flex: 1;
}

.ep-category-count {
  font-size: .68rem;
  color: var(--ep-text-soft);
  font-weight: 500;
  opacity: .7;
  margin-left: auto;
}

.ep-category-toggle {
  display: none;
}

.ep-category-radio.has-children {
  padding-right: 36px;
}

/* make room for right arrow */
.ep-category-children {
  display: none;
  margin-top: 4px;
  padding: 8px 0 4px 16px;
  border-left: 2px solid rgba(var(--ep-primary-rgb), .1);
  background: rgba(var(--ep-primary-rgb), .02);
}

.ep-category-children--main {
  background: #f8fafc;
  border: 1px solid rgba(var(--ep-primary-rgb), .08);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}

.ep-category-children .ep-category-group+.ep-category-group {
  margin-top: 2px;
}

.ep-category-radio.has-children {
  position: relative;
}

.ep-category-radio.has-children::after {
  content: "";
  position: absolute;
  right: 12px;
  left: auto;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(var(--ep-primary-rgb), .9);
  border-bottom: 2px solid rgba(var(--ep-primary-rgb), .9);
  transform: translateY(-50%) rotate(45deg);
  opacity: 1;
  transition: transform .18s ease, opacity .18s ease;
}

.ep-category-radio.has-children.is-expanded::after {
  transform: translateY(-50%) rotate(225deg);
}

/* Make expanded nodes visually match the checked (selected) category */
.ep-category-radio.is-expanded {
  background: rgba(var(--ep-primary-rgb), .12);
  color: var(--ep-primary);
  font-weight: 600;
}

.ep-category-level-1 {
  font-weight: 600;
  font-size: .82rem;
  padding: 10px 12px;
}

.ep-category-level-1:hover {
  background: rgba(var(--ep-primary-rgb), .08);
}

.ep-category-level-2 {
  font-weight: 500;
  padding-left: 16px;
  font-size: .76rem;
}

.ep-category-level-3 {
  font-weight: 500;
  padding-left: 32px;
  font-size: .74rem;
}

.ep-category-level-4 {
  font-weight: 500;
  padding-left: 48px;
  font-size: .72rem;
}

/* Expand main categories toggle */
.ep-category-expand-toggle {
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ep-text);
  font-size: 0.95rem
}

.ep-category-expand-toggle:hover {
  background: rgba(var(--ep-primary-rgb), .04)
}

.ep-category-expand-toggle__icon {
  display: inline-block;
  transform: rotate(0);
  transition: transform .18s ease
}

.ep-category-expand-toggle[aria-pressed="true"] .ep-category-expand-toggle__icon {
  transform: rotate(180deg)
}

/* When collapsed, hide nested groups; when expanded, show only top-level groups expanded */
.ep-category-list.is-collapsed .ep-category-group--nested {
  display: none
}

.ep-category-list.is-expanded {
  max-height: none;
  overflow: visible;
}

.ep-brand-search {
  margin-bottom: 8px;
}

.ep-brand-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ep-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ep-text);
}

.ep-filter-checkbox.is-checked {
  color: var(--ep-primary);
  font-weight: 600;
}

.ep-filter-checkbox input[type="checkbox"] {
  accent-color: var(--ep-primary);
  cursor: pointer;
  margin: 0;
}

.ep-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-price-separator {
  color: var(--ep-text-soft);
  font-weight: 500;
}

.ep-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-filter-apply {
  padding: 12px 20px;
  background: var(--ep-gradient-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 14px rgba(var(--ep-primary-rgb), .22);
  transition: .2s ease;
}

.ep-filter-apply:hover {
  filter: brightness(1.05);
}

/* Cart page styles */
.ep-cart-shell {
  max-width: 1120px;
  margin: 8px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.ep-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

/* Contact confirmation page styles */

.ep-contact-confirm-icon svg {
  width: 72px;
  height: 72px
}

.ep-contact-hero {
  background: linear-gradient(180deg, rgba(var(--ep-primary-rgb), 0.03), rgba(var(--ep-primary-rgb), 0.02));
}

.ep-contact-confirm-card {
  max-width: 880px;
  background: var(--ep-bg);
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 auto;
  box-shadow: var(--ep-shadow-md)
}

.ep-contact-confirm-row {
  display: flex;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: flex-start
}

.ep-contact-confirm-row:last-child {
  border-bottom: none
}

.ep-contact-confirm-key {
  width: 140px;
  font-weight: 700;
  color: var(--ep-text-soft);
  font-size: .9rem
}

.ep-contact-confirm-val {
  flex: 1;
  font-size: .95rem;
  color: var(--ep-text)
}

.ep-contact-confirm-meta .ep-contact-confirm-val {
  color: var(--ep-text-soft);
  font-size: .88rem
}

.ep-contact-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end
}

/* make the secondary button visually match other secondary places */
.ep-contact-confirm-actions .ep-btn-secondary {
  background: transparent;
  border: 1px solid rgba(var(--ep-primary-rgb), .12);
  color: var(--ep-primary);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease
}

.ep-contact-confirm-actions .ep-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 31, 70, .06)
}

/* primary button should match site primary */
.ep-contact-confirm-actions .ep-btn-primary {
  background: var(--ep-gradient-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease
}

.ep-contact-confirm-actions .ep-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--ep-primary-rgb), .18)
}

@media (max-width:900px) {
  .ep-contact-confirm-key {
    width: 120px;
    font-size: .85rem
  }

  .ep-contact-confirm-row {
    padding: 10px 6px
  }

  .ep-contact-confirm-actions {
    flex-direction: column;
    align-items: stretch
  }

  .ep-contact-confirm-actions .ep-btn-primary,
  .ep-contact-confirm-actions .ep-btn-secondary {
    width: 100%
  }
}

/* Tablet responsiveness (980px - 1180px) */
@media (max-width: 1180px) {
  .ep-nav {
    gap: 12px;
  }
  
  .ep-nav a {
    padding: 5px 6px;
    font-size: 0.9rem;
  }
  
  .ep-user-menu {
    gap: 8px;
  }
  
  .ep-user-menu a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  
  .ep-search-bar input {
    font-size: 0.85rem;
    padding: 10px 80px 10px 12px;
  }
}

@media (max-width: 1100px) {
  .ep-nav {
    gap: 6px;
  }
  
  .ep-nav a {
    padding: 4px 5px;
    font-size: 0.8rem;
  }
  
  .ep-user-menu {
    gap: 5px;
  }
  
  .ep-user-menu a {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
  
  .ep-search-bar input {
    font-size: 0.75rem;
    padding: 8px 60px 8px 8px;
  }
  
  .ep-brand img {
    height: 32px;
  }
}

@media (max-width: 1080px) {
  .ep-nav {
    gap: 8px;
  }
  
  .ep-nav a {
    padding: 4px 6px;
    font-size: 0.85rem;
  }
  
  .ep-user-menu {
    gap: 6px;
  }
  
  .ep-user-menu a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .ep-search-bar input {
    font-size: 0.8rem;
    padding: 9px 70px 9px 10px;
  }
  
  .ep-brand img {
    height: 36px;
  }
}

/* Fix for 980-1020px range */
@media (max-width: 1020px) and (min-width: 980px) {
  .ep-nav {
    gap: 8px;
  }
  
  .ep-nav a {
    padding: 4px 6px;
    font-size: 0.85rem;
  }
  
  .ep-user-menu {
    gap: 6px;
  }
  
  .ep-user-menu a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .ep-search-bar input {
    font-size: 0.8rem;
    padding: 9px 70px 9px 10px;
  }
  
  .ep-brand img {
    height: 36px;
  }
}

/* Desktop styles - show dropdown catalog and hide mobile catalog */
@media (min-width: 1021px) {
  .ep-nav-dropdown--desktop {
    display: block;
  }
  
  .ep-nav-catalog--mobile {
    display: none !important;
  }
}

/* Mobile / Tablet header adjustments */
@media (max-width: 1020px) {
  .ep-header-inner {
    height: 64px;
    padding: 0 16px;
    align-items: center;
    gap: 10px;
  }

  .ep-brand img {
    height: 36px;
  }

  /* show only burger + brand on first row, allow other elements to wrap */
  .ep-nav-toggle {
    display: flex;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer
  }

  .ep-nav-toggle .ep-nav-toggle-icon {
    font-size: 20px;
    line-height: 1
  }

  /* search bar will wrap to next row on mobile */
  .ep-search-bar {
    flex: 1 0 100%;
    order: 3;
  }

  /* show header user menu (we'll expose controls inside the mobile nav) */
  .ep-user-menu {
    display: block
  }

  /* Default styles - show mobile catalog by default */
  .ep-nav-catalog--mobile {
    display: block;
  }

  /* hide desktop dropdown catalog on mobile */
  .ep-nav-dropdown--desktop {
    display: none !important;
  }

  /* compact placeholder for header controls when needed */
  .ep-header-controls {
    display: flex;
    gap: 8px;
    align-items: center
  }

  /* mobile nav user block inside overlay - hidden by default */
  .ep-nav-user {
    padding: 12px 16px;
    border-top: 1px solid var(--ep-border);
    display: none;
    flex-direction: column;
    gap: 10px;
    background: transparent
  }

  .ep-nav-user .ep-nav-lang {
    display: block
  }

  .ep-nav-user .ep-lang-select {
    width: 120px
  }

  .ep-nav-user .ep-nav-auth {
    display: flex;
    gap: 8px;
    align-items: center
  }

  .ep-nav-user .ep-user-link {
    font-weight: 700;
    color: var(--ep-primary)
  }

  .ep-nav-user .ep-btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--ep-gradient-primary);
    color: #fff;
    border: none
  }

  .ep-nav-user .ep-nav-catalog {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .ep-nav-user .ep-nav-catalog-link {
    display: block;
    padding: 14px 16px;
    color: var(--ep-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--ep-border);
    transition: .2s;
  }

  .ep-nav-user .ep-nav-catalog-link:hover,
  .ep-nav-user .ep-nav-catalog-link.active {
    background: rgba(var(--ep-primary-rgb), .04);
    color: var(--ep-primary);
  }

  /* mobile nav becomes a full-screen fixed panel under the header */
  .ep-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    flex-direction: column;
    gap: 0;
    z-index: 60;
    overflow: auto;
    padding-top: 0
  }

  /* inner container keeps nav centered and constrained */
  .ep-nav .ep-nav-inner {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    padding: 8px 12px
  }

  .ep-nav a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ep-border);
    font-size: 1rem;
    color: var(--ep-text);
  }

  /* when the body has .ep-nav-open, show the mobile nav and the mobile-only user block */
  body.ep-nav-open .ep-nav {
    display: flex
  }

  body.ep-nav-open .ep-nav-user {
    display: flex
  }

  /* hide any header controls while mobile nav overlay is open to avoid duplicates */
  body.ep-nav-open .ep-user-menu,
  body.ep-nav-open .ep-search-bar,
  body.ep-nav-open .ep-header-controls {
    display: none !important;
  }

  /* small tweaks for very narrow screens */
  @media (max-width:640px) {
    .ep-header-inner {
      height: 60px;
      padding: 0 12px;
      gap: 8px
    }

    .ep-brand img {
      height: 30px
    }

    .ep-user-menu {
      margin-top: 6px;
      justify-content: flex-end
    }
  }
}

.ep-cart-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.ep-btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: var(--ep-text);
  cursor: pointer;
  text-decoration: none;
}

.ep-btn--primary {
  background: var(--ep-gradient-primary);
  color: #fff;
  border: none
}

.ep-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ep-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  align-items: flex-start;
  background: #fff
}

.ep-cart-item__media img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--ep-surface)
}

.ep-cart-item__body {
  flex: 1
}

.ep-cart-item__title {
  margin: 0 0 6px 0;
  font-size: 1rem
}

.ep-cart-item__title a {
  color: var(--ep-text);
  text-decoration: none
}

.ep-cart-item__title a:hover {
  text-decoration: underline;
  color: var(--ep-primary)
}

.ep-cart-item__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ep-text-soft)
}

.ep-cart-item__mpn {
  font-weight: 600;
  color: var(--ep-text)
}

.ep-cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px
}

.ep-qty-form {
  display: flex;
  gap: 8px;
  align-items: center
}

.ep-qty-input {
  width: 72px;
  padding: 6px;
  border: 1px solid var(--ep-border);
  border-radius: 8px
}

.ep-cart-item__price {
  text-align: right
}

.ep-price {
  font-weight: 700
}

.ep-price-total {
  font-size: 0.95rem;
  color: var(--ep-text-soft)
}

.ep-delivery {
  font-size: 0.8rem;
  color: var(--ep-text-soft)
}

.ep-link-danger {
  background: none;
  border: none;
  color: #c00;
  text-decoration: underline;
  cursor: pointer
}

.ep-cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 12px
}

.ep-cart-summary__label {
  font-weight: 700;
  color: var(--ep-text-soft)
}

.ep-cart-summary__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ep-primary)
}

.ep-empty-state {
  padding: 24px;
  border: 1px dashed var(--ep-border);
  border-radius: 12px;
  text-align: center;
  background: #fff
}

/* Order created / thank you styles */
.ep-order-created {
  display: flex;
  justify-content: center;
  padding: 36px 20px
}

.ep-order-created__card {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--ep-shadow-sm)
}

.ep-order-created__icon {
  font-size: 48px;
  margin-bottom: 12px
}

.ep-order-created__title {
  margin: 0 0 8px 0;
  font-size: 1.6rem
}

.ep-order-created__lead {
  margin: 0 0 12px 0;
  font-size: 1rem
}

.ep-order-created__text {
  color: var(--ep-text-soft);
  margin-bottom: 18px
}

.ep-order-created__actions {
  display: flex;
  gap: 12px;
  justify-content: center
}

.ep-order-create-shell {
  max-width: 1120px;
  margin: 12px auto;
  padding: 0 20px
}

.ep-order-create-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px
}

.ep-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 18px
}

.ep-card__title {
  margin: 0 0 12px 0;
  font-size: 1.05rem
}

.ep-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ep-order-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ep-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03)
}

.ep-order-item__left {
  display: flex;
  gap: 12px;
  align-items: center
}

.ep-order-item__qty {
  font-weight: 700;
  color: var(--ep-primary);
  min-width: 28px;
  text-align: center
}

.ep-order-item__name a {
  text-decoration: none;
  color: var(--ep-text)
}

.ep-order-item__name a:hover {
  text-decoration: underline
}

.ep-order-total {
  margin-top: 8px;
  text-align: right;
  font-size: 1.05rem
}

.ep-order-form input,
.ep-order-form textarea,
.ep-order-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--ep-border);
  border-radius: 8px
}

.ep-order-form p {
  margin: 8px 0
}

@media (max-width: 900px) {
  .ep-order-create-grid {
    grid-template-columns: 1fr
  }
}

/* User profile styles */
.ep-profile-shell {
  padding: 0 20px
}

.ep-profile-head {
  margin-bottom: 12px
}

.ep-profile-sub {
  color: var(--ep-text-soft);
  margin-top: 6px
}

.ep-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px
}

.ep-profile-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 16px
}

.ep-profile-body p {
  margin: 8px 0
}

.ep-orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ep-order {
  border-radius: 10px;
  padding: 12px;
  background: #cbdcfb63
}

.ep-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.ep-order-meta {
  font-size: .82rem;
  color: var(--ep-text-soft)
}

.ep-order-items {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ep-order-item-small {
  display: flex;
  align-items: center;
  gap: 10px
}

.ep-order-item-small img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--ep-surface)
}

.ep-order-item-meta {
  font-size: .82rem;
  color: var(--ep-text-soft)
}

.ep-order-total-small {
  font-weight: 800;
  color: var(--ep-primary)
}

/* profile hero */
.ep-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid rgba(var(--ep-primary-rgb), .06);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(var(--ep-primary-rgb), .06)
}

.ep-profile-hero__left {
  display: flex;
  align-items: center;
  gap: 16px
}

.ep-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--ep-primary-rgb), .08), rgba(var(--ep-primary-rgb), .02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--ep-primary);
  font-size: 1.35rem
}

.ep-profile-name {
  margin: 0;
  font-size: 1.25rem
}

.ep-profile-hero__meta {
  color: var(--ep-text-soft);
  font-size: .9rem
}

.ep-profile-hero__right {
  display: flex;
  gap: 12px
}

.ep-hero-stat {
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--ep-border);
  text-align: center;
  min-width: 110px
}

.ep-hero-stat__value {
  font-weight: 800;
  font-size: 1.05rem
}

.ep-hero-stat__label {
  font-size: .78rem;
  color: var(--ep-text-soft)
}

/* order status badges */
.ep-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem
}

.ep-order-badge--new {
  background: rgba(10, 132, 255, .08);
  color: #0a84ff
}

.ep-order-badge--processing {
  background: rgba(255, 184, 0, .08);
  color: #ffb400
}

.ep-order-badge--confirmed {
  background: rgba(13, 110, 253, .08);
  color: #0d6efd
}

.ep-order-badge--in_progress {
  background: rgba(111, 66, 193, .08);
  color: #6f42c1
}

.ep-order-badge--completed {
  background: rgba(40, 167, 69, .08);
  color: #28a745
}

.ep-order-badge--shipped {
  background: rgba(0, 204, 102, .08);
  color: #00b050
}

.ep-order-badge--canceled {
  background: rgba(198, 57, 57, .08);
  color: #c63939
}

/* Enhanced Orders Card Styles */
.ep-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ep-border);
}

.ep-orders-stats {
  display: flex;
  gap: 20px;
}

.ep-stat-item {
  text-align: center;
  padding: 8px 16px;
  background: rgba(var(--ep-primary-rgb), .04);
  border-radius: 8px;
  border: 1px solid rgba(var(--ep-primary-rgb), .1);
}

.ep-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ep-primary);
  line-height: 1;
}

.ep-stat-label {
  display: block;
  font-size: .75rem;
  color: var(--ep-text-soft);
  margin-top: 4px;
  font-weight: 500;
}

.ep-orders-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-order-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.ep-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  border-color: rgba(var(--ep-primary-rgb), .2);
}

.ep-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fafbff, #f5f8ff);
  border-bottom: 1px solid var(--ep-border);
}

.ep-order-info {
  flex: 1;
}

.ep-order-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ep-order-number strong {
  font-size: 1.1rem;
  color: var(--ep-text);
  font-weight: 700;
}

.ep-order-date {
  font-size: .85rem;
  color: var(--ep-text-soft);
  font-weight: 500;
}

.ep-order-status {
  margin-top: 8px;
}

.ep-order-total {
  text-align: right;
  padding-left: 20px;
}

.ep-total-label {
  display: block;
  font-size: .75rem;
  color: var(--ep-text-soft);
  font-weight: 500;
  margin-bottom: 4px;
}

.ep-total-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ep-primary);
}

.ep-order-content {
  padding: 20px;
}

.ep-order-items-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ep-order-item-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(var(--ep-primary-rgb), .02);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.ep-order-item-mini:hover {
  background: rgba(var(--ep-primary-rgb), .06);
}

.ep-item-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ep-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ep-item-details {
  flex: 1;
  min-width: 0;
}

.ep-item-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ep-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ep-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ep-item-name a:hover {
  color: var(--ep-primary);
}

.ep-item-quantity {
  font-size: .8rem;
  color: var(--ep-text-soft);
  font-weight: 600;
}

.ep-more-items {
  text-align: center;
  padding: 8px;
  background: rgba(var(--ep-primary-rgb), .04);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--ep-text-soft);
  font-weight: 500;
}

.ep-order-actions {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--ep-border), .5);
}

.ep-order-details {
  border-top: 1px solid var(--ep-border);
  background: #fafbff;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ep-details-content {
  padding: 20px;
}

.ep-order-items-full h4 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--ep-text);
  font-weight: 600;
}

.ep-order-item-full {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--ep-border);
  transition: transform 0.2s ease;
}

.ep-order-item-full:hover {
  transform: translateX(4px);
}

.ep-order-item-full .ep-item-image {
  width: 64px;
  height: 64px;
}

.ep-item-info {
  flex: 1;
}

.ep-item-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: .85rem;
}

.ep-quantity {
  color: var(--ep-text-soft);
}

.ep-price {
  color: var(--ep-text);
  font-weight: 500;
}

.ep-total {
  color: var(--ep-primary);
  font-weight: 700;
}

.ep-order-comment {
  margin-top: 20px;
  padding: 16px;
  background: rgba(var(--ep-primary-rgb), .04);
  border-radius: 8px;
  border-left: 3px solid var(--ep-primary);
}

.ep-order-comment h4 {
  margin: 0 0 8px 0;
  font-size: .9rem;
  color: var(--ep-text);
  font-weight: 600;
}

.ep-order-comment p {
  margin: 0;
  color: var(--ep-text);
  line-height: 1.5;
  font-size: .9rem;
}

/* Enhanced Empty State */
.ep-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ep-text-soft);
}

.ep-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: .5;
}

.ep-empty-state h4 {
  margin: 0 0 12px 0;
  color: var(--ep-text);
  font-size: 1.2rem;
  font-weight: 600;
}

.ep-empty-state p {
  margin: 0 0 24px 0;
  font-size: .95rem;
  line-height: 1.5;
}

/* Button Styles */
.ep-btn--outline {
  background: transparent;
  border: 1px solid var(--ep-primary);
  color: var(--ep-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ep-btn--outline:hover {
  background: var(--ep-primary);
  color: #fff;
  transform: translateY(-1px);
}

.ep-btn--sm {
  padding: 6px 12px;
  font-size: .8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ep-orders-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .ep-orders-stats {
    width: 100%;
    justify-content: space-around;
  }
  
  .ep-order-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .ep-order-total {
    text-align: left;
    padding-left: 0;
  }
  
  .ep-order-item-mini {
    padding: 12px;
  }
  
  .ep-order-item-full {
    flex-direction: column;
    text-align: center;
  }
  
  .ep-item-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width:900px) {
  .ep-profile-grid {
    grid-template-columns: 1fr
  }
}

/* Auth forms */
.ep-auth-shell {
  display: flex;
  justify-content: center;
  padding: 36px 20px
}

.ep-auth-card {
  width: 420px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(var(--ep-primary-rgb), .06)
}

.ep-auth-title {
  margin: 0 0 6px 0;
  font-size: 1.4rem
}

.ep-auth-sub {
  margin: 0 0 16px;
  color: var(--ep-text-soft)
}

.ep-auth-form input {
  width: 92%;
  padding: 10px;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  margin-bottom: 10px
}

.ep-auth-form label {
  font-weight: 700;
  font-size: .85rem
}

.ep-tree-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.ep-tree-node[open]>.ep-tree-summary {
  background: rgba(var(--ep-primary-rgb), .08);
  border-radius: 14px 14px 0 0;
}

.ep-tree-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(var(--ep-primary-rgb), .6);
  border-bottom: 2px solid rgba(var(--ep-primary-rgb), .6);
  transform: rotate(-45deg);
  transition: .2s ease;
  margin-right: 2px;
}

.ep-tree-node[open]>.ep-tree-summary .ep-tree-chevron {
  transform: rotate(45deg);
}

.ep-tree-chevron.is-placeholder {
  border-color: transparent;
  width: 12px;
  height: 12px;
}

.ep-tree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ep-text);
}

.ep-tree-label input {
  accent-color: var(--ep-primary);
}

.ep-tree-label span {
  flex: 1;
  min-width: 0;
}

.ep-tree-label:hover {
  background: rgba(var(--ep-primary-rgb), .08);
}

.ep-tree-label.is-active {
  border-color: rgba(var(--ep-primary-rgb), .28);
  background: rgba(var(--ep-primary-rgb), .14);
  color: var(--ep-primary);
}

.ep-tree-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px 12px 28px;
}

.ep-tree-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.ep-tree-leaf:hover {
  border-color: rgba(var(--ep-primary-rgb), .28);
}

.ep-tree-leaf .ep-tree-label {
  padding: 0;
}

.ep-tree-leaf .ep-tree-chevron {
  margin-right: 6px;
}

.ep-tree-node.is-search-match>.ep-tree-summary .ep-tree-label,
.ep-tree-leaf.is-search-match .ep-tree-label {
  border-color: rgba(var(--ep-primary-rgb), .32);
  background: rgba(var(--ep-primary-rgb), .18);
  color: var(--ep-primary);
}

.ep-catalog-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ep-catalog-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-catalog-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ep-text);
}

.ep-catalog-count {
  margin: 0;
  font-size: .85rem;
  color: var(--ep-text-soft);
  font-weight: 500;
}

.ep-catalog-search-hint {
  font-size: .72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--ep-primary-rgb), .12);
  color: var(--ep-primary);
  font-weight: 600;
}

.ep-catalog-results .ep-product-grid {
  padding: 0;
}

.ep-card-clickable {
  cursor: pointer;
}

.ep-card-clickable [data-card-ignore] {
  cursor: default;
}

.ep-card-media {
  background: white;
  border: 1px solid rgba(var(--ep-primary-rgb), .25);
  border-radius: 14px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: .3s;
}

.ep-card-media__placeholder {
  opacity: .65;
  filter: saturate(.2);
}

.ep-card-clickable:hover .ep-card-media img {
  transform: scale(1.1);
}

.ep-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-card-meta h3 {
  font-size: .9rem;
  margin: 0;
  color: var(--ep-text);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.ep-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  cursor: default;
}

.ep-card-actions form {
  margin: 0;
}

.ep-price-hint {
  font-size: .68rem;
  color: var(--ep-text-soft);
}

.ep-load-more-wrap {
  display: flex;
  justify-content: center
}

.ep-load-more {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, var(--ep-primary));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  transition: transform .12s ease, opacity .12s ease
}

.ep-load-more:active {
  transform: translateY(1px)
}

.ep-load-more.is-loading {
  opacity: 0.85;
  cursor: progress
}

.ep-load-more[aria-busy="true"]::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(20, 45, 157, 0.6);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ep-spin .9s linear infinite
}

@keyframes ep-spin {
  to {
    transform: rotate(360deg)
  }
}

.ep-empty-state {
  font-size: .85rem;
  color: var(--ep-text-soft);
  padding: 32px;
  background: #fff;
  border: 1px dashed var(--ep-border);
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.ep-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ep-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(var(--ep-primary-rgb), .1);
  color: var(--ep-primary);
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(var(--ep-primary-rgb), .2);
  transition: .2s ease;
}

.ep-filter-tag:hover {
  background: rgba(var(--ep-primary-rgb), .15);
  border-color: rgba(var(--ep-primary-rgb), .3);
}

.ep-filter-tag span {
  line-height: 1.2;
}

.ep-filter-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ep-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 6px;
  font-size: .75rem;
  color: var(--ep-text-soft);
}

.ep-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ep-border);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  color: var(--ep-text);
  transition: .2s ease;
}

.ep-pagination__link:hover {
  border-color: var(--ep-primary);
  color: var(--ep-primary);
}

.ep-pagination__link.is-active {
  background: var(--ep-primary);
  color: #fff;
  border-color: var(--ep-primary);
  box-shadow: 0 6px 16px rgba(var(--ep-primary-rgb), .22);
}

.ep-pagination__link--direction {
  font-weight: 700;
  letter-spacing: .1em;
}

.ep-pagination__link.is-disabled {
  pointer-events: none;
  opacity: .35;
}

.ep-pagination__ellipsis {
  padding: 0 6px;
  font-size: .9rem;
  letter-spacing: .2em;
}

.ep-pagination__status {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ep-text-soft);
}

@media (max-width: 1120px) {
  .ep-catalog-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ep-catalog-shell {
    padding: 0 12px;
  }
}

/* Homepage growth section */
.ep-growth-section {
  background: linear-gradient(135deg, rgba(var(--ep-primary-rgb), .06), rgba(var(--ep-primary-rgb), .02));
  padding: 70px 0 60px;
  margin-top: 60px;
}

.ep-growth-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ep-growth-header h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .04em;
}

.ep-growth-header p {
  margin: 12px 0 0;
  font-size: .95rem;
  color: var(--ep-text-soft);
  max-width: 720px;
}

.ep-growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ep-growth-card {
  background: #fff;
  border: 1px solid rgba(var(--ep-primary-rgb), .12);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 10px 32px rgba(7, 31, 70, .08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-growth-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ep-text);
}

.ep-growth-card p {
  margin: 0;
  font-size: .85rem;
  color: var(--ep-text-soft);
}

.ep-growth-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .78rem;
  color: var(--ep-text-soft);
}

.ep-growth-card li {
  line-height: 1.4;
}

.ep-growth-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--ep-primary-rgb), .12);
  color: var(--ep-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ep-growth-link {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ep-primary);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ep-growth-link:hover {
  text-decoration: underline;
  color: var(--ep-primary-accent);
}

.ep-growth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ep-primary);
  color: #fff;
  border-radius: 24px;
  padding: 26px 32px;
  box-shadow: 0 14px 36px rgba(7, 31, 70, .22);
  flex-wrap: wrap;
}

.ep-growth-foot__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ep-growth-foot p {
  margin: 6px 0 0;
  font-size: .85rem;
  max-width: 520px;
  color: rgba(255, 255, 255, .85);
}

.ep-growth-foot__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 14px;
  background: #fff;
  color: var(--ep-primary);
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.ep-growth-foot__cta:hover {
  filter: brightness(.95);
}

@media (max-width: 780px) {
  .ep-growth-inner {
    padding: 0 20px;
  }

  .ep-growth-foot {
    align-items: flex-start;
  }
}

/* Footer enrichments */
.ep-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-footer-badges span {
  background: var(--ep-primary-soft);
  color: var(--ep-primary);
  font-size: .55rem;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .5px;
}

.ep-footer-badges span:hover {
  background: var(--ep-primary);
  color: #fff;
}

.ep-social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ep-social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 47, 102, .12);
  border: 1px solid rgba(7, 47, 102, .22);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: .18s;
}

.ep-social-links a:hover {
  background: rgba(7, 47, 102, .18);
  border-color: rgba(7, 47, 102, .32);
}

.ep-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .7rem;
  line-height: 1.5;
}

.ep-contact-list li+li {
  margin-top: 4px;
}

.ep-contact-list a {
  text-decoration: none;
  color: #b1c4d6;
}

.ep-contact-list a:hover {
  color: #fff;
}

.ep-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ep-footer-brand img {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

.ep-footer-brand h5 {
  margin: 0 !important;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: none !important;
}

/* Footer */
.ep-footer {
  background: var(--ep-bg-alt);
  color: var(--ep-text);
  margin-top: 56px;
  padding: 70px 0 28px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ep-border);
}

.ep-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ep-gradient-primary);
  opacity: 0.05;
}

.ep-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.ep-footer h5 {
  margin: 0 0 16px;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ep-text);
}

.ep-footer a {
  color: var(--ep-text-soft);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3px;
}

.ep-footer a:hover {
  color: var(--ep-primary);
}

.ep-footer p {
  font-size: .8rem;
  line-height: 1.5;
  margin: 0;
  color: var(--ep-text-soft);
}

.ep-footer-bottom {
  max-width: 1280px;
  margin: 46px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--ep-border);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ep-text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Messages / alerts */
.ep-flash-wrap {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-flash {
  padding: 10px 14px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-border);
  font-size: .8rem;
  font-weight: 500;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-flash.success {
  border-color: #b4e2cc;
  background: #edf9f4;
  color: #0f6848;
}

.ep-flash.error {
  border-color: #f5b5b2;
  background: #fdf2f1;
  color: #a32924;
}

/* Utility */
.ep-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .ep-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ep-header-inner {
    padding: 0 20px;
  }

  .ep-section-title {
    padding: 0 20px;
  }

  .ep-product-grid {
    padding: 0 20px 32px;
  }

  .ep-hero {
    padding: 0 20px;
  }
}

@media (max-width: 1020px) {
  .ep-header-inner {
    justify-content: space-between;
  }

  .ep-search-bar {
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
  }

  .ep-nav {
    order: 2;
    width: auto;
  }
}

@media (max-width: 900px) {
  .ep-stats-section {
    padding: 0 24px;
  }

  .ep-stats-row {
    gap: 16px;
  }

  .ep-stat-card {
    flex: 1 1 calc(50% - 16px);
  }

  .ep-benefit-card {
    padding: 22px 24px;
    gap: 16px;
  }

  .ep-trust-inner {
    padding: 0 24px;
  }
}

@media (max-width: 720px) {
  .ep-benefits-header h2 {
    font-size: 1.6rem;
  }

  .ep-benefits-grid {
    grid-template-columns: 1fr;
  }

  .ep-benefit-card {
    flex-direction: row;
  }

  .ep-trust-metrics {
    gap: 20px;
  }

  .ep-trust-metric {
    min-width: 150px;
  }

  .ep-active-filters {
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .ep-stats-section {
    padding: 0 20px;
  }

  .ep-stats-row {
    flex-direction: column;
  }

  .ep-stat-card {
    min-width: 100%;
  }

  .ep-trust-grid {
    gap: 12px;
  }

  .ep-trust-bubble {
    font-size: .7rem;
    padding: 10px 18px;
  }
}

.ep-feedback-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-gradient-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(7, 31, 70, .24);
  transition: .2s ease;
  backdrop-filter: blur(4px);
}

.ep-feedback-fab svg {
  pointer-events: none;
}

.ep-feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 31, 70, .3);
}

@media (max-width: 720px) {
  .ep-feedback-fab {
    right: 16px;
    bottom: 18px;
    width: 21px;
    height: 21px;
  }
}

/* Mobile nav toggle (hamburger) */
.ep-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ep-primary);
  font-size: 1.35rem;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 8px
}

.ep-nav-toggle:focus {
  outline: none;
  box-shadow: var(--ep-focus)
}

.ep-nav-toggle-icon {
  display: inline-block
}

/* ensure toggle sits above header content */
.ep-nav-toggle {
  z-index: 80;
  position: relative
}

/* Mobile collapsed nav behavior */
@media (max-width: 1020px) {

  /* compact header */
  .ep-header-inner {
    position: relative;
    height: 64px;
    padding: 0 16px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ep-brand img {
    height: 34px
  }

  /* Show mobile nav toggle button */
  .ep-nav-toggle {
    display: flex;
  }

  /* search bar wraps to second row and takes full width */
  .ep-search-bar {
    flex: 1 0 100%;
    order: 3;
  }

  /* move user menu to the right */
  .ep-user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .ep-user-menu form {
    margin: 0;
  }

  .ep-lang-select {
    font-size: .65rem;
    padding: 4px 6px;
  }

  .ep-user-link {
    font-size: .7rem;
    padding: 4px 6px;
  }

  .ep-user-menu button {
    font-size: .65rem;
    padding: 6px 10px;
  }

  /* mobile nav becomes a full-screen fixed panel (under header) */
  .ep-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    flex-direction: column;
    gap: 0;
    z-index: 60;
    overflow: auto
  }

  .ep-nav .ep-nav-inner {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .ep-nav a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ep-border);
    font-size: 1rem;
    color: var(--ep-text);
  }

  .ep-nav a.active {
    background: rgba(var(--ep-primary-rgb), .04);
    color: var(--ep-primary)
  }

  .ep-nav .ep-cart-badge {
    margin-left: 10px
  }

  /* ensure search occupies full width under collapsed nav on very small screens if shown elsewhere */
  @media (max-width:640px) {
    .ep-search-bar {
      flex: 1 0 100%;
      order: 3;
    }

    .ep-header-inner {
      gap: 4px;
      padding: 0 12px;
    }

    .ep-brand img {
      height: 30px
    }

    .ep-lang-select {
      font-size: .6rem;
      padding: 3px 5px;
    }

    .ep-user-link {
      font-size: .65rem;
      padding: 3px 5px;
    }

    .ep-user-menu button {
      font-size: .6rem;
      padding: 5px 8px;
    }
  }
}

/* When nav is open (JS toggles .ep-nav-open on body) */
/* When nav is open (JS toggles .ep-nav-open on body) */
body.ep-nav-open {
  overflow: hidden
}

body.ep-nav-open .ep-nav {
  display: flex;
  animation: ep-slide-in .22s ease
}

@keyframes ep-slide-in {
  from {
    transform: translateY(-6px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

/* Sticky footer when content is short: make body full height and footer stick to bottom */
html,
body {
  height: 100%
}

body {
  display: flex;
  flex-direction: column
}

.ep-layout-wrapper {
  flex: 1 0 auto
}

.ep-footer {
  flex-shrink: 0
}

/* ensure body occupies full viewport to keep footer at bottom */
body {
  min-height: 100vh
}


/* === Enhanced Catalog Layout === */
/* Compact toolbar */
.ep-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--ep-border);
  margin-bottom: 24px;
}

.ep-catalog-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ep-results-count {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ep-text);
}

.ep-search-badge {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ep-primary);
  background: rgba(var(--ep-primary-rgb), .1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(var(--ep-primary-rgb), .2);
}

.ep-sort-form {
  margin-left: auto;
}

.ep-sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--ep-text-soft);
  font-weight: 600;
}

.ep-sort-label span {
  white-space: nowrap;
}

.ep-sort-select {
  padding: 8px 12px;
  border: 1px solid var(--ep-border);
  border-radius: 10px;
  font-size: .8rem;
  background: #fff;
  color: var(--ep-text);
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.ep-sort-select:hover {
  border-color: var(--ep-primary);
}

.ep-sort-select:focus {
  outline: none;
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(var(--ep-primary-rgb), .1);
}

/* Wider cards - fewer columns */
.ep-product-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

@media (min-width:1400px) {
  .ep-product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

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

@media (max-width:900px) {
  .ep-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width:640px) {
  .ep-product-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 16px !important;
  }
}

/* Enhanced cards */
.ep-product-card {
  padding: 16px;
  gap: 12px;
  border-radius: 16px;
  transition: .25s ease;
}

.ep-recently-viewed {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 0 32px 0 0;
  display: contents;
  flex-direction: column;
  gap: 18px;
}

.ep-recently-viewed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ep-recently-viewed__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: .04em;
}

.ep-recently-viewed__cta {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ep-primary);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ep-recently-viewed__cta:hover {
  text-decoration: underline;
  color: var(--ep-primary-accent);
}

.ep-recently-viewed__scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-top: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.ep-recently-viewed__scroller::-webkit-scrollbar {
  height: 6px;
}

.ep-recently-viewed__scroller::-webkit-scrollbar-track {
  background: rgba(var(--ep-primary-rgb), .08);
  border-radius: 999px;
}

.ep-recently-viewed__scroller::-webkit-scrollbar-thumb {
  background: rgba(var(--ep-primary-rgb), .26);
  border-radius: 999px;
}

.ep-recently-viewed__scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ep-primary-rgb), .4);
}

.ep-recently-viewed__card {
  scroll-snap-align: start;
  flex: 0 0 240px;
  min-width: 220px;
}

.ep-recently-viewed__empty {
  margin: 0;
  font-size: .85rem;
  color: var(--ep-text-soft);
}

@media(max-width:780px) {
  .ep-recently-viewed {
    padding: 0 20px;
    margin-top: 48px;
  }
}

.ep-product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

.ep-card-media {
  height: 200px;
  border-radius: 14px;
}

.ep-product-card h3 {
  font-size: .88rem;
  line-height: 1.35;
}

.ep-price {
  font-size: 1rem;
  font-weight: 700;
}

/* Show More Button */
.ep-show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.ep-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--ep-gradient-primary);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 6px 16px rgba(var(--ep-primary-rgb), .25);
}

.ep-show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--ep-primary-rgb), .35);
  filter: brightness(1.08);
}

.ep-show-more-btn:active {
  transform: translateY(0);
}

.ep-show-more-btn svg {
  transition: .25s ease;
}

.ep-show-more-btn:hover svg {
  transform: rotate(90deg);
}

/* Fade-in animation */
@keyframes epFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive toolbar */
@media (max-width:768px) {
  .ep-catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ep-sort-form {
    margin-left: 0;
    width: 100%;
  }

  .ep-sort-label {
    width: 100%;
  }

  .ep-sort-select {
    flex: 1;
  }
}

/* =========================================
   Mobile Optimization: Catalog & Grid
   ========================================= */

/* Fix sidebar/grid layout on tablet/mobile to prevent overflow */
@media (max-width: 1020px) {
  .ep-catalog-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  /* Stack filter panel above results */
  .ep-filter-panel {
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;

    .ep-add-btn {
      padding: 8px 0;
      font-size: 0.75rem;
      width: 100%;
      justify-content: center;
    }
  }

  /* Force 2 products per row on mobile with robust sizing constraint */
  @media (max-width: 640px) {
    .ep-catalog-shell {
      /* Ensure container padding doesn't cause overflow */
      padding: 0 12px;
    }


    .ep-product-grid {
      /* Reset padding to maximize space for columns */
      padding-left: 0 !important;
      padding-right: 0 !important;

      /* 2 equal columns */
      grid-template-columns: 1fr 1fr !important;
      gap: 8px !important;
      padding-bottom: 24px;

      /* Ensure grid itself stays within bounds */
      width: 100% !important;
      box-sizing: border-box !important;
    }

     .ep-catalog-results {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
     }
    /* Ensure product grid stays within bounds */
     .ep-product-grid {
       width: 100%;
       max-width: 100%;
       box-sizing: border-box;
     }

     .ep-product-card {
       width: 100%;
       max-width: 100%;
       box-sizing: border-box;
     }
    .ep-product-card {
      /* Reset spacing/sizing */
      padding: 8px;
      margin: 0 !important;

      /* Strict containment */
      min-width: 0 !important;
      width: auto !important;
      max-width: 100% !important;

      box-sizing: border-box !important;
    }

    .ep-card-media {
      height: 110px;
      border-radius: 8px;
      background: #f8fafc;
      /* Ensure background is visible if image fails */
    }

    .ep-product-card h3 {
      font-size: 0.8rem;
      line-height: 1.25;
      margin-bottom: 4px;
      height: 2.5em;
      /* fixed height for 2 lines */

      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .ep-card-meta {
      gap: 4px;
    }

    .ep-add-btn {
      padding: 8px 0;
      font-size: 0.75rem;
      width: 100%;
      justify-content: center;
      margin-top: 8px;
    }

    .ep-sku {
      font-size: 0.55rem;
    }
  }
}

/* =========================================
   Mobile Filter Drawer
   ========================================= */

/* Mobile filter toggle bar - hidden by default */
.ep-mobile-filter-bar {
  display: none;
  margin-bottom: 16px;
}

.ep-filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ep-text);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ep-filter-close-btn {
  display: none;
  /* hidden on desktop */
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ep-text-soft);
}

/* Backdrop for drawer */
.ep-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  backdrop-filter: blur(2px);
}

.ep-filter-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock */
body.ep-filter-open {
  overflow: hidden;
}

@media (max-width: 1020px) {
  .ep-mobile-filter-bar {
    display: block;
  }

  /* Change catalog-shell to single column since filter panel is now fixed */
  .ep-catalog-shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  /* Show close button on mobile */
  .ep-filter-close-btn {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 11;
  }

  .ep-filter-close-btn:hover {
    color: var(--ep-primary);
  }

  /* Transform the filter panel into an off-canvas drawer */
  .ep-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    margin: 0;
    z-index: 1000;
    background: #fff;
    border-right: 1px solid var(--ep-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);

    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-radius: 0;
    /* reset curvature */

    display: flex;
    flex-direction: column;
  }

  .ep-filter-panel.is-open {
    transform: translateX(0);
  }

  .ep-filter-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid var(--ep-border);
    padding: 16px 20px;
    margin: 0 -20px 20px -20px;
    /* pull to edges */
  }

  .ep-filter-header h2 {
    font-size: 1.1rem;
  }

  .ep-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ep-filter-close-btn {
    display: block;
    margin-left: auto;
  }

  /* Adjust form container in drawer */
  .ep-filter-form {
    padding: 0 20px 24px;
    flex: 1;
  }

  /* Ensure clear button is visible */
  .ep-filter-clear {
    padding: 4px 10px;
    background: rgba(var(--ep-primary-rgb), .1);
  }

  /* Ensure catalog results don't overflow on mobile */
  .ep-catalog-results {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Ensure product grid stays within bounds */
  .ep-product-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ep-product-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}