/*
Theme Name: OULKA
Theme URI: https://oulka.com
Author: OULKA
Author URI: https://oulka.com
Description: A modern, minimal fashion and clothing brand theme designed for the best shopping experience. Clean typography, elegant layouts, and WooCommerce-ready.
Version: 1.0.0
Requires at least: 6.0
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: oulka
Tags: e-commerce, fashion, custom-menu, custom-logo, featured-images, theme-options, translation-ready, one-column, two-columns
*/

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    /* Colors */
    --ef-primary: #3a2b22;
    --ef-secondary: #f9f9f9;
    --ef-accent: #d4af37;
    --ef-accent-dark: #b8932d;
    --ef-text: #342820;
    --ef-text-light: #7a6a5f;
    --ef-white: #ffffff;
    --ef-black: #000000;
    --ef-border: #e7ddd3;
    --ef-bg-light: #f8f5f2;
    --ef-bg-overlay: rgba(58, 43, 34, 0.45);
    --ef-success: #4caf50;
    --ef-error: #e53935;

    /* Typography */
    --ef-font-heading: 'Playfair Display', Georgia, serif;
    --ef-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ef-font-accent: 'Cormorant Garamond', Georgia, serif;

    /* Spacing */
    --ef-spacing-xs: 0.5rem;
    --ef-spacing-sm: 1rem;
    --ef-spacing-md: 2rem;
    --ef-spacing-lg: 4rem;
    --ef-spacing-xl: 6rem;
    --ef-spacing-xxl: 8rem;

    /* Layout */
    --ef-container-width: 1320px;
    --ef-container-narrow: 960px;
    --ef-sidebar-width: 300px;
    --ef-header-height: 80px;

    /* Transitions */
    --ef-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ef-transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows */
    --ef-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ef-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ef-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --ef-radius-sm: 4px;
    --ef-radius-md: 8px;
    --ef-radius-lg: 16px;
}

/* ============================================
   RESET & BASE
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ef-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ef-text);
    background-color: var(--ef-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ef-primary);
    text-decoration: none;
    transition: var(--ef-transition);
}

a:hover {
    color: var(--ef-accent);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ef-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ef-primary);
    margin-bottom: var(--ef-spacing-sm);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--ef-spacing-sm);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.ef-container {
    width: 100%;
    max-width: var(--ef-container-width);
    margin: 0 auto;
    padding: 0 var(--ef-spacing-md);
}

.ef-container--narrow {
    max-width: var(--ef-container-narrow);
}

.ef-section {
    padding: var(--ef-spacing-xl) 0;
}

.ef-section--sm {
    padding: var(--ef-spacing-lg) 0;
}

.ef-section--lg {
    padding: var(--ef-spacing-xxl) 0;
}

.ef-section--bg {
    background-color: var(--ef-bg-light);
}

.ef-text-center { text-align: center; }
.ef-text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; }

.ef-section-header {
    text-align: center;
    margin-bottom: var(--ef-spacing-lg);
}

.ef-section-header h2 {
    position: relative;
    display: inline-block;
}

.ef-section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--ef-accent);
    margin: var(--ef-spacing-sm) auto 0;
}

.ef-section-header p {
    color: var(--ef-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--ef-spacing-sm) auto 0;
}

.ef-label {
    font-family: var(--ef-font-body);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ef-accent);
    margin-bottom: var(--ef-spacing-xs);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--ef-white);
    border-radius: var(--ef-radius-sm);
    box-shadow: var(--ef-shadow-md);
    clip: auto !important;
    color: var(--ef-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   BUTTONS
============================================ */
.ef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    font-family: var(--ef-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--ef-transition);
    text-decoration: none;
    line-height: 1;
}

.ef-btn--primary {
    background: var(--ef-primary);
    color: var(--ef-white);
    border-color: var(--ef-primary);
}

.ef-btn--primary:hover {
    background: transparent;
    color: var(--ef-primary);
}

.ef-btn--outline {
    background: transparent;
    color: var(--ef-primary);
    border-color: var(--ef-primary);
}

.ef-btn--outline:hover {
    background: var(--ef-primary);
    color: var(--ef-white);
}

.ef-btn--accent {
    background: var(--ef-accent);
    color: var(--ef-white);
    border-color: var(--ef-accent);
}

.ef-btn--accent:hover {
    background: var(--ef-accent-dark);
    border-color: var(--ef-accent-dark);
    color: var(--ef-white);
}

.ef-btn--white {
    background: var(--ef-white);
    color: var(--ef-primary);
    border-color: var(--ef-white);
}

.ef-btn--white:hover {
    background: transparent;
    color: var(--ef-white);
    border-color: var(--ef-white);
}

.ef-btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.7rem;
}

.ef-btn--lg {
    padding: 1.125rem 3.5rem;
    font-size: 0.85rem;
}

/* ============================================
   HEADER
============================================ */
.ef-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--ef-white);
    transition: var(--ef-transition);
}

.ef-header--scrolled {
    box-shadow: var(--ef-shadow-sm);
}

.ef-header--transparent {
    background: transparent;
}

.ef-header--transparent.ef-header--scrolled {
    background: var(--ef-white);
}

/* Top Bar */
.ef-topbar {
    background: var(--ef-primary);
    color: var(--ef-white);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    letter-spacing: 0.05em;
    text-align: center;
    transition: var(--ef-transition);
}

.ef-topbar a {
    color: var(--ef-white);
    text-decoration: underline;
}

.ef-topbar a:hover {
    color: var(--ef-accent);
}

.ef-header--scrolled .ef-topbar {
    transform: translateY(-100%);
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Main Header */
.ef-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ef-header-height);
    padding: 0 0.75rem;
    max-width: var(--ef-container-width);
    margin: 0 auto;
}

.ef-header__center,
.ef-header__right {
    display: flex;
    align-items: center;
    gap: var(--ef-spacing-md);
}

.ef-header__center {
    flex: 1;
    justify-content: center;
}

.ef-header__right {
    justify-content: flex-end;
}

.ef-header__logo {
    flex: 0 0 auto;
}

.ef-header__logo a {
    display: flex;
    align-items: center;
}

.ef-header__logo img {
    max-height: 50px;
    width: auto;
}

.ef-header__logo .ef-site-title {
    font-family: var(--ef-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ef-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ef-header--transparent .ef-site-title {
    color: var(--ef-primary);
}

.ef-header--transparent.ef-header--scrolled .ef-site-title {
    color: var(--ef-primary);
}

/* Navigation */
.ef-nav {
    display: flex;
    align-items: center;
}

.ef-nav__list {
    display: flex;
    align-items: center;
    gap: var(--ef-spacing-md);
}

.ef-nav__list li {
    position: relative;
}

.ef-nav__list > li > a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ef-primary);
    padding: 0.5rem 0;
    position: relative;
}

.ef-header--transparent .ef-nav__list > li > a {
    color: var(--ef-primary);
}

.ef-header--transparent.ef-header--scrolled .ef-nav__list > li > a {
    color: var(--ef-primary);
}

.ef-nav__list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ef-accent);
    transition: var(--ef-transition);
}

.ef-nav__list > li > a:hover::after,
.ef-nav__list > li.current-menu-item > a::after {
    width: 100%;
}

/* Dropdown */
.ef-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 220px;
    background: var(--ef-white);
    box-shadow: var(--ef-shadow-md);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ef-transition);
    z-index: 100;
}

.ef-nav__list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ef-nav__list .sub-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--ef-text);
}

