/* =========================================================
   EPOCH PAGE
========================================================= */

.epoch-body {
  background: #f4f5f4;
  --crn-dark: #1a2420;
  --crn-green: #2d4a34;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* HERO */

.ep-hero {
  background: #ffffff;
  border-bottom: 1px solid #e8ebe8;
  padding: 28px 0 36px;
}

.ep-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.ep-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  font-size: 12px;
  color: #8a938c;
}

.ep-hero .breadcrumb a {
  color: #6a746c;
  text-decoration: none;
}

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

.ep-hero .breadcrumb span[aria-hidden] {
  margin: 0 6px;
  color: #c0c6c1;
}

.ep-hero h1 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1e3a24;
}

.ep-hero h1 sub {
  font-size: 0.55em;
}

.ep-hero__content > p {
  margin: 0 0 22px;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #4f5a52;
}

.ep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-hero__actions .crn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.ep-hero__actions .crn-btn--dark {
  background: #1e3a24;
  color: #ffffff;
}

.ep-hero__actions .crn-btn--dark:hover {
  background: #16301c;
}

.ep-hero__actions .crn-btn--outline {
  background: #ffffff;
  border: 1px solid #cfd6d0;
  color: #1e3a24;
}

.ep-hero__actions .crn-btn--outline:hover {
  border-color: #1e3a24;
  background: #f7f8f7;
}


/* APPLICATION CARDS */

.ep-hero__apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ep-app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e8e4;
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: #1a1f1b;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ep-app-card:hover {
  border-color: #c5d0c7;
  box-shadow: 0 6px 18px rgba(20, 40, 25, 0.08);
}

.ep-app-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.ep-app-card__visual--camper {
  background: #6b8f74;
}

.ep-app-card__visual--boot {
  background: #5a7f96;
}

.ep-app-card__visual--golfcart {
  background: #5f8a68;
}

.ep-app-card > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.ep-app-card > span i {
  font-size: 0.72rem;
  color: #3d6845;
}


/* SHIPPING BANNER */

.ep-shipping-banner {
  padding: 12px 0;
  background: #eef4ef;
  border-bottom: 1px solid #dce5dd;
}

.ep-shipping-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ep-shipping-banner i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 14px;
  color: #3d6845;
}

.ep-shipping-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3a4d3e;
}

.ep-shipping-banner strong {
  font-weight: 700;
}

.ep-shipping-banner a {
  color: #2d4a34;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* SHOP LAYOUT */

.ep-shop {
  padding: 28px 0 56px;
}

.ep-shop > .container,
.ep-hero > .container,
.ep-shipping-banner > .container,
.ep-bottom > .container {
  width: min(1440px, calc(100% - 2.5rem));
}

.ep-shop__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}


/* FILTER SIDEBAR */

.ep-filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 24px);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border: 1px solid #e4e8e4;
  border-radius: 12px;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ep-filters h2 {
  flex-shrink: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f1b;
}

.ep-filters__top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0ee;
}

.ep-filters__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-filters__close,
.ep-filters__footer,
.ep-filters-open,
.ep-filters-backdrop {
  display: none;
}

.ep-filters__close {
  width: 36px;
  height: 36px;
  border: 1px solid #d8ddd8;
  border-radius: 8px;
  background: #fff;
  color: #1a1f1b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ep-filters__footer {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid #eef0ee;
  margin-top: 8px;
}

.ep-filters__apply {
  width: 100%;
  justify-content: center;
}

.ep-filters-open {
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d0d6d0;
  border-radius: 8px;
  background: #fff;
  color: #1a1f1b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.ep-filters-open__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green, #415c42);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.ep-filters-open__count[hidden] {
  display: none;
}

.ep-filters__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
  margin-right: 0;
}

.ep-filters__clear {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a635c;
  cursor: pointer;
}

.ep-filters__clear:hover {
  color: #1a1f1b;
}

.ep-filter-group {
  border-top: 1px solid #eef0ee;
  padding: 8px 0;
}

.ep-filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ep-filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1a1f1b;
  padding: 4px 0;
  scroll-margin: 0;
}

.ep-shop__layout,
.ep-results,
#epochProductGrid {
  overflow-anchor: none;
}

.ep-filter-group summary::-webkit-details-marker {
  display: none;
}

.ep-filter-group summary::after {
  content: "▾";
  font-size: 0.75rem;
  color: #7a847c;
  transition: transform 0.15s ease;
}

.ep-filter-group:not([open]) summary::after {
  transform: rotate(-90deg);
}

.ep-filter-options {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.ep-check {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 0.86rem;
  color: #3a443d;
}

.ep-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2d4a34;
}

.ep-check em {
  font-style: normal;
  font-size: 0.78rem;
  color: #8a938c;
}

.ep-price-filter {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 0 2px 4px;
}

.ep-price-filter__values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.ep-price-filter__slider {
  position: relative;
  height: 28px;
}

.ep-price-filter__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e2e8e2;
}

.ep-price-filter__range {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--green);
}

.ep-price-filter__slider input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 28px;
}

