/*
Theme Name:   Eccellenza Italia Child
Theme URI:    https://eccellenzaitalia.co.uk
Description:  Astra child theme for Eccellenza Italia — premium gelato and dessert ingredient supplier.
Author:       Eccellenza Italia
Template:     astra
Version: 3.17.0
Text Domain:  eccellenza
*/

/* Google Fonts are enqueued in functions.php (faster than @import). */

/* ── VARIABLES ───────────────────────────────────────────────────────────── */
:root {
    /* ── Editorial Luxury palette (v3.13) — warm Italian deli ──
       Backwards-compatible: legacy --navy / --gold names retained,
       remapped to the new warm system so existing rules pick it up. */
    --ivory:        #FBF8F2;   /* page background — warm ivory */
    --cream:        #F5EFE2;   /* cards / subtle surfaces */
    --cream-dk:     #ECE3CE;   /* hover / dividers on cream */
    --espresso:     #2A1E14;   /* primary text — deep espresso */
    --espresso-dk:  #1A120B;   /* near-black headings */
    --olive:        #5C6B3A;   /* secondary brand — deep olive */
    --olive-dk:     #404C28;
    --olive-lt:     #8A9A60;
    --terracotta:   #B5572E;   /* accent — warm Italian terracotta */
    --terracotta-dk:#923F1C;
    --gold-warm:    #C9A24B;   /* highlight — antique gold */
    --gold-pale:    #F7EFD8;
    --grey:         #6B5E50;   /* warm muted text */
    --grey-lt:      #9A8C7A;
    --border:       #E6DCC8;   /* warm border */
    --white:        #FFFFFF;

    /* Legacy aliases — DO NOT REMOVE, used throughout the theme */
    --navy:      var(--espresso);
    --navy-dk:   var(--espresso-dk);
    --navy-lt:   var(--olive);
    --gold:      var(--terracotta);
    --gold-lt:   var(--gold-warm);
    --green:     var(--olive);
    --green-dk:  var(--olive-dk);

    --shadow-xs: 0 1px 2px rgba(42,30,20,0.05);
    --shadow:    0 4px 18px rgba(42,30,20,0.07);
    --shadow-md: 0 10px 32px rgba(42,30,20,0.10);
    --shadow-lg: 0 20px 56px rgba(42,30,20,0.14);
    --shadow-xl: 0 28px 72px rgba(42,30,20,0.18);

    --radius:    14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --ease:        all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    all 0.45s cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--espresso);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

h1,h2,h3,h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.12;
    margin: 0 0 16px;
    text-wrap: balance;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    text-wrap: pretty;
}

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

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
}

/* ── ANNOUNCEMENT BAR ────────────────────────────────────────────────────── */
.ec-announce-bar {
    background: linear-gradient(90deg, var(--navy-dk) 0%, var(--navy) 100%);
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 12px 60px 12px 20px;
    position: relative;
    letter-spacing: 0.02em;
}
.ec-announce-bar a {
    color: var(--gold-lt);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.ec-announce-bar a:hover {
    color: var(--gold-pale);
    border-bottom-color: var(--gold-lt);
}
.ec-announce-bar .ec-announce-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: var(--ease);
}
.ec-announce-bar .ec-announce-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}
/* ══════════════════════════════════════════════════════════════════════
 * KILL ASTRA HEADER + LAYOUT — custom header takes over entirely
 * ══════════════════════════════════════════════════════════════════════ */
/* Hide every Astra header selector we know about */
#masthead, header#masthead,
.main-header-bar, .main-header-bar-wrap,
.ast-primary-header-bar, .ast-above-header-bar,
.ast-below-header-bar, .ast-desktop-header,
.site-header.ast-primary-header-bar,
.ast-header-break-point .main-header-bar-wrap,
#ast-mobile-header, .ast-mobile-header-wrap {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
/* Strip all body/html padding Astra adds for sticky header */
html, body, .admin-bar body { margin-top: 0 !important; padding-top: 0 !important; }
.admin-bar #wpadminbar { position: fixed !important; }
/* Full width — break out of Astra container */
#page, .site, .ast-container, .ast-narrow-container,
.content-area, .site-content { max-width: 100% !important; padding: 0 !important; }
/* Inner content width for non-homepage */
body:not(.ec-homepage) .ast-content-layout-wrap,
body:not(.ec-homepage) .entry-content { max-width: 1320px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.woocommerce .site-content { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
/* Homepage — zero out ALL Astra inner wrappers so every ec-section spans full width */
body.ec-homepage .entry-content,
body.ec-homepage .ast-content-layout-wrap,
body.ec-homepage #content,
body.ec-homepage .site-content { padding: 0 !important; max-width: 100% !important; margin: 0 !important; }
/* Full-width pages (all non-homepage pages) — strip Astra column constraints */
body.ast-full-width-layout #primary,
body.ast-full-width-layout .ast-content-layout-wrap,
body.ast-full-width-layout #content { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; }
body.ast-full-width-layout .entry-content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
/* Policy pages — ensure full viewport width and centered content */
.ec-policy-page { width: 100%; box-sizing: border-box; }
.ec-policy-wrap { width: 100%; box-sizing: border-box; }
/* About page — ensure full viewport width */
.ec-about-page { width: 100%; box-sizing: border-box; }
.ec-about-container { box-sizing: border-box; }


/* ══════════════════════════════════════════════════════════════════════
 * CUSTOM HEADER — mirrors the reference HTML design exactly
 * Structure: [utility bar] [main bar: logo|search|actions] [nav bar: pills|QO]
 * ══════════════════════════════════════════════════════════════════════ */
.ec-site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}
.ec-site-header.ec-scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.95);
}
/* Focus ring for all header interactive elements */
.ec-site-header a:focus-visible,
.ec-site-header button:focus-visible {
    outline: 2px solid var(--gold-lt);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── UTILITY BAR (Row 0) ─────────────────────────────────────────────
   Dark strip: Favourites | Phone | Email  ··  Sign In | Register
 */
.ec-hdr-utility {
    background: #0e0d18;
    color: rgba(255,255,255,0.75);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ec-hdr-utility-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ec-hdr-utility-left,
.ec-hdr-utility-right { display: flex; align-items: center; gap: 0; }
.ec-hdr-utility a, .ec-hdr-utility-hi {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    padding: 0 14px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 300;
    letter-spacing: 0.03em;
}
.ec-hdr-utility a:hover { color: #fff; background: transparent; }
.ec-hdr-utility-left a + a {
    border-left: 1px solid rgba(255,255,255,0.1);
}
/* SVG icons in utility bar */
.ec-util-icon {
    display: block;
    flex-shrink: 0;
    color: var(--terracotta);
    opacity: 0.85;
}
.ec-hdr-utility-contact {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}
.ec-hdr-utility-contact:hover .ec-util-icon { opacity: 1; }
/* Right side: Sign In / Register */
.ec-hdr-utility-right a {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    padding: 0 12px;
}
.ec-hdr-utility-right a:last-child {
    background: var(--terracotta);
    color: #fff;
    border-radius: 2px;
    height: 26px;
    margin-left: 6px;
    padding: 0 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.ec-hdr-utility-right a:last-child:hover { background: var(--terracotta-dk); color: #fff; }
.ec-hdr-utility-logout { color: #fca5a5 !important; }
.ec-hdr-utility-logout:hover { color: #fff !important; }
.ec-hdr-utility-hi { opacity: 0.55; font-style: italic; font-size: 11.5px; }

/* ── MAIN BAR (Row 1) ─────────────────────────────────────────────────
   White: Logo | Search (expands) | Account ▾ | Basket | mobile toggle
 */
.ec-hdr-row1 { background: transparent; border-bottom: 1px solid var(--border); }
.ec-hdr-row1-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Logo */
.ec-hdr-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 4px;
}
.ec-hdr-logo img,
.ec-hdr-logo .custom-logo,
.ec-hdr-logo .ec-logo-img,
.ec-hdr-logo .custom-logo-link img,
.ec-hdr-logo .site-logo img,
.ec-hdr-logo .ast-site-logo-img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}
/* Strip any Astra wrapper that adds padding/sizing around logo */
.ec-hdr-logo .custom-logo-link {
    display: contents;
}
.ec-hdr-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.ec-hdr-logo-text em { font-style: italic; color: var(--gold); }

/* Search bar — takes all remaining middle space */
.ec-hdr-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--ivory);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    height: 46px;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}
.ec-hdr-search:focus-within {
    border-color: var(--espresso);
    box-shadow: 0 0 0 3px rgba(42,30,20,0.07);
    background: white;
}
.ec-hdr-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: var(--espresso);
    outline: none;
    height: 100%;
    min-width: 0;
    -webkit-appearance: none;
    font-weight: 300;
    letter-spacing: 0.02em;
}
.ec-hdr-search input::placeholder { color: var(--grey-lt); font-weight: 300; }
.ec-hdr-search button {
    background: var(--terracotta);
    border: none;
    padding: 0 22px;
    height: 100%;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.2s;
    border-radius: 0;
}
.ec-hdr-search button:hover { background: var(--terracotta-dk); transform: none; }

/* Right group: account + basket + mobile toggle */
.ec-hdr-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Main nav links (Home | Shop | About) — desktop only */
.ec-hdr-mainnav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.ec-hdr-mainnav a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.ec-hdr-mainnav a:hover { background: var(--cream); color: var(--navy); }
.ec-hdr-mainnav a.ec-nav-current { background: var(--cream-dk); font-weight: 600; }

/* Account dropdown button */
.ec-hdr-account { position: relative; }
.ec-hdr-acct-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    color: var(--espresso);
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    height: 42px;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.ec-hdr-acct-btn:hover, .ec-hdr-acct-btn.ec-acct-open {
    background: var(--espresso);
    color: white;
    border-color: var(--espresso);
    transform: none;
}
.ec-hdr-acct-btn.ec-acct-open .ec-acct-caret { transform: rotate(180deg); }
.ec-acct-caret { transition: transform 0.25s ease; }

.ec-hdr-acct-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 2000;
    overflow: hidden;
    animation: ec-slide-down 0.2s ease;
}
.ec-hdr-acct-menu.ec-acct-open { display: block; }
.ec-acct-greeting {
    padding: 14px 18px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--espresso);
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.03em;
}
.ec-hdr-acct-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--espresso);
    text-decoration: none;
    transition: background 0.15s;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.ec-hdr-acct-menu a:hover { background: var(--ivory); color: var(--espresso-dk); }