.ef-nav__list .sub-menu a:hover {
    background: var(--ef-bg-light);
    color: var(--ef-accent);
}

/* Header Icons */
.ef-header__icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ef-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--ef-primary);
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.ef-header--transparent .ef-header__icon {
    color: var(--ef-primary);
}

.ef-header--transparent.ef-header--scrolled .ef-header__icon {
    color: var(--ef-primary);
}

.ef-header__icon:hover {
    color: var(--ef-accent);
}

.ef-header__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.ef-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--ef-accent);
    color: var(--ef-white);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Toggle */
.ef-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.ef-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ef-primary);
    transition: var(--ef-transition);
}

.ef-header--transparent .ef-menu-toggle span {
    background: var(--ef-primary);
}

.ef-header--transparent.ef-header--scrolled .ef-menu-toggle span {
    background: var(--ef-primary);
}

.ef-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ef-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ef-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
============================================ */
.ef-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ef-primary);
}

.ef-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}

.ef-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ef-bg-overlay);
}

.ef-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--ef-white);
    padding: var(--ef-spacing-md);
    max-width: 800px;
}

.ef-hero__subtitle {
    font-family: var(--ef-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ef-accent);
    margin-bottom: var(--ef-spacing-sm);
}

.ef-hero__title {
    font-family: var(--ef-font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--ef-white);
    line-height: 1.1;
    margin-bottom: var(--ef-spacing-md);
}

.ef-hero__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto var(--ef-spacing-md);
    line-height: 1.8;
}

.ef-hero__actions {
    display: flex;
    gap: var(--ef-spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CATEGORIES GRID
============================================ */
.ef-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ef-spacing-sm);
}

.ef-category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: var(--ef-radius-sm);
}

.ef-category-card--wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

.ef-category-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--ef-transition-slow);
}

.ef-category-card:hover .ef-category-card__img {
    transform: scale(1.05);
}

.ef-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--ef-spacing-md);
    color: var(--ef-white);
}

.ef-category-card__title {
    font-family: var(--ef-font-heading);
    font-size: 1.5rem;
    color: var(--ef-white);
    margin-bottom: 0.25rem;
}

.ef-category-card__count {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.ef-category-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ============================================
   PRODUCTS GRID
============================================ */
.ef-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ef-spacing-md);
}

.ef-product-card {
    position: relative;
}

.ef-card-clickable {
    cursor: pointer;
}

.ef-card-clickable:focus-visible {
    outline: 2px solid var(--ef-primary);
    outline-offset: 3px;
}

.ef-product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--ef-bg-light);
    border-radius: var(--ef-radius-sm);
    margin-bottom: var(--ef-spacing-sm);
}

.ef-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ef-transition-slow);
}

.ef-product-card:hover .ef-product-card__image img {
    transform: scale(1.05);
}

.ef-product-card__actions {
    position: absolute;
    bottom: var(--ef-spacing-sm);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--ef-transition);
}

.ef-product-card:hover .ef-product-card__actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ef-product-card__action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ef-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--ef-shadow-sm);
    transition: var(--ef-transition);
    color: var(--ef-primary);
}

.ef-product-card__action-btn:hover {
    background: var(--ef-primary);
    color: var(--ef-white);
}

.ef-product-card__action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.ef-product-card__badge {
    position: absolute;
    top: var(--ef-spacing-sm);
    left: var(--ef-spacing-sm);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--ef-radius-sm);
}

.ef-product-card__badge--sale {
    background: var(--ef-error);
    color: var(--ef-white);
}

.ef-product-card__badge--new {
    background: var(--ef-primary);
    color: var(--ef-white);
}

.ef-product-card__info {
    text-align: center;
}

.ef-product-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ef-text-light);
    margin-bottom: 0.25rem;
}

.ef-product-card__title {
    font-family: var(--ef-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ef-primary);
    margin-bottom: 0.5rem;
}

.ef-product-card__title a {
    color: inherit;
}

.ef-product-card__title a:hover {
    color: var(--ef-accent);
}

.ef-product-card__price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ef-primary);
}

.ef-product-card__price del {
    color: var(--ef-text-light);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.ef-product-card__price ins {
    text-decoration: none;
    color: var(--ef-error);
}

/* ============================================
   FEATURED BANNER / LOOKBOOK
============================================ */
.ef-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ef-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ef-bg-overlay);
}

.ef-banner__content {
    position: relative;
    z-index: 2;
    color: var(--ef-white);
    max-width: 500px;
}

.ef-banner__content h2 {
    color: var(--ef-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--ef-spacing-sm);
}

.ef-banner__content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--ef-spacing-md);
    font-size: 1.05rem;
}

/* Split Banner */
.ef-split-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ef-spacing-sm);
}

.ef-split-banner__item {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: var(--ef-radius-sm);
}

.ef-split-banner__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--ef-transition);
}

.ef-split-banner__item:hover::after {
    background: rgba(0, 0, 0, 0.45);
}

.ef-split-banner__content {
    position: relative;
    z-index: 2;
    color: var(--ef-white);
    padding: var(--ef-spacing-md);
}

.ef-split-banner__content h3 {
    color: var(--ef-white);
    font-size: 2rem;
    margin-bottom: var(--ef-spacing-sm);
}

/* ============================================
   FEATURES / USP STRIP
============================================ */
.ef-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ef-spacing-md);
    text-align: center;
    border-top: 1px solid var(--ef-border);
    border-bottom: 1px solid var(--ef-border);
    padding: var(--ef-spacing-lg) 0;
}

.ef-feature {
    padding: var(--ef-spacing-sm);
}

.ef-feature__icon {
    margin-bottom: var(--ef-spacing-sm);
    color: var(--ef-accent);
}

.ef-feature__icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    margin: 0 auto;
}

.ef-feature__title {
    font-family: var(--ef-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.ef-feature__text {
    color: var(--ef-text-light);
    font-size: 0.85rem;
}

/* ============================================
   NEWSLETTER
============================================ */
.ef-newsletter {
    padding: var(--ef-spacing-xl) 0;
    background:
        radial-gradient(75% 120% at 0% 0%, rgba(212, 175, 55, 0.14), transparent 68%),
        linear-gradient(180deg, #ffffff 0%, #f7f3ef 100%);
    color: var(--ef-primary);
}

.ef-newsletter--home {
    position: relative;
    overflow: visible;
}

.ef-newsletter--home::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * clamp(10px, 2.4vw, 20px));
    height: clamp(80px, 11vw, 132px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        #fbf8f4 0%,
        rgba(251, 248, 244, 0.88) 46%,
        rgba(252, 250, 246, 0.42) 74%,
        rgba(255, 255, 255, 0) 100%
    );
}

.ef-newsletter--home > .ef-container {
    position: relative;
    z-index: 2;
}

.ef-newsletter__panel {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #e8dfd6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(58, 43, 34, 0.08);
    padding: clamp(1.4rem, 3.6vw, 2.35rem);
    text-align: center;
}

.ef-newsletter__eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: #8e7962;
    font-weight: 700;
}

.ef-newsletter h2 {
    color: var(--ef-primary);
    margin-bottom: 0.5rem;
}

.ef-newsletter--home .ef-newsletter__panel h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--ef-accent);
    margin: var(--ef-spacing-sm) auto 0;
}

.ef-newsletter__lead {
    color: #62584f;
    margin-bottom: 1.1rem;
}

