.ep-store {
  --ep-green: #2F312C;
  --ep-lime: #A3C614;
  --ep-ink: #2F312C;
  --ep-muted: #6F736A;
  --ep-line: #D8D2C7;
  --ep-surface: #F8F7F3;
  --ep-soft: #ECE8E1;
  color: var(--ep-ink);
  background: #F5F3EE;
  font-family: Montserrat, Arial, sans-serif;
  padding: 18px 20px 70px;
}

.ep-store * {
  box-sizing: border-box;
}

.ep-store__inner {
  max-width: 100%;
  margin: 0 auto;
}

.ep-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ep-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ep-breadcrumbs a {
  color: var(--ep-muted);
  text-decoration: none;
}

.ep-breadcrumbs a:hover {
  color: var(--ep-green);
}

.ep-store__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.ep-store__eyebrow {
  color: #6f8420;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ep-store h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #182018;
}

.ep-store__lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ep-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ep-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.ep-benefits div {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #eadfbe;
  border-radius: 6px;
  background: #fff7df;
  color: #615a43;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.ep-store__summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ep-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--ep-line);
  color: var(--ep-muted);
  font-size: 13px;
  font-weight: 700;
}

.ep-store__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.ep-store__filters {
  align-self: start;
  position: sticky;
  top: 98px;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(23, 32, 25, .06);
}

.ep-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.ep-field label,
.ep-filter-title {
  color: var(--ep-ink);
  font-size: 13px;
  font-weight: 800;
}

.ep-input,
.ep-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  background: var(--ep-surface);
  color: var(--ep-ink);
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.ep-input:focus,
.ep-select:focus {
  border-color: var(--ep-green);
  box-shadow: 0 0 0 3px rgba(47, 111, 62, .13);
}

.ep-filter-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.ep-filter-chip {
  width: 100%;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  background: var(--ep-surface);
  color: var(--ep-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 11px;
  text-align: left;
}

.ep-filter-chip.is-active {
  background: #e8f0d2;
  border-color: rgba(47, 111, 62, .35);
  color: var(--ep-green);
}

.ep-store__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ep-store__count {
  color: var(--ep-muted);
  font-size: 14px;
  font-weight: 700;
}

.ep-store__hint {
  color: var(--ep-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.ep-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.ep-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 16px 36px rgba(23, 32, 25, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 195, 58, .52);
  box-shadow: 0 22px 46px rgba(23, 32, 25, .11);
}

.ep-card__media {
  position: relative;
  aspect-ratio: 1.14 / 1;
  background: var(--ep-soft);
  overflow: hidden;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.ep-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #8aa719;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ep-card__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ep-shop-card .ep-card__body {
  gap: 7px;
}

.ep-shop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ep-muted);
  font-size: 10px;
  font-weight: 800;
}

.ep-shop-card__top span:first-child {
  color: var(--ep-green);
}

.ep-shop-card__title {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ep-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  padding: 0;
  text-align: left;
}

.ep-shop-card__title:hover {
  color: var(--ep-green);
}

.ep-shop-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  font-size: 11px;
}

.ep-shop-card__rating span {
  color: #f6a400;
  letter-spacing: 0;
}

.ep-shop-card__rating b {
  color: var(--ep-ink);
}

.ep-shop-card__rating em {
  margin-left: auto;
  color: #2f8b3f;
  font-style: normal;
  font-weight: 800;
}

.ep-shop-specs {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #eee9df;
  border-bottom: 1px solid #eee9df;
}

.ep-shop-specs div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
}

.ep-shop-specs dt {
  color: var(--ep-muted);
  font-size: 10px;
  font-weight: 800;
}

.ep-shop-specs dd {
  margin: 0;
  color: var(--ep-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.ep-shop-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 30px;
}

.ep-shop-price strong {
  color: var(--ep-green);
  font-size: 20px;
  font-weight: 900;
}

.ep-shop-price span {
  color: #b34a43;
  font-size: 12px;
  font-weight: 800;
  text-decoration: line-through;
}

.ep-card__category {
  color: var(--ep-green);
  font-size: 11px;
  font-weight: 800;
}

.ep-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
  min-height: 38px;
}

.ep-card__desc {
  color: var(--ep-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.ep-card-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.ep-card-specs div {
  min-height: 39px;
  border: 1px solid #e7e1d4;
  border-radius: 6px;
  background: #fbfaf6;
  padding: 6px;
}

.ep-card-specs dt {
  color: var(--ep-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-card-specs dd {
  margin: 3px 0 0;
  color: var(--ep-ink);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.ep-card__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 7px;
  background: #f1efe8;
}

.ep-card__tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ep-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}

.ep-card__tabs button.is-active {
  background: #fff;
  color: var(--ep-green);
  box-shadow: 0 6px 14px rgba(23, 32, 25, .07);
}

.ep-card__tabbody {
  min-height: 104px;
}

.ep-variant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 104px;
  overflow: auto;
  padding-right: 2px;
}

.ep-variant-buttons button {
  min-height: 30px;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  background: #fbfaf6;
  color: #344033;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 8px;
}

.ep-variant-buttons button:hover,
.ep-variant-buttons button.is-active {
  background: #e8f0d2;
  border-color: rgba(47, 111, 62, .42);
  color: var(--ep-green);
}

.ep-card__chars {
  display: grid;
  gap: 7px;
  margin: 0;
  max-height: 118px;
  overflow: auto;
}

.ep-card__chars div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: start;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee9df;
}

.ep-card__chars dt {
  color: var(--ep-muted);
  font-size: 11px;
  font-weight: 800;
}

.ep-card__chars dd {
  margin: 0;
  color: var(--ep-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.ep-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ep-green);
  font-size: 20px;
  font-weight: 900;
  min-height: 44px;
  flex-wrap: wrap;
}

.ep-shop-card .ep-card__price,
.ep-shop-card .ep-card__meta,
.ep-shop-card .ep-card__tabbody,
.ep-shop-card .ep-card-specs {
  display: none;
}

.ep-card__price span {
  color: var(--ep-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.ep-card__qty {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 4px;
  align-items: center;
}

.ep-card__qty button,
.ep-card__qty input {
  min-height: 32px;
  border: 1px solid var(--ep-line);
  border-radius: 4px;
  background: #f8f7f3;
  color: var(--ep-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.ep-card__qty button {
  cursor: pointer;
}

.ep-card__qty input {
  width: 100%;
}

.ep-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-card__meta span {
  border-radius: 999px;
  background: var(--ep-soft);
  color: var(--ep-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.ep-card__actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.ep-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.ep-pagination button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--ep-line);
  border-radius: 5px;
  background: #fff;
  color: var(--ep-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.ep-pagination button.is-active {
  background: var(--ep-green);
  border-color: var(--ep-green);
  color: #fff;
}

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #3b7c49, #2f6f3e);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
  text-decoration: none;
}

.ep-card__heart {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ep-green);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ep-btn:hover {
  background: #245934;
}

.ep-btn--ghost {
  background: #fff;
  color: var(--ep-green);
  border: 1px solid rgba(47, 111, 62, .28);
}

.ep-btn--ghost:hover {
  background: #eef4df;
}

.ep-cart-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b7c49, #2f6f3e);
  color: #fff;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(23, 32, 25, .22);
}

.ep-cart-badge {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ep-lime);
  color: var(--ep-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ep-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.ep-modal.is-open {
  display: block;
}

.ep-modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 10, .55);
}

.ep-modal__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(820px, 100%);
  background:
    linear-gradient(180deg, #fbfaf6, #ffffff 280px),
    #fff;
  overflow: auto;
  box-shadow: -16px 0 40px rgba(0, 0, 0, .22);
}

.ep-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ep-line);
  padding: 18px 20px;
}

.ep-modal__head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.ep-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ep-line);
  background: var(--ep-surface);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ep-modal__body {
  padding: 20px;
}

.ep-product-view {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

.ep-product-view__media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ep-soft);
  border: 1px solid var(--ep-line);
}

.ep-product-view__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-product-view__gallery {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 86px;
}

.ep-product-view__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ep-product-view__thumbs span {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ep-line);
  background: var(--ep-soft);
}