.ec-acct-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ec-acct-logout { color: #dc2626 !important; }
.ec-acct-logout:hover { background: #fef2f2 !important; }

/* Guest links (no account) */
.ec-hdr-account-guest { display: flex; align-items: center; gap: 6px; }
.ec-hdr-signin {
    display: inline-flex; align-items: center;
    color: var(--espresso); text-decoration: none;
    font-size: 13px; font-weight: 500;
    padding: 0 16px; border-radius: 6px; height: 42px;
    border: 1.5px solid var(--border);
    background: var(--cream);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.ec-hdr-signin:hover { background: var(--espresso); color: white; border-color: var(--espresso); }
.ec-hdr-register {
    display: inline-flex; align-items: center;
    background: var(--espresso); color: white;
    text-decoration: none; font-size: 13px; font-weight: 500;
    padding: 0 18px; border-radius: 6px; height: 42px;
    transition: background 0.2s; white-space: nowrap;
    letter-spacing: 0.02em;
}
.ec-hdr-register:hover { background: var(--espresso-dk); color: white; }

/* Basket button */
.ec-hdr-basket {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--espresso);
    color: white;
    text-decoration: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    height: 42px;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.ec-hdr-basket:hover { background: var(--espresso-dk); color: white; transform: none; box-shadow: none; }
.ec-cart-count {
    background: var(--terracotta);
    color: white;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    line-height: 1.6;
}
.ec-cart-empty { display: none; }

/* Mobile hamburger — shown only on small screens */
.ec-mobile-toggle {
    display: none;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: 18px;
    color: var(--espresso);
    line-height: 1;
    height: 38px;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
/* Active state — when nav is open, show as espresso with × */
.ec-mobile-toggle--open,
.ec-mobile-toggle[aria-expanded="true"] {
    background: var(--espresso) !important;
    color: white !important;
    border-color: var(--espresso) !important;
    font-size: 16px;
}

/* ── NAV BAR (Row 2) ──────────────────────────────────────────────────
   Cream: [All Categories] [Cat link] [Cat link]…  Quick Order (terracotta)
   Mobile: hidden by default, toggled by hamburger
 */
.ec-hdr-row2 {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.ec-hdr-row2-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: visible;
}
.ec-hdr-cat-pills {
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    height: 48px;
    padding: 0 8px 0 4px;
    gap: 2px;
}
.ec-hdr-cat-pills::-webkit-scrollbar { display: none; }
.ec-hdr-cat-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--grey);
    text-decoration: none;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.02em;
    height: 34px;
}
.ec-hdr-cat-pill:hover {
    background: var(--cream-dk);
    color: var(--espresso);
    transform: none;
}
.ec-hdr-cat-pill.current {
    background: var(--espresso);
    color: white;
    font-weight: 500;
}
.ec-hdr-qo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--terracotta);
    color: white !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 22px;
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 0 0 8px;
    transition: background 0.2s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ec-hdr-qo-link:hover { background: var(--terracotta-dk); transform: none; box-shadow: none; }

/* ── MEGA PANEL (All Categories drop-down) ───────────────────────────── */
.ec-mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--espresso);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    animation: ec-slide-down 0.22s ease;
}
.ec-mega-panel.ec-mega-open { display: block; }
.ec-mega-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 28px;
}
.ec-mega-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--ivory);
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ec-mega-cat:hover {
    border-color: var(--espresso);
    background: white;
    box-shadow: var(--shadow);
    transform: none;
}
.ec-mega-cat-thumb {
    width: 46px; height: 46px;
    border-radius: 8px;
    background-color: var(--cream-dk);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.ec-mega-cat-info strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--espresso); line-height: 1.35; letter-spacing: 0.01em; }
.ec-mega-cat-info span { font-size: 11.5px; color: var(--grey-lt); }

.ec-mega-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,20,10,0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
}
.ec-mega-overlay.ec-mega-open { display: block; }

/* Burger / All Categories button */
.ec-burger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--espresso);
    color: white;
    border: none;
    padding: 0 22px;
    height: 48px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
    letter-spacing: 0.04em;
}
.ec-burger-btn:hover, .ec-burger-btn.ec-burger-open { background: var(--espresso-dk); }
.ec-burger-lines { display: flex; flex-direction: column; gap: 4px; width: 16px; flex-shrink: 0; }
.ec-burger-lines span { display: block; height: 2px; background: white; border-radius: 2px; transition: all 0.22s; transform-origin: center; }
.ec-burger-btn.ec-burger-open .ec-burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ec-burger-btn.ec-burger-open .ec-burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ec-burger-btn.ec-burger-open .ec-burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── RESPONSIVE HEADER ────────────────────────────────────────────────
   ≥ 961px: Full desktop — utility bar + main bar + nav bar all visible
   601–960px: Tablet — hide cat pills & QO from nav, show mobile toggle
   ≤ 600px: Mobile — compact, hamburger replaces nav bar entirely
 */
@media (max-width: 960px) {
    .ec-hdr-row1-inner { padding: 8px 16px; gap: 10px; }
    .ec-hdr-mainnav { display: none; }
    .ec-hdr-register { display: none; }
    .ec-hdr-cat-pills { display: none; }
    .ec-hdr-qo-link { display: none; }
    .ec-mobile-toggle { display: inline-flex; }
    .ec-hdr-row2 { border-top: 1px solid var(--border); }
    .ec-hdr-row2-inner { flex-direction: column; align-items: stretch; }
    /* Mobile nav: hidden by default, toggled by JS */
    .ec-hdr-row2:not(.ec-nav-open) { display: none; }
    .ec-hdr-row2.ec-nav-open { display: block; }
    .ec-hdr-row2.ec-nav-open .ec-hdr-cat-pills {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 6px 0;
        gap: 0;
        overflow: visible;
    }
    .ec-hdr-row2.ec-nav-open .ec-hdr-cat-pill {
        display: flex !important;
        width: 100%;
        border-radius: 0;
        padding: 14px 20px;
        height: auto;
        font-size: 14.5px;
        border: none;
        border-bottom: 1px solid var(--border);
        background: white;
        color: var(--espresso) !important;
        white-space: normal !important;
        word-break: break-word;
        line-height: 1.3;
        font-weight: 400;
        letter-spacing: 0.02em;
    }
    .ec-hdr-row2.ec-nav-open .ec-hdr-cat-pills .ec-hdr-cat-pill:first-child {
        border-top: 1px solid var(--border);
    }
    .ec-hdr-row2.ec-nav-open .ec-hdr-cat-pill:hover,
    .ec-hdr-row2.ec-nav-open .ec-hdr-cat-pill.current {
        background: var(--ivory) !important;
        color: var(--terracotta) !important;
        border-color: var(--border);
        padding-left: 24px;
    }
    .ec-hdr-row2.ec-nav-open .ec-burger-btn { height: 48px; font-size: 13px; }
    .ec-hdr-row2.ec-nav-open .ec-hdr-qo-link {
        display: flex;
        margin: 10px 20px 16px;
        border-radius: 5px;
        padding: 14px 18px;
        height: auto;
        justify-content: center;
        text-align: center;
    }
    .ec-mega-inner { padding: 16px; }
    .ec-mega-cat { min-width: 130px; max-width: none; flex: 1; }
    .ec-hdr-utility-inner { padding: 0 16px; }
    .ec-hdr-utility-left a + a { border-left: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 600px) {
    .ec-hdr-row1-inner { padding: 10px 14px; gap: 8px; }
    .ec-hdr-logo-text { font-size: 18px; }
    .ec-hdr-logo img,
    .ec-hdr-logo .custom-logo,
    .ec-hdr-logo .site-logo img,
    .ec-hdr-logo .ast-site-logo-img {
        max-height: 40px !important;
        width: auto !important;
    }
    .ec-hdr-search { height: 40px; border-radius: 5px; }
    .ec-hdr-search input[type="search"] { padding: 0 12px; font-size: 13.5px; }
    .ec-hdr-search button { padding: 0 14px; border-radius: 0; }
    .ec-hdr-basket span:not(.ec-cart-count) { display: none; }
    .ec-hdr-basket { padding: 0; border-radius: 6px; width: 40px; height: 40px; justify-content: center; }
    .ec-hdr-acct-btn span, .ec-acct-caret { display: none; }
    .ec-hdr-acct-btn { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 6px; }
    .ec-hdr-utility { display: none; } /* hide on mobile — too small */
    .ec-hdr-acct-menu { right: -40px; }
    .ec-mega-cat { min-width: 100%; flex: 100%; }
}

/* ── MOBILE UTILITY BLOCK — shown inside hamburger nav on ≤960px ──────── */
.ec-mob-util {
    display: none; /* hidden on desktop — only shown inside open mobile nav */
}
@media (max-width: 960px) {
    .ec-hdr-row2.ec-nav-open .ec-mob-util {
        display: block;
        background: var(--ivory);
        border-top: 1px solid var(--border);
        padding: 14px 20px 6px;
    }

    /* Top row: My Favourites / My Orders */
    .ec-mob-util-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 2px;
    }
    .ec-mob-util-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        font-size: 14px;
        font-weight: 500;
        color: var(--espresso);
        text-decoration: none;
        border-bottom: 1px solid var(--border);
        letter-spacing: 0.02em;
        transition: color 0.2s;
    }
    .ec-mob-util-link:last-child { border-bottom: none; }
    .ec-mob-util-link:hover { color: var(--terracotta); }
    .ec-mob-util-link svg { color: var(--terracotta); flex-shrink: 0; }

    /* Contact row: phone + email side by side */
    .ec-mob-util-contact {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        border-bottom: 1px solid var(--border);
        padding: 4px 0;
    }
    .ec-mob-util-contact-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 10px 0;
        padding-right: 20px;
        font-size: 13px;
        font-weight: 400;
        color: var(--grey);
        text-decoration: none;
        letter-spacing: 0.01em;
        transition: color 0.2s;
    }
    .ec-mob-util-contact-link:hover { color: var(--espresso); }
    .ec-mob-util-contact-link svg { color: var(--terracotta); flex-shrink: 0; }

    /* Auth row: Sign In + Register buttons */
    .ec-mob-util-auth {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 0;
        flex-wrap: wrap;
    }
    .ec-mob-util-signin {
        display: inline-flex;
        align-items: center;
        padding: 0 20px;
        height: 40px;
        border-radius: 5px;
        border: 1.5px solid var(--border);
        background: white;
        color: var(--espresso);
        font-size: 13.5px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .ec-mob-util-signin:hover { background: var(--espresso); color: white; border-color: var(--espresso); }
    .ec-mob-util-register {
        display: inline-flex;
        align-items: center;
        padding: 0 20px;
        height: 40px;
        border-radius: 5px;
        background: var(--terracotta);
        color: white;
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s;
    }
    .ec-mob-util-register:hover { background: var(--terracotta-dk); }
    .ec-mob-util-hi {
        font-size: 13.5px;
        font-style: italic;
        color: var(--grey);
        font-weight: 400;
    }
    .ec-mob-util-logout {
        display: inline-flex;
        align-items: center;
        padding: 0 18px;
        height: 38px;
        border-radius: 5px;
        border: 1.5px solid #fca5a5;
        background: #fef2f2;
        color: #dc2626;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s;
    }
    .ec-mob-util-logout:hover { background: #fee2e2; }
}


#ec-homepage-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.ec-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--navy-dk);
    overflow: hidden;
}

