/*
Theme Name: Europa Fashion Wholesale
Theme URI: https://shopeuropafashion.com
Author: Europa Fashion (UK) Ltd
Description: Original editorial WooCommerce theme for a UK women's fashion wholesaler.
Version: 1.0.0
Text Domain: europa-fashion
*/

:root {
  --ef-primary: #18181b;
  --ef-secondary: #3f3f46;
  --ef-accent: #d92d7a;
  --ef-accent-dark: #a91d5b;
  --ef-bg: #fafafa;
  --ef-surface: #ffffff;
  --ef-ink: #09090b;
  --ef-muted: #66666f;
  --ef-border: #e4e4e7;
  --ef-soft: #f4edf1;
  --ef-success: #166534;
  --ef-radius: 14px;
  --ef-shadow: 0 18px 50px rgba(24, 24, 27, .08);
  --ef-container: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ef-bg);
  color: var(--ef-ink);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
body.admin-bar .ef-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(217,45,122,.35); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ef-container { width: min(calc(100% - 40px), var(--ef-container)); margin-inline: auto; }
.ef-kicker { margin: 0 0 10px; color: var(--ef-accent); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: Rubik, system-ui, sans-serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 3vw, 3.25rem); }
.ef-button, .button, button.button, input.button, .wp-element-button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px !important;
  border: 1px solid var(--ef-primary) !important; border-radius: 999px !important; background: var(--ef-primary) !important;
  color: #fff !important; font-weight: 800 !important; line-height: 1 !important; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ef-button:hover, .button:hover, button.button:hover, input.button:hover { background: var(--ef-accent) !important; border-color: var(--ef-accent) !important; transform: translateY(-1px); }