.ep-price-filter__slider input[type="range"]#priceMin,
.ep-price-filter__slider input[type="range"]#capacityMin {
  z-index: 2;
}

.ep-price-filter__slider input[type="range"]#priceMax,
.ep-price-filter__slider input[type="range"]#capacityMax {
  z-index: 3;
}

.ep-price-filter__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.ep-price-filter__slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}

.ep-price-filter__slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(26, 36, 26, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.ep-price-filter__slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(26, 36, 26, 0.18);
  pointer-events: auto;
  cursor: pointer;
}


/* RESULTS + TOOLBAR */

.ep-results {
  min-width: 0;
}

.ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.ep-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.ep-toolbar__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #8a938c;
  pointer-events: none;
}

.ep-toolbar__search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 34px;
  border: 1px solid #dde1dd;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  box-sizing: border-box;
}

.ep-toolbar__search input:focus {
  outline: none;
  border-color: #a3b0a5;
}

.ep-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ep-toolbar__meta > strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3a443d;
  white-space: nowrap;
}

.ep-toolbar__sort select {
  height: 42px;
  padding: 0 32px 0 12px;
  border: 1px solid #dde1dd;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  cursor: pointer;
}

.ep-toolbar__sort select:focus {
  outline: none;
  border-color: #a3b0a5;
}


/* LOADING / EMPTY */

.catalog-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.catalog-chip {
  appearance: none;
  border: 1px solid #d5dbd6;
  background: #fff;
  color: #3a443d;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.catalog-chip:hover,
.catalog-chip:focus-visible {
  border-color: #3d5e44;
  color: #1e3a24;
  outline: none;
}

.catalog-chip.is-active {
  background: #1e3a24;
  border-color: #1e3a24;
  color: #fff;
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #7a847c;
  font-size: 14px;
}

.catalog-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 12px;
  border: 2px solid #dde1dd;
  border-top-color: #3d5e44;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed #d5dbd6;
  border-radius: 12px;
  background: #ffffff;
  color: #5a635c;
}

.catalog-empty i {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #8a938c;
}

.catalog-empty h3 {
  margin: 0 0 6px;
  color: #1a1f1b;
}


/* PRODUCT GRID */

.product-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}


/* PRODUCT CARDS */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: rgba(65, 92, 66, 0.28);
  box-shadow: 0 8px 22px rgba(26, 36, 26, 0.08);
}

.product-card__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.product-card__compare input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--green);
}

.product-card__body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  padding: 16px 12px 12px;
  background: var(--white);
  text-decoration: none;
}

.product-card__image img {
  display: block;
  width: 100%;
  max-width: 132px;
  height: auto;
  max-height: 158px;
  object-fit: contain;
}

.product-card__no-image {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-card__no-image i {
  font-size: 1.3rem;
  color: var(--green-soft);
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px 4px;
  min-width: 0;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--ink);
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--green-deep);
}

.product-card__kwh {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.product-card__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 1px;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--sand);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.product-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 0.76rem;
  font-weight: 600;
}

.product-card__availability i {
  font-size: 6px;
}

.product-card__availability--available {
  color: var(--green);
}

.product-card__availability--preorder {
  color: #c06a14;
}

.product-card__features {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--muted);
}

.product-card__features i {
  width: 10px;
  color: var(--green-soft);
  font-size: 0.6rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}

.product-card__footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.product-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: none;
  border-radius: 7px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.product-card__cta:hover {
  background: var(--green-deep);
}


/* COMPARE BAR + MODAL */

.ep-compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 0;
  background: #1e3a24;
  color: #ffffff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.ep-compare-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.ep-compare-bar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ep-compare-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 6px 8px 6px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
}

.ep-compare-bar__item img,
.ep-compare-bar__placeholder {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: contain;
  background: #ffffff;
  flex-shrink: 0;
}

.ep-compare-bar__placeholder {
  display: grid;
  place-items: center;
  color: #6a746c;
  font-size: 0.85rem;
}

.ep-compare-bar__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-compare-bar__item button {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.ep-compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-compare-bar__actions .crn-btn {
  min-height: 40px;
  background: #ffffff;
  color: #1e3a24;
}

.ep-compare-bar__actions .crn-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ep-compare-bar__clear {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ep-compare-bar__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.ep-compare-bar__close:hover,
.ep-compare-bar__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

body.has-compare-bar {
  padding-bottom: 88px;
}

.ep-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.ep-compare-modal[hidden] {
  display: none !important;
}

.ep-compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 24, 18, 0.55);
}

.ep-compare-modal__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: #1e3a24;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ep-compare-modal__close:hover,
.ep-compare-modal__close:focus-visible {
  background: #2a4f32;
}

.ep-compare-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ep-compare-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 64px 14px 20px;
  border-bottom: 1px solid #e8ebe8;
  background: #ffffff;
}

.ep-compare-modal__head h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  color: #1a1f1b;
}

.ep-compare-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.ep-compare-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 40px 16px;
  color: #5a635c;
  font-size: 0.9rem;
}

.ep-compare-table-wrap {
  overflow-x: auto;
}

.ep-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.ep-compare-table th,
.ep-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0ee;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.ep-compare-table thead th {
  border-bottom: 1px solid #e4e8e4;
}

