/*
Theme Name: Aespl Shop
Theme URI: https://example.com/aespl-shop
Author: Aespl
Author URI: https://example.com
Description: WooCommerce-ready storefront theme for selling products online.
Version: 1.0.0
Text Domain: aespl
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --aespl-primary: #0d3d2f;
    --aespl-primary-2: #1c4d3f;
    --aespl-accent: #d7a74d;

    --aespl-bg: #f3efe7;
    --aespl-surface: #ffffff;

    --aespl-text: #1e1f1c;
    --aespl-muted: #6c6a65;

    --aespl-border:
        rgba(13, 61, 47, 0.12);

    --container: 1220px;

    --shadow-soft:
        0 14px 28px rgba(
            12,
            42,
            35,
            0.08
        );
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #f1efe8;

    color:
        var(--aespl-text);

    font-family:
        "Hanken Grotesk",
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width:
        min(
            var(--container),
            calc(100% - 32px)
        );

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: #ffffff;

    box-shadow:
        0 1px 0
        rgba(13, 61, 47, 0.08);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #0d3d2f 0%,
            #104b3a 45%,
            #0a2f29 100%
        );

    color: #f7f4eb;

    border-bottom:
        1px solid
        rgba(
            202,
            223,
            185,
            0.16
        );

    font-size: 0.72rem;
}

.topbar-inner {
    position: relative;

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.topbar-left,
.topbar-right,
.topbar-promise {
    display: flex;

    align-items: center;
}

.topbar-left {
    justify-content: center;

    gap: 10px;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.03em;
}

.topbar-promise {
    position: absolute;

    left: 0;

    gap: 7px;

    color: #c8dc9f;

    font-size: 0.66rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.topbar-promise svg {
    width: 18px;
    height: 18px;
}

.topbar-promise::after {
    content: "";

    width: 1px;
    height: 16px;

    margin-left: 5px;

    background:
        rgba(
            202,
            223,
            185,
            0.3
        );
}

.topbar-message-slider {
    position: relative;

    display: grid;

    width:
        min(
            700px,
            60vw
        );

    height: 24px;

    overflow: hidden;
}

.topbar-message {
    grid-area: 1 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    white-space: nowrap;

    color: #f7f4eb;

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: 0.035em;

    opacity: 0;

    transform:
        translateX(100%);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.topbar-message.is-active {
    opacity: 1;

    transform:
        translateX(0);
}

.topbar-message.is-leaving {
    opacity: 0;

    transform:
        translateX(-100%);
}

.topbar-right {
    position: absolute;

    right: 0;
}

.topbar-right a {
    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    font-size: 0.72rem;

    font-weight: 600;

    transition:
        color 0.2s ease;
}

.topbar-right a:hover {
    color: #c8dc9f;
}


/* =========================================================
   NAVIGATION WRAPPER
   ========================================================= */

.nav-wrap {
    position: sticky;

    top: 0;

    z-index: 110;

    background: #ffffff;

    box-shadow:
        0 1px 0
        rgba(13, 61, 47, 0.08);
}

.nav-inner {
    min-height: 86px;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   BRANDING
   ========================================================= */

.branding {
    display: flex;

    align-items: center;

    min-width: 0;
}

.brand-mark {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    line-height: 1;

    color:
        var(--aespl-primary);

    transition:
        transform 0.35s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        );
}

.brand-mark:hover {
    transform:
        translateY(-1px);
}


/* ADMIN IMAGE LOGO */

