/*
Theme Name: Європол
Theme URI: https://example.com/europol
Author: Європол
Description: Магазин підлогового покриття, дверей та сервісу. Тема для WooCommerce: каталог з фільтрами, картка товару з розрахунком за пачку, кошик, оформлення замовлення та сторінка послуг.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: europol
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
WC requires at least: 8.0
WC tested up to: 9.9
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --ep-bg: #faf6f1;
  --ep-panel: #ffffff;
  --ep-field: #fffdfb;
  --ep-ink: #1d1b19;
  --ep-ink-2: #4a443f;
  --ep-ink-3: #5c554f;
  --ep-muted: #6f6862;
  --ep-muted-2: #9a918a;
  --ep-line: #e6ded5;
  --ep-line-2: #e9e0d6;
  --ep-line-3: #efe7dd;
  --ep-line-4: #eae1d7;
  --ep-line-field: #e0d6ca;
  --ep-line-strong: #cdc2b6;
  --ep-red: #d8232a;
  --ep-red-dark: #b81c22;
  --ep-red-deep: #a8151b;
  --ep-red-soft: #f7e6e5;
  --ep-red-wash: #fdf5f4;
  --ep-sand: #f0e6da;
  --ep-sand-ink: #7a5c34;
  --ep-soft: #f4ede4;
  --ep-soft-2: #e9dfd2;
  --ep-shot-a: #f1e8dd;
  --ep-shot-b: #e9dfd2;
  --ep-green: #2f7d3f;
  --ep-err-bg: #fdeceb;
  --ep-err-line: #f2c2bf;
  --ep-err-ink: #96181e;
  --ep-dark: #1d1b19;
  --ep-dark-ink: #f6efe6;
  --ep-dark-muted: #c6bcb1;
  --ep-dark-muted-2: #a9a099;
  --ep-dark-line: #3a3733;
  --ep-foot-ink: #b9b0a8;
  --ep-foot-line: #332f2b;
  --ep-serif: Literata, Georgia, "Times New Roman", serif;
  --ep-sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ep-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ep-shadow: 0 10px 26px rgba(29, 27, 25, 0.07);
  --ep-wrap: 1280px;
  --ep-wrap-narrow: 1080px;
  --ep-gutter: 24px;
  --ep-sticky-top: 128px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ep-bg);
  font-family: var(--ep-sans);
  font-size: 16px;
  color: var(--ep-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ep-red); text-decoration: none; }
a:hover, a:focus { color: var(--ep-red-deep); }

img { max-width: 100%; height: auto; }
input, select, button, textarea { font: inherit; color: inherit; }
::selection { background: #f7d9d6; }

h1, h2, h3, h4 { font-family: var(--ep-serif); font-weight: 700; letter-spacing: -0.01em; }

.ep-site { min-height: 100vh; background: var(--ep-bg); display: flex; flex-direction: column; }
.ep-main { flex: 1; }
.ep-wrap { max-width: var(--ep-wrap); margin: 0 auto; padding-left: var(--ep-gutter); padding-right: var(--ep-gutter); }
.ep-wrap--narrow { max-width: var(--ep-wrap-narrow); }

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; white-space: nowrap;
}
.ep-skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 100; background: var(--ep-ink);
  color: #fff; padding: 10px 16px; border-radius: 10px; clip-path: none;
  height: auto; width: auto; margin: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ep-red);
  outline-offset: 2px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 28px; font-weight: 700; font-size: 16px;
  cursor: pointer; text-align: center; line-height: 1.2; transition: background .15s, border-color .15s, color .15s;
}
.ep-btn--primary { background: var(--ep-red); color: #fff; }
.ep-btn--primary:hover, .ep-btn--primary:focus { background: var(--ep-red-dark); color: #fff; }
.ep-btn--ghost { background: transparent; color: var(--ep-ink); border: 1px solid var(--ep-line-strong); }
.ep-btn--ghost:hover, .ep-btn--ghost:focus { border-color: var(--ep-ink); color: var(--ep-ink); }
.ep-btn--dark { background: var(--ep-ink); color: #fff; }
.ep-btn--dark:hover, .ep-btn--dark:focus { background: var(--ep-red); color: #fff; }
.ep-btn--light { background: var(--ep-dark-ink); color: var(--ep-ink); }
.ep-btn--light:hover, .ep-btn--light:focus { background: #fff; color: var(--ep-ink); }
.ep-btn--sm { padding: 9px 16px; font-size: 14px; }
.ep-btn--block { display: flex; width: 100%; padding: 14px 20px; }
.ep-btn[disabled], .ep-btn.ep-is-loading { opacity: .6; pointer-events: none; }

/* ==========================================================================
   4. Top bar + header
   ========================================================================== */