.ec-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/1352278/pexels-photo-1352278.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
    opacity: 0.25;
    transform: scale(1.02);
}

.ec-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(8,26,44,0.92) 0%, rgba(15,41,66,0.7) 50%, rgba(8,26,44,0.4) 100%);
}

.ec-hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.ec-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s;
}
.ec-hero-video--active { opacity: 1; }
.ec-hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, transparent 30%, rgba(10,20,40,0.5) 100%);
}

.ec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin: 0 auto 0 8%;
    padding: 80px 24px 140px;
}

.ec-hero-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 18px;
}

.ec-hero h1 {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ec-hero h1 em {
    font-style: italic;
    color: var(--gold-lt);
}

.ec-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin-bottom: 44px;
    line-height: 1.7;
    font-weight: 400;
}

.ec-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-btn-white {
    background: var(--white);
    color: var(--navy);
    padding: 16px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--ease);
    display: inline-block;
    box-shadow: var(--shadow-md);
}
.ec-btn-white:hover {
    background: var(--cream);
    color: var(--navy-dk);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ec-btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 15px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--ease);
    display: inline-block;
}
.ec-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.ec-hero-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 0 8% 36px;
}
.ec-hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ec-hero-badge {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--ease);
}
.ec-hero-badge:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* Hero pillbar */
.ec-hero-pillbar {
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
}
.ec-pill-logo {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: white !important;
    text-decoration: none !important;
    margin-right: 8px;
}
.ec-pill-logo span { color: var(--gold-lt); }
.ec-hero-shortcuts a {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 40px;
    transition: all 0.2s;
}
.ec-hero-shortcuts a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}
.ec-pill-cta {
    background: var(--gold);
    color: white !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 40px;
    transition: background 0.2s;
    margin-left: 4px;
}
.ec-pill-cta:hover { background: var(--gold-lt); }

.ec-hero-top-tagline {
    position: absolute;
    top: 90px; left: 0; right: 0;
    text-align: center;
    z-index: 2;
}

/* Hero ticker */
.ec-hero-ticker {
    overflow: hidden;
    margin: 0 0 32px;
}
.ec-hero-ticker-inner {
    display: flex;
    gap: 18px;
    animation: ec-ticker 20s linear infinite;
    width: max-content;
}
.ec-hero-ticker-inner span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.ec-ticker-dot { color: var(--gold-lt) !important; }
@keyframes ec-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Corner promo */
.ec-corner-promo {
    position: absolute;
    bottom: 90px; right: 44px;
    z-index: 10;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 28px;
    max-width: 280px;
    animation: ec-promo-in 0.7s 1.2s both;
}
@keyframes ec-promo-in {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ec-corner-promo__close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255,255,255,0.1); border: none;
    color: rgba(255,255,255,0.6);
    font-size: 16px; cursor: pointer;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--ease);
}
.ec-corner-promo__close:hover { color: white; background: rgba(255,255,255,0.2); }
.ec-corner-promo__title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
}
.ec-corner-promo__text {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 18px;
    line-height: 1.6;
}
.ec-corner-promo__cta {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--ease);
}
.ec-corner-promo__cta:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Corner promo mobile */
@media (max-width: 768px) {
    .ec-corner-promo {
        bottom: 20px; right: 16px; left: 16px;
        max-width: none;
        padding: 20px;
        border-radius: 16px;
    }
    .ec-corner-promo__title { font-size: 16px; }
    .ec-corner-promo__text { font-size: 13px; margin-bottom: 14px; }
    .ec-corner-promo__cta { padding: 10px 20px; font-size: 11px; }
}

/* Hero section mobile */
@media (max-width: 768px) {
    .ec-hero { min-height: 80vh; }
    .ec-hero h1 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 16px; }
    .ec-hero p { font-size: 15px; margin-bottom: 32px; max-width: 100%; }
    .ec-hero-btns { gap: 12px; }
    .ec-btn-white { padding: 14px 28px; font-size: 13px; }
    .ec-btn-outline-white { padding: 13px 24px; font-size: 13px; }
    .ec-hero-bottom { padding: 0 16px 24px; }
    .ec-hero-badges { gap: 10px; }
    .ec-hero-badge { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
    .ec-hero { min-height: 75vh; }
    .ec-hero h1 { font-size: 28px; }
    .ec-hero p { font-size: 14px; line-height: 1.6; }
    .ec-hero-btns { flex-direction: column; width: 100%; }
    .ec-btn-white, .ec-btn-outline-white { width: 100%; text-align: center; }
    .ec-hero-badges { flex-direction: column; }
}

/* ── TRUST STRIP ─────────────────────────────────────────────────────────── */
.ec-trust-strip {
    background: var(--navy);
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.ec-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 36px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}
.ec-trust-item strong { color: white; font-weight: 600; display: block; font-size: 14px; }
.ec-trust-item span { font-size: 12px; color: rgba(255,255,255,0.5); }
.ec-trust-dot {
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(196,148,61,0.4);
}
.ec-trust-divider {
    width: 1px; height: 44px;
    background: rgba(255,255,255,0.12);
}
@media (max-width: 768px) {
    .ec-trust-divider { display: none; }
    .ec-trust-strip {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0 20px;
    }
    .ec-trust-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .ec-trust-item:last-child { border-bottom: none; }
    /* Dot + title row */
    .ec-trust-item strong {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }
    .ec-trust-item strong::before {
        content: '';
        display: inline-block;
        width: 8px; height: 8px;
        background: var(--gold);
        border-radius: 50%;
        flex-shrink: 0;
    }
    /* Hide the separate dot element on mobile — title pseudo handles it */
    .ec-trust-item .ec-trust-dot { display: none; }
    .ec-trust-item span {
        font-size: 13px;
        padding-left: 16px;
        color: rgba(255,255,255,0.6);
        line-height: 1.4;
    }
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.ec-section { padding: 100px 0; }
.ec-section-sm { padding: 56px 0; }
.ec-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ec-wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.ec-bg-cream { background: var(--cream); }
.ec-bg-cream-dk { background: var(--cream-dk); }
.ec-bg-blue { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dk) 100%); }
.ec-center { text-align: center; }

.ec-section-head {
    text-align: center !important;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 64px !important;
    display: block;
}
.ec-section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    color: var(--espresso);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.ec-bg-green .ec-section-head h2,
.ec-light h2 { color: var(--white); }
.ec-section-head p { color: var(--grey); font-size: 17px; margin: 0; line-height: 1.6; }
.ec-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.ec-eyebrow-gold { color: var(--gold-lt); }

/* ── CATEGORY GRID ───────────────────────────────────────────────────────── */
.ec-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}
.ec-cat-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    position: relative;
    aspect-ratio: 1;
    transition: var(--ease-out);
    box-shadow: var(--shadow);
}
.ec-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.ec-cat-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ec-cat-card:hover .ec-cat-img { transform: scale(1.08); }
.ec-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,26,44,0.9) 0%, rgba(8,26,44,0.3) 50%, transparent 100%);
}
.ec-cat-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    z-index: 2;
}
.ec-cat-info strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}
.ec-cat-info span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.ec-cat-intro { text-align: center; max-width: 800px; margin: 0 auto; }
.ec-cat-intro-headline {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ── SHOP FILTER BAR ─────────────────────────────────────────────────────── */
.ec-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ec-filter-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ec-filter-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-filter-pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    background: var(--cream);
    color: var(--grey);
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.ec-filter-pill:hover {
    background: var(--cream-dk);
    color: var(--navy);
    border-color: var(--navy);
}
.ec-filter-pill.ec-pill-active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.ec-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ec-filter-search {
    position: relative;
}
.ec-filter-search input {
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 8px 40px 8px 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--espresso);
    background: var(--cream);
    outline: none;
    width: 220px;
    transition: all 0.2s;
}
.ec-filter-search input:focus {
    border-color: var(--navy);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.ec-filter-sort select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--espresso);
    background: var(--cream);
    outline: none;
    cursor: pointer;
}
.ec-filter-count {
    font-size: 13px;
    color: var(--grey-lt);
    white-space: nowrap;
}