.ef-newsletter--home .ef-newsletter__panel h2 {
    max-width: 700px;
    margin: 0 auto 0.65rem;
    font-size: clamp(1.08rem, 2vw, 1.48rem);
    line-height: 1.34;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.ef-newsletter--home .ef-newsletter__lead {
    max-width: 740px;
    margin: 0 auto 1.2rem;
    font-size: clamp(0.9rem, 1.35vw, 1rem);
    line-height: 1.62;
}

.ef-newsletter__form {
    display: flex;
    max-width: 780px;
    margin: 0 auto;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.ef-newsletter__form input[type="email"],
.ef-newsletter__form input[type="text"],
.ef-newsletter__form input[type="tel"] {
    flex: 1 1 220px;
    min-height: 50px;
    padding: 0.95rem 1rem;
    border: 1px solid #d7ccc0;
    border-radius: 12px;
    background: #fff;
    color: var(--ef-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--ef-transition);
}

.ef-newsletter__form input[type="email"]::placeholder,
.ef-newsletter__form input[type="text"]::placeholder,
.ef-newsletter__form input[type="tel"]::placeholder {
    color: #9a8f86;
}

.ef-newsletter__form input[type="email"]:focus,
.ef-newsletter__form input[type="text"]:focus,
.ef-newsletter__form input[type="tel"]:focus {
    border-color: #3a2b22;
    box-shadow: 0 0 0 3px rgba(58, 43, 34, 0.08);
}

.ef-newsletter__form button {
    min-height: 50px;
    padding: 0.9rem 1.45rem;
    background: #3a2b22;
    color: var(--ef-white);
    border: 1px solid #3a2b22;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--ef-transition);
}

.ef-newsletter__form button:hover {
    background: #231912;
    border-color: #231912;
}

.ef-newsletter__form--contact button {
    flex: 0 0 auto;
}

.ef-newsletter__status {
    max-width: 780px;
    margin: 0 auto 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ef-newsletter__status--success {
    background: #ebf9f1;
    border: 1px solid #b8e7ce;
    color: #1f6f48;
}

.ef-newsletter__status--error {
    background: #fff1f1;
    border: 1px solid #f0c0c0;
    color: #8f2b2b;
}

.ef-newsletter__hint {
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: #7b6f64;
    font-size: 0.88rem;
}

.ef-newsletter__contact-line {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #5b5249;
    font-size: 0.9rem;
}

.ef-newsletter__contact-line a {
    color: #3a2b22;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .ef-newsletter--home .ef-newsletter__panel h2 {
        font-size: 1.02rem;
        line-height: 1.42;
    }

    .ef-newsletter--home .ef-newsletter__lead {
        font-size: 0.9rem;
        line-height: 1.58;
    }
}

/* ============================================
   INSTAGRAM FEED
============================================ */
.ef-instagram {
    text-align: center;
}

.ef-instagram__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.ef-instagram__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.ef-instagram__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ef-transition);
}

.ef-instagram__item:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

/* ============================================
   FOOTER
============================================ */
.ef-footer {
    background: var(--ef-primary);
    color: rgba(255, 255, 255, 0.7);
}

.ef-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.ef-footer a:hover {
    color: var(--ef-accent);
}

.ef-footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--ef-spacing-lg);
    padding: var(--ef-spacing-xl) 0;
}

.ef-footer__brand .ef-site-title {
    font-family: var(--ef-font-heading);
    font-size: 1.5rem;
    color: var(--ef-white);
    margin-bottom: var(--ef-spacing-sm);
    display: block;
}

.ef-footer__brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: var(--ef-spacing-md);
}

.ef-footer__social {
    display: flex;
    gap: 1rem;
}

.ef-footer__social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ef-transition);
}

.ef-footer__social a:hover {
    border-color: var(--ef-accent);
    background: var(--ef-accent);
    color: var(--ef-white);
}

.ef-footer__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ef-footer__col h4 {
    color: var(--ef-white);
    font-family: var(--ef-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--ef-spacing-md);
}

.ef-footer__col ul li {
    margin-bottom: 0.75rem;
}

.ef-footer__col ul li a {
    font-size: 0.9rem;
}

.ef-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--ef-spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.ef-footer__payments {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ef-footer__payments img {
    height: 24px;
    opacity: 0.6;
}

/* ============================================
   BLOG / POSTS
============================================ */
.ef-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ef-spacing-md);
}

.ef-post-card {
    overflow: hidden;
}

.ef-post-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: var(--ef-radius-sm);
    margin-bottom: var(--ef-spacing-sm);
}

.ef-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ef-transition-slow);
}

.ef-post-card:hover .ef-post-card__image img {
    transform: scale(1.05);
}

.ef-post-card__meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ef-text-light);
    margin-bottom: 0.5rem;
}

.ef-post-card__meta a {
    color: var(--ef-accent);
}

.ef-post-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ef-post-card__title a:hover {
    color: var(--ef-accent);
}

.ef-post-card__excerpt {
    color: var(--ef-text-light);
    font-size: 0.9rem;
}

/* Single Post */
.ef-single-post {
    max-width: var(--ef-container-narrow);
    margin: 0 auto;
    padding-top: calc(var(--ef-header-height) + var(--ef-spacing-lg));
}

.ef-single-post__header {
    text-align: center;
    margin-bottom: var(--ef-spacing-lg);
    padding: var(--ef-spacing-lg) 0;
}

.ef-single-post__content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.ef-single-post__content p {
    margin-bottom: 1.5rem;
}

.ef-single-post__content img {
    border-radius: var(--ef-radius-sm);
    margin: var(--ef-spacing-md) 0;
}

.ef-single-post__content blockquote {
    border-left: 3px solid var(--ef-accent);
    padding-left: var(--ef-spacing-md);
    margin: var(--ef-spacing-md) 0;
    font-family: var(--ef-font-accent);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--ef-text-light);
}

/* ============================================
   PAGES
============================================ */
.ef-page-header {
    background: var(--ef-bg-light);
    text-align: center;
    padding: calc(var(--ef-header-height) + var(--ef-spacing-lg)) var(--ef-spacing-md) var(--ef-spacing-lg);
}

.ef-page-header h1 {
    margin-bottom: var(--ef-spacing-xs);
}

.ef-breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ef-text-light);
}

.ef-breadcrumbs a {
    color: var(--ef-text-light);
}

.ef-breadcrumbs a:hover {
    color: var(--ef-accent);
}

.ef-breadcrumbs .separator {
    color: var(--ef-border);
}

.ef-page-content {
    padding: var(--ef-spacing-xl) 0;
}

/* ============================================
   SIDEBAR
============================================ */
.ef-content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--ef-sidebar-width);
    gap: var(--ef-spacing-lg);
}

.ef-sidebar .widget {
    margin-bottom: var(--ef-spacing-md);
    padding-bottom: var(--ef-spacing-md);
    border-bottom: 1px solid var(--ef-border);
}

.ef-sidebar .widget:last-child {
    border-bottom: none;
}

.ef-sidebar .widget-title {
    font-family: var(--ef-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--ef-spacing-sm);
    padding-bottom: var(--ef-spacing-xs);
    border-bottom: 2px solid var(--ef-accent);
    display: inline-block;
}

.ef-sidebar .widget ul li {
    margin-bottom: 0.5rem;
}

.ef-sidebar .widget ul li a {
    color: var(--ef-text);
    font-size: 0.9rem;
}

.ef-sidebar .widget ul li a:hover {
    color: var(--ef-accent);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
============================================ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ef-spacing-md);
    margin-top: 1.25rem !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 0.8rem;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--ef-radius-sm);
    aspect-ratio: 3/4;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ef-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0 0.25rem;
    text-align: center;
}

