/*
Theme Name: Erafav
Theme URI: https://erafav.com
Author: ERAFAV
Description: Bespoke WooCommerce theme for ERAFAV — minimalist women's fashion boutique.
Version: 1.1.2
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: erafav
*/

:root {
  --ef-black: #181818;
  --ef-text: #4d4e4f;
  --ef-accent: #e43131;
  --ef-border: #e9e9e9;
  --ef-bg-soft: #f6f6f6;
  --ef-white: #ffffff;
  --ef-radius: 12px;
  --ef-radius-sm: 8px;
  --ef-font: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ef-font);
  color: var(--ef-text);
  background: var(--ef-white);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { color: var(--ef-black); font-weight: 600; line-height: 1.25; }
a { color: var(--ef-black); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ef-accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.ef-container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ===== Announcement bar ===== */
.ef-topbar {
  background: var(--ef-black); color: #fff; font-size: 13px;
  text-align: center; padding: 9px 16px; position: relative; overflow: hidden;
}
.ef-topbar__track { display: grid; }
.ef-topbar__msg {
  grid-area: 1 / 1; opacity: 0; animation: ef-rotate 12s infinite;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.ef-topbar__msg:nth-child(2) { animation-delay: 4s; }
.ef-topbar__msg:nth-child(3) { animation-delay: 8s; }
@keyframes ef-rotate {
  0% { opacity: 0; } 3%, 28% { opacity: 1; } 33%, 100% { opacity: 0; }
}

/* ===== Header ===== */
.ef-header {
  background: #fff; border-bottom: 1px solid var(--ef-border);
  position: sticky; top: 0; z-index: 900; transition: box-shadow .3s;
}
.ef-header.is-scrolled { box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.ef-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 74px;
}
.ef-logo { font-size: 27px; font-weight: 800; letter-spacing: 3px; color: var(--ef-black); text-transform: uppercase; }
.ef-logo:hover { color: var(--ef-black); }
.ef-logo span { color: var(--ef-accent); }
.ef-nav { display: flex; gap: 30px; align-items: center; }
.ef-nav > ul { display: flex; gap: 30px; list-style: none; }
.ef-nav a { font-weight: 600; font-size: 15px; color: var(--ef-black); position: relative; padding: 26px 0; }
.ef-nav__close { display: none; }
@media (min-width: 861px) {
  .ef-nav > ul > li > a::after {
    content: ''; position: absolute; left: 0; bottom: 20px; height: 2px; width: 100%;
    background: var(--ef-accent); transform: scaleX(0); transform-origin: left center;
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
  }
  .ef-nav > ul > li > a:hover::after { transform: scaleX(1); }
}
.ef-nav a:hover { color: var(--ef-accent); }
.ef-nav > ul > li { position: relative; }
.ef-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; background: #fff; min-width: 210px;
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius-sm);
  box-shadow: 0 14px 34px rgba(0,0,0,.08); list-style: none; padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s;
}
.ef-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ef-nav .sub-menu a { display: block; padding: 8px 18px; font-weight: 500; }
.ef-header__icons { display: flex; align-items: center; gap: 18px; }
.ef-icon-btn {
  background: none; border: none; color: var(--ef-black); position: relative;
  display: inline-flex; align-items: center; padding: 4px;
}
.ef-icon-btn svg { width: 21px; height: 21px; }
.ef-icon-btn:hover { color: var(--ef-accent); }
.ef-cart-count {
  position: absolute; top: -4px; right: -7px; background: var(--ef-accent); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.ef-burger { display: none; }

/* Search overlay */
.ef-search-overlay {
  position: fixed; inset: 0; background: rgba(24,24,24,.55); z-index: 1000;
  display: none; align-items: flex-start; justify-content: center; padding: 120px 24px;
}
.ef-search-overlay.is-open { display: flex; }
.ef-search-box { background: #fff; border-radius: var(--ef-radius); padding: 28px; width: 100%; max-width: 640px; }
.ef-search-box form { display: flex; gap: 10px; }
.ef-search-box input[type="search"] {
  flex: 1; border: 1px solid var(--ef-border); border-radius: var(--ef-radius-sm);
  padding: 13px 16px; font-family: inherit; font-size: 15px;
}
.ef-search-box input[type="search"]:focus { outline: 2px solid var(--ef-black); border-color: transparent; }

/* ===== Buttons ===== */
.ef-btn, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #place_order, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ef-black); color: #fff !important; border: none; border-radius: 999px;
  padding: 13px 30px; font-weight: 700; font-size: 14px; letter-spacing: .3px;
  transition: background .22s; text-transform: none; line-height: 1.2;
}
.ef-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #place_order:hover { background: var(--ef-accent); color: #fff !important; }
.ef-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #place_order {
  transition: background .22s, transform .22s, box-shadow .22s;
}
.ef-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #place_order:hover {
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