.ep-product-view__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-product-view__main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ep-product-view__main h3 {
  margin: 0;
  color: var(--ep-ink);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.ep-product-view__price {
  display: grid;
  gap: 4px;
  color: var(--ep-green);
  font-size: 30px;
  font-weight: 900;
}

.ep-product-view__price span {
  color: var(--ep-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ep-modal-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.ep-modal-specs div {
  min-height: 58px;
  border: 1px solid #e7e1d4;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.ep-modal-specs dt {
  color: var(--ep-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-modal-specs dd {
  margin: 5px 0 0;
  color: var(--ep-ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.ep-product-view__intro {
  margin: 0;
  color: var(--ep-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ep-product-view__section-title {
  margin-top: 4px;
  color: var(--ep-ink);
  font-size: 13px;
  font-weight: 900;
}

.ep-product-view__text {
  color: var(--ep-muted);
  line-height: 1.55;
}

.ep-modal-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 236px;
  overflow: auto;
  padding-right: 4px;
}

.ep-option-groups {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  background: #fff;
}

.ep-option-group {
  display: grid;
  gap: 8px;
}

.ep-option-group__title {
  color: var(--ep-ink);
  font-size: 13px;
  font-weight: 900;
}

.ep-option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ep-option-buttons button {
  min-width: 54px;
  min-height: 38px;
  border: 1px solid #d8d3c8;
  border-radius: 6px;
  background: #fbfaf6;
  color: var(--ep-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
}

.ep-option-buttons button:hover,
.ep-option-buttons button.is-active {
  background: #ffe06b;
  border-color: #e1b900;
  color: #1e251c;
  box-shadow: inset 0 0 0 1px rgba(95, 75, 0, .1);
}

.ep-modal-variants button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--ep-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ep-ink);
  cursor: pointer;
  font: inherit;
  padding: 10px;
  text-align: left;
}

.ep-modal-variants button:hover,
.ep-modal-variants button.is-active {
  background: #eef4df;
  border-color: rgba(47, 111, 62, .42);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 62, .16);
}

.ep-modal-variants span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.ep-modal-variants strong {
  color: var(--ep-green);
  font-size: 15px;
  font-weight: 900;
}

.ep-modal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  padding: 4px;
  border-radius: 7px;
  background: #f1efe8;
}

.ep-modal-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ep-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 8px;
}

.ep-modal-tabs button.is-active {
  background: #fff;
  color: var(--ep-green);
  box-shadow: 0 6px 14px rgba(23, 32, 25, .07);
}

.ep-modal-tabbody {
  min-height: 118px;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.ep-modal-tabbody p {
  margin: 0;
  color: var(--ep-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ep-modal-chars {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ep-modal-chars div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee9df;
}

.ep-modal-chars div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ep-modal-chars dt {
  color: var(--ep-muted);
  font-size: 12px;
  font-weight: 900;
}

.ep-modal-chars dd {
  margin: 0;
  color: var(--ep-ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.ep-modal-buy {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ep-option-grid {
  display: grid;
  gap: 10px;
}

.ep-variant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.ep-qty {
  width: 86px;
  min-height: 42px;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
}

.ep-cart-list {
  display: grid;
  gap: 12px;
}

.ep-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  padding: 10px;
}

.ep-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--ep-soft);
}

.ep-cart-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.25;
}

.ep-cart-item p {
  margin: 0;
  color: var(--ep-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ep-cart-item__price {
  margin-top: 6px;
  color: var(--ep-green);
  font-weight: 900;
}

.ep-cart-item__controls {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.ep-cart-item__controls input {
  width: 58px;
  min-height: 34px;
  border: 1px solid var(--ep-line);
  border-radius: 6px;
  text-align: center;
}

.ep-remove {
  border: 0;
  background: transparent;
  color: #a23a31;
  cursor: pointer;
  font-weight: 800;
}

.ep-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ep-line);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 20px;
  font-weight: 900;
}

.ep-order-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-line);
}

.ep-empty {
  border: 1px dashed var(--ep-line);
  border-radius: 8px;
  padding: 28px;
  color: var(--ep-muted);
  text-align: center;
}

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

  .ep-store__filters {
    position: static;
  }

  .ep-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ep-store {
    padding: 28px 12px 80px;
  }

  .ep-store__top,
  .ep-store__toolbar,
  .ep-card__actions,
  .ep-variant-row,
  .ep-cart-item {
    grid-template-columns: 1fr;
  }

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

  .ep-store__summary {
    justify-content: flex-start;
  }

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

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

  .ep-modal__panel {
    width: 100%;
  }

  .ep-product-view,
  .ep-modal-variants,
  .ep-modal-tabs,
  .ep-modal-buy,
  .ep-modal-specs,
  .ep-modal-chars div {
    grid-template-columns: 1fr;
  }

  .ep-product-view__gallery {
    position: static;
  }

  .ep-product-view__main h3 {
    font-size: 23px;
  }

  .ep-cart-fab {
    left: 12px;
    right: 12px;
    justify-content: center;
  }
}

/* Variation cards like PILOSHOP reference */
.ep-shop-card {
  border-radius: 18px !important;
  overflow: hidden;
  background: #fffdf8 !important;
  border: 1px solid rgba(117, 92, 70, .25) !important;
  box-shadow: none !important;
}

.ep-shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(55, 38, 27, .10) !important;
}

.ep-shop-card__media {
  aspect-ratio: 1.5 / 1 !important;
  border: 0 !important;
  border-radius: 16px 16px 0 0;
  background: #e8e4dc !important;
  overflow: hidden;
}

.ep-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  padding: 0 !important;
  display: block;
}

.ep-image-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(26, 20, 16, .72));
  pointer-events: none;
}

.ep-card-tags {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-card-tags span {
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  backdrop-filter: blur(8px);
}

.ep-shop-card .ep-card__badge {
  top: auto;
  left: 12px;
  bottom: -12px;
  z-index: 2;
  min-height: 22px;
  border-radius: 5px;
  background: #9eb667 !important;
  color: #26301f;
  font-size: 9px;
  text-transform: uppercase;
  box-shadow: none;
}

.ep-shop-card .ep-card__body {
  position: relative;
  padding: 18px 16px 16px !important;
  gap: 8px !important;
  background: #fffdf8;
}

.ep-action-label {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  border-radius: 4px;
  background: #d9e6b3;
  color: #4b5b2d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 7px;
}

.ep-shop-card__title {
  min-height: 42px !important;
  padding: 0 !important;
  color: #2f2924 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.ep-card-size-line {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #2f2924;
  font-size: 12px;
  font-weight: 800;
}

.ep-card-size-line span + span::before {
  content: "· ";
  color: #a39a8f;
}

.ep-variation-strip,
.ep-length-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.ep-variation-strip {
  max-height: 58px;
  overflow: hidden;
}

.ep-variation-strip button,
.ep-length-strip span {
  min-height: 24px;
  border: 1px solid #e3ded3;
  border-radius: 999px;
  background: #fff;
  color: #665d54;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
}

.ep-variation-strip button {
  cursor: pointer;
}

.ep-variation-strip button:hover {
  background: #727a54;
  border-color: #727a54;
  color: #fff;
}

.ep-length-strip span {
  background: #f4f1eb;
}

.ep-sort-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 4px;
}

.ep-sort-label {
  color: #9a938b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-sort-row div {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.ep-sort-row div span {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3ded3;
  border-radius: 999px;
  background: #fff;
  color: #8c8379;
  font-size: 9px;
  font-weight: 800;
}

.ep-sort-row div span.is-active {
  background: #727a54;
  border-color: #727a54;
  color: #fff;
}

.ep-sort-row em {
  color: #8c8379;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.ep-card-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.ep-price-main {
  display: grid;
  gap: 1px;
}

.ep-price-main span {
  color: #a29b92;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ep-price-main strong {
  color: #2f2924;
  font-size: 18px;
  font-weight: 900;
}

.ep-price-main small {
  color: #8d857b;
  font-size: 10px;
  font-weight: 700;
}

.ep-open-btn {
  min-width: 72px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #201711;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 0 13px;
}

.ep-open-btn:hover {
  background: #3b2a20;
}

/* Product detail sheet like PILOSHOP */
.ep-modal__panel {
  width: min(1120px, calc(100% - 48px)) !important;
  left: 50%;
  right: auto !important;
  top: 24px !important;
  bottom: 24px !important;
  transform: translateX(-50%);
  border-radius: 24px;
  background: #f4efe6 !important;
}

.ep-modal__head {
  background: #f4efe6 !important;
  border-bottom: 0 !important;
  padding: 18px 24px 8px !important;
}

.ep-modal__head h2 {
  display: none;
}

.ep-modal__body {
  padding: 10px 24px 28px !important;
}

.ep-product-sheet {
  color: #2f2924;
}

.ep-sheet-crumbs {
  display: flex;
  gap: 10px;
  color: #9a9187;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.ep-sheet-title {
  margin-bottom: 18px;
  color: #2f2924;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ep-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.ep-sheet-left {
  display: grid;
  gap: 18px;
}

.ep-sheet-promo {
  flex: 1 1 0% !important;
  min-height: 140px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  border-radius: 22px !important;
  color: #fff !important;
  padding: 26px 28px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #1c1d1a !important;
  z-index: 1 !important;
}

.ep-sheet-promo__video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: auto !important;
  height: auto !important;
  z-index: 1 !important;
  object-fit: cover !important;
  opacity: 0.55 !important;
}

.ep-sheet-promo__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(90deg, rgba(28, 30, 26, 0.75), rgba(28, 30, 26, 0.5)) !important;
  z-index: 2 !important;
}

.ep-sheet-promo__content {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 20px !important;
}