.brand-mark img {
    display: block;

    width:
        var(
            --aespl-logo-width,
            190px
        );

    height: auto;

    max-height:
        var(
            --aespl-logo-height,
            68px
        );

    object-fit: contain;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


/* =========================================================
   TEXT LOGO FALLBACK
   ========================================================= */

.brand-text {
    position: relative;

    display: inline-block;

    color:
        var(--aespl-primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.3rem;

    font-weight: 700;

    line-height: 0.9;

    letter-spacing: -0.055em;
}

.brand-text::after {
    content: "HERBAL MATERIALS";

    display: block;

    margin-top: 5px;

    color:
        var(--aespl-primary);

    font-family:
        "Hanken Grotesk",
        "Segoe UI",
        sans-serif;

    font-size: 0.42rem;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.28em;

    text-align: center;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 0;
}

.main-navigation .menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap:
        clamp(
            14px,
            1.7vw,
            25px
        );

    margin: 0;

    padding: 0;

    list-style: none;
}

.main-navigation .menu > li {
    position: relative;

    margin: 0;
}

.main-navigation .menu > li > a {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 42px;

    padding:
        8px 0;

    color:
        var(--aespl-primary);

    font-size: 0.79rem;

    font-weight: 700;

    letter-spacing: 0.035em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.main-navigation .menu > li > a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 2px;

    height: 2px;

    background:
        var(--aespl-primary);

    transform:
        scaleX(0);

    transform-origin: center;

    transition:
        transform 0.3s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        );
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li > a:focus-visible {
    color:
        var(--aespl-primary-2);
}


/* =========================================================
   MENU HOVER
   ========================================================= */

.main-navigation .menu > li > a:hover::after,
.main-navigation .menu > li > a:focus-visible::after {
    transform: scaleX(1);
}


/* =========================================================
   NORMAL PAGE ACTIVE MENU
   ========================================================= */

/*
 * On normal pages WordPress handles the active
 * menu item automatically.
 *
 * Examples:
 * Flowers page  → Flowers underline
 * Leaves page   → Leaves underline
 * Roots page    → Roots underline
 */
body:not(.single-product)
.main-navigation .menu > li.current-menu-item > a::after,

body:not(.single-product)
.main-navigation .menu > li.current-menu-parent > a::after,

body:not(.single-product)
.main-navigation .menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}


/* =========================================================
   SINGLE PRODUCT ACTIVE MENU
   ========================================================= */

/*
 * WooCommerce can mark multiple menu items as
 * current on a product page.
 *
 * Example:
 * A product can belong to Flowers + Leaves.
 *
 * We don't want both menu items underlined.
 * So on single product pages we first remove
 * WordPress automatic active states.
 */

body.single-product
.main-navigation .menu > li.current-menu-item > a::after,

body.single-product
.main-navigation .menu > li.current-menu-parent > a::after,

body.single-product
.main-navigation .menu > li.current-menu-ancestor > a::after {
    transform: scaleX(0);
}


/*
 * header.js adds:
 *
 * aespl-product-source-active
 *
 * to the category from which the product
 * was opened.
 *
 * Only that menu gets the underline.
 */

body.single-product
.main-navigation .menu > li.aespl-product-source-active > a::after {
    transform: scaleX(1);
}


/* =========================================================
   DESKTOP SUBMENU
   ========================================================= */

.main-navigation
.menu-item-has-children {
    position: relative;
}

.main-navigation
.menu-item-has-children::after {
    content: "";

    position: absolute;

    left: 50%;

    bottom: -12px;

    width: 100%;

    height: 16px;

    transform:
        translateX(-50%);
}

.main-navigation .sub-menu {
    position: absolute;

    top:
        calc(100% + 12px);

    left: 50%;

    min-width: 215px;

    margin: 0;

    padding: 9px;

    list-style: none;

    background: #ffffff;

    border:
        1px solid
        rgba(13, 61, 47, 0.09);

    border-radius: 14px;

    box-shadow:
        0 18px 45px
        rgba(
            12,
            42,
            35,
            0.14
        );

    opacity: 0;

    visibility: hidden;

    transform:
        translate(
            -50%,
            -8px
        );

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 120;
}

.main-navigation
.menu-item-has-children:hover
> .sub-menu,

.main-navigation
.menu-item-has-children:focus-within
> .sub-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translate(
            -50%,
            0
        );
}

.main-navigation .sub-menu li {
    margin: 0;
}