/* Scroll reveal + back to top */
.ef-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.ef-reveal.is-in { opacity: 1; transform: none; }
.ef-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--ef-black); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.ef-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ef-top:hover { background: var(--ef-accent); }
.ef-top svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .ef-reveal { opacity: 1; transform: none; transition: none; }
  .ef-hero__slide.is-active::before, .ef-hero__slide.is-active .ef-hero__content > * { animation: none; }
  .ef-topbar__msg { animation-duration: 0.01s; }
  html { scroll-behavior: auto; }
}
.ef-btn--light { background: #fff; color: var(--ef-black) !important; }
.ef-btn--light:hover { background: var(--ef-accent); color: #fff !important; }
.ef-btn--ghost { background: transparent; border: 1.5px solid var(--ef-black); color: var(--ef-black) !important; }
.ef-btn--ghost:hover { background: var(--ef-black); color: #fff !important; }
.woocommerce div.product form.cart .button, button.single_add_to_cart_button, .wp-element-button,
.wc-block-components-button, a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--ef-black) !important; color: #fff !important; border: none !important;
  border-radius: 999px !important; padding: 13px 30px; font-weight: 700;
}
.woocommerce div.product form.cart .button:hover, button.single_add_to_cart_button:hover, .wp-element-button:hover,
.wc-block-components-button:hover, a.checkout-button:hover { background: var(--ef-accent) !important; color: #fff !important; }

/* ===== Hero ===== */
.ef-hero { position: relative; overflow: hidden; }
.ef-hero__slide {
  display: none; position: relative; min-height: 560px; overflow: hidden;
  background-size: cover; background-position: center 30%; background-color: #ece7e1;
}
.ef-hero__slide::before {
  content: ''; position: absolute; inset: 0; background: inherit;
  background-size: cover; background-position: center 30%; will-change: transform;
}
.ef-hero__slide.is-active { display: block; animation: ef-fade 1s ease; }
.ef-hero__slide.is-active::before { animation: ef-kenburns 8s cubic-bezier(.22,.61,.36,1) both; }
@keyframes ef-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ef-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.ef-hero__slide.is-active .ef-hero__content > * {
  animation: ef-rise .75s cubic-bezier(.22,.61,.36,1) both;
}
.ef-hero__slide.is-active .ef-hero__content > *:nth-child(1) { animation-delay: .15s; }
.ef-hero__slide.is-active .ef-hero__content > *:nth-child(2) { animation-delay: .28s; }
.ef-hero__slide.is-active .ef-hero__content > *:nth-child(3) { animation-delay: .41s; }
.ef-hero__slide.is-active .ef-hero__content > *:nth-child(4) { animation-delay: .54s; }
@keyframes ef-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.ef-hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 70%); }
.ef-hero__content {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: center; max-width: 1360px; margin: 0 auto; padding: 0 48px;
}
.ef-hero__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ef-accent); margin-bottom: 14px; }
.ef-hero__title { font-size: clamp(34px, 5vw, 58px); font-weight: 700; max-width: 560px; margin-bottom: 16px; }
.ef-hero__sub { font-size: 17px; max-width: 440px; margin-bottom: 28px; color: var(--ef-black); }
.ef-hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.ef-hero__dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(24,24,24,.25); }
.ef-hero__dot.is-active { background: var(--ef-black); }

/* ===== Sections ===== */
.ef-section { padding: 64px 0; }
.ef-section--soft { background: var(--ef-bg-soft); }
.ef-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.ef-section__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.ef-section__sub { margin-top: 6px; }
.ef-section__link { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ef-black); padding-bottom: 2px; white-space: nowrap; }
.ef-section__link:hover { border-color: var(--ef-accent); }