.ep-topbar { background: var(--ep-ink); color: #f3ece4; font-size: 13px; letter-spacing: 0.01em; }
.ep-topbar__inner {
  padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.ep-topbar__note { opacity: .75; }
.ep-topbar__side { display: flex; gap: 20px; align-items: center; }
.ep-topbar__hours { opacity: .75; }
.ep-topbar__phone { color: #f3ece4; font-weight: 700; }
.ep-topbar__phone:hover { color: #fff; }

.ep-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ep-line-2);
}
.admin-bar .ep-header { top: 32px; }
.ep-header__bar { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.ep-logo { flex: none; display: inline-flex; align-items: center; }
.ep-logo img { height: 34px; width: auto; display: block; mix-blend-mode: multiply; }
.ep-logo__text { font-family: var(--ep-serif); font-size: 24px; font-weight: 700; color: var(--ep-ink); letter-spacing: -0.02em; }

.ep-search { flex: 1 1 220px; min-width: 0; }
.ep-search__field {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--ep-line); border-radius: 999px; padding: 9px 16px;
}
.ep-search__icon { width: 16px; height: 16px; flex: none; color: var(--ep-muted-2); }
.ep-search__input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; min-width: 0; }
.ep-search__input::placeholder { color: var(--ep-muted-2); }
.ep-search__submit { border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--ep-muted-2); }

.ep-cart-link {
  flex: none; display: inline-flex; align-items: center; gap: 10px; background: var(--ep-red);
  color: #fff; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .15s;
}
.ep-cart-link:hover, .ep-cart-link:focus { background: var(--ep-red-dark); color: #fff; }
.ep-cart-link__count { background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 1px 9px; font-size: 13px; }

.ep-nav { padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; font-weight: 600; }
.ep-nav a {
  padding-bottom: 4px; border-bottom: 2px solid transparent; color: var(--ep-ink-2);
  transition: color .15s, border-color .15s;
}
.ep-nav a:hover, .ep-nav a:focus, .ep-nav .ep-is-current > a, .ep-nav .current-menu-item > a {
  color: var(--ep-red); border-bottom-color: var(--ep-red);
}
.ep-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.ep-nav li { list-style: none; }

/* ==========================================================================
   5. Placeholder artwork (used when a product/category has no image)
   ========================================================================== */
.ep-shot {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--ep-shot-a) 0 10px, var(--ep-shot-b) 10px 20px);
}
.ep-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-shot__label {
  position: absolute; inset: auto 10px 10px 10px; font-family: var(--ep-mono);
  font-size: 11px; color: var(--ep-muted); pointer-events: none;
}
.ep-shot--1x1 { aspect-ratio: 1 / 1; }
.ep-shot--5x4 { aspect-ratio: 5 / 4; }
.ep-shot--4x3 { aspect-ratio: 4 / 3; }

/* ==========================================================================
   6. Home
   ========================================================================== */