@media (max-width: 680px) {
  .ep-sheet-promo__content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

.ep-sheet-promo small {
  display: inline-flex !important;
  margin-bottom: 10px !important;
  border-radius: 999px !important;
  background: var(--ep-lime) !important;
  padding: 6px 10px !important;
  color: #1c3a27 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.ep-sheet-promo strong {
  display: block !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.ep-sheet-promo p {
  max-width: 620px !important;
  margin: 8px 0 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.45 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

.ep-sheet-promo button {
  flex: none !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ep-lime) !important;
  color: #1c3a27 !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 0 24px !important;
  box-shadow: 0 4px 15px rgba(163, 198, 20, 0.4) !important;
  transition: all 0.2s ease !important;
}

.ep-sheet-promo button:hover {
  background: #ffffff !important;
  color: var(--ep-green) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

.ep-sheet-image {
  min-height: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.ep-sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 28px;
}

.ep-sheet-thumbs {
  display: flex;
  gap: 10px;
}

.ep-sheet-thumbs span {
  width: 66px;
  height: 54px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.ep-sheet-thumbs span.is-active {
  border-color: var(--ep-lime) !important;
  box-shadow: 0 2px 8px rgba(163, 198, 20, 0.3) !important;
}

.ep-sheet-thumbs span:hover:not(.is-active) {
  border-color: rgba(163, 198, 20, 0.4) !important;
}

.ep-sheet-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-sheet-panel {
  display: grid;
  gap: 14px;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.ep-sheet-selected {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: #f4efe6;
  padding: 14px;
}

.ep-sheet-selected span {
  color: #9a9187;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-sheet-selected strong {
  color: #2f2924;
  font-size: 16px;
  line-height: 1.2;
}

.ep-sheet-selected em {
  width: fit-content;
  border-radius: 999px;
  background: #727a54;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
}

.ep-sheet-selected b {
  color: #2f2924;
  font-size: 18px;
}

.ep-product-sheet .ep-option-groups {
  border: 0;
  background: transparent;
  padding: 0;
}

.ep-product-sheet .ep-option-buttons button {
  min-width: 44px;
  min-height: 34px;
  border-radius: 999px;
  background: #fff;
}

.ep-product-sheet .ep-option-buttons button.is-active,
.ep-product-sheet .ep-option-buttons button:hover {
  background: #727a54;
  border-color: #727a54;
  color: #fff;
  box-shadow: none;
}

.ep-sheet-calc {
  display: grid;
  gap: 12px;
  border-top: 1px solid #e3ded3;
  padding-top: 16px;
}

.ep-sheet-calc__title {
  color: #8d857b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-sheet-calc label {
  display: grid;
  gap: 6px;
  color: #7c746b;
  font-size: 12px;
  font-weight: 800;
}

.ep-sheet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: #201711;
  color: #fff;
  padding: 16px;
}

.ep-sheet-total span {
  max-width: 120px;
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-sheet-total strong {
  font-size: 22px;
}

.ep-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  border-radius: 999px;
  background: #fff;
  padding: 3px;
}

.ep-sheet-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8d857b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.ep-sheet-tabs button.is-active {
  background: #f4efe6;
  color: #2f2924;
}

.ep-sheet-tabbody {
  margin-top: 18px;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  min-height: 120px;
}

.ep-sheet-tabbody p {
  margin: 0;
  color: #5f574f;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ep-modal__panel {
    width: 100% !important;
    inset: 0 !important;
    transform: none;
    border-radius: 0;
  }

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

  .ep-sheet-panel {
    position: static;
  }

  .ep-sheet-image {
    min-height: 360px;
  }
}

/* Premium storefront skin */
.ep-store {
  --ep-green: #214f32;
  --ep-green-2: #2f7044;
  --ep-gold: #c9a85a;
  --ep-ink: #141b16;
  --ep-muted: #697267;
  --ep-line: #e3ded3;
  --ep-surface: #fffdf8;
  --ep-soft: #f3f0e8;
  background:
    radial-gradient(circle at 16% 0%, rgba(201, 168, 90, .16), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #f5f1e8 360px, #f8f6f1 100%);
}

.ep-store h1 {
  color: var(--ep-ink);
  font-weight: 900;
}

.ep-benefits div,
.ep-store__filters,
.ep-card,
.ep-modal__panel {
  border-color: rgba(227, 222, 211, .95);
}

.ep-benefits div {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(246, 241, 229, .93));
  color: #5a523f;
}

.ep-store__filters {
  background: rgba(255, 253, 248, .96);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(23, 32, 25, .08);
}

.ep-input,
.ep-select,
.ep-filter-chip {
  border-radius: 9px;
  background: #fffdf8;
}

.ep-filter-chip.is-active {
  background: linear-gradient(180deg, #edf4df, #e5edd4);
  border-color: rgba(33, 79, 50, .38);
  color: var(--ep-green);
}

.ep-card {
  background: rgba(255, 253, 248, .99);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(23, 32, 25, .075);
}

.ep-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 90, .55);
  box-shadow: 0 30px 64px rgba(23, 32, 25, .15);
}

.ep-card__media {
  background: linear-gradient(135deg, #f7f3ea, #fffdf8);
}

.ep-card__badge {
  background: linear-gradient(180deg, #c94e42, #ad372f);
  box-shadow: 0 8px 16px rgba(173, 55, 47, .18);
}

.ep-shop-card__top {
  color: #7b7568;
}

.ep-shop-card__rating span {
  color: var(--ep-gold);
}

.ep-shop-card__rating em {
  color: var(--ep-green-2);
}

.ep-shop-specs {
  border-top-color: rgba(227, 222, 211, .95);
  border-bottom-color: rgba(227, 222, 211, .95);
}

.ep-shop-price strong,
.ep-card__price,
.ep-cart-item__price {
  color: var(--ep-green);
}

.ep-shop-price span {
  color: #a45a50;
}

.ep-card__qty button,
.ep-card__qty input,
.ep-card__heart,
.ep-modal-tabbody,
.ep-modal-specs div,
.ep-option-groups,
.ep-order-box {
  border-radius: 10px;
  background: #fffdf8;
}

.ep-btn,
.ep-cart-fab,
.ep-simple-cta,
.ep-header-catalog,
.ep-header-search button {
  background: linear-gradient(180deg, #A3C614, #8EAF10) !important;
  color: #2F312C !important;
  box-shadow: 0 12px 26px rgba(163, 198, 20, 0.18) !important;
}

.ep-btn:hover,
.ep-simple-cta:hover,
.ep-header-catalog:hover,
.ep-header-search button:hover {
  background: #8EAF10 !important;
  color: #2F312C !important;
}

.ep-modal__panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 168, 90, .14), transparent 34%),
    linear-gradient(180deg, #fffdf8, #ffffff 300px),
    #fff;
}

.ep-product-view__media,
.ep-product-view__thumbs span {
  border-radius: 12px;
}

.ep-option-buttons button {
  border-radius: 9px;
  background: #fffdf8;
}

.ep-option-buttons button:hover,
.ep-option-buttons button.is-active {
  background: linear-gradient(180deg, #f4df9c, #d2af55);
  border-color: #b28c34;
  color: #172019;
  box-shadow: inset 0 0 0 1px rgba(93, 70, 18, .14), 0 8px 18px rgba(201, 168, 90, .2);
}

.ep-product-sheet .ep-option-buttons button.is-disabled,
.ep-product-sheet .ep-option-buttons button:disabled,
.ep-option-buttons button.is-disabled,
.ep-option-buttons button:disabled {
  opacity: .38;
  cursor: not-allowed;
  color: #81786c;
  background: #f2efe8;
  border-color: #ddd6c9;
  box-shadow: none;
}

.ep-product-sheet .ep-option-buttons button.is-disabled:hover,
.ep-product-sheet .ep-option-buttons button:disabled:hover,
.ep-option-buttons button.is-disabled:hover,
.ep-option-buttons button:disabled:hover {
  color: #81786c;
  background: #f2efe8;
  border-color: #ddd6c9;
  box-shadow: none;
}

.ep-current-config {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e5ded1;
  border-radius: 14px;
  background: #fffdf8;
}

.ep-current-config dt {
  color: #2f2924;
  font-size: 15px;
  font-weight: 900;
}

.ep-current-config div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #7a7167;
  font-size: 12px;
}

.ep-current-config strong {
  color: #2f2924;
  text-align: right;
}

.ep-variants-table {
  display: grid;
  gap: 6px;
  width: 100%;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.ep-variants-table__head,
.ep-variants-table__row {
  display: grid;
  grid-template-columns: 1.05fr .8fr .7fr .8fr .85fr .85fr auto;
  gap: 8px;
  align-items: center;
}

.ep-variants-table__head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f0e7;
  color: #8b8175;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-variants-table__row {
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #e8e0d4;
  border-radius: 10px;
  background: #fffdf8;
  color: #3a332c;
  font-size: 13px;
  font-weight: 700;
}

.ep-variants-table__row.is-active {
  border-color: #727a54;
  background: #f1f3e8;
  box-shadow: inset 0 0 0 1px rgba(114, 122, 84, .18);
}

.ep-variants-table__row button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #2b211b;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

.ep-variants-table__row.is-active button {
  background: #727a54;
}

@media (max-width: 860px) {
  .ep-variants-table {
    overflow-x: auto;
  }

  .ep-variants-table__head,
  .ep-variants-table__row {
    min-width: 760px;
  }
}

.ep-pagination button.is-active {
  background: linear-gradient(180deg, #2f7044, #214f32);
  border-color: #214f32;
}

/* Soft lime concept from reference */
.ep-store {
  --ep-green: #2b332b;
  --ep-lime: #9bd300;
  --ep-lime-dark: #84b900;
  --ep-ink: #2f332d;
  --ep-muted: #8b8d86;
  --ep-line: #e5dfd4;
  --ep-surface: #fbfaf5;
  background: #f4f2ec;
  padding-top: 44px;
}

.ep-breadcrumbs {
  margin-bottom: 18px;
}

.ep-breadcrumbs span:last-child {
  color: var(--ep-lime-dark);
  font-weight: 900;
}

.ep-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 18px;
  margin-bottom: 40px;
}

.ep-store__top {
  min-height: 205px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: none;
}

.ep-store__eyebrow {
  color: var(--ep-lime-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ep-store h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  color: #30322f;
}

.ep-store__lead {
  max-width: 760px;
  color: #83867f;
  font-size: 17px;
  line-height: 1.55;
}

.ep-store__summary {
  display: none;
}

.ep-service-stack {
  display: grid;
  gap: 12px;
}

.ep-service-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 20px;
  padding: 20px;
}

.ep-service-card span {
  color: var(--ep-lime-dark);
  font-size: 30px;
  line-height: 1;
}

.ep-service-card small {
  display: block;
  color: #9b9d96;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ep-service-card strong {
  display: block;
  color: #30322f;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
}

.ep-store__layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.ep-store__filters {
  top: 92px;
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  box-shadow: none;
}

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

.ep-filter-head strong {
  color: #30322f;
  font-size: 24px;
  font-weight: 900;
}

.ep-filter-head button {
  border: 0;
  background: transparent;
  color: var(--ep-lime-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.ep-field label {
  color: #8d8f88;
  font-size: 11px;
  text-transform: uppercase;
}

.ep-input,
.ep-select {
  min-height: 44px;
  border-radius: 10px;
  background: #fbfaf5;
}

.ep-store__toolbar {
  margin-bottom: 18px;
}

.ep-section-title {
  margin: 0;
  color: #30322f;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ep-store__count {
  text-align: right;
  color: #30322f;
}

.ep-store__count b {
  color: var(--ep-lime-dark);
  font-size: 18px;
}

.ep-products {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.ep-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  border-color: var(--ep-line);
}

.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 211, 0, .45);
  box-shadow: 0 20px 40px rgba(47, 51, 45, .08);
}

.ep-shop-card__media {
  aspect-ratio: 1.34 / 1;
  border-bottom: 1px solid var(--ep-line);
}

.ep-shop-card__media img {
  object-fit: contain;
  padding: 18px;
}

.ep-card__badge {
  background: var(--ep-lime);
  color: #30322f;
  box-shadow: none;
}

.ep-shop-card .ep-card__body {
  position: relative;
  gap: 10px;
  padding: 18px;
}

.ep-shop-card__top {
  display: none;
}

.ep-shop-card__title {
  min-height: 44px;
  padding-right: 44px;
  color: #30322f;
  font-size: 18px;
  line-height: 1.15;
}

.ep-shop-card__plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ep-line);
  border-radius: 999px;
  background: #fff;
  color: #30322f;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.ep-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ep-shop-mini-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.ep-shop-mini-specs div {
  min-height: 52px;
  border: 1px solid var(--ep-line);
  border-radius: 10px;
  background: #fbfaf5;
  padding: 8px;
}

.ep-shop-mini-specs dt {
  color: #9b9d96;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ep-shop-mini-specs dd {
  margin: 0;
  color: #30322f;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
}

.ep-price-row div {
  min-height: 62px;
  border: 1px solid var(--ep-line);
  border-radius: 10px;
  background: #fbfaf5;
  padding: 10px;
}

.ep-price-row span {
  display: block;
  color: #9b9d96;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ep-price-row strong {
  color: #30322f;
  font-size: 17px;
  font-weight: 900;
}

.ep-shop-card .ep-card__actions {
  grid-template-columns: 1fr;
}

.ep-shop-card .ep-card__heart {
  display: none;
}

.ep-btn {
  min-height: 42px;
  border-radius: 10px;
  background: #fbfaf5 !important;
  border: 1px solid var(--ep-line);
  color: #30322f;
  box-shadow: none;
  font-size: 13px;
}

.ep-btn:hover {
  background: var(--ep-lime) !important;
  color: #30322f;
}

.ep-simple-header {
  background: rgba(251, 250, 245, .96) !important;
  border-bottom-color: var(--ep-line) !important;
}

.ep-simple-header__top {
  background: #f4f2ec !important;
}

.ep-header-catalog,
.ep-simple-cta,
.ep-header-search button {
  background: var(--ep-lime) !important;
  color: #30322f !important;
  box-shadow: none !important;
  border-radius: 999px;
}

.ep-header-search {
  border-radius: 999px !important;
  background: #fff;
}

.ep-simple-footer {
  background: #293027 !important;
}

/* Polished catalog card body */
.ep-shop-card .ep-card__body {
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 16px 16px 14px !important;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf8f1 100%) !important;
}