/* Category tiles */
.ef-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ef-cat {
  position: relative; border-radius: var(--ef-radius); overflow: hidden; aspect-ratio: 3 / 4;
  background: #ece7e1 center/cover no-repeat; display: flex; align-items: flex-end;
}
.ef-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.ef-cat:hover .ef-cat__img { transform: scale(1.07); }
.ef-cat__label {
  position: relative; z-index: 2; margin: 14px; background: #fff; color: var(--ef-black);
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; transition: all .22s;
}
.ef-cat:hover .ef-cat__label { background: var(--ef-black); color: #fff; }

/* Product grid (shared with Woo loop) */
.ef-products, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, .ef-card { width: auto !important; margin: 0 !important; float: none !important; }
.ef-card { position: relative; }
.ef-card__media {
  position: relative; border-radius: var(--ef-radius); overflow: hidden;
  background: var(--ef-bg-soft); aspect-ratio: 3 / 4; display: block;
}
.ef-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .8s cubic-bezier(.22,.61,.36,1); position: absolute; inset: 0; }
.ef-card__img--alt { opacity: 0; }
.ef-card:hover .ef-card__img--alt { opacity: 1; }
.ef-card:hover .ef-card__media img { transform: scale(1.06); }
.ef-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--ef-accent);
  color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 11px;
}
.ef-card__actions {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(8px); transition: all .25s;
}
.ef-card:hover .ef-card__actions { opacity: 1; transform: translateY(0); }
.ef-card__actions .button, .ef-card__actions .ef-btn {
  width: 100%; background: #fff; color: var(--ef-black) !important; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 11px 18px; font-size: 13px;
}
.ef-card__actions .button:hover, .ef-card__actions .ef-btn:hover { background: var(--ef-black); color: #fff !important; }
.ef-card__cat { font-size: 12.5px; margin-top: 13px; }
.ef-card__cat a { color: var(--ef-text); }
.ef-card__title { font-size: 15px; font-weight: 600; margin-top: 3px; }
.ef-card__title a { color: var(--ef-black); display: block; }
.ef-card__price { margin-top: 5px; font-weight: 700; color: var(--ef-black); font-size: 15px; }
.ef-card__price del { color: #9a9b9c; font-weight: 500; margin-right: 7px; }
.ef-card__price ins { text-decoration: none; color: var(--ef-accent); }

/* Equal card heights */
.woocommerce ul.products li.product { display: flex; }
.ef-card { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }

/* Add to cart overlays the image on hover (demo-style) */
.woocommerce ul.products li.product .ef-card__media .button {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  justify-content: center; padding: 12px 18px; font-size: 13px;
  background: #fff !important; color: var(--ef-black) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s cubic-bezier(.22,.61,.36,1), transform .3s cubic-bezier(.22,.61,.36,1), background .2s, color .2s;
}
.woocommerce ul.products li.product .ef-card:hover .ef-card__media .button { opacity: 1; transform: translateY(0); }
.woocommerce ul.products li.product .ef-card__media .button:hover { background: var(--ef-black) !important; color: #fff !important; }
.ef-card__media .added_to_cart { display: none; }
@media (hover: none) {
  .woocommerce ul.products li.product .ef-card__media .button { opacity: 1; transform: none; }
}

/* Woo loop element resets to match card */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; padding: 3px 0 0; color: var(--ef-black); }
.woocommerce ul.products li.product .price { color: var(--ef-black); font-weight: 700; font-size: 15px; }
.woocommerce ul.products li.product .price del { color: #9a9b9c; font-weight: 500; }
.woocommerce ul.products li.product .price ins { color: var(--ef-accent); text-decoration: none; font-weight: 700; }
.woocommerce ul.products li.product .onsale { display: none; }

/* Banner trio */
.ef-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ef-banner {
  position: relative; border-radius: var(--ef-radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: #ece7e1 center/cover no-repeat; display: flex; align-items: flex-end;
}
.ef-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.ef-banner:hover .ef-banner__img { transform: scale(1.06); }
.ef-banner__body { position: relative; z-index: 2; margin: 22px; background: rgba(255,255,255,.94); border-radius: var(--ef-radius-sm); padding: 18px 20px; max-width: 82%; }
.ef-banner__tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--ef-accent); }
.ef-banner__title { font-size: 20px; margin: 4px 0 2px; }
.ef-banner__cta { font-weight: 700; font-size: 13.5px; border-bottom: 2px solid var(--ef-black); }

/* Benefits */
.ef-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ef-benefit { display: flex; gap: 15px; align-items: flex-start; padding: 22px; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: #fff; }
.ef-benefit svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--ef-black); }
.ef-benefit h3 { font-size: 15.5px; margin-bottom: 3px; }
.ef-benefit p { font-size: 13.5px; }

/* Value cards (testimonial-style) */
.ef-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ef-value { background: #fff; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); padding: 30px 28px; }
.ef-value__stars { color: var(--ef-accent); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.ef-value p { font-size: 15px; }
.ef-value h3 { margin-top: 16px; font-size: 14.5px; }

/* Social grid */
.ef-social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ef-social-grid a { position: relative; border-radius: var(--ef-radius-sm); overflow: hidden; aspect-ratio: 1; background: #ece7e1; display: block; }
.ef-social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ef-social-grid a:hover img { transform: scale(1.07); }
.ef-social-grid a::after {
  content: ''; position: absolute; inset: 0; background: rgba(24,24,24,0); transition: background .25s;
}
.ef-social-grid a:hover::after { background: rgba(24,24,24,.28); }

/* Newsletter */
.ef-newsletter { background: var(--ef-black); border-radius: var(--ef-radius); color: #fff; padding: 52px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.ef-newsletter h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.ef-newsletter p { color: #cfcfcf; margin-top: 8px; font-size: 14.5px; }
.ef-newsletter form { display: flex; gap: 10px; min-width: 0; }
.ef-newsletter input[type="email"] {
  flex: 1; min-width: 0; border: none; border-radius: 999px; padding: 14px 20px; font-family: inherit; font-size: 14.5px;
}
.ef-footer form input[type="email"] { min-width: 0; }
.ef-newsletter .ef-btn { background: var(--ef-accent); }
.ef-newsletter .ef-btn:hover { background: #fff; color: var(--ef-black) !important; }
.ef-notice { background: #eaf7ee; border: 1px solid #bfe3c9; color: #1d6b34; border-radius: var(--ef-radius-sm); padding: 12px 18px; margin: 18px 0; font-weight: 600; }

/* ===== Footer ===== */
.ef-footer { background: var(--ef-bg-soft); border-top: 1px solid var(--ef-border); margin-top: 70px; }
.ef-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.ef-footer h4 { font-size: 15px; margin-bottom: 18px; letter-spacing: .4px; }
.ef-footer ul { list-style: none; }
.ef-footer li { margin-bottom: 10px; font-size: 14px; }
.ef-footer a { color: var(--ef-text); }
.ef-footer a:hover { color: var(--ef-accent); }
.ef-footer__brand .ef-logo { font-size: 23px; margin-bottom: 14px; display: inline-block; }
.ef-contact-line { display: flex; gap: 10px; margin-bottom: 11px; font-size: 14px; align-items: flex-start; }
.ef-contact-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--ef-black); }
.ef-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.ef-footer__social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ef-black); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.ef-footer__social a:hover { background: var(--ef-accent); color: #fff; }
.ef-footer__social svg { width: 16px; height: 16px; }
.ef-footer__bottom {
  border-top: 1px solid var(--ef-border); padding: 20px 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 14px; font-size: 13.5px;
}
.ef-payments { display: flex; gap: 10px; align-items: center; }
.ef-payments svg { height: 36px; width: auto; display: block; }
.ef-payments__label { font-size: 13px; font-weight: 600; color: var(--ef-black); margin-right: 4px; }

.ef-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ef-topbar a:hover { color: #f0c0c0; }

/* Product option selects */
.ef-options { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 18px; }
.ef-option-row { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.ef-option-row label { font-weight: 700; font-size: 13.5px; color: var(--ef-black); }
.ef-option-row select {
  border: 1px solid var(--ef-border); border-radius: 999px; padding: 11px 16px;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ef-black);
}
.ef-option-row select:focus { outline: 2px solid var(--ef-black); border-color: transparent; }

/* Product page shipping & returns box */
.ef-ship-box {
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius);
  background: var(--ef-bg-soft); padding: 18px 20px; margin: 22px 0 6px;
}
.ef-ship-line { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; }
.ef-ship-line:last-child { margin-bottom: 0; }
.ef-ship-line svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--ef-black); }
.ef-ship-line a { color: var(--ef-accent); font-weight: 600; }

/* ===== Woo pages polish ===== */
.ef-main { min-height: min(55vh, 420px); }
.ef-page-head { padding: 42px 0 8px; }
.ef-page-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--ef-text); margin: 18px 0 6px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ef-text); }
.woocommerce .woocommerce-result-count { font-size: 14px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--ef-border); border-radius: 999px; padding: 9px 14px; font-family: inherit; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ef-black); color: #fff; }
.woocommerce div.product .product_title { font-size: 28px; font-weight: 700; }
.woocommerce div.product p.price { color: var(--ef-black); font-size: 23px; font-weight: 700; }
.woocommerce div.product p.price del { color: #9a9b9c; font-weight: 500; }
.woocommerce div.product p.price ins { color: var(--ef-accent); text-decoration: none; }
/* ===== Product gallery: fixed 500x500 main frame + vertical thumbs on the left ===== */
.woocommerce div.product div.images.woocommerce-product-gallery {
  display: flex; gap: 14px; align-items: flex-start;
}
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images > .woocommerce-product-gallery__wrapper {
  order: 2; width: 500px; max-width: 100%; height: 500px !important;
  background: #fff; border: 1px solid var(--ef-border); border-radius: var(--ef-radius);
  overflow: hidden; flex: 0 0 auto;
}
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper { height: 100%; }
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a { height: 500px; display: block; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 100%; height: 500px !important; object-fit: contain; border-radius: 0; background: #fff;
}
.woocommerce div.product div.images .flex-control-thumbs {
  order: 1; display: flex; flex-direction: column; gap: 10px;
  width: 80px; margin: 0; flex: 0 0 80px;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: 80px; height: 80px; float: none; margin: 0; list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--ef-radius-sm);
  border: 2px solid var(--ef-border); opacity: .7; cursor: pointer;
  transition: opacity .2s, border-color .2s;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  opacity: 1; border-color: var(--ef-black);
}
.woocommerce div.product .woocommerce-product-gallery__trigger { z-index: 5; }
@media (min-width: 769px) {
  .woocommerce div.product div.images.woocommerce-product-gallery { width: 594px; float: left; }
  .woocommerce div.product div.summary { width: calc(100% - 640px); float: right; }
}
@media (max-width: 768px) {
  .woocommerce div.product div.images.woocommerce-product-gallery { flex-direction: column; width: 100%; }
  .woocommerce div.product div.images .flex-viewport,
  .woocommerce div.product div.images > .woocommerce-product-gallery__wrapper {
    order: 1; width: 100%; height: auto !important; aspect-ratio: 1 / 1;
  }
  .woocommerce div.product div.images .woocommerce-product-gallery__image,
  .woocommerce div.product div.images .woocommerce-product-gallery__image a { height: 100%; }
  .woocommerce div.product div.images .woocommerce-product-gallery__image img { height: 100% !important; }
  .woocommerce div.product div.images .flex-control-thumbs {
    order: 2; flex-direction: row; flex-wrap: wrap; width: 100%; flex-basis: auto;
  }
  .woocommerce div.product div.images .flex-control-thumbs li { width: 64px; height: 64px; }
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--ef-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ef-black); }
.woocommerce div.product form.cart div.quantity .qty { border: 1px solid var(--ef-border); border-radius: 999px; padding: 11px; height: auto; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ef-black); }
.woocommerce table.shop_table { border: 1px solid var(--ef-border); border-radius: var(--ef-radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single {
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius-sm); padding: 11px 14px; height: auto;
}

/* ===== Cart / Checkout / Account (classic Woo pages) ===== */
/* Cart & checkout escape the narrow article column */
.woocommerce-cart .ef-content, .woocommerce-checkout .ef-content { max-width: none; }

/* Two-column checkout on desktop: billing left, order + payment right (sticky) */
@media (min-width: 1000px) {
  form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 48px; align-items: start; }
  form.checkout.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; width: 100%; }
  form.checkout.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
  form.checkout.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 120px; }
  .woocommerce-checkout form.checkout .col2-set .col-1,
  .woocommerce-checkout form.checkout .col2-set .col-2 { float: none; width: 100%; }
  .woocommerce-checkout form.checkout .col2-set .col-2 { margin-top: 28px; }
  /* cart: totals right, cross-sells left, 2-up */
  .woocommerce-cart .cart-collaterals .cart_totals { width: 46%; }
  .woocommerce-cart .cart-collaterals .cross-sells { width: 48%; float: left; }
  .woocommerce-cart .cart-collaterals .cross-sells ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