.ep-hero { padding-top: 36px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.ep-hero__body { flex: 999 1 340px; min-width: 0; }
.ep-eyebrow {
  display: inline-block; background: var(--ep-sand); color: var(--ep-sand-ink); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.ep-hero__title {
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; margin: 18px 0 0;
  letter-spacing: -0.02em; text-wrap: balance;
}
.ep-hero__text { font-size: 18px; line-height: 1.6; color: var(--ep-ink-3); max-width: 52ch; margin: 18px 0 0; text-wrap: pretty; }
.ep-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ep-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--ep-line); }
.ep-stats__value { font-family: var(--ep-serif); font-size: 30px; font-weight: 700; }
.ep-stats__label { color: var(--ep-muted); font-size: 14px; margin-top: 2px; }
.ep-hero__media {
  flex: 1 1 300px; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--ep-line);
  background: repeating-linear-gradient(38deg, #efe6db 0 14px, #e7dccf 14px 28px);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 18px; position: relative;
}
.ep-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-hero__media-note {
  position: relative; font-family: var(--ep-mono); font-size: 12px; background: rgba(29, 27, 25, 0.82);
  color: var(--ep-dark-ink); padding: 7px 11px; border-radius: 8px;
}

.ep-section { padding-top: 44px; }
.ep-section__title { font-size: 28px; margin: 0 0 18px; }
.ep-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ep-section__head .ep-section__title { margin: 0; }
.ep-section__more { color: var(--ep-red); font-weight: 700; font-size: 15px; }

.ep-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ep-cat-card {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; color: inherit; transition: border-color .15s;
}
.ep-cat-card:hover { border-color: var(--ep-red); color: inherit; }
.ep-cat-card__body { padding: 14px 16px 16px; }
.ep-cat-card__name { font-weight: 700; font-size: 17px; }
.ep-cat-card__note { color: var(--ep-muted); font-size: 14px; margin-top: 4px; }

/* ==========================================================================
   7. Product cards
   ========================================================================== */
.ep-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ep-products--tight { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.ep-card {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
}
.ep-card:hover { border-color: var(--ep-line-strong); box-shadow: var(--ep-shadow); }
.ep-card__media { display: block; position: relative; }
.ep-card__badge {
  position: absolute; left: 10px; top: 10px; background: var(--ep-ink); color: #fff; font-size: 11px;
  font-weight: 700; padding: 4px 9px; border-radius: 999px; z-index: 2;
}
.ep-card__badge--sale { background: var(--ep-red); }
.ep-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ep-card__brand { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ep-muted-2); font-weight: 700; }
.ep-card__name { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ep-ink); }
.ep-card__name:hover { color: var(--ep-red); }
.ep-card__spec { color: var(--ep-muted); font-size: 13px; }
.ep-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-card__price { font-family: var(--ep-serif); font-size: 20px; font-weight: 700; }
.ep-card__price del { font-size: 14px; font-weight: 400; color: var(--ep-muted-2); margin-right: 6px; }
.ep-card__price ins { text-decoration: none; }
.ep-price__suffix { font-family: var(--ep-sans); font-size: 13px; font-weight: 600; color: var(--ep-muted); }

/* ==========================================================================
   8. Dark service panel
   ========================================================================== */
.ep-service-panel {
  background: var(--ep-dark); color: var(--ep-dark-ink); border-radius: 20px; padding: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
}
.ep-service-panel h2 { font-size: 30px; margin: 0 0 10px; }
.ep-service-panel p { color: var(--ep-dark-muted); line-height: 1.6; margin: 0; }
.ep-service-panel .ep-btn { margin-top: 20px; }
.ep-service-panel__list { display: grid; gap: 14px; align-content: start; }
.ep-service-panel__item { border-top: 1px solid var(--ep-dark-line); padding-top: 12px; }
.ep-service-panel__item b { font-weight: 700; display: block; }
.ep-service-panel__item span { color: var(--ep-dark-muted-2); font-size: 14px; }

/* ==========================================================================
   9. Catalog
   ========================================================================== */