.main-navigation .sub-menu a {
    display: flex;

    align-items: center;

    padding:
        10px 12px;

    border-radius: 9px;

    color:
        var(--aespl-primary);

    font-size: 0.78rem;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus-visible {
    background:
        rgba(
            13,
            61,
            47,
            0.05
        );

    color:
        var(--aespl-primary-2);

    padding-left: 16px;
}


/* =========================================================
   HEADER TOOLS
   ========================================================= */

.header-tools {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}

.header-search {
    position: relative;

    width:
        min(
            250px,
            22vw
        );

    flex-shrink: 1;
}

.header-search input {
    width: 100%;

    height: 42px;

    padding:
        0 46px 0 16px;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.12
        );

    border-radius: 999px;

    background: #f6f4f0;

    color:
        var(--aespl-text);

    outline: none;

    font-size: 0.88rem;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.header-search input::placeholder {
    color:
        rgba(
            14,
            35,
            30,
            0.52
        );
}

.header-search input:focus {
    background: #ffffff;

    border-color:
        rgba(
            13,
            61,
            47,
            0.28
        );

    box-shadow:
        0 0 0 4px
        rgba(
            13,
            61,
            47,
            0.05
        );
}

.header-search button {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 29px;
    height: 29px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        var(--aespl-primary);

    color: #ffffff;

    transform:
        translateY(-50%);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-search button:hover {
    background:
        var(--aespl-primary-2);

    transform:
        translateY(-50%)
        scale(1.05);
}

.header-search svg {
    width: 14px;
    height: 14px;

    fill: currentColor;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}

.header-action {
    position: relative;

    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.1
        );

    border-radius: 50%;

    background:
        rgba(
            13,
            61,
            47,
            0.035
        );

    color:
        var(--aespl-primary);

    transition:
        transform 0.25s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        ),
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.header-action:hover,
.header-action:focus-visible {
    background:
        rgba(
            13,
            61,
            47,
            0.08
        );

    border-color:
        rgba(
            13,
            61,
            47,
            0.18
        );

    transform:
        translateY(-2px);
}

.header-action svg {
    width: 18px;
    height: 18px;

    stroke: currentColor;
}


/* =========================================================
   CART
   ========================================================= */

.cart-action {
    position: relative;
}

.cart-count {
    position: absolute;

    top: -5px;
    right: -4px;

    min-width: 18px;
    height: 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 4px;

    border-radius: 999px;

    background:
        var(--aespl-primary);

    color: #ffffff;

    font-size: 0.62rem;

    font-weight: 800;

    line-height: 1;

    box-shadow:
        0 2px 7px
        rgba(
            13,
            61,
            47,
            0.18
        );
}


/* =========================================================
   MOBILE SEARCH TOGGLE
   ========================================================= */

.header-action.search-toggle {
    display: none;
}


/* =========================================================
   MOBILE MENU TOGGLE
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    position: relative;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    padding: 0;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.1
        );

    border-radius: 50%;

    background:
        rgba(
            13,
            61,
            47,
            0.035
        );

    color:
        var(--aespl-primary);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.mobile-menu-toggle:hover {
    background:
        rgba(
            13,
            61,
            47,
            0.08
        );

    transform:
        translateY(-1px);
}

.mobile-menu-toggle span {
    display: block;

    width: 17px;
    height: 2px;

    border-radius: 999px;

    background:
        currentColor;

    transform-origin: center;

    transition:
        transform 0.3s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        ),
        opacity 0.2s ease,
        width 0.3s ease;
}


/* HAMBURGER → X */

.mobile-menu-toggle.is-open
span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-toggle.is-open
span:nth-child(2) {
    opacity: 0;

    width: 0;
}

.mobile-menu-toggle.is-open
span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE SIDEBAR BACKDROP
   ========================================================= */

.mobile-sidebar-backdrop {
    position: fixed;

    inset: 0;

    z-index: 150;

    background:
        rgba(
            5,
            19,
            15,
            0.52
        );

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    backdrop-filter:
        blur(2px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.mobile-sidebar-backdrop.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */

.mobile-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 200;

    width:
        min(
            88vw,
            380px
        );

    height: 100dvh;

    display: flex;

    flex-direction: column;

    background: #ffffff;

    box-shadow:
        -20px 0 50px
        rgba(
            8,
            30,
            23,
            0.18
        );

    transform:
        translateX(105%);

    visibility: hidden;

    transition:
        transform 0.4s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        ),
        visibility 0.4s ease;

    overflow-y: auto;

    overscroll-behavior:
        contain;
}

.mobile-sidebar.is-open {
    transform:
        translateX(0);

    visibility: visible;
}


/* =========================================================
   MOBILE SIDEBAR HEADER
   ========================================================= */

.mobile-sidebar-header {
    min-height: 74px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 20px;

    border-bottom:
        1px solid
        rgba(
            13,
            61,
            47,
            0.08
        );

    color:
        var(--aespl-primary);

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.mobile-sidebar-close {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.1
        );

    border-radius: 50%;

    background:
        rgba(
            13,
            61,
            47,
            0.035
        );

    color:
        var(--aespl-primary);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.mobile-sidebar-close:hover {
    background:
        rgba(
            13,
            61,
            47,
            0.08
        );

    transform:
        rotate(90deg);
}

.mobile-sidebar-close svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-navigation {
    padding:
        12px 20px 20px;
}

.mobile-menu {
    display: flex;

    flex-direction: column;

    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mobile-menu > li {
    margin: 0;

    opacity: 0;

    transform:
        translateX(20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.mobile-sidebar.is-open
.mobile-menu > li {
    opacity: 1;

    transform:
        translateX(0);
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(2) {
    transition-delay: 0.09s;
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(3) {
    transition-delay: 0.13s;
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(4) {
    transition-delay: 0.17s;
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(5) {
    transition-delay: 0.21s;
}

.mobile-sidebar.is-open
.mobile-menu > li:nth-child(6) {
    transition-delay: 0.25s;
}

.mobile-menu > li > a {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 52px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(
            13,
            61,
            47,
            0.07
        );

    color:
        var(--aespl-primary);

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-menu > li > a:hover {
    color:
        var(--aespl-primary-2);

    padding-left: 5px;
}


/* =========================================================
   MOBILE SUBMENU
   ========================================================= */

.mobile-menu .sub-menu {
    display: none;

    margin: 0;

    padding:
        4px 0 8px 14px;

    list-style: none;

    border-left:
        1px solid
        rgba(
            13,
            61,
            47,
            0.1
        );
}

.mobile-menu .sub-menu.is-open {
    display: block;

    animation:
        aespl-submenu-open
        0.25s ease;
}

.mobile-menu .sub-menu a {
    display: block;

    padding:
        9px 10px;

    color:
        var(--aespl-muted);

    font-size: 0.82rem;

    font-weight: 600;
}

.mobile-menu > li > a {
    position: relative;
}


/*
 * Remove automatic WordPress active state
 * on product pages.
 */

body.single-product
.mobile-menu > li.current-menu-item > a,

body.single-product
.mobile-menu > li.current-menu-parent > a,

body.single-product
.mobile-menu > li.current-menu-ancestor > a {
    color: var(--aespl-primary);
}


/*
 * Remembered source category
 */

body.single-product
.mobile-menu > li.aespl-product-source-active > a {
    color: var(--aespl-primary-2);
}


@keyframes aespl-submenu-open {

    from {
        opacity: 0;

        transform:
            translateY(-5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   MOBILE SIDEBAR TOOLS
   ========================================================= */

.mobile-sidebar-tools {
    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 10px;

    padding:
        18px 20px 24px;

    border-top:
        1px solid
        rgba(
            13,
            61,
            47,
            0.08
        );
}

.mobile-sidebar-link {
    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 44px;

    color:
        var(--aespl-primary);

    font-size: 0.88rem;

    font-weight: 700;
}

.mobile-sidebar-link svg {
    width: 19px;
    height: 19px;

    flex-shrink: 0;
}

.mobile-cart-count {
    font-weight: 800;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.aespl-menu-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE SEARCH OVERLAY
   ========================================================= */

.mobile-search-overlay {
    position: fixed;

    inset: 0;

    z-index: 300;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding:
        24px 16px;

    background:
        rgba(
            10,
            24,
            19,
            0.75
        );

    backdrop-filter:
        blur(4px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.mobile-search-overlay.is-open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.mobile-search-panel {
    width:
        min(
            100%,
            900px
        );

    padding:
        18px 18px 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.98
        );

    border-radius: 24px;

    box-shadow:
        0 24px 60px
        rgba(
            8,
            20,
            17,
            0.18
        );

    animation:
        aespl-search-panel-in
        0.35s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}

.mobile-search-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding-bottom: 12px;

    color:
        var(--aespl-primary);

    font-size: 1.05rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.mobile-search-close {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.1
        );

    border-radius: 50%;

    background:
        rgba(
            13,
            61,
            47,
            0.06
        );

    color:
        var(--aespl-primary);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.mobile-search-close:hover {
    background:
        rgba(
            13,
            61,
            47,
            0.1
        );

    transform:
        rotate(90deg);
}

.mobile-search-close svg {
    width: 18px;
    height: 18px;
}

.mobile-search-form {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 8px;
}

.mobile-search-form input {
    flex: 1;

    min-width: 0;

    height: 56px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(
            13,
            61,
            47,
            0.12
        );

    border-radius: 16px;

    background: #f5f3ee;

    color:
        var(--aespl-text);

    outline: none;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.mobile-search-form input:focus {
    background: #ffffff;

    border-color:
        rgba(
            13,
            61,
            47,
            0.25
        );

    box-shadow:
        0 0 0 4px
        rgba(
            13,
            61,
            47,
            0.05
        );
}

.mobile-search-form button {
    height: 56px;

    padding:
        0 22px;

    border: 0;

    border-radius: 16px;

    background:
        var(--aespl-primary);

    color: #ffffff;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.mobile-search-form button:hover {
    background:
        var(--aespl-primary-2);

    transform:
        translateY(-1px);
}

@keyframes aespl-search-panel-in {

    from {
        opacity: 0;

        transform:
            translateY(-20px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   MAIN
   ========================================================= */

.site-main {
    flex: 1 0 auto;

    min-height:
        clamp(
            340px,
            52vh,
            640px
        );
}


/* =========================================================
   AESPL FOOTER
   ========================================================= */

.aespl-footer {
    position: relative;

    overflow: hidden;

    padding: 0;

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(
                215,
                167,
                77,
                0.08
            ),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #092f25 0%,
            #0d3d2f 48%,
            #082a22 100%
        );

    color: #f5f2e9;
}

.aespl-footer__container {
    position: relative;

    z-index: 2;
}


/* =========================================================
   FOOTER GLOW
   ========================================================= */

.aespl-footer__glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}

.aespl-footer__glow--one {
    width: 420px;
    height: 420px;

    top: -250px;
    right: 8%;

    border:
        1px solid
        rgba(
            215,
            167,
            77,
            0.1
        );
}

.aespl-footer__glow--two {
    width: 260px;
    height: 260px;

    bottom: -170px;
    left: 12%;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );
}


/* =========================================================
   FOOTER BOTANICAL ART
   ========================================================= */

.aespl-footer__leaf {
    position: absolute;

    z-index: 1;

    width: 290px;
    height: 290px;

    color:
        rgba(
            215,
            167,
            77,
            0.12
        );

    pointer-events: none;
}

.aespl-footer__leaf svg {
    width: 100%;
    height: 100%;

    display: block;
}

.aespl-footer__leaf--left {
    left: -120px;
    bottom: -80px;

    transform:
        rotate(-8deg);
}

.aespl-footer__leaf--right {
    right: -120px;
    top: -100px;

    transform:
        rotate(8deg);
}


/* =========================================================
   FOOTER GRID
   ========================================================= */

.aespl-footer__top {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.45fr)
        minmax(150px, 0.75fr)
        minmax(160px, 0.8fr)
        minmax(240px, 1.15fr);

    gap: 54px;

    padding:
        88px 0 72px;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.aespl-footer__brand {
    position: relative;

    min-width: 0;
}

.aespl-footer__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        rgba(
            255,
            255,
            255,
            0.6
        );

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}

.aespl-footer__eyebrow::before {
    content: "";

    width: 24px;
    height: 1px;

    background:
        var(--aespl-accent);
}

.aespl-footer__brand-heading {
    display: flex;

    flex-direction: column;

    margin-top: 24px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            42px,
            4vw,
            66px
        );

    line-height: 0.9;

    letter-spacing: -0.045em;

    font-weight: 400;
}

.aespl-footer__brand-heading
span:nth-child(2),

.aespl-footer__brand-heading
span:nth-child(4) {
    color:
        var(--aespl-accent);

    padding-left: 42px;
}

.aespl-footer__brand-logo {
    margin-top: 38px;
}

.aespl-footer__brand-logo img {
    display: block;

    width: 145px;

    height: auto;
}

.aespl-footer__tagline {
    max-width: 330px;

    margin: 18px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.68
        );

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   FOOTER SOCIAL
   ========================================================= */

.aespl-footer__social {
    margin-top: 28px;
}

.aespl-footer__social > span {
    display: block;

    margin-bottom: 12px;

    color:
        rgba(
            255,
            255,
            255,
            0.42
        );

    font-size: 11px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.aespl-footer__social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.aespl-footer__social-links a {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius: 50%;

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.aespl-footer__social-links a:hover,
.aespl-footer__social-links a:focus-visible {
    color:
        #0d3d2f;

    background:
        var(--aespl-accent);

    border-color:
        var(--aespl-accent);

    transform:
        translateY(-3px);
}

.aespl-footer__social-links svg {
    width: 15px;
    height: 15px;

    fill: currentColor;

    stroke: currentColor;
}

.aespl-footer__social-links
a:nth-child(3) svg {
    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.aespl-footer__column {
    padding-top: 8px;
}

.aespl-footer__column h3 {
    margin:
        0 0 22px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

    font-weight: 400;
}

.aespl-footer__menu {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin: 0;

    padding: 0;

    list-style: none;
}

.aespl-footer__menu li {
    margin: 0;
    padding: 0;
}

.aespl-footer__menu a {
    position: relative;

    display: inline-flex;

    align-items: center;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    font-size: 13px;

    line-height: 1.5;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.aespl-footer__menu a::before {
    content: "→";

    position: absolute;

    left: -18px;

    color:
        var(--aespl-accent);

    opacity: 0;

    transition:
        opacity 0.25s ease,
        left 0.25s ease;
}

.aespl-footer__menu a:hover,
.aespl-footer__menu a:focus-visible {
    color: #ffffff;

    padding-left: 18px;
}

.aespl-footer__menu a:hover::before,
.aespl-footer__menu a:focus-visible::before {
    left: 0;

    opacity: 1;
}


/* =========================================================
   FOOTER QUOTE
   ========================================================= */

.aespl-footer__quote {
    position: relative;

    min-height: 270px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    border:
        1px solid
        rgba(
            215,
            167,
            77,
            0.26
        );

    border-radius: 25px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}

.aespl-footer__quote-symbol {
    display: block;

    margin-bottom: 26px;

    color:
        var(--aespl-accent);

    font-size: 19px;
}

.aespl-footer__quote
.aespl-footer__eyebrow {
    margin-bottom: 17px;
}

.aespl-footer__quote h3 {
    max-width: 270px;

    margin: 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    line-height: 1.08;

    font-weight: 400;
}

.aespl-footer__quote p {
    margin:
        18px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.58
        );

    font-size: 12px;

    line-height: 1.75;
}

.aespl-footer__quote-line {
    width: 42px;
    height: 1px;

    margin-top: auto;

    background:
        var(--aespl-accent);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.aespl-footer__bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding:
        21px 0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.11
        );
}

.aespl-footer__bottom p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.42
        );

    font-size: 11px;
}

.aespl-footer__legal {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 22px;
}

.aespl-footer__legal a {
    color:
        rgba(
            255,
            255,
            255,
            0.46
        );

    font-size: 11px;

    transition:
        color 0.2s ease;
}

.aespl-footer__legal a:hover,
.aespl-footer__legal a:focus-visible {
    color:
        var(--aespl-accent);
}


/* =========================================================
   TABLET — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .aespl-footer__top {
        grid-template-columns:
            1.3fr
            0.8fr
            0.8fr;

        gap: 45px;
    }

    .aespl-footer__brand {
        grid-row: span 2;
    }

    .aespl-footer__quote {
        grid-column: 2 / -1;

        min-height: 220px;
    }
}


/* =========================================================
   HEADER TABLET — 1020px
   ========================================================= */

@media (max-width: 1020px) {

    .main-navigation {
        display: none;
    }

    .nav-inner {
        position: relative;

        min-height: 76px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 12px;
    }

    .branding {
        position: absolute;

        top: 50%;
        left: 50%;

        transform:
            translate(
                -50%,
                -50%
            );
    }

    .mobile-menu-toggle {
        display: inline-flex;

        order: 1;

        flex-shrink: 0;
    }

    .header-tools {
        order: 3;

        margin-left: auto;

        gap: 8px;
    }

    .header-search {
        display: none;
    }

    .header-action.search-toggle {
        display: inline-flex;
    }

    .account-action {
        display: none;
    }
}


/* =========================================================
   MOBILE — 760px
   ========================================================= */

@media (max-width: 760px) {

    .topbar {
        display: none;
    }

    .nav-inner {
        min-height: 70px;

        gap: 8px;
    }

    .brand-mark img {
        width:
            var(
                --aespl-mobile-logo-width,
                145px
            );

        max-height: 54px;
    }

    .brand-text {
        font-size: 1.95rem;
    }

    .brand-text::after {
        font-size: 0.34rem;

        letter-spacing: 0.2em;
    }

    .mobile-menu-toggle {
        width: 37px;
        height: 37px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-action {
        width: 36px;
        height: 36px;
    }

    .header-action svg {
        width: 17px;
        height: 17px;
    }


    /* FOOTER */

    .aespl-footer__top {
        grid-template-columns: 1fr 1fr;

        gap:
            42px 28px;

        padding:
            65px 0 50px;
    }

    .aespl-footer__brand {
        grid-column: 1 / -1;

        grid-row: auto;
    }

    .aespl-footer__quote {
        grid-column: 1 / -1;

        min-height: 0;
    }

    .aespl-footer__brand-heading {
        font-size:
            clamp(
                46px,
                12vw,
                62px
            );
    }

    .aespl-footer__bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;
    }
}


/* =========================================================
   SMALL MOBILE — 640px
   ========================================================= */

@media (max-width: 640px) {

    .container {
        width:
            calc(100% - 20px);
    }

    .nav-inner {
        min-height: 68px;
    }

    .aespl-footer__leaf {
        width: 220px;
        height: 220px;
    }

    .aespl-footer__leaf--left {
        left: -125px;
    }

    .aespl-footer__leaf--right {
        right: -135px;
    }

    .mobile-search-overlay {
        padding:
            16px 10px;
    }

    .mobile-search-panel {
        border-radius: 20px;

        padding:
            15px;
    }

    .mobile-search-form {
        gap: 8px;
    }

    .mobile-search-form input {
        height: 50px;

        font-size: 0.92rem;
    }

    .mobile-search-form button {
        height: 50px;

        padding:
            0 16px;

        border-radius: 14px;
    }
}


/* =========================================================
   500px
   ========================================================= */

@media (max-width: 500px) {

    .nav-inner {
        min-height: 66px;
    }

    .brand-mark img {
        width:
            var(
                --aespl-mobile-logo-width,
                135px
            );

        max-height: 48px;
    }

    .brand-text {
        font-size: 1.75rem;
    }

    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
    }

    .header-action {
        width: 34px;
        height: 34px;
    }

    .header-actions {
        gap: 4px;
    }

    .cart-count {
        top: -4px;
        right: -4px;
    }


    /* FOOTER */

    .aespl-footer__top {
        grid-template-columns: 1fr;

        gap: 34px;

        padding:
            54px 0 42px;
    }

    .aespl-footer__column {
        padding-top: 0;
    }

    .aespl-footer__quote {
        padding: 25px;
    }

    .aespl-footer__quote h3 {
        font-size: 25px;
    }

    .aespl-footer__brand-heading {
        font-size: 50px;
    }

    .aespl-footer__brand-heading
    span:nth-child(2),

    .aespl-footer__brand-heading
    span:nth-child(4) {
        padding-left: 25px;
    }

    .aespl-footer__brand-logo {
        margin-top: 30px;
    }

    .aespl-footer__brand-logo img {
        width: 125px;
    }

    .aespl-footer__legal {
        gap:
            12px 18px;
    }
}


/* =========================================================
   VERY SMALL MOBILE — 380px
   ========================================================= */

@media (max-width: 380px) {

    .container {
        width:
            calc(100% - 16px);
    }

    .brand-mark img {
        width:
            min(
                var(
                    --aespl-mobile-logo-width,
                    130px
                ),
                36vw
            );
    }

    .brand-text {
        font-size: 1.6rem;
    }

    .brand-text::after {
        font-size: 0.29rem;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
    }

    .header-action {
        width: 33px;
        height: 33px;
    }

    .header-action svg {
        width: 16px;
        height: 16px;
    }
}


/* =========================================================
   WOOCOMMERCE BASIC
   ========================================================= */

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border: 0;

    border-radius: 999px;

    background:
        var(--aespl-primary);

    color: #ffffff;

    font-weight: 600;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        2px solid
        var(--aespl-accent);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}