.ep-action-label {
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e7efd3;
  color: #596b2f;
  font-size: 9px;
  letter-spacing: .03em;
}

.ep-shop-card__title {
  min-height: 0 !important;
  padding-right: 0 !important;
  color: #2d2924 !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

.ep-card-size-line {
  justify-content: flex-start;
  gap: 8px;
  color: #6f675e;
  font-size: 12px;
  font-weight: 800;
}

.ep-card-size-line span:first-child {
  color: #2d2924;
}

.ep-card-size-line span + span::before {
  content: "";
}

.ep-variation-strip,
.ep-length-strip {
  justify-content: flex-start;
  gap: 6px;
}

.ep-variation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}

.ep-variation-strip button,
.ep-length-strip span {
  min-height: 28px;
  justify-content: center;
  border-color: #e5ded2;
  border-radius: 999px;
  background: #fff;
  color: #413a33;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(45, 41, 36, .04);
}

.ep-variation-strip button.is-more,
.ep-length-strip span:last-child {
  background: #f0eadf;
  color: #71685d;
}

.ep-length-strip {
  min-height: 28px;
}

.ep-sort-row {
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  padding: 8px 0 2px;
  border-top: 1px solid #eee7da;
  margin-top: 0;
}

.ep-sort-label {
  color: #8a8177;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-sort-row div {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ep-sort-row div span {
  width: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.ep-sort-row em {
  align-self: center;
  color: #8a8177;
  font-size: 11px;
}

.ep-card-bottom {
  align-self: end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee7da;
}

.ep-price-main {
  gap: 0;
}

.ep-price-main span {
  color: #8a8177;
  font-size: 10px;
}

.ep-price-main strong {
  color: #2d2924;
  font-size: 22px;
  line-height: 1.08;
}

.ep-price-main small {
  line-height: 1.25;
}

.ep-open-btn {
  min-width: 92px;
  min-height: 38px;
  border-radius: 999px;
  background: #251c16;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(37, 28, 22, .16);
}

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

  .ep-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ep-store h1 {
    font-size: 36px;
  }

  .ep-store__top {
    border-radius: 18px;
    padding: 22px;
  }

  .ep-products,
  .ep-price-row,
  .ep-shop-mini-specs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PREMIUM REDESIGN OVERRIDES (Evropol Lime Green, Beige & Charcoal)
   ========================================================================== */

/* 1. Theme and Variables */
.ep-store {
  --ep-green: #2F312C !important; /* Evropol Brand Charcoal */
  --ep-green-light: #4c4e48 !important;
  --ep-green-glow: rgba(47, 49, 44, 0.06) !important;
  --ep-lime: #A3C614 !important; /* Evropol Warm Lime Green */
  --ep-lime-dark: #8EAF10 !important;
  --ep-gold: #A3C614 !important; /* Use lime green for gold replacements */
  --ep-gold-soft: #F8F7F3 !important;
  --ep-gold-glow: rgba(163, 198, 20, 0.1) !important;
  --ep-ink: #2F312C !important;
  --ep-muted: #6F736A !important;
  --ep-line: #D8D2C7 !important;
  --ep-surface: #F8F7F3 !important;
  --ep-soft: #ECE8E1 !important;
  
  background: 
    radial-gradient(circle at 10% 0%, rgba(163, 198, 20, 0.14), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(47, 49, 44, 0.04), transparent 50%),
    linear-gradient(180deg, #F5F3EE 0%, #ECE8E1 100%) !important;
}

/* 2. Typography and Breadcrumbs */
.ep-breadcrumbs span:last-child {
  color: var(--ep-lime) !important;
}

.ep-store h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  color: var(--ep-green) !important;
  letter-spacing: -0.01em !important;
}

.ep-store__lead {
  font-family: 'Inter', sans-serif !important;
  color: var(--ep-muted) !important;
}

/* 3. Service Cards and Hero Section */
.ep-service-card {
  border-radius: 16px !important;
  border: 1px solid rgba(191, 161, 95, 0.22) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease !important;
}
.ep-service-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--ep-gold) !important;
  box-shadow: 0 14px 28px -10px rgba(191, 161, 95, 0.15) !important;
}
.ep-service-card span {
  color: var(--ep-gold) !important;
}

.ep-store__top {
  border-radius: 20px !important;
  border-color: var(--ep-line) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 16px 36px rgba(28, 58, 39, 0.04) !important;
}

/* 4. Sidebar Filters */
.ep-store__filters {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(28, 58, 39, 0.08) !important;
  box-shadow: 0 12px 30px rgba(28, 58, 39, 0.04) !important;
  padding: 20px !important;
}

.ep-filter-head strong {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--ep-green) !important;
}

.ep-filter-head button {
  color: var(--ep-gold) !important;
  transition: color 0.2s ease !important;
}
.ep-filter-head button:hover {
  color: var(--ep-lime) !important;
}