.ep-page { padding-top: 26px; padding-bottom: 56px; }
.ep-breadcrumb { font-size: 14px; color: var(--ep-muted); margin-bottom: 12px; }
.ep-breadcrumb a { color: var(--ep-muted); }
.ep-breadcrumb a:hover { color: var(--ep-red); }
.ep-page__title { font-size: 36px; margin: 0 0 22px; }

.ep-catalog { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ep-filters {
  flex: 1 1 240px; background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px;
  padding: 20px; position: sticky; top: var(--ep-sticky-top); display: flex; flex-direction: column; gap: 22px;
}
.ep-filters__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.ep-filters__group { margin: 0; padding: 0; border: 0; }
.ep-filters__list { display: flex; flex-direction: column; gap: 8px; }
.ep-filters__list--check { gap: 9px; }
.ep-pill {
  font-size: 15px; padding: 8px 12px; border-radius: 10px; background: transparent;
  color: var(--ep-ink-2); font-weight: 500; display: block;
}
.ep-pill:hover { color: var(--ep-red); }
.ep-pill.is-active { background: var(--ep-red-soft); color: var(--ep-red-dark); font-weight: 700; }
.ep-pill__count { color: var(--ep-muted-2); font-weight: 500; font-size: 13px; }
.ep-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ep-ink-2); cursor: pointer; }
.ep-check input { width: 16px; height: 16px; accent-color: var(--ep-red); cursor: pointer; flex: none; }
.ep-range { width: 100%; accent-color: var(--ep-red); }
.ep-filters__price-label { font-weight: 700; font-size: 15px; margin-bottom: 6px; }

.ep-results { flex: 999 1 340px; min-width: 0; }
.ep-results__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ep-results__count { color: var(--ep-muted); font-size: 15px; }
.ep-select {
  border: 1px solid var(--ep-line); background: #fff; border-radius: 999px; padding: 9px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ep-empty {
  background: var(--ep-panel); border: 1px dashed var(--ep-line-strong); border-radius: 16px;
  padding: 44px; text-align: center; color: var(--ep-muted);
}

.ep-pagination { margin-top: 26px; display: flex; justify-content: center; }
.ep-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--ep-line); background: #fff;
  color: var(--ep-ink-2); font-weight: 700; margin: 0 3px;
}
.ep-pagination .page-numbers.current, .ep-pagination .page-numbers:hover { background: var(--ep-red); border-color: var(--ep-red); color: #fff; }
.ep-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ==========================================================================
   10. Single product
   ========================================================================== */
.ep-product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ep-product__media { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ep-product__summary { flex: 1 1 320px; min-width: 0; }
.ep-product__brand { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ep-muted-2); font-weight: 700; }
.ep-product__title { font-size: 34px; margin: 8px 0 10px; line-height: 1.15; }
.ep-product__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--ep-muted); font-size: 14px; }
.ep-stock--in { color: var(--ep-green); font-weight: 700; }
.ep-stock--out { color: var(--ep-red-dark); font-weight: 700; }
.ep-product__price { font-family: var(--ep-serif); font-size: 38px; font-weight: 700; margin: 18px 0 4px; }
.ep-product__price del { font-size: 22px; font-weight: 400; color: var(--ep-muted-2); margin-right: 10px; }
.ep-product__price ins { text-decoration: none; }
.ep-product__packnote { color: var(--ep-muted); font-size: 14px; }

.ep-buybox {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; padding: 18px;
  margin-top: 22px; display: flex; flex-direction: column; gap: 14px;
}
.ep-buybox__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ep-buybox__unit { font-weight: 700; }
.ep-buybox__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ep-line-3); padding-top: 14px; }
.ep-buybox__sum-note { color: var(--ep-muted); }
.ep-buybox__sum-total { font-family: var(--ep-serif); font-size: 24px; font-weight: 700; white-space: nowrap; }