.woocommerce ul.products li.product .price {
    text-align: center;
    color: var(--ef-primary);
    font-weight: 600;
}

.woocommerce ul.products li.product .price del {
    color: var(--ef-text-light);
    opacity: 0.7;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--ef-error);
    font-weight: 600;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--ef-primary) !important;
    color: var(--ef-white) !important;
    font-family: var(--ef-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--ef-primary) !important;
    transition: var(--ef-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce ul.products li.product .button:hover {
    background: transparent !important;
    color: var(--ef-primary) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background: var(--ef-accent) !important;
    border-color: var(--ef-accent) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
    background: var(--ef-accent-dark) !important;
    border-color: var(--ef-accent-dark) !important;
    color: var(--ef-white) !important;
}

.woocommerce span.onsale {
    background: var(--ef-error);
    color: var(--ef-white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--ef-radius-sm);
    padding: 0.25rem 0.75rem;
    min-height: auto;
    min-width: auto;
    line-height: 1.5;
}

/* Single Product */
.woocommerce div.product {
    padding-top: calc(var(--ef-header-height) + var(--ef-spacing-md));
}

.woocommerce div.product div.images {
    border-radius: var(--ef-radius-sm);
    overflow: hidden;
}

.woocommerce div.product .product_title {
    font-family: var(--ef-font-heading);
    font-size: 2rem;
}

.woocommerce div.product p.price {
    font-size: 1.5rem;
    color: var(--ef-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 var(--ef-spacing-md);
    border-bottom: 1px solid var(--ef-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
    padding: 0;
    margin: 0 var(--ef-spacing-md) 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--ef-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--ef-spacing-sm) 0;
    color: var(--ef-text-light);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--ef-primary);
    border-bottom: 2px solid var(--ef-accent);
}

/* Cart */
.woocommerce table.shop_table {
    border: 1px solid var(--ef-border);
    border-radius: 0;
}

.woocommerce table.shop_table th {
    font-family: var(--ef-font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    font-size: 0.9rem;
    transition: var(--ef-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--ef-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* Thank You */
.ef-thankyou-wrap {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.ef-thankyou-wrap .ef-thankyou-card {
    background: var(--ef-white);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--ef-shadow-sm);
}

.ef-thankyou-wrap .ef-thankyou-card--hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #fffefe 0%, #fbf7f2 100%);
}

.ef-thankyou-wrap .ef-thankyou-card--failed {
    border-color: #f2d8da;
    background: #fff9f9;
}

.ef-thankyou-wrap .ef-thankyou-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e8e3e;
    background: #eef8f1;
    margin-bottom: 0.85rem;
}

.ef-thankyou-wrap .ef-thankyou-icon svg {
    width: 28px;
    height: 28px;
}

.ef-thankyou-wrap .ef-thankyou-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    color: var(--ef-primary);
}

.ef-thankyou-wrap .ef-thankyou-subtitle {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.ef-thankyou-wrap .ef-thankyou-text {
    margin: 0.55rem auto 0;
    color: var(--ef-text-light);
    max-width: 640px;
}

.ef-thankyou-wrap .ef-thankyou-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ef-thankyou-wrap .ef-thankyou-meta__item {
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
    padding: 0.85rem 0.95rem;
    background: #fffdfb;
}

.ef-thankyou-wrap .ef-thankyou-meta__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ef-text-light);
}

.ef-thankyou-wrap .ef-thankyou-meta__value {
    font-size: 0.96rem;
    color: var(--ef-primary);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.ef-thankyou-wrap .ef-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.ef-thankyou-wrap .ef-thankyou-actions .ef-btn {
    min-height: 44px;
}

.ef-thankyou-wrap .woocommerce-order-details,
.ef-thankyou-wrap .woocommerce-customer-details {
    margin-top: 0.4rem;
    padding: 1.3rem;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-white);
    box-shadow: var(--ef-shadow-sm);
}

.ef-thankyou-wrap .woocommerce-order-details .woocommerce-order-details__title,
.ef-thankyou-wrap .woocommerce-customer-details .woocommerce-column__title {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.ef-thankyou-wrap .woocommerce-order-details table.shop_table,
.ef-thankyou-wrap .woocommerce-customer-details address {
    margin: 0;
}

.ef-thankyou-wrap .woocommerce-customer-details address {
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
    background: #fffdfb;
    padding: 1rem;
}

.woocommerce-order .woocommerce-order-overview.order_details {
    list-style: none;
}

@media (max-width: 767px) {
    .ef-thankyou-wrap .ef-thankyou-card {
        padding: 1rem;
    }

    .ef-thankyou-wrap .ef-thankyou-card--hero {
        padding: 1.4rem 1rem;
    }

    .ef-thankyou-wrap .ef-thankyou-meta {
        grid-template-columns: 1fr;
    }

    .ef-thankyou-wrap .ef-thankyou-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ef-thankyou-wrap .ef-thankyou-actions .ef-btn {
        width: 100%;
    }
}

/* ============================================
   SEARCH OVERLAY
============================================ */
.ef-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--ef-transition);
}

.ef-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ef-search-overlay__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--ef-primary);
    line-height: 1;
}

.ef-search-overlay__form {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--ef-spacing-md);
}

.ef-search-overlay__form input[type="search"] {
    width: 100%;
    font-family: var(--ef-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    border: none;
    border-bottom: 2px solid var(--ef-primary);
    padding: var(--ef-spacing-sm) 0;
    background: transparent;
    outline: none;
    text-align: center;
    color: var(--ef-primary);
}

.ef-search-overlay__form input[type="search"]::placeholder {
    color: var(--ef-text-light);
}

/* ============================================
   PAGINATION
============================================ */
.ef-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--ef-spacing-lg) 0;
}

.ef-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ef-border);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--ef-transition);
}

.ef-pagination .page-numbers.current,
.ef-pagination .page-numbers:hover {
    background: var(--ef-primary);
    color: var(--ef-white);
    border-color: var(--ef-primary);
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--ef-primary);
    color: var(--ef-white);
}

/* ============================================
   404 PAGE
============================================ */
.ef-404 {
    text-align: center;
    padding: calc(var(--ef-header-height) + var(--ef-spacing-xxl)) var(--ef-spacing-md) var(--ef-spacing-xxl);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ef-404__number {
    font-family: var(--ef-font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: var(--ef-bg-light);
    line-height: 1;
}

.ef-404 h1 {
    font-size: 2rem;
    margin-bottom: var(--ef-spacing-sm);
}

.ef-404 p {
    color: var(--ef-text-light);
    margin-bottom: var(--ef-spacing-md);
    max-width: 400px;
}

/* ============================================
   FORMS
============================================ */
.ef-form input[type="text"],
.ef-form input[type="email"],
.ef-form input[type="password"],
.ef-form input[type="search"],
.ef-form input[type="tel"],
.ef-form input[type="url"],
.ef-form textarea,
.ef-form select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    font-size: 0.9rem;
    transition: var(--ef-transition);
    background: var(--ef-white);
}

.ef-form input:focus,
.ef-form textarea:focus,
.ef-form select:focus {
    border-color: var(--ef-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* ============================================
   CUSTOM SINGLE PRODUCT PAGE
============================================ */
.ef-single-product {
    padding-top: 0;
}

.ef-sp-breadcrumbs {
    padding: var(--ef-spacing-sm) 0;
    border-bottom: 1px solid var(--ef-border);
}

.ef-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ef-text-light);
    flex-wrap: wrap;
}

.ef-breadcrumb a {
    color: var(--ef-text-light);
    transition: var(--ef-transition);
}

.ef-breadcrumb a:hover {
    color: var(--ef-accent);
}

.ef-breadcrumb__sep {
    color: var(--ef-border);
}

.ef-breadcrumb__current {
    color: var(--ef-primary);
    font-weight: 500;
}

/* Product Layout */
.ef-sp-main {
    padding: var(--ef-spacing-lg) 0;
}

.ef-sp-main .ef-container {
    max-width: 1480px;
    padding: 0 0.75rem;
}

.ef-sp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ef-spacing-xl);
    align-items: start;
    min-width: 0;
}