/* ── WOOCOMMERCE PRODUCT CARDS ───────────────────────────────────────────── */
.woocommerce ul.products li.product {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border) !important;
    transition: var(--ease-out) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 0 20px !important;
    margin-bottom: 0 !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--navy) !important;
    transform: translateY(-4px) !important;
}

/* Product image wrapper */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Quick view & fav overlay */
.woocommerce ul.products li.product .ec-card-actions {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.25s;
    z-index: 5;
}
.woocommerce ul.products li.product:hover .ec-card-actions {
    opacity: 1;
    transform: translateX(0);
}
.ec-fav-btn, .ec-qv-btn {
    width: 34px; height: 34px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--grey);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ec-fav-btn:hover, .ec-qv-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.ec-fav-btn.ec-faved {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale,
.ec-sale-badge {
    background: #ef4444 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 40px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    position: absolute !important;
    top: 10px; left: 10px !important;
    z-index: 5 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--espresso) !important;
    padding: 14px 16px 4px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title {
    padding: 14px 16px 4px !important;
}
.woocommerce ul.products li.product .price {
    padding: 0 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
}
.ec-price-per-kg {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--grey-lt);
    padding: 0 16px;
    margin-top: 2px;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    margin: 14px 16px 0 !important;
    width: calc(100% - 32px) !important;
    background: var(--navy) !important;
    color: white !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    transition: var(--ease) !important;
    border: none !important;
    letter-spacing: 0.02em !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: var(--navy-dk) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Category label above title */
.woocommerce ul.products li.product .ec-cat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    padding: 10px 16px 0;
    display: block;
}

/* Quick view modal */
.ec-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,0.6);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: ec-fade-in 0.2s;
}
.ec-qv-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: ec-slide-up 0.3s;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.ec-qv-img {
    background: var(--cream);
    overflow: hidden;
}
.ec-qv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ec-qv-body {
    padding: 36px 32px;
    overflow-y: auto;
}
.ec-qv-close {
    position: absolute;
    top: 14px; right: 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--grey);
    z-index: 10;
}
.ec-qv-close:hover { background: var(--espresso); color: white; border-color: var(--espresso); }
@media (max-width: 640px) {
    .ec-qv-modal { grid-template-columns: 1fr; }
    .ec-qv-img { height: 220px; }
}

/* ── PROMO SECTION ───────────────────────────────────────────────────────── */
.ec-promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.ec-promo-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: var(--ease);
}
.ec-promo-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.ec-promo-pct {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--gold-lt);
    line-height: 1;
    margin-bottom: 16px;
}
.ec-promo-box h3 { color: white; font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.ec-promo-box p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.ec-promo-box code {
    background: var(--gold-pale);
    color: var(--navy);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.ec-promo-link {
    color: var(--gold-lt);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
}
.ec-promo-link:hover { color: white; }
.ec-auto-badge {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ── DISCOUNT CODE EMAIL REVEAL ─────────────────────────────────────────── */
.ec-discount-form {
    margin-top: 14px;
}

.ec-form-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ec-discount-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.ec-discount-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.ec-discount-form input[type="email"]:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

.ec-discount-btn {
    padding: 10px 16px;
    background: white;
    color: var(--navy);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ec-discount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ec-discount-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ec-discount-response {
    margin-top: 12px;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.ec-discount-response.show {
    display: block;
}

.ec-discount-response.success {
    background: rgba(76, 175, 80, 0.2);
    color: #c8e6c9;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.ec-discount-response.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.ec-code-display {
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    letter-spacing: 1px;
}

/* ── ABOUT SECTION ───────────────────────────────────────────────────────── */
.ec-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.ec-about-img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.ec-about-img-wrap img { display: block; width: 100%; height: 480px; object-fit: cover; }
.ec-about-text h2 { font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -0.02em; }
.ec-about-text p { color: var(--grey); line-height: 1.8; margin-bottom: 18px; }
.ec-about-text em { font-style: italic; color: var(--navy); }
.ec-stats-row { display: flex; gap: 40px; margin: 32px 0; }
.ec-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 28px; color: var(--navy); }
.ec-stat span { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.ec-btn-blue {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--ease);
    letter-spacing: 0.03em;
}
.ec-btn-blue:hover { background: var(--navy-dk); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ec-btn-outline-blue {
    display: inline-block;
    background: transparent;
    color: var(--navy);
    padding: 15px 34px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid var(--navy);
    transition: var(--ease);
}
.ec-btn-outline-blue:hover { background: var(--navy); color: white; transform: translateY(-2px); }
@media (max-width: 768px) {
    .ec-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .ec-about-img-wrap img { height: 300px; }
}

/* ── NEWSLETTER SECTION ──────────────────────────────────────────────────── */
.ec-newsletter {
    background: linear-gradient(145deg, var(--navy-dk) 0%, var(--navy) 100%);
    padding: 80px 24px;
    text-align: center;
}
.ec-newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 38px);
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.ec-newsletter p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 32px; }
.ec-nl-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ec-nl-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
}
.ec-nl-form button {
    background: var(--gold);
    color: white;
    border: none;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--ease);
}
.ec-nl-form button:hover { background: var(--gold-lt); }
.ec-nl-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 14px; }

/* ── DELIVERY BAR ────────────────────────────────────────────────────────── */
.ec-delivery-bar {
    background: var(--cream-dk);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    overflow: hidden;
}
.ec-delivery-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1320px;
    margin: 0 auto;
}
.ec-delivery-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    padding: 4px 24px;
}
.ec-delivery-sep {
    color: var(--border);
    font-size: 16px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.ec-faq { display: flex; flex-direction: column; gap: 12px; }
.ec-faq-item {
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--ease);
    background: white;
}
.ec-faq-item:hover { border-color: var(--cream-dk); }
.ec-faq-item.ec-open { border-color: var(--navy); box-shadow: var(--shadow-md); }
.ec-faq-q {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--espresso);
    gap: 16px;
    user-select: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    line-height: 1.5;
    transition: var(--ease);
}
.ec-faq-q:hover {
    color: var(--navy);
    background: var(--cream);
}
.ec-faq-q:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    border-radius: 12px;
}
.ec-faq-q::after {
    content: '+';
    font-size: 22px;
    color: var(--navy);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
}
.ec-faq-item.ec-open .ec-faq-q::after { transform: rotate(45deg); background: var(--navy); color: white; }
.ec-faq-a {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--grey);
    line-height: 1.75;
}
.ec-faq-item.ec-open .ec-faq-a { display: block; }

/* ── QUICK ORDER PAGE ────────────────────────────────────────────────────── */
.ec-quick-order-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.ec-qo-header {
    margin-bottom: 32px;
}
.ec-qo-header h1 {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 8px;
}
.ec-qo-header p { color: var(--grey); }
.ec-qo-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.ec-qo-search {
    flex: 1;
    min-width: 220px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.ec-qo-search:focus { border-color: var(--navy); }
.ec-qo-table-wrap { overflow-x: auto; }
.ec-qo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ec-qo-table thead th {
    background: var(--navy);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
}
.ec-qo-table thead th:first-child { border-radius: 8px 0 0 0; }
.ec-qo-table thead th:last-child { border-radius: 0 8px 0 0; }
.ec-qo-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.ec-qo-table tbody tr:hover { background: var(--cream); }
.ec-qo-table td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--espresso);
}
.ec-qo-table td.ec-qo-name { font-weight: 500; }
.ec-qo-table td.ec-qo-cat { font-size: 12px; color: var(--grey-lt); }
.ec-qo-table td.ec-qo-price { font-weight: 700; color: var(--navy); }
.ec-qo-qty {
    width: 72px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.ec-qo-qty:focus { border-color: var(--navy); outline: none; }
.ec-qo-footer {
    position: sticky;
    bottom: 0;
    background: var(--cream);
    border-top: 2px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.ec-qo-summary { font-size: 15px; font-weight: 600; color: var(--navy); }
.ec-qo-submit {
    background: var(--navy);
    color: white;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.ec-qo-submit:hover { background: var(--navy-dk); }
.ec-qo-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── FAVOURITES PAGE ─────────────────────────────────────────────────────── */
.ec-favs-page { max-width: 1320px; margin: 0 auto; padding: 48px 24px; }
.ec-favs-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--grey);
}
.ec-favs-empty h2 { font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.ec-favs-empty p { margin-bottom: 28px; }

/* ── AI CHAT WIDGET ──────────────────────────────────────────────────────── */
#ec-ai-chat {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
#ec-chat-bubble {
    width: 58px; height: 58px;
    background: var(--navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(26,58,92,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    position: relative;
    outline: none;
}
#ec-chat-bubble:hover {
    background: var(--navy-dk);
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(26,58,92,0.5);
}
#ec-chat-bubble .ec-chat-icon { font-size: 24px; }
.ec-chat-notify {
    position: absolute;
    top: 6px; right: 6px;
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid white;
    animation: ec-pulse 2s infinite;
}
@keyframes ec-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.ec-chat-notify.hidden { display: none; }
#ec-chat-bubble.ec-chat-open { border-radius: 14px; }
#ec-chat-bubble.ec-chat-open .ec-chat-icon { display: none; }
#ec-chat-bubble.ec-chat-open::after { content: '✕'; color: white; font-size: 20px; }

#ec-chat-panel {
    position: absolute;
    bottom: 72px; right: 0;
    width: 360px;
    max-height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10,20,40,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}
#ec-chat-panel.ec-panel-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.ec-chat-header {
    background: var(--navy);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ec-chat-avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ec-chat-header-info { flex: 1; }
.ec-chat-header-info strong { display: block; color: white; font-size: 14px; font-weight: 600; }
.ec-chat-header-info span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ec-chat-online {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}
#ec-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.ec-msg { display: flex; gap: 8px; max-width: 88%; }
.ec-msg-bot { align-self: flex-start; }
.ec-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.ec-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}
.ec-msg-bot .ec-msg-bubble {
    background: var(--cream);
    color: var(--espresso);
    border-bottom-left-radius: 4px;
}
.ec-msg-user .ec-msg-bubble {
    background: var(--navy);
    color: white;
    border-bottom-right-radius: 4px;
}
.ec-chat-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 16px 12px;
}
.ec-chat-quick-btn {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.ec-chat-quick-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.ec-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}
.ec-chat-typing span {
    width: 7px; height: 7px;
    background: var(--grey-lt);
    border-radius: 50%;
    animation: ec-typing 1.2s infinite;
}
.ec-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ec-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ec-typing {
    0%,60%,100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
.ec-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
}
#ec-chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    color: var(--espresso);
}
#ec-chat-input:focus { border-color: var(--navy); }
#ec-chat-send {
    width: 36px; height: 36px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