.ep-input, .ep-select {
  border-color: rgba(28, 58, 39, 0.12) !important;
  transition: all 0.2s ease !important;
  font-family: 'Inter', sans-serif !important;
}
.ep-input:focus, .ep-select:focus {
  border-color: var(--ep-lime) !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 61, 0.12) !important;
  background: #ffffff !important;
}

/* 5. Product Cards Redesign */
.ep-shop-card {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(28, 58, 39, 0.08) !important;
  box-shadow: 0 10px 24px -10px rgba(28, 58, 39, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: flex !important;
  flex-direction: column !important;
}

.ep-shop-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--ep-gold) !important;
  box-shadow: 0 20px 40px -10px rgba(28, 58, 39, 0.12), 0 0 0 1px rgba(191, 161, 95, 0.1) !important;
}

.ep-shop-card__media {
  background: linear-gradient(135deg, #f7f6f2 0%, #eae6dc 100%) !important;
  border-bottom: 1px solid rgba(28, 58, 39, 0.06) !important;
  border-radius: 15px 15px 0 0 !important;
}
.ep-shop-card__media img {
  transition: transform 0.5s ease !important;
}
.ep-shop-card:hover .ep-shop-card__media img {
  transform: scale(1.05) !important;
}

.ep-shop-card .ep-card__body {
  background: transparent !important;
  padding: 16px 14px 10px 14px !important;
  gap: 8px !important;
  flex-grow: 1 !important;
}

.ep-action-label {
  background: rgba(0, 158, 61, 0.1) !important;
  color: var(--ep-lime-dark) !important;
  font-weight: 800 !important;
}

.ep-shop-card__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: var(--ep-green) !important;
  transition: color 0.2s ease !important;
}
.ep-shop-card__title:hover {
  color: var(--ep-lime) !important;
}

.ep-card-size-line {
  color: var(--ep-muted) !important;
}

.ep-variation-strip button {
  border: 1px solid rgba(28, 58, 39, 0.1) !important;
  background: #ffffff !important;
  color: var(--ep-green) !important;
  transition: all 0.2s ease !important;
}
.ep-variation-strip button:hover {
  background: var(--ep-green) !important;
  border-color: var(--ep-green) !important;
  color: #ffffff !important;
}
.ep-variation-strip button.is-more {
  background: var(--ep-soft) !important;
  color: var(--ep-muted) !important;
  border-color: rgba(28, 58, 39, 0.08) !important;
}

.ep-length-strip span {
  background: var(--ep-soft) !important;
  color: var(--ep-green) !important;
  border: 1px solid rgba(28, 58, 39, 0.05) !important;
}

.ep-card-bottom {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 8px !important;
  align-items: center !important;
  border-top: 1px solid var(--ep-line) !important;
  padding-top: 8px !important;
  margin-top: auto !important;
}

.ep-price-main {
  text-align: left !important;
  display: grid !important;
  justify-items: start !important;
  gap: 1px !important;
}

.ep-price-main span,
.ep-price-main strong {
  text-align: left !important;
}

.ep-price-main strong {
  color: var(--ep-green) !important;
  font-weight: 800 !important;
}

.ep-price-details {
  display: flex !important;
  flex-direction: row !important;
  gap: 4px !important;
  justify-content: center !important;
  align-items: center !important;
  padding-left: 8px !important;
  border-left: 1px solid rgba(28, 58, 39, 0.08) !important;
}

.ep-price-details small {
  color: var(--ep-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.ep-open-btn {
  justify-self: end !important;
  background: var(--ep-green) !important;
  box-shadow: 0 4px 12px rgba(28, 58, 39, 0.15) !important;
  transition: all 0.2s ease !important;
}
.ep-open-btn:hover {
  background: var(--ep-lime) !important;
  box-shadow: 0 4px 12px rgba(0, 158, 61, 0.2) !important;
}

/* 6. Modals & Glassmorphic Drawers */
.ep-modal {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ep-modal__panel {
  background: rgba(253, 252, 249, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.ep-modal__panel {
  width: min(1080px, calc(100% - 48px)) !important;
  border-radius: 20px !important;
}

.ep-modal__head {
  background: rgba(244, 239, 230, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--ep-line) !important;
}

.ep-close {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(28, 58, 39, 0.12) !important;
  transition: all 0.2s ease !important;
}
.ep-close:hover {
  background: var(--ep-green) !important;
  color: #ffffff !important;
  border-color: var(--ep-green) !important;
}

/* 7. Product Detail Sheet Inside Modal */
.ep-product-sheet {
  font-family: 'Inter', sans-serif !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.ep-sheet-layout {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.ep-sheet-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
}

.ep-sheet-image {
  flex: none !important;
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ep-sheet-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  padding: 24px !important;
}

@media (max-width: 1024px) {
  .ep-sheet-layout {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .ep-sheet-image {
    min-height: 0 !important;
    flex-grow: 0 !important;
  }
}

.ep-sheet-crumbs {
  color: var(--ep-muted) !important;
}

.ep-sheet-title {
  color: var(--ep-green) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
}

.ep-sheet-selected {
  background: var(--ep-gold-glow) !important;
  border: 1px solid rgba(191, 161, 95, 0.15) !important;
}
.ep-sheet-selected span {
  color: var(--ep-gold) !important;
}
.ep-sheet-selected strong {
  color: var(--ep-green) !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}
.ep-sheet-selected b {
  color: var(--ep-green) !important;
  font-weight: 800 !important;
  font-size: 24px !important;
}
.ep-sheet-selected em {
  background: var(--ep-green) !important;
}

.ep-sheet-calc {
  border-top-color: var(--ep-line) !important;
}

/* Lumber Calculator custom styling */
.ep-calc-blocks {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
  margin-bottom: 16px !important;
}

.ep-calc-block {
  border: 1px solid var(--ep-line) !important;
  background: #fdfdfd !important;
  border-radius: 12px !important;
  padding: 10px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ep-calc-block.is-active {
  border-color: var(--ep-lime) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(163, 198, 20, 0.15) !important;
}

.ep-calc-block__label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--ep-muted) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.ep-calc-block.is-active .ep-calc-block__label {
  color: var(--ep-green) !important;
  font-weight: 800 !important;
}

.ep-calc-block input {
  width: 100% !important;
  border: 1px solid #e1dbcf !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  height: 32px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ep-ink) !important;
  text-align: center !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.ep-calc-block input:disabled,
.ep-calc-block input[readonly] {
  background: #f7f5f0 !important;
  border-color: transparent !important;
  color: #a29b92 !important;
  cursor: pointer !important;
}

.ep-calc-block.is-active input {
  border-color: var(--ep-lime) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
  cursor: text !important;
}

.ep-calc-input-group {
  display: grid !important;
  gap: 4px !important;
}

.ep-calc-input-group label {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: var(--ep-muted) !important;
}

.ep-calc-input-group input {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid rgba(28, 58, 39, 0.12) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ep-green) !important;
  background: #ffffff !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.ep-calc-input-group input:focus {
  border-color: var(--ep-lime) !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 61, 0.12) !important;
}

.ep-calc-input-group input:disabled {
  background: rgba(28, 58, 39, 0.02) !important;
  color: var(--ep-muted) !important;
  border-color: rgba(28, 58, 39, 0.06) !important;
  cursor: not-allowed !important;
}

.ep-sheet-total {
  background: var(--ep-green) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(28, 58, 39, 0.15) !important;
}

.ep-sheet-total strong {
  color: #ffffff !important;
}

.ep-sheet-panel {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
  border: 1px solid var(--ep-line) !important;
  width: 100% !important;
  min-width: 0 !important;
}

.ep-sheet-tabs {
  background: rgba(28, 58, 39, 0.05) !important;
}
.ep-sheet-tabs button.is-active {
  background: #ffffff !important;
  color: var(--ep-green) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
}

.ep-sheet-tabbody {
  border: 1px solid var(--ep-line) !important;
}

/* Painting tab styles */
.ep-modal-painting {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  color: var(--ep-green) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.ep-modal-painting h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  margin: 0 0 4px 0 !important;
}

.ep-modal-painting ul {
  margin: 4px 0 !important;
  padding-left: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.ep-modal-painting li {
  list-style-type: disc !important;
}

.ep-painting-link {
  color: var(--ep-green) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  transition: color 0.2s ease !important;
}

.ep-painting-link:hover {
  color: var(--ep-lime) !important;
}

/* 8. Toast Feedback Alert */
.ep-toast {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(100px) !important;
  z-index: 100001 !important;
  background: rgba(28, 58, 39, 0.95) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease !important;
}
.ep-toast.is-visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.ep-toast__icon {
  background: var(--ep-lime) !important;
  color: #ffffff !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* 9. WhatsApp Cart Order Box */
.ep-order-box {
  background: var(--ep-gold-glow) !important;
  border-color: rgba(191, 161, 95, 0.15) !important;
}
.ep-order-box .ep-btn {
  background: #25d366 !important; /* WhatsApp Green */
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 0 !important;
}
.ep-order-box .ep-btn:hover {
  background: #20ba5a !important;
}
.ep-order-box .ep-btn--ghost {
  background: transparent !important;
  border: 1px solid rgba(28, 58, 39, 0.15) !important;
  color: var(--ep-green) !important;
  box-shadow: none !important;
}
.ep-order-box .ep-btn--ghost:hover {
  background: rgba(28, 58, 39, 0.05) !important;
}

/* 10. Drawer Mobile Cart Button */
.ep-cart-fab {
  border-radius: 50px !important;
  background: var(--ep-green) !important;
  box-shadow: 0 10px 30px rgba(28, 58, 39, 0.25) !important;
}
.ep-cart-fab:hover {
  background: var(--ep-lime) !important;
}
.ep-cart-fab .ep-cart-badge {
  background: #ffffff !important;
  color: var(--ep-green) !important;
  font-weight: 800 !important;
}

/* Adjustments for catalog.html headings */
#rec2209514291 {
  overflow: visible !important;
}

/* 11. Header Desktop Cart Badge */
.ep-cart-open {
  position: relative !important;
}
.ep-cart-open .ep-cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: var(--ep-lime) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #ffffff !important;
}

/* ==========================================================================
   CARDS AND MODAL OVERHAULS (Category grid, sort circles, similar products)
   ========================================================================== */

/* 12. Category Grid Header */
.ep-groups-section {
  margin-bottom: 32px;
}

.ep-groups-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ep-green) !important;
  margin: 0 0 16px !important;
}

.ep-groups-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

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

.ep-group-card {
  position: relative !important;
  aspect-ratio: 1.5 / 1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--ep-line) !important;
  background: var(--ep-surface) !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-align: left !important;
  display: flex !important;
  align-items: flex-end !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.ep-group-card__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}

.ep-group-card:hover .ep-group-card__img {
  transform: scale(1.06) !important;
}

.ep-group-card__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(47, 49, 44, 0.1), rgba(47, 49, 44, 0.72)) !important;
  transition: background 0.3s ease !important;
}

.ep-group-card:hover .ep-group-card__overlay {
  background: linear-gradient(180deg, rgba(47, 49, 44, 0.1), rgba(163, 198, 20, 0.82)) !important;
}

.ep-group-card__title {
  position: relative !important;
  z-index: 2 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;
  line-height: 1.25 !important;
}

.ep-group-card.is-active {
  border-color: var(--ep-lime) !important;
  box-shadow: 0 0 0 2px var(--ep-lime) !important;
}

.ep-group-card.is-active .ep-group-card__overlay {
  background: linear-gradient(180deg, rgba(47, 49, 44, 0.1), rgba(163, 198, 20, 0.88)) !important;
}


/* 13. Card Sort Circles */
.ep-sort-circle {
  border: 1px solid var(--ep-line) !important;
  background: #ffffff !important;
  color: var(--ep-green) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 28px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  transition: all 0.2s ease !important;
}

.ep-sort-circle.is-active {
  background: var(--ep-lime) !important;
  border-color: var(--ep-lime) !important;
  color: var(--ep-ink) !important;
  box-shadow: 0 4px 10px rgba(163, 198, 20, 0.2) !important;
}

.ep-sort-circle:hover:not(.is-active) {
  border-color: var(--ep-lime) !important;
  background: var(--ep-soft) !important;
}

/* 13.5. Card Unit Toggle Buttons */
.ep-unit-btn {
  border: 1px solid var(--ep-line) !important;
  background: #ffffff !important;
  color: var(--ep-green) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 28px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.ep-unit-btn.is-active {
  background: var(--ep-lime) !important;
  border-color: var(--ep-lime) !important;
  color: var(--ep-ink) !important;
  box-shadow: 0 4px 10px rgba(163, 198, 20, 0.2) !important;
  font-weight: 900 !important;
}

.ep-unit-btn:hover:not(.is-active) {
  border-color: var(--ep-lime) !important;
  background: var(--ep-soft) !important;
}


/* 14. Modal Similar Products */
.ep-similar-section {
  margin-top: 30px !important;
  border-top: 1px solid var(--ep-line) !important;
  padding-top: 24px !important;
}

.ep-similar-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--ep-green) !important;
  margin: 0 0 16px !important;
}