.ep-qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ep-line); border-radius: 999px; padding: 4px; }
.ep-qty__btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ep-soft);
  font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.ep-qty__btn:hover { background: var(--ep-soft-2); }
.ep-qty__btn[disabled] { opacity: .4; cursor: default; }
.ep-qty input.qty, .ep-qty__input {
  min-width: 38px; width: 46px; text-align: center; font-weight: 700; border: 0; background: transparent;
  padding: 0; -moz-appearance: textfield;
}
.ep-qty input::-webkit-outer-spin-button, .ep-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ep-qty--sm { padding: 3px; }
.ep-qty--sm .ep-qty__btn { width: 30px; height: 30px; font-size: 16px; }
.ep-qty--sm input.qty, .ep-qty--sm .ep-qty__input { min-width: 32px; width: 40px; }

.ep-specs { margin-top: 26px; }
.ep-specs__title { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.ep-specs__list { display: flex; flex-direction: column; }
.ep-specs__row {
  display: flex; gap: 14px; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--ep-line-4); font-size: 15px;
}
.ep-specs__k { color: var(--ep-muted); }
.ep-specs__v { font-weight: 600; text-align: right; }

.ep-product__description { margin-top: 34px; max-width: 72ch; color: var(--ep-ink-3); line-height: 1.7; }
.ep-product__description h2, .ep-product__description h3 { color: var(--ep-ink); }

/* WooCommerce gallery skin */
.ep-product__media .woocommerce-product-gallery { margin: 0; }
.ep-product__media .woocommerce-product-gallery__wrapper { margin: 0; }
.ep-product__media .woocommerce-product-gallery__image:first-child img {
  border-radius: 18px; border: 1px solid var(--ep-line); display: block; width: 100%;
}
.ep-product__media .flex-control-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 12px 0 0; padding: 0;
}
.ep-product__media .flex-control-thumbs li { margin: 0; }
.ep-product__media .flex-control-thumbs img {
  border-radius: 12px; border: 1px solid var(--ep-line); cursor: pointer; aspect-ratio: 1 / 1;
  object-fit: cover; width: 100%; display: block; opacity: .75; transition: opacity .15s, border-color .15s;
}
.ep-product__media .flex-control-thumbs img.flex-active,
.ep-product__media .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ep-ink); }
.ep-product__media .woocommerce-product-gallery__trigger {
  position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(255,255,255,.9);
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ep-line); font-size: 0;
}
.ep-product__media .woocommerce-product-gallery__trigger::after {
  content: "⤢"; font-size: 16px; color: var(--ep-ink);
}
.ep-product__media .woocommerce-product-gallery { position: relative; }

/* Variations */
.ep-buybox .variations { width: 100%; border-collapse: collapse; }
.ep-buybox .variations th, .ep-buybox .variations td { text-align: left; padding: 4px 0; vertical-align: middle; }
.ep-buybox .variations label { font-weight: 700; }
.ep-buybox .variations select { width: 100%; border: 1px solid var(--ep-line-field); border-radius: 10px; padding: 10px 12px; background: var(--ep-field); }
.ep-buybox .reset_variations { font-size: 13px; color: var(--ep-muted); }
.ep-buybox .woocommerce-variation-price { font-family: var(--ep-serif); font-size: 22px; font-weight: 700; }

/* ==========================================================================
   11. Cart
   ========================================================================== */