.ef-button--light { background: #fff !important; color: var(--ef-primary) !important; border-color: #fff !important; }
.ef-button--ghost { background: transparent !important; color: var(--ef-primary) !important; border-color: var(--ef-border) !important; }

.ef-topbar { background: var(--ef-primary); color: #fff; font-size: .82rem; }
.ef-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ef-topbar__message { font-weight: 700; letter-spacing: .02em; }
.ef-topbar__links { display: flex; gap: 20px; color: #f4d9e6; }
.ef-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(228,228,231,.9); backdrop-filter: blur(16px); }
.ef-header__main { min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.ef-brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.ef-brand img { width: 44px; height: 44px; }
.ef-brand__text { font-family: Rubik, sans-serif; font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em; }
.ef-brand__text small { display: block; margin-top: 2px; color: var(--ef-muted); font: 700 .62rem/1.2 "Nunito Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ef-nav ul { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ef-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 800; font-size: .93rem; }
.ef-nav a:hover, .ef-nav .current-menu-item > a { color: var(--ef-accent); }
.ef-header__actions { display: flex; align-items: center; gap: 6px; }
.ef-icon-link, .ef-menu-toggle { position: relative; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ef-primary); cursor: pointer; }
.ef-icon-link:hover, .ef-menu-toggle:hover { background: var(--ef-soft); }
.ef-icon-link svg, .ef-menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ef-cart-count { position: absolute; top: 1px; right: 0; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--ef-accent); color: #fff; font-size: .65rem; font-weight: 900; }
.ef-menu-toggle { display: none; }
.ef-search { display: none; padding: 12px 0 18px; border-top: 1px solid var(--ef-border); }
.ef-search.is-open { display: block; }
.ef-search form { display: flex; gap: 10px; }
.ef-search input[type="search"] { flex: 1; min-height: 50px; padding: 0 18px; border: 1px solid var(--ef-border); border-radius: 999px; background: #fff; }

.ef-hero { overflow: hidden; background: linear-gradient(135deg,#f9f2f5 0%,#fff 52%,#eee8eb 100%); }
.ef-hero__inner { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-block: 72px; }
.ef-hero h1 { max-width: 850px; margin: 0 0 22px; }
.ef-hero h1 em { color: var(--ef-accent); font-style: normal; }
.ef-hero__lead { max-width: 660px; margin: 0 0 30px; color: var(--ef-secondary); font-size: 1.13rem; }
.ef-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ef-hero__visual { position: relative; min-height: 510px; }
.ef-editorial-card { position: absolute; overflow: hidden; border-radius: 28px; box-shadow: var(--ef-shadow); }
.ef-editorial-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(9,9,11,.55),transparent 55%); }
.ef-editorial-card--one { inset: 0 16% 8% 0; background: linear-gradient(150deg,#1a1a1d,#4a1e35 60%,#dc6b9e); }
.ef-editorial-card--two { width: 42%; height: 54%; right: 0; bottom: 0; background: linear-gradient(145deg,#f3d5e1,#a72a62 72%,#17171a); border: 8px solid rgba(255,255,255,.85); }
.ef-editorial-card__shape { position: absolute; inset: 7% 12% 12%; border-radius: 52% 48% 18% 18% / 18% 18% 12% 12%; background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,255,255,.25)); transform: rotate(-5deg); }
.ef-editorial-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ef-editorial-card:hover .ef-editorial-card__image { transform: scale(1.025); }
.ef-editorial-card__label { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; color: #fff; }
.ef-editorial-card__label strong { display: block; font: 800 1.55rem/1.1 Rubik,sans-serif; }
.ef-editorial-card__label span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.ef-editorial-card__label b { display: inline-block; margin-top: 9px; font-size: 1rem; }
.ef-hero__trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; color: var(--ef-muted); font-size: .84rem; font-weight: 800; }
.ef-hero__trust span::before { content: "✓"; margin-right: 7px; color: var(--ef-accent); }

.ef-benefits { background: #fff; border-block: 1px solid var(--ef-border); }
.ef-benefits__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.ef-benefit { padding: 28px; border-right: 1px solid var(--ef-border); }
.ef-benefit:last-child { border-right: 0; }
.ef-benefit strong { display: block; margin-bottom: 4px; font: 800 1rem Rubik,sans-serif; }
.ef-benefit span { color: var(--ef-muted); font-size: .88rem; }
.ef-section { padding-block: 88px; }
.ef-section--white { background: #fff; }
.ef-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.ef-section__head h2 { margin: 0; }
.ef-section__head p { max-width: 560px; margin: 0; color: var(--ef-muted); }
.ef-category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ef-category-card { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; padding: 26px; border-radius: var(--ef-radius); background: linear-gradient(145deg,#242429,#70415a); color: #fff; }
.ef-category-card:nth-child(2n) { background: linear-gradient(145deg,#e7cad7,#9c2e62); }
.ef-category-card:nth-child(3n) { background: linear-gradient(145deg,#2f2930,#b46a8c); }
.ef-category-card:nth-child(4n) { background: linear-gradient(145deg,#efe6e9,#7f5367); }
.ef-category-card::before { content: ""; position: absolute; width: 58%; height: 76%; right: 7%; top: 8%; border-radius: 50% 50% 22% 22% / 20% 20% 10% 10%; background: rgba(255,255,255,.22); transform: rotate(7deg); }
.ef-category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(9,9,11,.75),transparent 65%); }
.ef-category-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ef-category-card:hover .ef-category-card__image { transform: scale(1.035); }
.ef-category-card__content { position: relative; z-index: 2; }
.ef-category-card h3 { margin: 0 0 5px; font-size: 1.35rem; }
.ef-category-card span { font-size: .84rem; font-weight: 700; opacity: .9; }
.ef-category-card:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow); }

.ef-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.ef-story__panel { min-height: 520px; display: grid; align-content: end; padding: 44px; border-radius: 28px; background: linear-gradient(155deg,#19191d,#65364e); color: #fff; box-shadow: var(--ef-shadow); }
.ef-story__panel strong { font: 800 clamp(4rem,9vw,8rem)/.9 Rubik,sans-serif; color: #ef9fc4; }
.ef-story__panel span { margin-top: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ef-story__copy h2 { margin-top: 0; }
.ef-story__copy p { color: var(--ef-secondary); }
.ef-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.ef-stat { padding: 18px; border-radius: 12px; background: var(--ef-soft); }
.ef-stat strong { display: block; font: 800 1.4rem Rubik,sans-serif; }
.ef-stat span { color: var(--ef-muted); font-size: .78rem; }
.ef-cta { overflow: hidden; padding: 64px; border-radius: 28px; background: linear-gradient(125deg,#18181b 0%,#4d2036 60%,#b52669 100%); color: #fff; }
.ef-cta h2 { max-width: 850px; margin: 0 0 16px; }
.ef-cta p { max-width: 720px; color: #f5dce8; }
.ef-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ef-main { min-height: 55vh; padding-block: 64px; }
.ef-page-header { padding: 68px 0 38px; background: linear-gradient(120deg,#f8eef3,#fff); border-bottom: 1px solid var(--ef-border); }
.ef-page-header h1 { margin: 0; font-size: clamp(2.2rem,4vw,4.5rem); }
.ef-content { max-width: 900px; }
.ef-content h2 { margin-top: 2.2em; }
.ef-content table { width: 100%; border-collapse: collapse; }
.ef-content th, .ef-content td { padding: 13px 15px; border: 1px solid var(--ef-border); text-align: left; }
.ef-contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-block: 28px; }
.ef-contact-card { padding: 25px; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: #fff; }
.ef-contact-card strong { display: block; margin-bottom: 7px; font-family: Rubik,sans-serif; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 25px; color: var(--ef-muted); font-size: .83rem; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select { min-height: 46px; padding: 0 42px 0 15px; border: 1px solid var(--ef-border); border-radius: 999px; background: #fff; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 18px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 0 18px; overflow: hidden; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; margin: 0 0 16px !important; object-fit: cover; background: linear-gradient(145deg,#f2e7ec,#a54271); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3em; padding: 0 17px !important; font: 800 .98rem/1.45 Rubik,sans-serif; }
.woocommerce ul.products li.product .price { padding: 0 17px; color: var(--ef-accent) !important; font-size: 1rem !important; font-weight: 900 !important; }
.woocommerce ul.products li.product .button { margin: 8px 17px 0 !important; min-height: 42px; padding: 10px 16px !important; font-size: .82rem; }
.woocommerce span.onsale { min-width: auto; min-height: auto; padding: 7px 11px; border-radius: 999px; background: var(--ef-accent); line-height: 1; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: 55px; }
.woocommerce div.product .woocommerce-product-gallery, .woocommerce div.product .summary { width: auto !important; float: none !important; }
.woocommerce div.product .product_title { margin-top: 0; font-size: clamp(2rem,4vw,3.7rem); }
.woocommerce div.product p.price { color: var(--ef-accent); font-size: 1.5rem; font-weight: 900; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related { grid-column: 1/-1; }
.woocommerce table.shop_table { border-color: var(--ef-border); border-radius: var(--ef-radius); background: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 12px 14px; border: 1px solid var(--ef-border); border-radius: 9px; background: #fff; }
.woocommerce .quantity .qty { min-height: 45px; border: 1px solid var(--ef-border); border-radius: 8px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ef-accent); background: #fff; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ef-accent); }

.ef-footer { margin-top: 80px; background: #161619; color: #fff; }
.ef-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 50px; padding-block: 68px; }
.ef-footer h3 { margin-top: 0; font-size: 1rem; }
.ef-footer p, .ef-footer li, .ef-footer address { color: #c7c7cf; font-size: .88rem; font-style: normal; }
.ef-footer ul { margin: 0; padding: 0; list-style: none; }
.ef-footer li { margin: 8px 0; }
.ef-footer a:hover { color: #ef9fc4; }
.ef-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 800 1.15rem Rubik,sans-serif; }
.ef-footer__brand img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.ef-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid #303038; color: #9f9fa8; font-size: .78rem; }

@media (max-width: 1080px) {
  .ef-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--ef-border); }
  .ef-nav.is-open { display: block; }
  .ef-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .ef-menu-toggle { display: inline-flex; }
  .ef-hero__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ef-category-grid, .woocommerce ul.products { grid-template-columns: repeat(3,1fr) !important; }
  .ef-footer__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
  body.admin-bar .ef-header { top: 46px; }
  .ef-container { width: min(calc(100% - 28px), var(--ef-container)); }
  .ef-topbar__inner { justify-content: center; min-height: 42px; text-align: center; }
  .ef-topbar__links { display: none; }
  .ef-header__main { min-height: 72px; grid-template-columns: 1fr auto; gap: 8px; }
  .ef-brand { min-width: 0; }
  .ef-brand__text { font-size: 1rem; }
  .ef-header__actions .ef-icon-link:first-child { display: none; }
  .ef-hero__inner { min-height: auto; grid-template-columns: 1fr; padding-block: 56px; }
  .ef-hero__visual { min-height: 390px; }
  .ef-benefits__grid { grid-template-columns: repeat(2,1fr); }
  .ef-benefit:nth-child(2) { border-right: 0; }
  .ef-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--ef-border); }
  .ef-category-grid, .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
  .ef-section { padding-block: 60px; }
  .ef-section__head { align-items: start; flex-direction: column; }
  .ef-story, .woocommerce div.product { grid-template-columns: 1fr; gap: 34px; }
  .ef-story__panel { min-height: 380px; }
  .ef-cta { padding: 38px 25px; }
  .ef-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ef-brand__text small { display: none; }
  .ef-header__actions { gap: 0; }
  .ef-icon-link, .ef-menu-toggle { width: 42px; height: 42px; }
  .ef-hero__visual { min-height: 330px; }
  .ef-editorial-card--one { right: 10%; }
  .ef-editorial-card--two { width: 46%; }
  .ef-benefits__grid { grid-template-columns: 1fr; }
  .ef-benefit { border-right: 0; border-bottom: 1px solid var(--ef-border); }
  .ef-category-grid, .woocommerce ul.products { gap: 14px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding-inline: 12px !important; }
  .woocommerce ul.products li.product .button { margin-inline: 12px !important; }
  .ef-stat-row { grid-template-columns: 1fr; }
  .ef-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .ef-footer__bottom { flex-direction: column; }
}

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