.ep-compare-table tbody th {
  width: 180px;
  min-width: 140px;
  color: #5a635c;
  font-weight: 600;
  background: #f9faf9;
}

.ep-compare-table__product {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.ep-compare-table__product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f7f8f7;
  border-radius: 6px;
}

.ep-compare-table__product strong {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #1a1f1b;
}

.ep-compare-table__product a {
  color: #2d4a34;
  font-size: 0.8rem;
  font-weight: 600;
}

.ep-compare-table__remove {
  padding: 0;
  border: none;
  background: none;
  color: #8a938c;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ep-compare-bar__item span {
    max-width: 90px;
  }

  .ep-compare-bar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .ep-compare-modal {
    padding: 10px;
    align-items: stretch;
  }

  .ep-compare-modal__close {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
  }

  .ep-compare-modal__panel {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 12px;
  }

  .ep-compare-table tbody th {
    width: 120px;
    font-size: 0.8rem;
  }
}


/* BOTTOM — HOW TO ORDER */

.ep-bottom {
  padding: 50px 0 60px;
  border-top: 1px solid #e8ebe8;
  background: #ffffff;
}

.ep-bottom__title {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  color: #1a1f1b;
}

.ep-bottom__intro {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: #5a635c;
  max-width: 640px;
}

.ep-bottom__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.ep-bottom__step {
  padding: 20px;
  border: 1px solid #e4e8e4;
  border-radius: 8px;
  background: #f9faf9;
}

.ep-bottom__step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #1a1f1b;
}

.ep-bottom__step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5a635c;
}

.ep-bottom__help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8ebe8;
}

.ep-bottom__help p {
  margin: 0;
  font-size: 13px;
  color: #5a635c;
}

.ep-bottom__help a {
  color: #2d4a34;
  font-weight: 600;
}

.ep-delivery-estimator {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e4e8e4;
  border-radius: 10px;
  background: #f9faf9;
}

.ep-delivery-estimator__head h3 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  color: #1a1f1b;
}

.ep-delivery-estimator__head p {
  margin: 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.55;
  color: #5a635c;
}

.ep-delivery-estimator__form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.ep-delivery-estimator__field {
  display: grid;
  gap: 6px;
}

.ep-delivery-estimator__field label {
  font-size: 12px;
  font-weight: 600;
  color: #4f5e53;
}

.ep-delivery-estimator__field label span {
  font-weight: 500;
  color: #8a938c;
}

.ep-delivery-estimator__field input,
.ep-delivery-estimator__field select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dde1dd;
  border-radius: 5px;
  background: #ffffff;
  font-size: 13px;
}

.ep-delivery-estimator__field input:focus,
.ep-delivery-estimator__field select:focus {
  outline: none;
  border-color: #a3b0a5;
}

.ep-delivery-estimator__result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #eef4ef;
  color: #304234;
}

.ep-delivery-estimator__result h4 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  color: #1a1f1b;
}

.ep-delivery-estimator__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.ep-delivery-estimator__stat {
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
}

.ep-delivery-estimator__stat span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a635c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ep-delivery-estimator__stat strong {
  font-size: 1rem;
  color: #1a1f1b;
}

.ep-delivery-estimator__result > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
  .product-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ep-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .ep-filters-open {
    display: inline-flex;
  }

  .ep-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(18, 24, 20, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .ep-filters-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .ep-filters-backdrop[hidden] {
    display: none;
  }

  .ep-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1500;
    width: 100%;
    max-height: min(88vh, 720px);
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(20, 28, 22, 0.22);
    transform: translateY(110%);
    transition: transform 0.28s ease;
    overflow: hidden;
  }

  .ep-filters.is-open {
    transform: translateY(0);
  }

  .ep-filters:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }

  .ep-filters__close,
  .ep-filters__footer {
    display: flex;
  }

  .ep-filters__scroll {
    overflow: auto;
  }

  body.ep-filters-open {
    overflow: hidden;
  }
}

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

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

@media (max-width: 760px) {
  .ep-delivery-estimator__form {
    grid-template-columns: 1fr;
  }

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

  .product-card__body {
    grid-template-columns: 1fr;
  }

  .product-card__footer {
    flex-wrap: wrap;
  }

  .product-card__footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-card__image {
    width: auto;
    min-height: 150px;
    padding: 18px 16px 8px;
    border-bottom: none;
  }

  .product-card__content {
    padding: 8px 14px 12px;
  }
}

@media (max-width: 560px) {
  .product-grid--3 {
    grid-template-columns: 1fr;
  }

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

  .ep-toolbar__meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* Simple catalog pages (accessoires / acculaders) */

.ep-hero--simple .breadcrumb {
  margin-bottom: 14px;
}

.ep-hero--simple h1 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink, #1a1f1b);
}

.ep-hero--simple p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted, #5a635c);
  font-size: 1rem;
  line-height: 1.5;
}

.ep-results--full {
  width: 100%;
}

.catalog-page .ep-shop {
  padding-top: 20px;
}

.catalog-page .product-card__footer-actions {
  margin-left: auto;
}