.ep-similar-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}

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

.ep-similar-card {
  border-radius: 16px !important;
  border: 1px solid var(--ep-line) !important;
  background: #ffffff !important;
  padding: 10px !important;
  cursor: pointer !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.ep-similar-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--ep-lime) !important;
  box-shadow: 0 12px 24px rgba(47, 49, 44, 0.06) !important;
}

.ep-similar-card__img {
  width: 100% !important;
  aspect-ratio: 1.3 / 1 !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: var(--ep-soft) !important;
  padding: 8px !important;
}

.ep-similar-card__body {
  display: grid !important;
  gap: 4px !important;
}

.ep-similar-card__title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--ep-ink) !important;
  min-height: 32px !important;
  line-height: 1.3 !important;
}

.ep-similar-card__price {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--ep-lime-dark) !important;
}

/* 15. Single Row Card Sort Buttons */
.ep-sort-row-single {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  padding: 6px 0 2px 0 !important;
  border-top: 1px solid var(--ep-line) !important;
  margin-top: 4px !important;
  scrollbar-width: none !important;
}

.ep-sort-row-single::-webkit-scrollbar {
  display: none !important;
}

/* 16. Product Card Specs Tags */
.ep-card-specs-tags {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 6px !important;
}

.ep-tag-spec {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border: 1px solid var(--ep-line) !important;
  transition: all 0.2s ease !important;
}

.ep-tag-spec--material {
  background: var(--ep-soft) !important;
  color: var(--ep-green) !important;
}

.ep-tag-spec--size {
  background: var(--ep-surface) !important;
  color: var(--ep-ink) !important;
}

/* 18. Back to Catalog Button Style */
.ep-back-to-catalog-btn {
  border: 0 !important;
  background: transparent !important;
  color: var(--ep-muted) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.ep-back-to-catalog-btn:hover {
  color: var(--ep-green) !important;
}

/* 19. Category Grouping by Species and Listing Headers */
.ep-groups-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.ep-group-tab-btn {
  border: 1px solid var(--ep-line) !important;
  background: #ffffff !important;
  color: var(--ep-ink) !important;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.ep-group-tab-btn:hover {
  background: var(--ep-soft) !important;
  border-color: var(--ep-muted) !important;
  transform: translateY(-1px) !important;
}

.ep-group-tab-btn.is-active {
  background: var(--ep-lime) !important;
  border-color: var(--ep-lime) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(163, 198, 20, 0.25) !important;
}

.ep-groups-subcategory-section {
  margin-bottom: 30px !important;
  animation: epFadeIn 0.4s ease-out !important;
}

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

.ep-groups-subcategory-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ep-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 16px 4px !important;
  padding-left: 10px !important;
  border-left: 3px solid var(--ep-lime) !important;
}

.ep-grid-section-title {
  grid-column: 1 / -1 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--ep-green) !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--ep-line) !important;
}

/* Ensure spacing for the first grid section header */
.ep-products .ep-grid-section-title:first-child {
  margin-top: 0 !important;
}


/* ==========================================================================
   MOBILE ADAPTATION — Responsive overrides for all catalog components
   ========================================================================== */