#ec-chat-send:hover { background: var(--gold); }
#ec-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ec-chat-footer {
    padding: 8px 16px;
    text-align: center;
    font-size: 10.5px;
    color: var(--grey-lt);
    background: var(--cream);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.ec-chat-footer a { color: var(--navy); text-decoration: none; }

@media (max-width: 480px) {
    #ec-ai-chat { bottom: 16px; right: 16px; }
    #ec-chat-panel { width: calc(100vw - 32px); right: 0; }
}

/* ── PRODUCT SINGLE ──────────────────────────────────────────────────────── */
.woocommerce div.product { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.ec-allergen-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}
.ec-allergen-box h4 { font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.ec-allergen-box p { font-size: 13px; color: var(--grey); margin: 0 0 14px; }
.btn-request {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-request:hover { background: var(--navy-dk); }
.ec-delivery-note {
    background: var(--gold-pale);
    border: 1px solid #f3e2c0;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--navy);
    margin: 12px 0;
}
.ec-price-per-kg-single {
    font-size: 13px;
    color: var(--grey-lt);
    margin: 2px 0 8px;
    display: block;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.ast-footer-overlay .ast-footer-widget-area,
.site-footer, footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dk) 100%) !important;
    color: rgba(255,255,255,0.7) !important;
}
.ec-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dk) 100%);
    color: rgba(255,255,255,0.7) !important;
    padding: 80px 0 0;
}
/* Force all text inside footer to be light — beats Astra global link/text rules */
.ec-footer,
.ec-footer p,
.ec-footer span,
.ec-footer li { color: rgba(255,255,255,0.7) !important; }
.ec-footer a { color: rgba(255,255,255,0.6) !important; text-decoration: none !important; transition: var(--ease); }
.ec-footer a:hover { color: var(--gold-lt) !important; }
.ec-footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
@media (max-width: 960px) { .ec-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ec-footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.ec-footer-brand .ec-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: white !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 16px;
}
.ec-footer-brand .ec-footer-logo span { color: var(--gold-lt) !important; }
.ec-footer-brand p { font-size: 14px; line-height: 1.75; margin-bottom: 24px; color: rgba(255,255,255,0.7) !important; }
.ec-footer-social { display: flex; gap: 12px; margin-bottom: 24px; }
.ec-footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    font-size: 16px;
    transition: var(--ease);
}
.ec-footer-social a:hover { background: var(--gold); color: white !important; transform: translateY(-2px); }
.ec-footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: white !important;
    margin-bottom: 20px;
}
.ec-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ec-footer-col ul li { margin-bottom: 12px; }
.ec-footer-col ul li a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: var(--ease);
}
.ec-footer-col ul li a:hover { color: var(--gold-lt) !important; padding-left: 4px; }
.ec-footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.ec-payment-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}
.ec-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.ec-footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: var(--ease); }
.ec-footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.ec-footer-bottom-links { display: flex; gap: 24px; }

/* ── REGISTRATION ────────────────────────────────────────────────────────── */
.ec-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ec-reg-row-single { margin-bottom: 16px; }
.ec-reg-row label, .ec-reg-row-single label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 6px;
}
.ec-reg-row input, .ec-reg-row-single input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.ec-reg-row input:focus, .ec-reg-row-single input:focus { border-color: var(--navy); }
.ec-req { color: #ef4444; }

/* ── CART NAV ────────────────────────────────────────────────────────────── */
.ec-cart-nav-item > a { position: relative; }
.ec-cart-count {
    background: var(--gold) !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 1px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes ec-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ec-slide-up { 
    from { opacity: 0; transform: translateY(24px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes ec-slide-down { 
    from { opacity: 0; transform: translateY(-16px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes ec-scale-in { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}
@keyframes ec-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── MISC UTILITIES ──────────────────────────────────────────────────────── */
.ec-tracking-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 24px;
}
.ec-admin-tracking {
    margin-top: 16px;
    padding: 16px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--navy);
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    border-top-color: var(--navy) !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ec-hero-pillbar { display: none; }
    .ec-corner-promo { bottom: 20px; right: 16px; max-width: 220px; }
}
@media (max-width: 768px) {
    .ec-section { padding: 56px 0; }
    .ec-filter-bar { position: static; }
    .ec-filter-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ec-filter-search input { width: 100%; }
    .ec-hero-content { margin-left: 5%; }
    .ec-promo-row { grid-template-columns: 1fr 1fr; }
    .ec-corner-promo { display: none; }
}
@media (max-width: 480px) {
    .ec-promo-row { grid-template-columns: 1fr; }
    .ec-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-hero h1 { font-size: clamp(32px, 9vw, 48px); }
    .ec-nl-form { flex-direction: column; border-radius: 12px; }
    .ec-nl-form input { border-radius: 8px; }
    .ec-nl-form button { border-radius: 8px; }
}

/* ══════════════════════════════════════════���════════════════════════════════
 * v3.6 — CATEGORY / SHOP ARCHIVE LAYOUT
 * Structure-only. Colours intentionally use existing tokens so a single
 * palette swap (cream + blue) in style.css later re-themes the whole page.
 * ═══════════════════════════════════════════════════════════════════════ */

/* Container — full width minus gutters */
body.ec-shop-page .site-content,
body.ec-category-page .site-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.ec-archive-crumbs {
    margin: 4px 0 16px;
    font-size: 13px;
    color: var(--grey);
}
.ec-archive-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.ec-archive-crumbs li {
    display: inline-flex;
    align-items: center;
}
.ec-archive-crumbs li + li::before {
    content: "›";
    margin-right: 10px;
    color: var(--grey-lt);
}
.ec-archive-crumbs a {
    color: var(--grey);
    text-decoration: none;
    transition: color 0.15s;
}
.ec-archive-crumbs a:hover { color: var(--navy); }
.ec-archive-crumbs li[aria-current] {
    color: var(--espresso);
    font-weight: 600;
}

/* ── Archive header card ───────────────────────────────────────────────── */
.ec-archive-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 0 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}
.ec-archive-header-text { flex: 1; min-width: 0; }
.ec-archive-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 8px;
}
.ec-archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.15;
}
.ec-archive-desc {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
}
.ec-archive-desc p { margin: 0 0 8px; }
.ec-archive-meta {
    text-align: right;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 110px;
}
.ec-archive-meta strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--navy);
    line-height: 1;
}
.ec-archive-meta span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
}

/* ── 2-col wrapper: sidebar + main ────────────────────────────────────── */
.ec-archive-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: flex-start;
}
.ec-archive-main { min-width: 0; overflow: hidden; }

/* Force 3-column product grid inside archive main area
   NOTE: no .woocommerce in selector — that wrapper is not always in the DOM */
.ec-archive-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ec-archive-main ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    clear: none !important;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.ec-archive-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
}
.ec-side-block { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ec-side-block:first-child { padding-top: 0; }
.ec-side-block:last-child  { border-bottom: 0; padding-bottom: 0; }
.ec-side-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey);
    margin: 0 0 12px;
}

/* Cat list */
.ec-side-list { list-style: none; margin: 0; padding: 0; }
.ec-side-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--espresso);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.ec-side-item > a:hover { background: var(--cream); color: var(--navy); }
.ec-side-item > a em {
    font-style: normal;
    font-size: 11px;
    color: var(--grey-lt);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.ec-side-item > a.is-active {
    background: var(--navy);
    color: var(--white);
}
.ec-side-item > a.is-active em {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}
.ec-side-sublist {
    list-style: none;
    margin: 4px 0 4px 12px;
    padding: 0 0 0 10px;
    border-left: 2px solid var(--border);
}
.ec-side-sublist a {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--grey);
    text-decoration: none;
    font-size: 13px;
}
.ec-side-sublist a:hover { background: var(--cream); color: var(--navy); }
.ec-side-sublist a.is-active { color: var(--navy); font-weight: 600; }
.ec-side-sublist em {
    font-style: normal;
    font-size: 11px;
    color: var(--grey-lt);
}