#order_review { background: #fff; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); padding: 22px; }
#order_review table.shop_table { border: none; margin-bottom: 10px; }
#order_review_heading { font-size: 20px; }

.woocommerce .quantity .qty {
  border: 1px solid var(--ef-border); border-radius: 999px; padding: 10px 6px 10px 14px;
  width: 74px; height: auto; font-family: inherit; font-size: 14px; text-align: center;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--ef-border); padding: 14px 12px; }
.woocommerce table.shop_table td.product-name a { font-weight: 600; color: var(--ef-black); }
.woocommerce table.shop_table dl.variation { margin: 4px 0 0; font-size: 13px; }
.woocommerce table.shop_table dl.variation dt { font-weight: 600; color: var(--ef-black); margin-right: 4px; }
.woocommerce a.remove {
  color: var(--ef-black) !important; width: 26px; height: 26px; line-height: 24px;
  border: 1px solid var(--ef-border); border-radius: 50%; font-size: 16px; font-weight: 500;
}
.woocommerce a.remove:hover { background: var(--ef-accent) !important; border-color: var(--ef-accent); color: #fff !important; }
.woocommerce td.product-thumbnail img { width: 64px; border-radius: var(--ef-radius-sm); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; float: none; margin-bottom: 10px; }
#coupon_code.input-text {
  border: 1px solid var(--ef-border); border-radius: 999px; padding: 11px 16px;
  width: 190px !important; height: auto; font-family: inherit; font-size: 14px; float: none;
}
.woocommerce-cart table.cart td.actions .coupon .button { white-space: nowrap; }
@media (min-width: 861px) {
  .woocommerce-cart table.cart td.actions .coupon { float: left; margin-bottom: 0; }
}
.woocommerce .cart_totals { border: 1px solid var(--ef-border); border-radius: var(--ef-radius); padding: 8px 22px 22px; background: var(--ef-bg-soft); }
.woocommerce .cart_totals h2 { font-size: 20px; margin: 14px 0 6px; }
.woocommerce .cart_totals table.shop_table { border: none; }
.woocommerce .cart_totals .wc-proceed-to-checkout { padding-bottom: 0; }
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button { width: 100%; display: inline-flex; justify-content: center; }
.woocommerce-cart table.cart td.actions .button { padding: 11px 22px; }

