/*
Theme Name: ERGOVEXA Showcase
Theme URI: https://ergovexa.example/
Description: A modern UK home furnishings catalogue for ERGOVEXA.
Author: ERGOVEXA
Template: yith-wonder
Version: 1.0.2-showcase-only
Text Domain: ergovexa-showcase
*/

:root {
  --ev-ink: #202a2e;
  --ev-charcoal: #29383d;
  --ev-muted: #5f7076;
  --ev-moss: #365b63;
  --ev-moss-dark: #27474e;
  --ev-oak: #b8674b;
  --ev-oak-dark: #9a4f38;
  --ev-paper: #f1f4f5;
  --ev-stone: #dee7e9;
  --ev-white: #fff;
  --ev-line: #cad6d9;
  --ev-width: 1320px;
  --ev-shadow: 0 14px 32px rgba(32, 42, 46, .12);
}

html { scroll-behavior: smooth; }
body.ergovexa-site { margin: 0; overflow-x: hidden; color: var(--ev-ink); background: var(--ev-paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.ergovexa-site *, .ergovexa-site *::before, .ergovexa-site *::after { box-sizing: border-box; }
.ergovexa-site img { display: block; max-width: 100%; }
.ergovexa-site a { color: inherit; text-decoration: none; }
.ergovexa-site button, .ergovexa-site input, .ergovexa-site select { font: inherit; letter-spacing: 0; }
.ergovexa-site [hidden] { display: none !important; }
.ev-shell { width: min(var(--ev-width), calc(100% - 48px)); margin-inline: auto; }
.ev-skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 15px; color: var(--ev-white); background: var(--ev-ink); transform: translateY(-160%); }
.ev-skip-link:focus { transform: translateY(0); }
.ev-eyebrow { margin: 0 0 10px; color: var(--ev-moss); font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.ergovexa-site .ev-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid var(--ev-moss); border-radius: 3px; color: var(--ev-white); background: var(--ev-moss); font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.ergovexa-site .ev-button:hover { color: var(--ev-white); background: var(--ev-moss-dark); border-color: var(--ev-moss-dark); }
.ergovexa-site .ev-button:disabled { color: var(--ev-muted); background: var(--ev-stone); border-color: var(--ev-stone); cursor: not-allowed; }

.ev-service-bar { display: flex; min-height: 30px; align-items: center; justify-content: center; gap: 50px; padding: 5px 24px; color: #dbe4e6; background: var(--ev-ink); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.ev-header { position: sticky; z-index: 100; top: 0; color: var(--ev-ink); background: rgba(241, 244, 245, .97); border-bottom: 1px solid var(--ev-line); }
body.ergovexa-site.admin-bar .ev-header { top: 32px; }
.ev-header-main { position: relative; display: grid; grid-template-columns: 210px 1fr auto; gap: 24px; min-height: 82px; align-items: center; }
.ev-brand { display: inline-flex; min-width: 0; flex-direction: column; line-height: 1; }
.ev-brand strong { color: var(--ev-ink); font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.ev-brand small { margin-top: 7px; color: var(--ev-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ev-primary-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; }
.ev-primary-nav a { padding: 10px 8px; color: #3f4d51; font-size: 10px; font-weight: 800; white-space: nowrap; }
.ev-primary-nav a:hover { color: var(--ev-moss); }
.ev-header-cta { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid var(--ev-ink); border-radius: 3px; font-size: 10px; font-weight: 800; }
.ev-header-cta:hover { color: var(--ev-white); background: var(--ev-ink); }
.ev-menu-toggle { display: none; width: 43px; height: 43px; padding: 10px; border: 1px solid var(--ev-line); border-radius: 3px; background: var(--ev-white); cursor: pointer; }
.ev-menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ev-ink); }

.ev-hero { position: relative; min-height: 660px; overflow: hidden; color: var(--ev-white); background: var(--ev-charcoal); }
.ev-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ev-hero-overlay { position: absolute; inset: 0; background: rgba(21, 33, 37, .66); }
.ev-hero-inner { position: relative; display: flex; min-height: 660px; align-items: center; padding-block: 54px; }
.ev-hero-copy { width: min(690px, 100%); padding-left: 34px; border-left: 3px solid var(--ev-oak); }
.ev-hero .ev-eyebrow { color: #f1f4f5; }
.ev-hero h1 { margin: 0; color: var(--ev-white); font-size: 72px; font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.ev-hero-title { margin: 16px 0 0; color: var(--ev-white); font-family: Georgia, 'Times New Roman', serif; font-size: 29px; line-height: 1.3; }
.ev-hero-lede { max-width: 610px; margin: 19px 0 0; color: #e1e8ea; font-size: 15px; line-height: 1.75; }
.ev-hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 29px; }
.ev-text-link { color: var(--ev-white); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.ev-text-link:hover { color: #d8e4e7; }
.ev-hero-facts { display: flex; margin: 37px 0 0; }
.ev-hero-facts div { min-width: 130px; padding-inline: 22px; border-left: 1px solid rgba(255, 255, 255, .3); }
.ev-hero-facts div:first-child { padding-left: 0; border-left: 0; }
.ev-hero-facts dt { color: #c9d5d8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.ev-hero-facts dd { margin: 3px 0 0; color: var(--ev-white); font-size: 25px; font-weight: 800; }

.ev-section { padding: 82px 0; }
.ev-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 470px); gap: 50px; align-items: end; margin-bottom: 34px; }
.ev-section-heading h2, .ev-about-copy h2, .ev-detail-copy h1 { margin: 0; color: var(--ev-ink); font-family: Georgia, 'Times New Roman', serif; font-size: 42px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.ev-section-heading > p { margin: 0; color: var(--ev-muted); font-size: 14px; }

.ev-departments { background: var(--ev-stone); }
.ev-department-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr 1.15fr; gap: 12px; }
.ev-department { position: relative; min-width: 0; min-height: 410px; overflow: hidden; background: var(--ev-charcoal); }
.ev-department img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.ev-department:hover img { transform: scale(1.025); }
.ev-department::after { content: ''; position: absolute; inset: 0; background: rgba(22, 37, 41, .48); }
.ev-department-copy { position: absolute; z-index: 2; right: 20px; bottom: 23px; left: 20px; color: var(--ev-white); }
.ev-department-copy small { color: #f1f4f5; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ev-department-copy h3 { margin: 6px 0 4px; color: var(--ev-white); font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 500; line-height: 1.25; }
.ev-department-copy span { color: #e1e8ea; font-size: 11px; }

.ev-featured, .ev-related { background: var(--ev-paper); }
.ev-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ev-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ev-line); border-radius: 4px; background: var(--ev-white); transition: transform 180ms ease, box-shadow 180ms ease; }
.ev-product-card:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow); }
.ev-product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ev-paper); }
.ev-product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms ease; }
.ev-product-card:hover .ev-product-media img { transform: scale(1.025); }
.ev-image-count { position: absolute; top: 11px; right: 11px; padding: 5px 8px; color: var(--ev-white); background: rgba(32, 42, 46, .88); font-size: 9px; font-weight: 800; }
.ev-product-body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 18px; }
.ev-product-category { margin: 0 0 8px; color: var(--ev-oak-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ev-product-card h3 { min-height: 48px; margin: 0; color: var(--ev-ink); font-size: 17px; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere; }
.ev-product-card h3 a:hover { color: var(--ev-moss-dark); }
.ev-product-description { display: -webkit-box; min-height: 61px; margin: 10px 0 15px; overflow: hidden; color: var(--ev-muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ev-product-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ev-line); }
.ev-product-price { margin: 0 0 13px; color: var(--ev-ink); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-product-actions { min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ev-detail-link { font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.ev-detail-link:hover { color: var(--ev-moss-dark); }
.ev-buy-button { min-height: 38px; padding-inline: 13px; }

.ev-catalogue { background: var(--ev-paper); }
.ev-shop-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 250px 210px; gap: 12px; margin-bottom: 20px; padding: 17px; color: var(--ev-white); background: var(--ev-charcoal); }
.ev-field { display: grid; gap: 6px; }
.ev-field label { color: #d6e0e2; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ev-field input, .ev-field select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #8aa0a5; border-radius: 3px; color: var(--ev-ink); background: var(--ev-white); }
.ev-field input:focus, .ev-field select:focus { outline: 3px solid rgba(184, 103, 75, .32); border-color: var(--ev-oak); }
.ev-results-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--ev-line); }
.ev-results-bar p { margin: 0; color: var(--ev-muted); font-size: 12px; }
.ev-empty { padding: 48px 20px; text-align: center; border-block: 1px solid var(--ev-line); }
.ev-pagination { display: flex; min-height: 42px; justify-content: center; gap: 6px; margin-top: 32px; }
.ev-pagination button { appearance: none; min-width: 40px; height: 40px; min-height: 40px; display: inline-grid; place-items: center; position: static; transform: none; padding: 0 12px; border: 1px solid var(--ev-line); border-radius: 3px; color: var(--ev-ink) !important; background: var(--ev-white); font: 700 14px/1 Arial, sans-serif; text-indent: 0; cursor: pointer; }
.ev-pagination button:hover, .ev-pagination button.is-active { color: var(--ev-white) !important; background: var(--ev-ink); border-color: var(--ev-ink); }
.ev-pagination button:disabled { opacity: .45; cursor: default; }

.ev-values { color: var(--ev-white); background: var(--ev-charcoal); }
.ev-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ev-value-grid > div { min-height: 230px; padding: 44px 36px; border-left: 1px solid rgba(255, 255, 255, .15); }
.ev-value-grid > div:first-child { border-left: 0; }
.ev-value-grid span { color: #f1f4f5; font-size: 10px; font-weight: 800; }
.ev-value-grid h3 { margin: 12px 0 9px; color: var(--ev-white); font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 500; }
.ev-value-grid p { margin: 0; color: #c9d5d8; font-size: 13px; }

.ev-about { background: var(--ev-stone); }
.ev-about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.ev-about-media { min-height: 560px; overflow: hidden; background: var(--ev-paper); }
.ev-about-media img { width: 100%; height: 100%; object-fit: contain; }
.ev-about-copy > p:not(.ev-eyebrow) { color: var(--ev-muted); font-size: 15px; line-height: 1.8; }

.ev-detail-page { background: var(--ev-paper); }
.ev-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 23px; color: var(--ev-muted); font-size: 11px; }
.ev-breadcrumbs a:hover { color: var(--ev-moss-dark); }
.ev-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 58px; padding-bottom: 78px; }
.ev-gallery-stage { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ev-white); }
.ev-gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.ev-gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.ev-gallery-thumb { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 3px; background: var(--ev-white); cursor: pointer; }
.ev-gallery-thumb.is-active { border-color: var(--ev-oak); }
.ev-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ev-detail-copy { position: sticky; top: 112px; align-self: start; padding-top: 22px; }
.ev-detail-copy h1 { font-size: 39px; }
.ev-detail-price { margin: 18px 0; color: var(--ev-oak); font-size: 29px; font-weight: 800; }
.ev-detail-summary { color: var(--ev-muted); font-size: 14px; line-height: 1.8; }
.ev-detail-meta { margin: 24px 0; border-top: 1px solid var(--ev-line); }
.ev-detail-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--ev-line); font-size: 12px; }
.ev-detail-meta dt { color: var(--ev-muted); }
.ev-detail-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ev-detail-buy { width: 100%; min-height: 52px; font-size: 14px; }
.ev-detail-note { margin: 11px 0 0; color: var(--ev-muted); font-size: 10px; }
.ev-detail-section { padding: 55px 0; border-top: 1px solid var(--ev-line); background: var(--ev-stone); }
.ev-detail-section h2 { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 500; }
.ev-detail-section p:last-child { max-width: 900px; color: var(--ev-muted); line-height: 1.8; }

.ev-footer { padding: 65px 0 22px; color: #d7e1e3; background: #17252a; }
.ev-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 44px; }
.ev-footer .ev-brand strong { color: var(--ev-white); }
.ev-footer .ev-brand small, .ev-footer-brand p { color: #aebfc3; }
.ev-footer-brand p { max-width: 410px; font-size: 12px; }
.ev-footer h2 { margin: 0 0 14px; color: var(--ev-white); font-size: 11px; text-transform: uppercase; }
.ev-footer-about p { color: #cbd4d6; font-size: 12px; line-height: 1.65; }
.ev-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ev-footer nav a, .ev-footer nav span { color: #bac9cc; font-size: 11px; }
.ev-footer nav a:hover { color: var(--ev-white); }
.ev-footer-bottom { margin-top: 42px; padding-top: 19px; border-top: 1px solid rgba(255, 255, 255, .13); color: #94a9ae; font-size: 10px; }

@media (max-width: 1160px) {
  .ev-header-main { grid-template-columns: 180px 1fr auto; gap: 14px; }
  .ev-primary-nav a { padding-inline: 5px; font-size: 9px; }
  .ev-department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body.ergovexa-site.admin-bar .ev-header { top: 46px; }
  .ev-shell { width: min(var(--ev-width), calc(100% - 34px)); }
  .ev-service-bar span:last-child { display: none; }
  .ev-header-main { grid-template-columns: 1fr auto auto; min-height: 72px; }
  .ev-menu-toggle { display: block; }
  .ev-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; background: var(--ev-paper); border-bottom: 1px solid var(--ev-line); box-shadow: var(--ev-shadow); }
  .ev-primary-nav.is-open { display: flex; }
  .ev-primary-nav a { padding: 12px 2px; border-bottom: 1px solid var(--ev-line); font-size: 11px; }
  .ev-hero, .ev-hero-inner { min-height: 590px; }
  .ev-hero h1 { font-size: 58px; }
  .ev-section { padding: 66px 0; }
  .ev-section-heading { grid-template-columns: 1fr; gap: 15px; }
  .ev-section-heading h2, .ev-about-copy h2 { font-size: 35px; }
  .ev-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-shop-toolbar { grid-template-columns: 1fr 1fr; }
  .ev-shop-toolbar .ev-field:first-child { grid-column: 1 / -1; }
  .ev-value-grid { grid-template-columns: 1fr; }
  .ev-value-grid > div { min-height: 0; border-top: 1px solid rgba(255, 255, 255, .15); border-left: 0; }
  .ev-about-grid, .ev-detail { grid-template-columns: 1fr; gap: 42px; }
  .ev-about-media { min-height: 430px; }
  .ev-detail-copy { position: static; padding-top: 0; }
}

@media (max-width: 620px) {
  .ev-shell { width: min(var(--ev-width), calc(100% - 24px)); }
  .ev-service-bar { justify-content: space-between; gap: 10px; padding-inline: 12px; font-size: 8px; }
  .ev-header-cta { display: none; }
  .ev-header-main { grid-template-columns: 1fr auto; }
  .ev-brand strong { font-size: 24px; }
  .ev-hero, .ev-hero-inner { min-height: 560px; max-height: 650px; }
  .ev-hero-inner { padding-block: 34px; }
  .ev-hero-copy { padding-left: 17px; }
  .ev-hero h1 { font-size: 43px; }
  .ev-hero-title { font-size: 21px; }
  .ev-hero-lede { font-size: 13px; }
  .ev-hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .ev-hero-facts { margin-top: 27px; }
  .ev-hero-facts div { min-width: 0; padding-inline: 12px; }
  .ev-hero-facts dd { font-size: 20px; }
  .ev-section { padding: 52px 0; }
  .ev-section-heading h2, .ev-about-copy h2, .ev-detail-copy h1 { font-size: 30px; }
  .ev-department-grid, .ev-product-grid { grid-template-columns: 1fr; }
  .ev-department { min-height: 340px; }
  .ev-product-card h3 { min-height: 0; }
  .ev-shop-toolbar { grid-template-columns: 1fr; }
  .ev-shop-toolbar .ev-field:first-child { grid-column: auto; }
  .ev-results-bar { align-items: flex-start; flex-direction: column; }
  .ev-about-media { min-height: 340px; }
  .ev-gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ev-detail-meta div { grid-template-columns: 85px 1fr; }
  .ev-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .ev-footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