/* Both grid children must not exceed their column */
.ef-sp-layout > * {
    min-width: 0;
    max-width: 100%;
}

.ef-sp-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    z-index: 2;
}

/* Gallery */
.ef-sp-gallery {
    position: sticky;
    top: calc(var(--ef-header-height) + var(--ef-spacing-md));
    min-width: 0;
    overflow: hidden;
}

.ef-sp-gallery__main {
    position: relative;
    border-radius: var(--ef-radius-sm);
    overflow: hidden;
    background: var(--ef-bg-light);
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3/4;
}

.ef-sp-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ef-sp-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    z-index: 2;
}

.ef-sp-badge--sale {
    background: var(--ef-error);
    color: var(--ef-white);
}

.ef-sp-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ef-border) transparent;
}

.ef-sp-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}
.ef-sp-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--ef-border);
    border-radius: 4px;
}

.ef-sp-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
    border-radius: var(--ef-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--ef-bg-light);
    padding: 0;
    transition: var(--ef-transition);
}

.ef-sp-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ef-sp-gallery__thumb.active,
.ef-sp-gallery__thumb:hover {
    border-color: var(--ef-accent);
}

.ef-sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.ef-sp-info {
    padding: var(--ef-spacing-sm) 0;
}

.ef-sp-category {
    display: none;
}

.ef-sp-title {
    font-family: var(--ef-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--ef-primary);
}

.ef-sp-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 1rem;
}

.ef-sp-price del {
    font-size: 1.1rem;
    color: var(--ef-text-light);
    opacity: 0.6;
    margin-right: 0.5rem;
}

.ef-sp-price ins {
    text-decoration: none;
    color: #d4af37;
}

.ef-sp-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ef-text-light);
    margin-bottom: 0;
}

.ef-sp-divider {
    height: 1px;
    background: var(--ef-border);
    margin: 1.5rem 0;
}

/* Size Selector */
.ef-sp-option {
    margin-bottom: 1.25rem;
}

.ef-sp-option__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ef-sp-option__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ef-primary);
}

.ef-sp-option__selected {
    font-size: 0.85rem;
    color: var(--ef-accent);
    font-weight: 500;
}

.ef-sp-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ef-sp-size-btn {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    background: var(--ef-white);
    color: var(--ef-primary);
    cursor: pointer;
    padding: 0 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

.ef-sp-size-btn:hover {
    border-color: var(--ef-primary);
}

.ef-sp-size-btn.active {
    background: var(--ef-primary);
    border-color: var(--ef-primary);
    color: var(--ef-white);
}

.ef-sp-size-btn.is-out-of-stock {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #e2b2b6;
    color: #7a5b5f;
    background: #fff8f8;
}

.ef-sp-size-btn.is-out-of-stock:hover {
    border-color: #e2b2b6;
}

.ef-sp-size-btn.is-out-of-stock::before,
.ef-sp-size-btn.is-out-of-stock::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: #d32439;
    transform-origin: center;
    pointer-events: none;
}

.ef-sp-size-btn.is-out-of-stock::before {
    transform: translateY(-50%) rotate(32deg);
}

.ef-sp-size-btn.is-out-of-stock::after {
    transform: translateY(-50%) rotate(-32deg);
}

/* Color Selector */
.ef-sp-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ef-sp-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    padding: 3px;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.ef-sp-color-btn__swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--swatch-color);
}

.ef-sp-color-btn--bordered .ef-sp-color-btn__swatch {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ef-sp-color-btn:hover {
    border-color: var(--ef-text-light);
}

.ef-sp-color-btn.active {
    border-color: var(--ef-primary);
    box-shadow: 0 0 0 1px var(--ef-primary);
}

.ef-sp-color-btn.is-out-of-stock {
    opacity: 0.55;
    cursor: not-allowed;
}

.ef-sp-color-btn.is-out-of-stock::before,
.ef-sp-color-btn.is-out-of-stock::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: #d32439;
    transform-origin: center;
    pointer-events: none;
    z-index: 2;
}

.ef-sp-color-btn.is-out-of-stock::before {
    transform: translateY(-50%) rotate(45deg);
}

.ef-sp-color-btn.is-out-of-stock::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Order Buttons */
.ef-sp-order {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ef-sp-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid;
    border-radius: var(--ef-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.ef-sp-order-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.ef-sp-order-btn--whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--ef-white);
}

.ef-sp-order-btn--whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    color: var(--ef-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ef-sp-order-btn--whatsapp svg {
    fill: currentColor;
}

.ef-sp-order-btn--phone {
    background: var(--ef-white);
    border-color: var(--ef-primary);
    color: var(--ef-primary);
}

.ef-sp-order-btn--phone svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ef-sp-order-btn--phone:hover {
    background: var(--ef-primary);
    color: var(--ef-white);
}

/* Product Meta */
.ef-sp-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ef-border);
}

.ef-sp-meta__item {
    font-size: 0.8rem;
    color: var(--ef-text-light);
    margin-bottom: 0.25rem;
}

/* Order Form */
.ef-sp-order-form {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: #f9f9f9;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    box-shadow: 0 10px 28px rgba(58, 43, 34, 0.08);
    width: 100%;
    max-width: none;
}
.ef-sp-order-form__title {
    margin: 0 0 1rem;
    color: var(--ef-primary);
    font-size: clamp(0.9rem, 1.2vw, 0.98rem);
    font-weight: 500;
    line-height: 1.5;
}
.ef-order-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ef-order-form input[type="text"],
.ef-order-form input[type="tel"] {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    background: var(--ef-white);
    color: var(--ef-primary);
    transition: border-color 0.2s;
}
.ef-order-form input[type="text"]:focus,
.ef-order-form input[type="tel"]:focus {
    border-color: var(--ef-accent);
    outline: none;
}
.ef-sp-order-btn--submit {
    background: var(--ef-primary);
    border-color: var(--ef-primary);
    color: var(--ef-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    padding: 0.88rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 8px 18px rgba(58, 43, 34, 0.16);
}
.ef-sp-order-btn--submit:hover {
    background: #2e221b;
    border-color: #2e221b;
    color: var(--ef-white);
}
.ef-order-success {
    color: var(--ef-success);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}
.ef-order-error {
    color: var(--ef-error);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Livraison Popup Button */
.ef-livraison-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    color: var(--ef-text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.ef-livraison-trigger:hover {
    border-color: var(--ef-primary);
    background: var(--ef-bg-light);
}

.ef-livraison-trigger svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* Livraison Popup Modal */
.ef-livraison-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ef-livraison-popup.active {
    opacity: 1;
    visibility: visible;
}

.ef-livraison-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ef-livraison-popup__content {
    position: relative;
    background: var(--ef-white);
    width: 90%;
    max-width: 620px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.8rem;
    border-radius: var(--ef-radius-lg);
    border: 1px solid var(--ef-border);
    z-index: 2;
}

.ef-livraison-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ef-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.ef-livraison-popup__close:hover {
    color: var(--ef-primary);
}

.ef-livraison-popup__title {
    font-family: var(--ef-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ef-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ef-livraison-popup__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ef-livraison-popup__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.ef-livraison-popup__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ef-accent-dark);
}

.ef-livraison-popup__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.ef-livraison-popup__item-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ef-primary);
    margin-bottom: 0.2rem;
}

.ef-livraison-popup__item-text {
    font-size: 0.88rem;
    color: var(--ef-text-light);
    line-height: 1.6;
    margin: 0;
}

.ef-sp-meta__label {
    font-weight: 600;
    color: var(--ef-primary);
}

/* Tabs */
.ef-sp-tabs-section {
    padding: var(--ef-spacing-lg) 0;
    background: var(--ef-bg-light);
}

.ef-sp-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ef-border);
    margin-bottom: var(--ef-spacing-md);
}