#payment.woocommerce-checkout-payment { background: var(--ef-bg-soft) !important; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); }
#payment.woocommerce-checkout-payment ul.payment_methods { border-bottom-color: var(--ef-border); padding: 18px; }
#payment ul.payment_methods li label { font-weight: 600; color: var(--ef-black); }
#payment div.payment_box { background: #fff !important; color: var(--ef-text) !important; border-radius: var(--ef-radius-sm); }
#payment div.payment_box::before, #payment div.payment_box::after { display: none !important; }
/* PayPal box holds only hidden inputs/scripts — collapse the empty strip */
#payment div.payment_box.payment_method_mecom_paypal { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.woocommerce form .form-row label { font-weight: 600; color: var(--ef-black); font-size: 13.5px; }
/* No premature red/green field coloring (gateway JS validates on load) — errors surface via submit notices */
.woocommerce form .form-row.woocommerce-invalid label,
.woocommerce form .form-row.woocommerce-validated label { color: var(--ef-black) !important; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid input[type="checkbox"],
.woocommerce form .form-row.woocommerce-invalid .select2-container--default .select2-selection--single,
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated .select2-container--default .select2-selection--single {
  border-color: var(--ef-border) !important; outline: none !important; box-shadow: none !important;
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--ef-black); }
/* Woo notice icon font renders as tofu boxes — drop the glyphs */
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before,
.woocommerce-error li::before { display: none !important; }
.woocommerce-shipping-calculator .shipping-calculator-button::before,
.woocommerce-shipping-calculator .shipping-calculator-button::after { content: none !important; display: none !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { padding-left: 20px !important; }
/* PayPal smart button wrapper */
#payment iframe { max-width: 100% !important; }
form.checkout .paypal-buttons, form.checkout div[id*="paypal-button"],
form.checkout div[class*="paypal-button"] { max-width: 100% !important; overflow: hidden; }
.woocommerce #order_review_heading { margin-top: 26px; }

/* My Account */
.woocommerce-account .woocommerce { display: block; }
.woocommerce-account h2 { font-size: 22px; margin: 10px 0 16px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.woocommerce-ResetPassword {
  border: 1px solid var(--ef-border) !important; border-radius: var(--ef-radius) !important;
  padding: 26px !important; background: #fff;
}
.woocommerce-form-login .woocommerce-form-login__rememberme { display: block; margin-bottom: 12px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin-bottom: 6px; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 11px 18px; border-radius: 999px; font-weight: 600;
  color: var(--ef-black); border: 1px solid transparent;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover { background: var(--ef-bg-soft); border-color: var(--ef-border); color: var(--ef-black); }
.woocommerce-MyAccount-content { padding-bottom: 30px; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--ef-border); border-radius: var(--ef-radius-sm); padding: 16px; margin: 16px 0; }

/* Woo notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--ef-radius-sm); background: var(--ef-bg-soft); border-top-width: 3px;
}
.woocommerce-error { border-top-color: var(--ef-accent); }

/* Content pages */
.ef-content { max-width: 860px; margin: 0 auto; padding: 10px 0 60px; }
.ef-content h2 { font-size: 24px; margin: 34px 0 12px; }
.ef-content h3 { font-size: 18px; margin: 24px 0 8px; }
.ef-content p { margin-bottom: 14px; }
.ef-content ul, .ef-content ol { margin: 0 0 16px 22px; }
.ef-content li { margin-bottom: 7px; }
.ef-content a { color: var(--ef-accent); font-weight: 600; }
.ef-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.ef-content th, .ef-content td { border: 1px solid var(--ef-border); padding: 10px 14px; text-align: left; }
.ef-content th { background: var(--ef-bg-soft); }

/* Contact page */
.ef-contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 20px 0 60px; }
.ef-contact-card { border: 1px solid var(--ef-border); border-radius: var(--ef-radius); padding: 30px; background: var(--ef-bg-soft); }
.ef-contact-card h3 { margin-bottom: 16px; }
.ef-form label { display: block; font-weight: 600; color: var(--ef-black); font-size: 14px; margin: 16px 0 6px; }
.ef-form input, .ef-form textarea {
  width: 100%; border: 1px solid var(--ef-border); border-radius: var(--ef-radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 14.5px; background: #fff;
}
.ef-form input:focus, .ef-form textarea:focus { outline: 2px solid var(--ef-black); border-color: transparent; }
.ef-form .ef-btn { margin-top: 20px; }
.ef-hp { position: absolute; left: -9999px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .ef-cats { grid-template-columns: repeat(3, 1fr); }
  .ef-products, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .ef-benefits { grid-template-columns: repeat(2, 1fr); }
  .ef-social-grid { grid-template-columns: repeat(3, 1fr); }
  .ef-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ef-nav { display: none; position: fixed; inset: 0; top: 0; background: #fff; z-index: 1100; padding: 80px 30px 30px; overflow-y: auto; }
  .ef-nav.is-open { display: block; }
  .ef-nav > ul { flex-direction: column; gap: 4px; }
  .ef-nav a { padding: 11px 0; display: block; font-size: 17px; }
  .ef-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 0 16px; }
  .ef-nav__close { display: block; position: absolute; top: 22px; right: 22px; background: none; border: none; font-size: 26px; color: var(--ef-black); }
  .ef-burger { display: inline-flex; }
  .ef-banners { grid-template-columns: 1fr; }
  .ef-banner { aspect-ratio: 16 / 9; }
  .ef-values { grid-template-columns: 1fr; }
  .ef-newsletter { grid-template-columns: 1fr; padding: 36px 26px; }
  .ef-contact-wrap { grid-template-columns: 1fr; }
  .ef-hero__slide { min-height: 440px; }
}
@media (max-width: 640px) {
  .ef-products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
  .woocommerce table.shop_table td { padding: 10px 8px; }
  .ef-cats { grid-template-columns: repeat(2, 1fr); }
  .ef-benefits { grid-template-columns: 1fr; }
  .ef-social-grid { grid-template-columns: repeat(2, 1fr); }
  .ef-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .ef-section { padding: 44px 0; }
}