.ep-cart { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.ep-cart__items { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ep-cart-row {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; padding: 14px;
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  transition: opacity .15s;
}
.ep-cart-row.is-busy { opacity: .5; pointer-events: none; }
.ep-cart-row__media { border-radius: 10px; overflow: hidden; }
.ep-cart-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-cart-row__brand { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ep-muted-2); font-weight: 700; }
.ep-cart-row__name { font-weight: 700; font-size: 16px; color: var(--ep-ink); }
.ep-cart-row__name:hover { color: var(--ep-red); }
.ep-cart-row__note { color: var(--ep-muted); font-size: 13px; }
.ep-cart-row__remove {
  color: var(--ep-muted-2); font-size: 13px; font-weight: 600; width: fit-content;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.ep-cart-row__remove:hover { color: var(--ep-red); }
.ep-cart-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ep-cart-row__total { font-family: var(--ep-serif); font-size: 19px; font-weight: 700; white-space: nowrap; }

.ep-summary {
  flex: 1 1 280px; background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px;
  padding: 20px; position: sticky; top: var(--ep-sticky-top); display: flex; flex-direction: column; gap: 12px;
}
.ep-summary__title { font-weight: 700; font-size: 18px; }
.ep-summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--ep-ink-3); }
.ep-summary__row--line { border-top: 1px solid var(--ep-line-3); padding-top: 12px; }
.ep-summary__row--total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ep-summary__row--total b { font-weight: 700; }
.ep-summary__grand { font-family: var(--ep-serif); font-size: 26px; font-weight: 700; white-space: nowrap; }
.ep-summary__note { color: var(--ep-muted); font-size: 13px; text-align: center; }
.ep-summary__back { text-align: center; color: var(--ep-muted); font-size: 14px; font-weight: 600; }
.ep-summary__back:hover { color: var(--ep-red); }
.ep-summary__body { display: flex; flex-direction: column; gap: 12px; }
.ep-product__placeholder { border-radius: 18px; border: 1px solid var(--ep-line); }
.ep-summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ep-ink-3); }
.ep-summary__line span:last-child { white-space: nowrap; font-weight: 600; }

.ep-cart-empty {
  background: var(--ep-panel); border: 1px dashed var(--ep-line-strong); border-radius: 18px;
  padding: 56px 24px; text-align: center;
}
.ep-cart-empty__title { font-family: var(--ep-serif); font-size: 22px; font-weight: 700; }
.ep-cart-empty p { color: var(--ep-muted); margin: 8px 0 20px; }

/* ==========================================================================
   12. Checkout
   ========================================================================== */