/* Tag-style filters */
.ec-side-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ec-side-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    background: var(--cream);
    color: var(--grey);
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.15s;
}
.ec-side-tag:hover { color: var(--navy); border-color: var(--border); }
.ec-side-tag.is-active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Price filter (Woo widget) — strip default chrome, keep slider */
.ec-side-price .price_slider_wrapper { padding: 0; }
.ec-side-price .price_slider {
    background: var(--border);
    height: 4px;
    border-radius: 4px;
    margin: 14px 6px 18px;
    position: relative;
}
.ec-side-price .ui-slider-range {
    background: var(--navy);
    height: 4px;
    border-radius: 4px;
    position: absolute;
}
.ec-side-price .ui-slider-handle {
    width: 16px; height: 16px;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 50%;
    top: -6px;
    margin-left: -8px;
    cursor: pointer;
}
.ec-side-price .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--grey);
    flex-wrap: wrap;
    gap: 8px;
}
.ec-side-price .price_slider_amount .button {
    background: var(--navy);
    color: var(--white);
    border: 0;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Help card */
.ec-side-help p {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.5;
    margin: 0 0 12px;
}
.ec-side-help-btn {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.15s;
}
.ec-side-help-btn:hover { background: var(--navy-dk); color: var(--white); }
.ec-side-help-btn-alt {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}
.ec-side-help-btn-alt:hover { background: var(--cream); color: var(--navy); }

/* ── Toolbar (above grid) ──────────────────────────────────────────────── */
.ec-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ec-archive-toolbar-left { font-size: 13px; color: var(--grey); }
.ec-archive-toolbar-left .woocommerce-result-count { margin: 0; }
.ec-archive-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ec-archive-toolbar-right .woocommerce-ordering { margin: 0; }
.ec-archive-toolbar-right select.orderby {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--espresso);
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
}
.ec-archive-view {
    display: inline-flex;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.ec-view-btn {
    border: 0;
    background: var(--white);
    color: var(--grey);
    font-size: 14px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: all 0.15s;
}
.ec-view-btn + .ec-view-btn { border-left: 1.5px solid var(--border); }
.ec-view-btn:hover { background: var(--cream); color: var(--navy); }
.ec-view-btn.is-active { background: var(--navy); color: var(--white); }

/* List view — target both WooCommerce default and our custom archive wrapper */
body.ec-shop-page.ec-view-list-on .woocommerce ul.products,
body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 12px !important;
}
body.ec-shop-page.ec-view-list-on .woocommerce ul.products li.product,
body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px !important;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}
body.ec-shop-page.ec-view-list-on .woocommerce ul.products li.product img,
body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products li.product img {
    width: 180px !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    aspect-ratio: unset !important;
}
body.ec-shop-page.ec-view-list-on .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    margin-bottom: 6px !important;
}
body.ec-shop-page.ec-view-list-on .woocommerce ul.products li.product .button,
body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products li.product .button {
    white-space: nowrap;
}

/* Mobile filter toggle (hidden on desktop) */
.ec-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--navy);
    color: var(--white);
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .ec-archive-wrap { grid-template-columns: 1fr; }
    .ec-archive-sidebar {
        position: static;
        max-height: none;
        display: none;
    }
    body.ec-filters-open .ec-archive-sidebar { display: block; margin-bottom: 16px; }
    .ec-filter-toggle { display: block; }
    .ec-archive-header {
        flex-direction: column;
        padding: 22px;
    }
    .ec-archive-meta { text-align: left; align-self: flex-start; }
    .ec-archive-title { font-size: 28px; }
    body.ec-shop-page.ec-view-list-on .woocommerce ul.products li.product,
    body.ec-shop-page.ec-view-list-on .ec-archive-main ul.products li.product {
        grid-template-columns: 120px 1fr;
    }
    /* 2-col grid on tablet when sidebar collapses */
    .ec-archive-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    body.ec-shop-page .site-content,
    body.ec-category-page .site-content { padding: 16px; }
    .ec-archive-header { padding: 18px; }
    .ec-archive-title { font-size: 24px; }
    .ec-archive-toolbar { padding: 10px 12px; gap: 10px; }
    .ec-archive-main ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ── SHOP / CATEGORY SKIN (cream background, NOT homepage) ──────────────── */
/* Added in v3.7.0 — scoped via body.ec-category-page / body.ec-shop-page
   which are added by functions.php only on shop & category pages. */
body.ec-category-page,
body.ec-shop-page {
    --skin-bg:   #fcf9e6;          /* cream background */
    --skin-text: #000000;          /* Option A: black */
    /* --skin-text: #006bce; */    /* Option B: blue — swap the two lines to test */

    background: var(--skin-bg);
    color: var(--skin-text);
}

body.ec-category-page h1, body.ec-category-page h2,
body.ec-category-page h3, body.ec-category-page h4,
body.ec-category-page p,  body.ec-category-page li,
body.ec-shop-page h1, body.ec-shop-page h2,
body.ec-shop-page h3, body.ec-shop-page h4,
body.ec-shop-page p,  body.ec-shop-page li {
    color: var(--skin-text);
}

/* Keep product cards white so they pop against the cream */
body.ec-category-page .product,
body.ec-shop-page .product,
body.ec-category-page ul.products li.product,
body.ec-shop-page ul.products li.product {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

body.ec-category-page .page-title,
body.ec-shop-page .woocommerce-products-header__title {
    color: var(--skin-text);
}

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────────────────── */
.ec-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--navy);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.ec-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── PRINT STYLES ────────────────────────────────────────────────────────── */
@media print {
    .ec-site-header,
    .ec-announce-bar,
    .ec-chat-bubble,
    .ec-chat-panel,
    .ec-corner-promo,
    .ec-mobile-toggle,
    .ec-mega-panel,
    .ec-mega-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * v3.11.0 — Hero shortcut nav (standalone, over video)
 * ═══════════════════════════════════════════════════════════════════════ */
.ec-hero-shortcuts {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(8, 26, 44, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
    max-width: calc(100% - 32px);
    flex-wrap: wrap;
    justify-content: center;
}
.ec-hero-shortcuts span {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    user-select: none;
}
@media (max-width: 720px) {
    .ec-hero-shortcuts { top: 16px; padding: 8px 12px; gap: 4px; }
    .ec-hero-shortcuts a { font-size: 12px; padding: 6px 10px; }
    .ec-hero-shortcuts span { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION: Hero, Video, Navigation, Categories, Text
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* HERO: Make video full-screen, improve visibility */
    .ec-hero {
        min-height: 80vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .ec-hero-video-wrap {
        min-height: 70vh !important;
    }
    
    .ec-hero-video {
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Darken overlay more on mobile for text readability */
    .ec-hero-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Hero content: center, reduce text */
    .ec-hero-content {
        position: relative;
        z-index: 10;
        padding: 20px;
        text-align: center;
    }
    
    .ec-hero-brand-title {
        font-size: clamp(28px, 7vw, 48px) !important;
        margin-bottom: 6px !important;
    }
    
    .ec-hero-brand-tagline {
        font-size: clamp(16px, 4vw, 24px) !important;
        margin-bottom: 16px !important;
    }
    
    /* Hide ticker on mobile, show on tablet+ */
    .ec-hero-ticker {
        display: none !important;
    }
    
    .ec-hero-btns {
        flex-direction: column;
        gap: 10px !important;
        width: 100%;
    }
    
    .ec-hero-btns a {
        width: 100% !important;
        text-align: center;
        padding: 16px 20px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    
    /* HEADER: Simplify utility bar */
    .ec-hdr-utility-left {
        display: none !important;
    }
    
    .ec-hdr-row1-inner {
        padding: 0 12px !important;
    }
    
    /* CATEGORIES: 2 columns side by side, larger touch targets */
    .ec-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .ec-cat-card {
        min-height: 140px !important;
        aspect-ratio: unset !important;
    }
    
    .ec-cat-img {
        height: 110px !important;
        position: relative !important;
        inset: unset !important;
    }
    
    .ec-cat-info {
        position: relative !important;
        bottom: unset !important;
        padding: 10px 12px !important;
        background: var(--navy) !important;
    }
    
    .ec-cat-card::after {
        display: none !important;
    }
    
    /* CATEGORY TEXT: Reduce verbosity on mobile */
    .ec-cat-intro {
        display: none !important;
    }
    
    .ec-section-head p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* PROMO SECTION: Single column, centered */
    .ec-promo-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
    }
    
    .ec-promo-box {
        display: none !important;
    }
    
    .ec-promo-box:first-child {
        display: block !important;
    }
    
    /* ABOUT SECTION: Stack image above text */
    .ec-about-text {
        margin-top: 24px;
    }
    
    .ec-about-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    /* TRUST STRIP: handled by the 768px block above — no override needed here */
    
    /* NEWSLETTER: Full-width input */
    .ec-nl-form {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .ec-nl-form input,
    .ec-nl-form button {
        font-size: 14px !important;
        padding: 14px 12px !important;
    }
    
    /* FAQ: Improve readability */
    .ec-faq-item {
        margin-bottom: 12px !important;
    }
    
    .ec-faq-q {
        font-size: 15px !important;
        padding: 14px 12px !important;
    }
    
    .ec-faq-a {
        font-size: 14px !important;
        padding: 12px !important;
        line-height: 1.6 !important;
    }
    
    /* DELIVERY BAR: Stack on mobile */
    .ec-delivery-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    
    .ec-delivery-item {
        font-size: 13px !important;
    }
    
    .ec-delivery-sep {
        display: none !important;
    }
    
    /* BUTTONS: Larger touch targets — but NOT forced full-width */
    .ec-btn-white,
    .ec-btn-blue,
    .ec-btn-outline-blue,
    .ec-btn-outline-white {
        padding: 14px 28px !important;
        font-size: 14px !important;
    }
    
    /* GRID: 2 columns on tablet */
    .ec-archive-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    /* EXTRA SMALL: Further optimization */
    
    /* Hero: smaller title on phone */
    .ec-hero-eyebrow {
        display: none !important;
    }
    
    #hero-heading {
        font-size: 26px !important;
    }
    
    /* Hide shortcuts nav on small screens — too cluttered */
    .ec-hero-shortcuts {
        display: none !important;
    }
    
    /* Header */
    .ec-hdr-logo-text {
        font-size: 17px !important;
    }
    
    /* Categories: keep 2 columns on small phone too */
    .ec-cat-card {
        min-height: 130px !important;
    }
    
    .ec-cat-img {
        height: 95px !important;
    }
    
    .ec-cat-info strong {
        font-size: 13px !important;
    }
    
    .ec-cat-info span {
        font-size: 11px !important;
    }
    
    /* Hero buttons */
    .ec-hero-btns {
        width: 100%;
        padding: 0 16px;
    }
    
    .ec-hero-btns a {
        padding: 15px !important;
        font-size: 14px !important;
    }
    
    /* Products: keep 2 columns on phone too */
    .ec-archive-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Reduce padding */
    .ec-section {
        padding: 28px 14px !important;
    }
    
    .ec-wrap {
        padding: 0 14px !important;
    }
    
    /* PRODUCTS: Slightly smaller text in cards */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 13px !important;
    }
    
    /* Footer: Single column */
    .ec-footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Pop-up promo: full width */
    .ec-corner-promo {
        width: calc(100% - 20px) !important;
        margin: 10px !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    /* PHONE: Ultra-compact layout */
    
    /* Remove decorative elements that crowd the hero */
    .ec-hero-badges {
        display: none !important;
    }
    
    .ec-corner-promo {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
    }
    
    /* Reduce padding a touch more */
    .ec-section {
        padding: 22px 12px !important;
    }
    
    /* Category grid stays 2 columns — only go to 1 column below 360px */
    
    /* Text: safe wrapping */
    h1, h2, h3 {
        word-break: break-word !important;
    }
    
    .ec-hero-content {
        padding: 16px !important;
    }
    
    /* Buttons: Full width, easy tap */
    button, .ec-btn-white, .ec-btn-blue {
        font-size: 14px !important;
        padding: 12px 16px !important;
        min-height: 44px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   DARK MODE / HIGH CONTRAST TEXT FIX
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .ec-hero-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY: Touch targets, focus states
   ═══════════════════════════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {
    /* Touch devices: larger tap targets on interactive controls, not content wrappers */
    button,
    input[type="submit"],
    .ec-btn-white,
    .ec-btn-blue,
    .ec-btn-outline-blue,
    .ec-btn-outline-white {
        min-height: 44px !important;
    }
    button:hover {
        transform: none !important;
    }
}

/* Very small phones — drop category grid to 1 column below 360px */
@media (max-width: 360px) {
    .ec-cat-grid {
        grid-template-columns: 1fr !important;
    }
    .ec-cat-img {
        height: 140px !important;
    }
    .ec-archive-main ul.products {
        grid-template-columns: 1fr !important;
    }
    .ec-hero-brand-title {
        font-size: 26px !important;
    }
}
.ec-hero-eyebrow {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 14px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.ec-hero-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 12px rgba(0,0,0,0.4);
    margin: 0 0 8px;
    line-height: 1.1;
}

.ec-hero-brand-tagline {
    font-family: 'Caveat', cursive;
    font-size: clamp(20px, 5vw, 36px);
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0 0 28px;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   v3.13 — EDITORIAL LUXURY OVERRIDE LAYER
   ----------------------------------------------------------------------------
   Loaded after all base rules. Uses high-specificity selectors only where
   needed to win against Astra/WooCommerce defaults. Mobile-first, fluid type,
   prefers-reduced-motion aware, fully accessible focus rings.
   ═════════════════════════════════════════════════════════════════════════ */

/* ─── 1. FLUID TYPOGRAPHY SYSTEM ─────────────────────────────────────────── */
:root {
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script:  'Caveat', cursive;

    /* Fluid type scale — clamp(min, preferred, max) */
    --fs-xs:   clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
    --fs-sm:   clamp(0.875rem, 0.83rem + 0.25vw, 0.95rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
    --fs-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    --fs-xl:   clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
    --fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
    --fs-3xl:  clamp(2.25rem, 1.7rem + 2.6vw, 3.4rem);
    --fs-4xl:  clamp(2.8rem, 2rem + 4vw, 4.6rem);
    --fs-5xl:  clamp(3.4rem, 2.4rem + 5vw, 5.8rem);

    /* Spacing rhythm */
    --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem;
    --space-4: 2rem;    --space-5: 3rem;   --space-6: 4.5rem;
    --space-7: 6.5rem;  --space-8: 9rem;

    --container: 1240px;
    --container-narrow: 880px;
}

html { scroll-behavior: smooth; }

body,
.ast-container,
.entry-content {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--espresso);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "calt";
}

h1, h2, h3, h4, h5, h6,
.entry-title, .ast-archive-title,
.site-title {
    font-family: var(--font-display) !important;
    color: var(--espresso-dk);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1, .entry-title { font-size: var(--fs-4xl); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-body) !important; font-weight: 600; color: var(--olive); }

.eyebrow,
.ec-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.25rem;
}
.eyebrow::before,
.ec-eyebrow::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 1.75rem; height: 1px; background: var(--terracotta);
}

p { color: var(--espresso); max-width: 68ch; }
.entry-content p + p { margin-top: 1.1em; }

a { color: var(--terracotta); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--terracotta-dk); }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--gold-warm); color: var(--espresso-dk); }


/* ─── 2. CONTAINER & RHYTHM ──────────────────────────────────────────────── */
.ast-container,
.site-content > .ast-container {
    max-width: var(--container);
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

main#main,
.site-content {
    background: var(--ivory);
}

section,
.ec-section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}


/* ─── 3. BUTTONS — luxurious, tactile ────────────────────────────────────── */
.button,
.wp-block-button__link,
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.ec-btn,
button.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 1rem 2rem;
    border: 1.5px solid var(--espresso-dk);
    border-radius: 999px;
    background: var(--espresso-dk);
    color: var(--ivory) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--ease);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, var(--shadow-xs);
}
.button::before,
.wp-block-button__link::before,
.ec-btn::before,
.woocommerce a.button::before,
.woocommerce button.button::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .7s cubic-bezier(.4,0,.2,1);
    z-index: -1;
}
.button:hover,
.wp-block-button__link:hover,
.ast-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.ec-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.button:hover::before,
.wp-block-button__link:hover::before,
.ec-btn:hover::before { transform: translateX(110%); }