.ef-sp-tab-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: var(--ef-text-light);
    transition: var(--ef-transition);
}

.ef-sp-tab-btn:hover {
    color: var(--ef-primary);
}

.ef-sp-tab-btn.active {
    color: var(--ef-primary);
    border-bottom-color: var(--ef-accent);
}

.ef-sp-tab-panel {
    display: none;
}

.ef-sp-tab-panel.active {
    display: block;
}

.ef-sp-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ef-text);
    max-width: 800px;
}

.ef-sp-description p {
    margin-bottom: 1rem;
}

.ef-sp-details-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
}

.ef-sp-details-table tr {
    border-bottom: 1px solid var(--ef-border);
}

.ef-sp-details-table th,
.ef-sp-details-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    text-align: left;
}

.ef-sp-details-table th {
    font-weight: 600;
    color: var(--ef-primary);
    width: 35%;
}

.ef-sp-details-table td {
    color: var(--ef-text-light);
}

/* Related Products */
.ef-sp-related {
    padding: var(--ef-spacing-lg) 0;
}

.ef-sp-related .ef-section-header h2 {
    font-size: 1.75rem;
}

/* ============================================
   LOADING / ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ef-animate {
    opacity: 0;
}

.ef-animate.ef-visible {
    animation: fadeInUp 0.6s ease forwards;
}

.ef-animate--delay-1 { animation-delay: 0.1s; }
.ef-animate--delay-2 { animation-delay: 0.2s; }
.ef-animate--delay-3 { animation-delay: 0.3s; }
.ef-animate--delay-4 { animation-delay: 0.4s; }

/* ============================================
   LIVRAISON ET RETOUR
============================================ */
.ef-livraison {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background: linear-gradient(180deg, #fcfaf8 0%, #f6f2ee 100%);
}

.ef-livraison__title {
    text-align: center;
    font-family: var(--ef-font-heading, 'Playfair Display', serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--ef-primary);
    margin-bottom: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 0.02em;
}

.ef-livraison__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--ef-accent);
    margin: var(--ef-spacing-sm) auto 0;
}

.ef-livraison__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ef-livraison__card {
    background: var(--ef-white);
    border-radius: 16px;
    border: 1px solid var(--ef-border);
    padding: 1.25rem 1.15rem;
    text-align: center;
    box-shadow: 0 14px 32px rgba(58, 43, 34, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ef-livraison__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(58, 43, 34, 0.12);
}

.ef-livraison__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f1e8;
    border-radius: 50%;
    color: var(--ef-primary);
}

.ef-livraison__icon svg {
    width: 20px;
    height: 20px;
}

.ef-livraison__card-title {
    font-family: var(--ef-font-heading, 'Playfair Display', serif);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ef-primary);
    margin-bottom: 0.45rem;
}

.ef-livraison__card-text {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--ef-text-light);
    margin: 0;
}

.ef-livraison__card--refund {
    border-color: rgba(212, 175, 55, 0.5);
}

.ef-livraison__card--refund .ef-livraison__icon {
    background: rgba(212, 175, 55, 0.16);
    color: #a67e12;
}

.ef-livraison__card--refund .ef-livraison__card-title {
    color: #a67e12;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .ef-footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .ef-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-category-card--wide {
        grid-column: span 1;
    }

    .ef-sp-layout {
        gap: var(--ef-spacing-lg);
    }

    .ef-livraison__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --ef-header-height: 60px;
    }

    .ef-menu-toggle {
        display: flex;
    }

    .ef-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--ef-white);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--ef-header-height) + var(--ef-spacing-md)) var(--ef-spacing-md) var(--ef-spacing-md);
        transition: var(--ef-transition);
        z-index: 999;
        box-shadow: var(--ef-shadow-lg);
        overflow-y: auto;
    }

    .ef-nav.active {
        right: 0;
    }

    .ef-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .ef-nav__list > li > a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--ef-border);
        color: var(--ef-primary) !important;
    }

    .ef-nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 var(--ef-spacing-sm);
    }

    .ef-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--ef-transition);
    }

    .ef-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .ef-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--ef-spacing-sm) !important;
    }

    .ef-posts-grid {
        grid-template-columns: 1fr;
    }

    .ef-split-banner {
        grid-template-columns: 1fr;
    }

    .ef-content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .ef-footer__main {
        grid-template-columns: 1fr;
        gap: var(--ef-spacing-md);
    }

    .ef-footer__bottom {
        flex-direction: column;
        gap: var(--ef-spacing-sm);
        text-align: center;
    }

    .ef-instagram__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ef-categories-grid {
        grid-template-columns: 1fr;
    }

    .ef-newsletter__form {
        flex-direction: column;
    }

    .ef-features {
        grid-template-columns: 1fr 1fr;
        gap: var(--ef-spacing-sm);
    }

    .ef-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .ef-sp-layout {
        grid-template-columns: 1fr;
        gap: var(--ef-spacing-md);
    }

    .ef-sp-gallery {
        position: static;
    }

    .ef-header__center {
        display: none;
    }

    .ef-livraison__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ef-livraison {
        padding: 24px 0 20px;
    }

    .ef-livraison__title {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .ef-livraison__card {
        padding: 16px 14px;
    }
}

@media (max-width: 480px) {
    .ef-features {
        grid-template-columns: 1fr;
    }

    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .ef-header__icons {
        gap: 0.75rem;
    }
}












/* ============================================
   RESPONSIVE
============================================ */