.ep-checkout { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.ep-checkout__main { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ep-block { background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; padding: 22px; }
.ep-block__title { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.ep-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ep-fields .form-row { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ep-muted); margin: 0; padding: 0; }
.ep-fields .form-row-wide, .ep-fields .ep-field--wide { grid-column: 1 / -1; }
.ep-fields label { font-size: 14px; color: var(--ep-muted); }
.ep-fields .required { color: var(--ep-red); text-decoration: none; border: 0; }
.ep-fields input[type="text"], .ep-fields input[type="tel"], .ep-fields input[type="email"],
.ep-fields input[type="number"], .ep-fields textarea, .ep-fields select, .ep-input {
  border: 1px solid var(--ep-line-field); border-radius: 10px; padding: 12px 14px; font-size: 15px;
  outline: none; background: var(--ep-field); width: 100%; color: var(--ep-ink);
}
.ep-fields input:focus, .ep-fields textarea:focus, .ep-fields select:focus, .ep-input:focus { border-color: var(--ep-ink); }
.ep-fields .select2-container .select2-selection--single {
  border: 1px solid var(--ep-line-field); border-radius: 10px; height: 46px; background: var(--ep-field);
}
.ep-fields .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.ep-fields .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.ep-fields .woocommerce-input-wrapper { width: 100%; }

.ep-option {
  position: relative; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; border: 1px solid var(--ep-line); background: var(--ep-field); border-radius: 12px;
  padding: 14px 16px; transition: border-color .15s, background .15s;
}
.ep-option:hover { border-color: var(--ep-line-strong); }
.ep-option.is-active, .ep-option:has(input:checked) { border-color: var(--ep-red); background: var(--ep-red-wash); }
.ep-option:focus-within { outline: 2px solid var(--ep-red); outline-offset: 2px; }
.ep-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-option__label { font-weight: 700; }
.ep-option__note { color: var(--ep-muted); font-size: 13px; }
.ep-option__price { font-weight: 700; white-space: nowrap; }
.ep-option input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.ep-options { display: flex; flex-direction: column; gap: 10px; }

.ep-errors, .woocommerce-error, .woocommerce-NoticeGroup .woocommerce-error {
  background: var(--ep-err-bg); border: 1px solid var(--ep-err-line); color: var(--ep-err-ink);
  border-radius: 14px; padding: 16px 18px; font-size: 15px; list-style: none; margin: 0 0 16px;
}
.ep-errors__title { font-weight: 700; margin-bottom: 6px; }
.woocommerce-error li { margin: 0; }

.woocommerce-message, .woocommerce-info {
  background: #fff; border: 1px solid var(--ep-line); border-radius: 14px; padding: 16px 18px;
  font-size: 15px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between; list-style: none;
}
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Woo payment box inside our card */
#payment ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#payment .wc_payment_method {
  position: relative; border: 1px solid var(--ep-line); background: var(--ep-field); border-radius: 12px;
  padding: 14px 16px; transition: border-color .15s, background .15s; list-style: none;
}
#payment .wc_payment_method:hover { border-color: var(--ep-line-strong); }
#payment .wc_payment_method:has(input[type="radio"]:checked) { border-color: var(--ep-red); background: var(--ep-red-wash); }
#payment .wc_payment_method:focus-within { outline: 2px solid var(--ep-red); outline-offset: 2px; }
#payment .wc_payment_method > input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
#payment .wc_payment_method > label {
  cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 700; margin: 0;
}
#payment .wc_payment_method > input[type="radio"]:checked + label { color: var(--ep-red-dark); }
#payment .wc_payment_method > label img { max-height: 24px; width: auto; margin-left: auto; }
#payment .payment_box {
  position: relative; background: var(--ep-soft); border-radius: 12px; padding: 14px 16px; margin: 10px 0 0;
  font-size: 14px; color: var(--ep-ink-3); line-height: 1.5;
}
#payment .payment_box input, #payment .payment_box select {
  border: 1px solid var(--ep-line-field); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%;
}
#payment .payment_box p:first-child { margin-top: 0; }
#payment .payment_box p:last-child { margin-bottom: 0; }
.ep-place-order { display: flex; flex-direction: column; gap: 10px; }
.ep-place-order .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--ep-muted); }