.button:active, .ec-btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.button:focus-visible, .ec-btn:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Secondary (outline) */
.ec-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--espresso-dk) !important;
    border-color: var(--espresso-dk);
}
.ec-btn--outline:hover { background: var(--espresso-dk); color: var(--ivory) !important; }

/* Ghost (underline) */
.ec-btn--ghost {
    background: transparent; border: none;
    padding: 0.5rem 0;
    border-bottom: 1.5px solid currentColor;
    border-radius: 0;
    color: var(--espresso-dk) !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.ec-btn--ghost:hover { background: transparent; color: var(--terracotta) !important; transform: translateY(-1px); }


/* ─── 4. HEADER / NAVIGATION — refined glass ─────────────────────────────── */
.site-header,
.ast-primary-header-bar,
.ast-above-header,
header#masthead {
    background: rgba(251, 248, 242, 0.86) !important;
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(42,30,20,0.02);
    transition: var(--ease);
}

.main-header-menu a,
.ast-builder-menu .menu-item > a,
.main-navigation a {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.04em;
    color: var(--espresso) !important;
    padding: 0.6rem 0.25rem !important;
    margin: 0 0.9rem !important;
    position: relative;
    transition: color .25s ease;
}
.main-header-menu a::after,
.ast-builder-menu .menu-item > a::after {
    content: "";
    position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.2rem;
    height: 1px; background: var(--terracotta);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.main-header-menu a:hover,
.ast-builder-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: var(--terracotta) !important;
}
.main-header-menu a:hover::after,
.ast-builder-menu .menu-item > a:hover::after,
.main-header-menu .current-menu-item > a::after { transform: scaleX(1); }

.site-title a, .site-title {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--espresso-dk) !important;
}

/* Mobile menu — generous touch targets */
@media (max-width: 921px) {
    .main-header-menu a,
    .ast-builder-menu .menu-item > a {
        padding: 1rem 1.25rem !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem !important;
    }
    .ast-mobile-menu-buttons-minimal { color: var(--espresso-dk); }
}


/* ─── 5. HERO / FRONT-PAGE BANNERS ───────────────────────────────────────── */
.ec-hero,
.front-page-hero,
.home .ast-page-builder-template .entry-content > section:first-child {
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
}

.ec-hero-brand-title,
.home h1.entry-title,
.front-page-hero h1 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: var(--fs-5xl) !important;
    letter-spacing: -0.025em;
    line-height: 1.05;
}
.ec-hero-brand-title em,
.front-page-hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.ec-hero-brand-tagline {
    font-family: var(--font-script) !important;
    color: var(--terracotta) !important;
    text-shadow: none !important;
}

/* Subtle film grain on hero — performance-cheap SVG noise */
.ec-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5; mix-blend-mode: multiply;
}


/* ─── 6. CARDS — modern editorial ────────────────────────────────────────── */
.ec-card,
.product,
.ast-article-post,
article.post,
.wp-block-group.has-background {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--ease);
    box-shadow: var(--shadow-xs);
}
.ec-card:hover,
.product:hover,
.ast-article-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cream-dk);
}

.ec-card img,
.product img {
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.ec-card:hover img,
.product:hover img { transform: scale(1.06); }

.ec-card__body { padding: clamp(1.25rem, 2vw, 1.75rem); }
.ec-card__title { font-family: var(--font-display); font-size: var(--fs-xl); margin: 0 0 .5rem; color: var(--espresso-dk); }
.ec-card__meta  { font-size: var(--fs-xs); color: var(--grey); letter-spacing: .14em; text-transform: uppercase; }


/* ─── 7. WOOCOMMERCE — tasteful polish ───────────────────────────────────── */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
    color: var(--espresso-dk);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-xl);
}
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display) !important;
    font-size: var(--fs-lg) !important;
    color: var(--espresso-dk) !important;
    font-weight: 500 !important;
}
.woocommerce span.onsale {
    background: var(--terracotta);
    color: var(--ivory);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.85rem;
    min-height: auto; min-width: auto; line-height: 1;
}


/* ─── 8. FORMS — calm, premium inputs ────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"],
input[type="url"], textarea, select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--espresso);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: var(--shadow-xs);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(181,87,46,0.12);
}
label { font-weight: 500; font-size: var(--fs-sm); color: var(--espresso-dk); margin-bottom: 0.4rem; display: inline-block; }
::placeholder { color: var(--grey-lt); opacity: 1; }


/* ─── 9. FOOTER — warm editorial close ───────────────────────────────────── */
.site-footer,
footer.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap {
    background: var(--espresso-dk) !important;
    color: var(--cream) !important;
    border-top: 4px solid var(--terracotta);
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 {
    color: var(--ivory) !important;
    font-family: var(--font-display) !important;
}
.site-footer a {
    color: var(--cream) !important;
    transition: color .25s ease;
    border-bottom: 1px solid transparent;
}
.site-footer a:hover { color: var(--gold-warm) !important; border-bottom-color: var(--gold-warm); }
.site-footer p { color: rgba(245,239,226,0.8) !important; }
.site-footer .widget-title { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem !important; color: var(--gold-warm) !important; font-family: var(--font-body) !important; }


/* ─── 10. SECTION DIVIDERS & DECORATIVE ──────────────────────────────────── */
.ec-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin: 3rem auto; max-width: 200px;
}
.ec-divider::before, .ec-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}
.ec-divider svg, .ec-divider span {
    color: var(--terracotta); font-family: var(--font-display); font-style: italic;
}