/* ── Tablet (≤ 1024px) ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Hero & top section */
  .ep-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 28px !important;
  }

  .ep-service-stack {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .ep-service-card {
    min-height: 78px !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .ep-service-card span {
    font-size: 24px !important;
  }

  .ep-service-card strong {
    font-size: 14px !important;
  }

  /* Sidebar: collapse to horizontal filter strip */
  .ep-store__layout {
    grid-template-columns: 1fr !important;
  }

  .ep-store__filters {
    position: static !important;
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .ep-filter-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .ep-filter-chip {
    width: auto !important;
    padding: 8px 14px !important;
    white-space: nowrap !important;
  }

  /* Product grid: 2 columns */
  .ep-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Product detail sheet */
  .ep-sheet-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ep-sheet-left,
  .ep-sheet-panel {
    min-width: 0 !important;
    width: 100% !important;
  }

  .ep-sheet-panel {
    position: static !important;
  }

  .ep-sheet-image {
    min-height: 0 !important;
    flex-grow: 0 !important;
  }

  .ep-modal__panel {
    width: calc(100% - 24px) !important;
    inset: 12px !important;
    transform: none !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    bottom: 12px !important;
  }

  /* Material filter tabs: scrollable */
  .ep-groups-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .ep-groups-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .ep-group-tab-btn {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  /* Similar products: 3 columns on tablet */
  .ep-similar-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  /* Variants table: horizontal scroll container */
  .ep-variants-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ep-variants-table__head,
  .ep-variants-table__row {
    min-width: 680px !important;
  }
}

/* ── Mobile Medium (≤ 768px) ───────────────────────────────────────────── */
@media (max-width: 768px) {

  .ep-store {
    padding: 16px 10px 90px !important;
  }

  /* Hero section */
  .ep-store__top {
    padding: 18px !important;
    border-radius: 14px !important;
    min-height: auto !important;
  }

  .ep-store h1 {
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  .ep-store__lead {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  .ep-store__eyebrow {
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }

  /* Service cards: 1 column */
  .ep-service-stack {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .ep-service-card {
    min-height: 62px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 12px !important;
  }

  .ep-service-card span {
    font-size: 22px !important;
  }

  .ep-service-card strong {
    font-size: 14px !important;
  }

  .ep-service-card small {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }

  /* Sidebar filters: compact */
  .ep-store__filters {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ep-filter-head strong {
    font-size: 18px !important;
  }

  /* Product grid: single column */
  .ep-products {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Card image: shorter on mobile */
  .ep-shop-card__media {
    aspect-ratio: 2.2 / 1 !important;
  }

  .ep-shop-card__media img {
    object-fit: cover !important;
    padding: 0 !important;
  }

  /* Card body adjustments */
  .ep-shop-card .ep-card__body {
    padding: 16px 16px 14px !important;
    gap: 10px !important;
  }

  /* Card title — bigger and bolder */
  .ep-shop-card__title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    min-height: auto !important;
  }

  /* Action label (В НАЛИЧИИ) */
  .ep-action-label {
    font-size: 12px !important;
    min-height: 26px !important;
    padding: 0 12px !important;
  }

  /* Specs tags (Лиственница, 20×140 мм) */
  .ep-card-specs-tags {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }

  .ep-tag-spec {
    font-size: 14px !important;
    min-height: 34px !important;
    padding: 6px 14px !important;
  }

  /* Card size line */
  .ep-card-size-line {
    font-size: 15px !important;
    gap: 8px !important;
  }

  /* Card bottom: single row, full width, centered */
  .ep-card-bottom {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 0 4px !important;
    margin-top: 6px !important;
    width: 100% !important;
  }

  /* Price block: inline */
  .ep-price-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    flex-shrink: 0 !important;
  }

  /* Price label (ЦЕНА / ШТ) */
  .ep-price-main span {
    font-size: 11px !important;
  }

  /* Price value */
  .ep-price-main strong {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }

  /* Price details (за куб, в кубе) — inline row */
  .ep-price-details {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(28, 58, 39, 0.1) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .ep-price-details small {
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  /* Open button — right edge */
  .ep-open-btn {
    min-width: 120px !important;
    min-height: 46px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  /* Sort row on cards */
  .ep-sort-row-single {
    gap: 6px !important;
    justify-content: flex-start !important;
    padding: 6px 0 2px !important;
  }

  .ep-sort-circle {
    min-width: 34px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .ep-unit-btn {
    min-width: 46px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  /* Variation strip buttons */
  .ep-variation-strip button {
    font-size: 12px !important;
    min-height: 28px !important;
    padding: 4px 6px !important;
  }

  /* Length strip */
  .ep-length-strip span {
    font-size: 12px !important;
    min-height: 28px !important;
    padding: 4px 10px !important;
  }

  /* Category groups */
  .ep-groups-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .ep-group-card {
    aspect-ratio: 1.3 / 1 !important;
    border-radius: 12px !important;
  }

  .ep-group-card__title {
    font-size: 11px !important;
    padding: 8px 10px !important;
  }

  .ep-groups-title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .ep-groups-subcategory-title {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    padding-left: 8px !important;
  }

  /* Material tabs on mobile */
  .ep-groups-tabs {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  .ep-group-tab-btn {
    padding: 7px 14px !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    letter-spacing: 0.03em !important;
  }

  /* Modal/Product sheet: full screen */
  .ep-modal__panel {
    width: 100% !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
  }

  .ep-modal__head {
    padding: 12px 14px 6px !important;
  }

  .ep-modal__body {
    padding: 8px 14px 20px !important;
  }

  /* Product sheet */
  .ep-sheet-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  .ep-sheet-crumbs {
    font-size: 10px !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .ep-sheet-image {
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  .ep-sheet-image img {
    padding: 14px !important;
  }

  .ep-sheet-thumbs {
    gap: 6px !important;
  }

  .ep-sheet-thumbs span {
    width: 52px !important;
    height: 42px !important;
    border-radius: 8px !important;
  }

  .ep-sheet-panel {
    border-radius: 16px !important;
    padding: 14px !important;
    gap: 12px !important;
  }

  .ep-sheet-selected {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ep-sheet-selected strong {
    font-size: 16px !important;
  }

  .ep-sheet-selected b {
    font-size: 20px !important;
  }

  /* Option buttons wrap properly */
  .ep-option-buttons {
    gap: 6px !important;
  }

  .ep-option-buttons button,
  .ep-product-sheet .ep-option-buttons button {
    min-width: 40px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }



  .ep-sheet-total {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ep-sheet-total strong {
    font-size: 18px !important;
  }

  /* Tabs inside product sheet */
  .ep-sheet-tabs {
    margin-top: 16px !important;
    padding: 3px !important;
  }

  .ep-sheet-tabs button {
    font-size: 11px !important;
    min-height: 30px !important;
  }

  .ep-sheet-tabbody {
    margin-top: 12px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  /* Promo banner: stack vertically */
  .ep-sheet-promo {
    flex: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    min-height: auto !important;
    border-radius: 16px !important;
    gap: 12px !important;
  }

  .ep-sheet-promo strong {
    font-size: 18px !important;
  }

  .ep-sheet-promo p {
    font-size: 13px !important;
    margin-top: 4px !important;
  }

  .ep-sheet-promo button {
    align-self: stretch !important;
    text-align: center !important;
  }

  /* Similar products: 2 columns on mobile */
  .ep-similar-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .ep-similar-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .ep-similar-card {
    padding: 8px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }

  .ep-similar-card__title {
    font-size: 11px !important;
    min-height: 28px !important;
  }

  .ep-similar-card__price {
    font-size: 12px !important;
  }

  /* Grid section titles (wood species headings inside product grid) */
  .ep-grid-section-title {
    font-size: 20px !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
  }

  /* Breadcrumbs */
  .ep-breadcrumbs {
    font-size: 10px !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
  }

  /* Benefits bar */
  .ep-benefits {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .ep-benefits div {
    padding: 6px 10px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    min-height: 36px !important;
  }

  /* Pagination */
  .ep-pagination {
    margin-top: 16px !important;
    gap: 4px !important;
  }

  .ep-pagination button {
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 12px !important;
  }

  /* Cart FAB: full width at bottom */
  .ep-cart-fab {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    justify-content: center !important;
    border-radius: 16px !important;
    min-height: 48px !important;
  }

  /* Cart items: stack controls under info */
  .ep-cart-item {
    grid-template-columns: 60px 1fr !important;
    gap: 10px !important;
    padding: 8px !important;
  }

  .ep-cart-item img {
    width: 60px !important;
    height: 60px !important;
  }

  .ep-cart-item__controls {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-end !important;
  }

  /* Toolbar */
  .ep-store__toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .ep-section-title {
    font-size: 22px !important;
  }

  /* Current config in sheet */
  .ep-current-config {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ep-current-config dt {
    font-size: 13px !important;
  }

  .ep-current-config div {
    font-size: 11px !important;
    gap: 8px !important;
  }

  /* Variation strip on cards */
  .ep-variation-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .ep-variation-strip button {
    font-size: 10px !important;
    min-height: 24px !important;
    padding: 3px 4px !important;
  }

  /* Card specs tags */
  .ep-card-specs-tags {
    gap: 4px !important;
  }

  .ep-tag-spec {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: 26px !important;
  }

  /* Toast: narrower on mobile */
  .ep-toast {
    left: 10px !important;
    right: 10px !important;
    transform: translateY(100px) !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }

  .ep-toast.is-visible {
    transform: translateY(0) !important;
  }
}

/* ── Mobile Small (≤ 480px) ────────────────────────────────────────────── */
@media (max-width: 480px) {

  .ep-store {
    padding: 12px 8px 90px !important;
  }

  .ep-store__top {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .ep-store h1 {
    font-size: 24px !important;
  }

  .ep-store__lead {
    font-size: 13px !important;
  }

  /* Benefits: single column */
  .ep-benefits {
    grid-template-columns: 1fr !important;
  }

  /* Category groups: 2 cols stay but smaller */
  .ep-groups-grid {
    gap: 8px !important;
  }

  .ep-group-card {
    aspect-ratio: 1.2 / 1 !important;
    border-radius: 10px !important;
  }

  .ep-group-card__title {
    font-size: 10px !important;
    padding: 6px 8px !important;
  }

  .ep-groups-title {
    font-size: 16px !important;
  }

  /* Product sheet */
  .ep-sheet-title {
    font-size: 20px !important;
  }

  .ep-sheet-image {
    min-height: 0 !important;
    border-radius: 14px !important;
  }

  .ep-sheet-image img {
    padding: 10px !important;
  }

  .ep-sheet-thumbs span {
    width: 44px !important;
    height: 36px !important;
  }

  /* Panel */
  .ep-sheet-panel {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .ep-sheet-selected strong {
    font-size: 14px !important;
  }

  .ep-sheet-selected b {
    font-size: 18px !important;
  }

  /* Option buttons: smaller on tiny screens */
  .ep-option-buttons button,
  .ep-product-sheet .ep-option-buttons button {
    min-width: 36px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  /* Calc: stack inputs and align horizontally */
  .ep-calc-blocks {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .ep-calc-block {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  .ep-calc-block__label {
    text-align: left !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .ep-calc-block input {
    width: 120px !important;
    text-align: right !important;
    padding-right: 8px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .ep-sheet-total {
    padding: 10px !important;
  }

  .ep-sheet-total strong {
    font-size: 16px !important;
  }

  /* Similar products: keep 2 columns */
  .ep-similar-card__img {
    aspect-ratio: 1.1 / 1 !important;
  }

  .ep-similar-card__title {
    font-size: 10px !important;
    min-height: 24px !important;
  }

  .ep-similar-card__price {
    font-size: 11px !important;
  }

  /* Card image: even shorter on small screens */
  .ep-shop-card__media {
    aspect-ratio: 2.5 / 1 !important;
  }

  /* Card body */
  .ep-shop-card .ep-card__body {
    padding: 14px 14px 12px !important;
    gap: 8px !important;
  }

  .ep-shop-card__title {
    font-size: 19px !important;
    line-height: 1.2 !important;
  }

  .ep-action-label {
    font-size: 11px !important;
  }

  .ep-tag-spec {
    font-size: 13px !important;
    min-height: 30px !important;
    padding: 5px 10px !important;
  }

  .ep-card-size-line {
    font-size: 14px !important;
  }

  .ep-card-bottom {
    gap: 10px !important;
    padding: 12px 0 4px !important;
  }

  .ep-price-main strong {
    font-size: 24px !important;
  }

  .ep-price-main span {
    font-size: 10px !important;
  }

  .ep-price-details small {
    font-size: 13px !important;
  }

  .ep-open-btn {
    min-width: 106px !important;
    min-height: 42px !important;
    font-size: 14px !important;
  }

  .ep-sort-circle {
    min-width: 30px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  .ep-unit-btn {
    min-width: 40px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  .ep-variation-strip button {
    font-size: 11px !important;
    min-height: 26px !important;
  }

  /* Promo */
  .ep-sheet-promo strong {
    font-size: 16px !important;
  }

  .ep-sheet-promo p {
    font-size: 12px !important;
  }

  /* Cart */
  .ep-cart-item {
    grid-template-columns: 50px 1fr !important;
  }

  .ep-cart-item img {
    width: 50px !important;
    height: 50px !important;
  }

  .ep-cart-item h3 {
    font-size: 12px !important;
  }

  /* Tabs */
  .ep-sheet-tabs {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .ep-sheet-tabs button {
    font-size: 10px !important;
    min-height: 28px !important;
    padding: 0 4px !important;
  }

  .ep-sheet-tabbody {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ep-sheet-tabbody p {
    font-size: 13px !important;
  }

  /* Current config */
  .ep-current-config {
    padding: 10px !important;
  }

  .ep-current-config dt {
    font-size: 12px !important;
  }

  /* Variation strip: 3 columns min */
  .ep-variation-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Grid section headers */
  .ep-grid-section-title {
    font-size: 18px !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
  }

  /* Toolbar count */
  .ep-section-title {
    font-size: 18px !important;
  }

  .ep-store__count {
    font-size: 12px !important;
  }

  .ep-store__count b {
    font-size: 14px !important;
  }
}

/* ── Global mobile fixes (prevent horizontal overflow) ─────────────────── */
@media (max-width: 1024px) {
  .ep-store,
  .ep-store__inner,
  .ep-modal__body,
  .ep-product-sheet {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* ── Accompanying Products horizontal slider ─────────────────── */
.ep-related-section {
  margin-top: 36px !important;
  border-top: 1px solid var(--ep-line) !important;
  padding-top: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ep-related-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.ep-related-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  color: var(--ep-green) !important;
  margin: 0 !important;
}

.ep-related-filters {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.ep-related-filter-btn {
  background: rgba(28, 58, 39, 0.04) !important;
  border: 1px solid rgba(28, 58, 39, 0.08) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ep-green) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ep-related-filter-btn:hover {
  background: rgba(28, 58, 39, 0.08) !important;
}

.ep-related-filter-btn.is-active {
  background: var(--ep-lime) !important;
  border-color: var(--ep-lime) !important;
  color: #1c3a27 !important;
}

.ep-related-slider-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.ep-related-slider {
  display: flex !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 10px 4px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important; /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch !important;
}

.ep-related-slider::-webkit-scrollbar {
  display: none !important; /* Hide webkit scrollbars */
}

.ep-related-card {
  flex: 0 0 240px !important; /* Fixed width for carousel items */
  background: #ffffff !important;
  border: 1px solid var(--ep-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
}

.ep-related-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(163, 198, 20, 0.5) !important;
}

.ep-related-card__media {
  aspect-ratio: 1.2 / 1 !important;
  background: #fdfdfd !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  border-bottom: 1px solid var(--ep-line) !important;
  box-sizing: border-box !important;
}

.ep-related-card__media img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.ep-related-card__body {
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  box-sizing: border-box !important;
}

.ep-related-card__title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ep-green) !important;
  line-height: 1.3 !important;
  min-height: 34px !important;
  margin-bottom: 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.ep-related-card__price {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--ep-ink) !important;
  margin-bottom: 10px !important;
}

.ep-related-card__btn {
  width: 100% !important;
  background: var(--ep-green) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  height: 32px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: auto !important;
}

.ep-related-card:hover .ep-related-card__btn {
  background: var(--ep-lime) !important;
  color: #1c3a27 !important;
}

.ep-slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--ep-line) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: var(--ep-green) !important;
  transition: all 0.2s ease !important;
}

.ep-slider-arrow:hover {
  background: var(--ep-lime) !important;
  color: #1c3a27 !important;
  border-color: var(--ep-lime) !important;
}

.ep-slider-arrow--left {
  left: -18px !important;
}

.ep-slider-arrow--right {
  right: -18px !important;
}

@media (max-width: 768px) {
  .ep-slider-arrow {
    display: none !important; /* Hide arrows on touch screens */
  }
  .ep-related-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   INTERACTIVE HERO SLIDER (.ep-hero-slider)
   ========================================================================== */
.ep-hero-slider {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: var(--ep-green);
  border-radius: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(47, 49, 44, 0.08);
}

.ep-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 22px 74px;
  z-index: 1;
}

.ep-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.ep-slide-content {
  max-width: 860px;
  color: #FFFFFF;
  z-index: 3;
  transform: translateY(10px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-hero-slide.active .ep-slide-content {
  transform: translateY(0);
}

.ep-slide-badge {
  display: inline-block;
  background: var(--ep-lime);
  color: var(--ep-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.ep-slide-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  color: #FFFFFF;
}

.ep-slide-content p {
  display: none;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  margin: 6px 0 0 0;
}

.ep-slide-btn {
  display: none;
  background: #FFFFFF;
  color: var(--ep-green);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  text-align: center;
}

.ep-slide-btn:hover {
  background: var(--ep-lime);
  color: var(--ep-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 198, 20, 0.3);
}

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

/* Controls: Arrows */
.ep-hero-slider .ep-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
}

.ep-hero-slider .ep-slider-arrow:hover {
  background: var(--ep-lime);
  border-color: var(--ep-lime);
  color: var(--ep-green);
  box-shadow: 0 0 15px rgba(163, 198, 20, 0.4);
}

.ep-hero-slider .ep-slider-arrow.prev {
  left: 18px;
}

.ep-hero-slider .ep-slider-arrow.next {
  right: 18px;
}

.ep-hero-slider .ep-slider-arrow svg {
  width: 20px;
  height: 20px;
}

/* Dots pagination */
.ep-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ep-slider-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ep-slider-dot.active {
  background: var(--ep-lime);
  width: 40px;
}

.ep-slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .ep-hero-slider {
    height: 138px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .ep-hero-slide {
    padding: 20px 58px;
  }
  .ep-slide-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .ep-hero-slider {
    height: auto;
    min-height: 128px;
    border-radius: 14px;
  }
  .ep-hero-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 20px 18px 38px;
    z-index: auto;
  }
  .ep-hero-slide.active {
    display: flex;
  }
  .ep-slide-content {
    max-width: 100%;
    transform: none;
  }
  .ep-hero-slide.active .ep-slide-content {
    transform: none;
  }
  .ep-slide-content h2 {
    font-size: 22px;
    margin-bottom: 0;
  }
  .ep-slide-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .ep-slide-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }
  .ep-hero-slider .ep-slider-arrow {
    display: none !important; /* Hide arrows on touch screens */
  }
  .ep-slider-dots {
    bottom: 16px;
  }
}

/* ==========================================================================
   MOBILE LAYOUT OPTIMIZATIONS (FAB FILTERS & CLOSE/APPLY BUTTONS)
   ========================================================================== */
@media (max-width: 980px) {
  /* 1. Make filters a full-screen drawer on mobile */
  .ep-store__filters {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000000 !important;
    background: #F8F7F3 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .ep-store__filters.is-open {
    transform: translateX(0) !important;
  }

  /* Filter Head updates */
  .ep-filter-head {
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--ep-line, #D8D2C7) !important;
  }

  /* Close button on mobile filters header */
  .ep-filter-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ep-soft, #ECE8E1);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--ep-text, #2F312C);
    transition: background 0.2s ease;
  }
  .ep-filter-close:active {
    background: var(--ep-line, #D8D2C7);
  }

  /* Apply button at the bottom of filters */
  .ep-apply-filters-btn {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
  }

  /* Hide default horizontal desktop filters container spacer */
  .ep-store__layout {
    gap: 0 !important;
  }
}
@media (min-width: 981px) {
  .ep-filter-close,
  .ep-apply-filters-btn {
    display: none !important;
  }
}