.ep-login-prompt, .ep-coupon-prompt { font-size: 14px; color: var(--ep-muted); margin-bottom: 14px; }
.ep-coupon { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-coupon input { flex: 1 1 160px; }

/* ==========================================================================
   13. Thank you
   ========================================================================== */
.ep-thanks { max-width: 680px; margin: 0 auto; padding: 70px 24px 90px; text-align: center; }
.ep-thanks__mark { width: 68px; height: 68px; border-radius: 50%; background: var(--ep-green); margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.ep-thanks__mark svg { width: 32px; height: 32px; color: #fff; }
.ep-thanks__title { font-size: 38px; margin: 0 0 12px; }
.ep-thanks__text { color: var(--ep-ink-3); font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.ep-thanks__box {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; padding: 20px;
  text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.ep-thanks__row { display: flex; justify-content: space-between; gap: 12px; }
.ep-thanks__row span:first-child { color: var(--ep-muted); }
.ep-thanks__row span:last-child { font-weight: 700; text-align: right; }
.ep-thanks .ep-btn { margin-top: 26px; }
.ep-thanks__details { margin-top: 34px; text-align: left; }

/* ==========================================================================
   14. Services + generic pages
   ========================================================================== */
.ep-lede { color: var(--ep-ink-3); font-size: 17px; max-width: 60ch; margin: 0 0 26px; text-wrap: pretty; }
.ep-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ep-service {
  background: var(--ep-panel); border: 1px solid var(--ep-line); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.ep-service__name { font-weight: 700; font-size: 17px; }
.ep-service__note { color: var(--ep-muted); font-size: 14px; line-height: 1.5; }
.ep-service__price { font-family: var(--ep-serif); font-size: 22px; font-weight: 700; margin-top: 8px; }

.ep-entry { max-width: 72ch; }
.ep-entry p, .ep-entry ul, .ep-entry ol { line-height: 1.7; color: var(--ep-ink-3); }
.ep-entry h2 { font-size: 26px; margin-top: 32px; }
.ep-entry h3 { font-size: 20px; margin-top: 24px; }
.ep-entry img { border-radius: 14px; }

/* My account */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce-MyAccount-navigation a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ep-line);
  background: #fff; color: var(--ep-ink-2); font-weight: 600; font-size: 14px;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--ep-red); border-color: var(--ep-red); color: #fff; }
.woocommerce table.shop_table {
  width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ep-line); border-radius: 16px; overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  padding: 12px 16px; border-bottom: 1px solid var(--ep-line-3); text-align: left; font-size: 15px;
}
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form.login, .woocommerce form.register {
  background: #fff; border: 1px solid var(--ep-line); border-radius: 16px; padding: 22px; max-width: 460px;
}
.woocommerce form.login input[type="text"], .woocommerce form.login input[type="password"],
.woocommerce form.register input[type="text"], .woocommerce form.register input[type="email"],
.woocommerce form.register input[type="password"] {
  border: 1px solid var(--ep-line-field); border-radius: 10px; padding: 12px 14px; width: 100%; background: var(--ep-field);
}
.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button {
  display: inline-flex; align-items: center; justify-content: center; background: var(--ep-ink); color: #fff;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--ep-red); color: #fff; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--ep-red); }
.woocommerce .button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ep-red-dark); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.ep-footer { background: var(--ep-dark); color: var(--ep-foot-ink); margin-top: auto; }
.ep-footer a { color: var(--ep-foot-ink); }
.ep-footer a:hover { color: var(--ep-dark-ink); }
.ep-footer__inner { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.ep-footer__logo img { height: 30px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; display: block; }
.ep-footer__logo .ep-logo__text { color: var(--ep-dark-ink); }
.ep-footer__about { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
.ep-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ep-footer__col ul { list-style: none; margin: 0; padding: 0; display: contents; }
.ep-footer__col li { list-style: none; }
.ep-coupon-details summary::-webkit-details-marker { display: none; }
.ep-coupon-details summary { list-style: none; text-decoration: underline; }
.ep-ordering { display: flex; gap: 8px; align-items: center; }
.ep-filters__price { display: block; }
.ep-filters__price .ep-range { margin-top: 4px; }
.ep-footer__heading { color: var(--ep-dark-ink); font-weight: 700; }
.ep-footer__bottom { border-top: 1px solid var(--ep-foot-line); }
.ep-footer__bottom .ep-wrap { padding-top: 16px; padding-bottom: 16px; font-size: 13px; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 860px) {
  :root { --ep-gutter: 16px; --ep-sticky-top: 16px; }
  .ep-filters, .ep-summary { position: static; }
  .ep-product { gap: 26px; }
  .ep-product__title { font-size: 28px; }
  .ep-page__title { font-size: 28px; }
  .ep-service-panel { padding: 26px; }
  .ep-thanks { padding: 48px 16px 64px; }
  .ep-thanks__title { font-size: 28px; }
}

@media (max-width: 640px) {
  .ep-header__bar { gap: 10px 12px; }
  .ep-search { order: 3; flex-basis: 100%; }
  .ep-nav { gap: 14px; font-size: 14px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; scrollbar-width: none; }
  .ep-nav::-webkit-scrollbar { display: none; }
  .ep-nav a { white-space: nowrap; }
  .ep-cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ep-cart-row__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .ep-stats { gap: 20px; }
  .ep-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .ep-topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 782px) {
  .admin-bar .ep-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