/* ─── 11. IMAGE PRESENTATION ─────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }
figure, .wp-block-image img {
    border-radius: var(--radius);
    overflow: hidden;
}
.ec-img-frame {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.ec-img-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.ec-img-frame:hover img { transform: scale(1.05); }


/* ─── 12. MICRO-INTERACTIONS / ENTRANCE ──────────────────────────────────── */
@keyframes ec-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ec-reveal,
.entry-content > section,
.ec-card { animation: ec-fade-up .7s cubic-bezier(.2,.8,.2,1) both; }
.ec-card:nth-child(2) { animation-delay: .08s; }
.ec-card:nth-child(3) { animation-delay: .16s; }
.ec-card:nth-child(4) { animation-delay: .24s; }


/* ─── 13. RESPONSIVE BREAKPOINTS ─────────────────────────────────────────── */
@media (max-width: 768px) {
    section, .ec-section { padding-block: clamp(2.5rem, 9vw, 4rem); }
    h1, .entry-title { letter-spacing: -0.015em; }
    .button, .ec-btn, .wp-block-button__link { padding: 0.95rem 1.6rem; font-size: 0.92rem; width: auto; }
    .eyebrow, .ec-eyebrow { font-size: 0.72rem; }
    p { max-width: none; }
}
@media (max-width: 480px) {
    .ast-container { padding-inline: 1.1rem; }
    .ec-card__body { padding: 1.1rem; }
}
@media (min-width: 1600px) {
    :root { --container: 1360px; }
}


/* ─── 14. ACCESSIBILITY ──────────────────────────────────────────────────── */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link:focus { background: var(--terracotta); color: var(--ivory); padding: .75rem 1.25rem; border-radius: 8px; }

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

/* ─── 15. PRINT ──────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .ast-mobile-menu-buttons, .ec-btn { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END v3.13 EDITORIAL LUXURY OVERRIDE LAYER
   ═════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   v3.13.1 — SHOP ARCHIVE & HEADER POLISH
   Fixes: duplicate breadcrumb, empty hero card, awkward product card stacking,
   oversized search bar / basket button.
   ═════════════════════════════════════════════════════════════════════════ */

/* ─── Hide Astra's duplicate breadcrumb on shop pages (keep ec-archive-crumbs) ── */
body.ec-shop-page .ast-breadcrumbs-wrapper,
body.woocommerce-shop .ast-breadcrumbs-wrapper,
body.woocommerce-page > .site-content > .ast-breadcrumbs-wrapper:first-child,
body.ec-shop-page nav.woocommerce-breadcrumb,
body.ec-shop-page .ast-single-post-title-wrapper > .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* ─── Archive header — tighter, balanced ─────────────────────────────────── */
.ec-archive-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem) !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    box-shadow: var(--shadow-xs) !important;
    position: relative;
    overflow: hidden;
}
.ec-archive-header::before {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle at center, rgba(201,162,75,0.10), transparent 70%);
    pointer-events: none;
}
.ec-archive-eyebrow {
    color: var(--terracotta) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.22em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
}
.ec-archive-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: var(--espresso-dk) !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}
.ec-archive-desc { color: var(--grey); margin-top: 0.5rem; font-size: var(--fs-sm); }
.ec-archive-meta {
    flex-shrink: 0;
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    min-width: 110px;
    box-shadow: var(--shadow-xs);
}
.ec-archive-meta strong {
    font-family: var(--font-display) !important;
    font-size: 2.25rem !important;
    font-style: italic;
    color: var(--espresso-dk) !important;
    line-height: 1 !important;
    display: block;
}
.ec-archive-meta span {
    font-size: 0.65rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--grey) !important;
    margin-top: 0.4rem !important;
    display: block;
}
@media (max-width: 640px) {
    .ec-archive-header { flex-direction: column; align-items: flex-start !important; gap: 1.25rem !important; }
    .ec-archive-meta { align-self: stretch; }
}

/* ─── Toolbar (results count + sorting) ──────────────────────────────────── */
.ec-archive-toolbar {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--shadow-xs) !important;
}
.ec-archive-toolbar select.orderby {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 0.55rem 2rem 0.55rem 0.85rem !important;
    font-size: 0.85rem !important;
    background-color: var(--ivory) !important;
}

/* ─── Product card — restructured ────────────────────────────────────────── */
.woocommerce ul.products li.product,
.ec-archive-main ul.products li.product {
    background: var(--white) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-xs) !important;
    padding: 0 0 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.woocommerce ul.products li.product:hover,
.ec-archive-main ul.products li.product:hover {
    border-color: var(--cream-dk) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-3px) !important;
}

/* Image — fixed aspect ratio, warm tinted placeholder */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.ec-archive-main ul.products li.product .woocommerce-loop-product__link {
    display: block !important;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dk) 100%);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.woocommerce ul.products li.product img,
.ec-archive-main ul.products li.product img {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    transition: transform .8s cubic-bezier(.2,.8,.2,1) !important;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.05) !important; }

/* Category label — positioned chip on the image, NOT pushing layout */
.woocommerce ul.products li.product .ec-cat-label,
.ec-archive-main ul.products li.product .ec-cat-label {
    position: absolute !important;
    top: 0.85rem !important; left: 0.85rem !important;
    z-index: 3 !important;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(6px);
    color: var(--terracotta) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 999px !important;
    box-shadow: var(--shadow-xs);
    display: inline-block !important;
    width: auto !important;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.ec-archive-main ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--espresso-dk) !important;
    padding: 1rem 1rem 0.35rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.005em !important;
    min-height: auto !important;
}

/* Price block — title first, price below; per-kg as small caption */
.woocommerce ul.products li.product .price,
.ec-archive-main ul.products li.product .price {
    padding: 0 1rem !important;
    font-family: var(--font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--espresso-dk) !important;
    margin: 0 !important;
}
.ec-price-per-kg {
    padding: 0.25rem 1rem 0 !important;
    font-size: 0.72rem !important;
    color: var(--grey) !important;
    letter-spacing: 0.05em !important;
    font-weight: 500 !important;
}

/* Add-to-cart button inside card */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.ec-archive-main ul.products li.product .button,
.ec-archive-main ul.products li.product a.button {
    margin: 0.85rem 1rem 0 !important;
    width: calc(100% - 2rem) !important;
    background: var(--espresso-dk) !important;
    color: var(--ivory) !important;
    border: 1.5px solid var(--espresso-dk) !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 0.85rem 1rem !important;
}
.woocommerce ul.products li.product .button:hover,
.ec-archive-main ul.products li.product .button:hover {
    background: var(--terracotta) !important;
    border-color: var(--terracotta) !important;
}

/* Sale badge — soften */
.woocommerce ul.products li.product .onsale,
.ec-archive-main ul.products li.product .onsale {
    background: var(--terracotta) !important;
    top: 0.85rem !important; right: 0.85rem !important; left: auto !important;
    font-size: 0.62rem !important;
    padding: 0.4rem 0.75rem !important;
}

/* Force a tighter, more elegant 3-column on shop, 2 on tablet, 1 on phone */
.ec-archive-main ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin: 0 !important;
    list-style: none !important;
    padding: 0 !important;
}
.ec-archive-main ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
@media (max-width: 1024px) {
    .ec-archive-main ul.products,
    .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .ec-archive-main ul.products,
    .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
}

/* ─── Sidebar (Categories / Need help) ───────────────────────────────────── */
.ec-archive-sidebar {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-xs) !important;
    height: fit-content;
    position: sticky; top: 100px;
}
.ec-archive-sidebar h3,
.ec-archive-sidebar .widget-title {
    font-family: var(--font-body) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--grey) !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--border);
}

/* ─── Header search bar — tighten ────────────────────────────────────────── */
.ec-search-form,
header .search-form,
.ast-search-menu-icon form {
    max-width: 460px !important;
}
.ec-search-form input[type="search"],
header .search-form input[type="search"],
.ast-search-menu-icon input.search-field {
    background: var(--cream) !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    padding: 0.7rem 3rem 0.7rem 1.25rem !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}
.ec-search-form button,
.ec-search-submit {
    background: var(--terracotta) !important;
    border-radius: 999px !important;
    width: 38px !important; height: 38px !important;
    padding: 0 !important;
    border: none !important;
}

/* Header right CTAs (Account / Basket) */
.ec-header-cta,
.ec-basket-btn {
    background: var(--espresso-dk) !important;
    color: var(--ivory) !important;
    border-radius: 999px !important;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    border: 1px solid var(--espresso-dk) !important;
    box-shadow: var(--shadow-xs) !important;
}
.ec-account-btn {
    background: transparent !important;
    color: var(--espresso-dk) !important;
    border: 1px solid var(--border) !important;
}
.ec-account-btn:hover { background: var(--cream) !important; }
.ec-basket-btn:hover { background: var(--terracotta) !important; border-color: var(--terracotta) !important; }

/* Quick Order pill in nav — refine */
.ec-quick-order-btn,
a.ec-quick-order-btn {
    background: var(--terracotta) !important;
    color: var(--ivory) !important;
    border-radius: 999px !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}
.ec-quick-order-btn:hover {
    background: var(--terracotta-dk) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* "All Categories" mega-menu trigger */
.ec-all-cats-btn {
    background: var(--espresso-dk) !important;
    color: var(--ivory) !important;
    border-radius: var(--radius) !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    padding: 0.85rem 1.25rem !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   END v3.13.1
   ═════════════════════════════════════════════════════════════════════════ */