/* ---------- Tablet landscape (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .ef-footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .ef-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-category-card--wide {
        grid-column: span 1;
    }

    /* Single product */
    .ef-sp-layout {
        gap: var(--ef-spacing-lg);
    }

    .ef-sp-order-form {
        max-width: 100%;
    }

    .ef-livraison__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Tablet portrait (≤ 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --ef-header-height: 60px;
    }

    /* --- Navigation --- */
    .ef-menu-toggle {
        display: flex;
    }

    .ef-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--ef-white);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--ef-header-height) + var(--ef-spacing-md)) var(--ef-spacing-md) var(--ef-spacing-md);
        transition: var(--ef-transition);
        z-index: 999;
        box-shadow: var(--ef-shadow-lg);
        overflow-y: auto;
    }

    .ef-nav.active {
        right: 0;
    }

    .ef-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .ef-nav__list > li > a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--ef-border);
        color: var(--ef-primary) !important;
    }

    .ef-nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 var(--ef-spacing-sm);
    }

    .ef-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--ef-transition);
    }

    .ef-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .ef-header__center {
        display: none;
    }

    /* --- Hero --- */
    .ef-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .ef-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    /* --- Grids --- */
    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--ef-spacing-sm) !important;
    }

    .ef-posts-grid {
        grid-template-columns: 1fr;
    }

    .ef-split-banner {
        grid-template-columns: 1fr;
    }

    .ef-content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .ef-footer__main {
        grid-template-columns: 1fr;
        gap: var(--ef-spacing-md);
    }

    .ef-footer__bottom {
        flex-direction: column;
        gap: var(--ef-spacing-sm);
        text-align: center;
    }

    .ef-instagram__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ef-categories-grid {
        grid-template-columns: 1fr;
    }

    .ef-newsletter__form {
        flex-direction: column;
    }

    .ef-features {
        grid-template-columns: 1fr 1fr;
        gap: var(--ef-spacing-sm);
    }

    /* --- Single Product: Stack to 1 column --- */
    .ef-sp-main {
        padding: var(--ef-spacing-md) 0;
    }

      /* --- Single Product --- */
    .ef-sp-layout {
        grid-template-columns: 1fr;
        gap: var(--ef-spacing-md);
    }

    .ef-sp-gallery {
        position: static;
    }

    .ef-sp-gallery__main {
        border-radius: 0;
        aspect-ratio: 3/4;
        width: 100%;
        max-width: 100%;
    }

    .ef-sp-gallery__thumbs {
        gap: 0.5rem;
        padding: 0 var(--ef-spacing-sm);
    }

    .ef-sp-gallery__thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 80px;
    }

    .ef-sp-info {
        padding: 0 var(--ef-spacing-sm);
    }

    .ef-sp-title {
        font-size: 1.5rem;
    }

    .ef-sp-price {
        font-size: 1.25rem;
    }

    .ef-sp-size-btn {
        min-width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }

    .ef-sp-color-btn {
        width: 36px;
        height: 36px;
    }

    .ef-sp-order-form {
        max-width: 100%;
        padding: 1.25rem 1rem;
        margin: 1.5rem 0 1rem;
    }

    .ef-sp-order-btn--submit {
        font-size: 0.9rem;
    }

    .ef-livraison-popup__content {
        width: 95%;
        padding: 1.2rem;
    }

    .ef-livraison-popup__title {
        font-size: 1.25rem;
    }

    .ef-sp-tabs__nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ef-sp-tab-btn {
        white-space: nowrap;
        font-size: 0.78rem;
    }

    /* --- Livraison: stack to 1 column, horizontal card layout --- */
    .ef-livraison {
        padding: 24px 0 20px;
    }

    .ef-livraison__title {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .ef-livraison__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ef-livraison__card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 14px 16px;
    }

    .ef-livraison__icon {
        margin: 0;
        flex-shrink: 0;
    }

    .ef-livraison__card-title {
        margin-bottom: 2px;
    }

    .ef-livraison__card-text {
        font-size: 0.75rem;
    }
}

/* ---------- Small phones (≤ 480px) ---------- */
@media (max-width: 480px) {
    .ef-features {
        grid-template-columns: 1fr;
    }

    .ef-products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .ef-header__icons {
        gap: 0.75rem;
    }

    /* Gallery goes full-bleed */
    .ef-sp-gallery__main {
        margin-left: calc(-1 * var(--ef-spacing-md));
        margin-right: calc(-1 * var(--ef-spacing-md));
        border-radius: 0;
    }

    .ef-sp-gallery__thumb {
        flex: 0 0 50px;
        width: 50px;
        height: 66px;
    }

    .ef-sp-info {
        padding: 0;
    }

    .ef-sp-title {
        font-size: 1.25rem;
    }

    .ef-sp-price {
        font-size: 1.15rem;
    }

    .ef-sp-size-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .ef-sp-color-btn {
        width: 32px;
        height: 32px;
    }

    .ef-sp-order-form {
        padding: 1rem 0.75rem;
        margin: 1rem 0;
    }

    .ef-order-form__fields {
        gap: 0.75rem;
    }

    .ef-order-form input[type="text"],
    .ef-order-form input[type="tel"] {
        font-size: 0.9rem;
        padding: 0.65rem 0.75rem;
    }

    .ef-sp-order-btn--submit {
        font-size: 0.9rem;
    }

    .ef-livraison-popup__item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ef-livraison-popup__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .ef-livraison-popup__icon svg {
        width: 20px;
        height: 20px;
    }

    .ef-livraison {
        padding: 20px 0 16px;
    }

    .ef-livraison__title {
        font-size: 1rem;
    }

    .ef-livraison__card {
        padding: 12px 14px;
    }

    .ef-livraison__card-text {
        font-size: 0.72rem;
    }
}















/* ============================================
   PRODUCT GALLERY SLIDER
============================================ */
.ef-sp-gallery {
    position: sticky;
    top: calc(var(--ef-header-height) + var(--ef-spacing-md));
    min-width: 0;
    overflow: hidden;
}

/* Slider container */
.ef-sp-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--ef-radius-sm);
    background: var(--ef-bg-light);
    aspect-ratio: 3/4;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.ef-sp-slider.is-dragging {
    cursor: grabbing;
}

/* Track holds all slides side by side */
.ef-sp-slider__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ef-sp-slider.is-dragging .ef-sp-slider__track {
    transition: none;
}

/* Each slide */
.ef-sp-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ef-sp-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Badge stays on top */
.ef-sp-slider .ef-sp-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    pointer-events: none;
}

/* ---- Arrows ---- */
.ef-sp-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(58, 43, 34, 0.15);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #3a2b22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.78;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ef-sp-slider:hover .ef-sp-slider__arrow {
    opacity: 0.96;
}

.ef-sp-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-50%) scale(1.03);
}

.ef-sp-slider__arrow--prev {
    left: 12px;
}

.ef-sp-slider__arrow--next {
    right: 12px;
}

.ef-sp-slider__arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Dots ---- */
.ef-sp-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
}

.ef-sp-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ef-sp-slider__dot.active {
    background: var(--ef-white);
    width: 20px;
    border-radius: 4px;
}

/* ---- Thumbnails ---- */
.ef-sp-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ef-border) transparent;
}

.ef-sp-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.ef-sp-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--ef-border);
    border-radius: 4px;
}

.ef-sp-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
    border-radius: var(--ef-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--ef-bg-light);
    padding: 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.ef-sp-gallery__thumb.active {
    border-color: var(--ef-primary);
    opacity: 1;
}

.ef-sp-gallery__thumb:hover {
    opacity: 1;
}

.ef-sp-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Image counter (mobile) ---- */
.ef-sp-slider__counter {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
}

/* ============================================
   GALLERY RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .ef-sp-gallery {
        position: static;
    }

    .ef-sp-slider {
        border-radius: 0;
        aspect-ratio: 3/4;
    }

    /* Always show arrows on mobile (no hover) */
    .ef-sp-slider .ef-sp-slider__arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .ef-sp-slider__arrow--prev { left: 8px; }
    .ef-sp-slider__arrow--next { right: 8px; }

    .ef-sp-slider__arrow svg {
        width: 18px;
        height: 18px;
    }

    /* Show counter on mobile */
    .ef-sp-slider__counter {
        display: block;
    }

    /* Hide thumbnails on mobile — dots + swipe are enough */
    .ef-sp-gallery__thumbs {
        display: none;
    }

    .ef-sp-slider__dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .ef-sp-slider {
        margin-left: calc(-1 * var(--ef-spacing-md));
        margin-right: calc(-1 * var(--ef-spacing-md));
        width: calc(100% + var(--ef-spacing-md) * 2);
        max-width: none;
        border-radius: 0;
    }

    .ef-sp-slider__arrow {
        width: 32px;
        height: 32px;
    }

    .ef-sp-slider__arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   HOMEPAGE REDESIGN - OULKA
============================================ */
.ef-home-hero {
    position: relative;
    overflow: visible;
    padding: clamp(5.25rem, 11vw, 8rem) 0 2.4rem;
    background:
        radial-gradient(65% 85% at 85% 6%, rgba(212, 175, 55, 0.14), transparent 76%),
        linear-gradient(180deg, #ffffff 0%, #f7f3ef 58%, #ffffff 100%);
}

.ef-home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * clamp(14px, 3vw, 30px));
    height: clamp(92px, 14vw, 170px);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.52) 58%,
        rgba(255, 255, 255, 0.88) 82%,
        #ffffff 100%
    );
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.82);
}

.ef-home-hero .ef-container {
    position: relative;
    z-index: 3;
}

.ef-home-hero__image-only {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(58, 43, 34, 0.14);
}

.ef-home-hero__image-only img {
    width: 100%;
    aspect-ratio: 14 / 7;
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

.ef-home-clothes {
    position: relative;
    overflow: visible;
    background: #fff;
}

.ef-home-clothes::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * clamp(10px, 2.4vw, 24px));
    height: clamp(76px, 11vw, 128px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 62%,
        #fcfaf8 100%
    );
    box-shadow: 0 10px 20px rgba(252, 250, 248, 0.85);
}

.ef-home-clothes > .ef-container {
    position: relative;
    z-index: 2;
}

.ef-home-clothes .ef-section-header {
    margin-bottom: clamp(1.4rem, 4vw, 2.6rem);
}

.ef-home-clothes .ef-label {
    color: #8e7962;
}

.ef-home-clothes .ef-product-card {
    border: 1px solid var(--ef-border);
    border-radius: 16px;
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(58, 43, 34, 0.06);
}

.ef-home-clothes .ef-product-card__image {
    margin-bottom: 0.85rem;
    border-radius: 12px;
}

.ef-home-clothes .ef-product-card__title {
    font-size: 1rem;
}

.ef-home-clothes .ef-product-card__price {
    margin: 0.4rem 0 0.8rem;
    color: var(--ef-accent-dark);
    font-weight: 700;
}

.ef-home-clothes .ef-btn--sm {
    width: 100%;
}

.ef-home-more {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
}

.ef-livraison--home {
    margin-top: 0;
    position: relative;
    overflow: visible;
}

.ef-livraison--home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * clamp(8px, 2vw, 18px));
    height: clamp(74px, 11vw, 124px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        #f6f2ee 0%,
        #f8f4ef 52%,
        #fbf8f4 100%
    );
}

.ef-livraison--home > .ef-container {
    position: relative;
    z-index: 2;
}

.ef-home-order {
    padding: 0 0 var(--ef-spacing-xl);
    background: #fff;
}

.ef-home-order__box {
    background: #f9f9f9;
    border: 1px solid var(--ef-border);
    border-radius: 20px;
    padding: clamp(1.15rem, 4vw, 2rem);
    box-shadow: 0 12px 30px rgba(58, 43, 34, 0.08);
}

.ef-home-order__box h2 {
    text-align: center;
    font-size: clamp(1.2rem, 3.2vw, 1.85rem);
    margin-bottom: 1.2rem;
}

.ef-home-order__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ef-home-order__form label {
    display: grid;
    gap: 0.35rem;
}

.ef-home-order__form label span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8f7d6e;
    font-weight: 600;
}

.ef-home-order__form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ef-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ef-primary);
    padding: 0.72rem 0.9rem;
}

.ef-home-order__form input:focus {
    outline: none;
    border-color: var(--ef-primary);
    box-shadow: 0 0 0 3px rgba(58, 43, 34, 0.08);
}

.ef-home-order__full {
    grid-column: 1 / -1;
}

.ef-home-order__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ef-home-order__actions .ef-btn {
    flex: 1;
    min-width: 220px;
}

.ef-home-order__note {
    margin-top: 0.9rem;
    color: var(--ef-text-light);
    font-size: 0.88rem;
    text-align: center;
}

@media (max-width: 980px) {
    .ef-home-order__form {
        grid-template-columns: 1fr;
    }

    .ef-home-order__actions .ef-btn {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .ef-home-hero {
        padding-bottom: 0.5rem;
    }

    .ef-home-hero__image-only {
        border-radius: 11px;
    }

    .ef-home-hero__image-only img {
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
        border-radius: 11px;
    }

    .ef-home-clothes.ef-section {
        padding-top: 2rem;
    }

    .ef-livraison__grid {
        grid-template-columns: 1fr;
    }

    .ef-livraison--home {
        padding: 1.35rem 0 1.2rem;
    }

    .ef-livraison--home .ef-livraison__title {
        font-size: 1.08rem;
        margin-bottom: 0.9rem;
    }

    .ef-livraison--home .ef-livraison__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ef-livraison--home .ef-livraison__card {
        display: block;
        text-align: center;
        gap: 0;
        padding: 1.05rem 0.95rem;
        border-radius: 16px;
        box-shadow: 0 8px 16px rgba(58, 43, 34, 0.06);
    }

    .ef-livraison--home .ef-livraison__icon {
        margin: 0 auto 0.72rem;
        width: 44px;
        height: 44px;
    }

    .ef-livraison--home .ef-livraison__icon svg {
        width: 20px;
        height: 20px;
    }

    .ef-livraison--home .ef-livraison__card-title {
        font-size: 0.98rem;
        margin: 0 0 0.35rem;
    }

    .ef-livraison--home .ef-livraison__card-text {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .ef-newsletter--home {
        padding: 1.15rem 0;
    }

    .ef-newsletter--home .ef-newsletter__panel {
        padding: 1rem 0.82rem;
        border-radius: 16px;
    }

    .ef-newsletter--home .ef-newsletter__form {
        gap: 0.5rem;
    }

    .ef-newsletter--home .ef-newsletter__form input[type="text"],
    .ef-newsletter--home .ef-newsletter__form input[type="tel"] {
        min-height: 42px;
        padding: 0.64rem 0.75rem;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .ef-newsletter--home .ef-newsletter__form button {
        width: 100%;
        min-height: 42px;
        padding: 0.64rem 0.78rem;
        font-size: 0.74rem;
        border-radius: 10px;
    }

    .ef-home-order__box h2 {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ef-livraison--home .ef-livraison__card {
        padding: 0.95rem 0.82rem;
    }

    .ef-livraison--home .ef-livraison__icon {
        width: 40px;
        height: 40px;
    }

    .ef-livraison--home .ef-livraison__card-title {
        font-size: 0.93rem;
    }

    .ef-livraison--home .ef-livraison__card-text {
        font-size: 0.8rem;
    }

    .ef-newsletter--home .ef-newsletter__panel {
        padding: 0.9rem 0.7rem;
    }

    .ef-newsletter--home .ef-newsletter__form input[type="text"],
    .ef-newsletter--home .ef-newsletter__form input[type="tel"] {
        min-height: 40px;
        font-size: 0.82rem;
    }

    .ef-newsletter--home .ef-newsletter__form button {
        min-height: 40px;
        font-size: 0.72rem;
    }
}
