/*
=========================================================
 EASYBUY STAGE 2 — HEADER + NAVIGATION
=========================================================
*/

/* Hide Storefront header because the child theme supplies it. */
.site-header,
.storefront-primary-navigation {
    display: none !important;
}

.easybuy-site-header {
    position: relative;
    z-index: 9999;
    background: var(--store-white);
}

/* Moving notice bar */
.easybuy-notice-bar {
    height: var(--store-notice-height);
    overflow: hidden;
    background: #050505;
    color: #fff;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.easybuy-notice-track {
    display: inline-flex;
    width: max-content;
    animation: easybuy-notice-scroll 24s linear infinite;
}

.easybuy-notice-track span {
    display: inline-block;
    padding: 0 42px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

@keyframes easybuy-notice-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}

/* Main header */
.easybuy-main-header {
    background: #fff;
    border-bottom: 1px solid var(--store-border);
}

.easybuy-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.easybuy-brand {
    flex: 0 0 auto;
    min-width: 180px;
}

.easybuy-brand .custom-logo {
    display: block;
    max-height: 52px;
    width: auto;
}

.easybuy-site-title {
    color: var(--store-text);
    font-size: 27px;
    font-weight: 800;
    text-decoration: none;
}

/* Search */
.easybuy-header-search {
    height: 46px;
    flex: 1 1 auto;
    min-width: 250px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 24px;
    background: #fff;
    margin: 0;
}

.easybuy-header-search select,
.easybuy-header-search input {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    margin: 0;
}

.easybuy-header-search select {
    width: 115px;
    padding: 0 10px 0 17px;
    border-right: 1px solid var(--store-border);
    font-size: 13px;
    color: var(--store-text);
}

.easybuy-header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
}

.easybuy-header-search button {
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: var(--store-primary);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

/* Contact */
.easybuy-header-contact {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.25;
}

.easybuy-contact-icon {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--store-primary-light);
    color: var(--store-primary);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.easybuy-header-contact strong,
.easybuy-header-contact a {
    display: block;
}

.easybuy-header-contact strong {
    font-size: 12px;
}

.easybuy-header-contact a {
    color: var(--store-text);
    font-weight: 700;
    text-decoration: none;
}

/* Actions */
.easybuy-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.easybuy-header-action {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--store-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--store-text);
    text-decoration: none;
}

.easybuy-header-action:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
}

.easybuy-cart-count {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--store-primary);
    color: #fff;
    font-size: 10px;
    display: grid;
    place-items: center;
}

.easybuy-sale-button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 22px;
    background: var(--store-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* Desktop navigation */
.easybuy-desktop-nav {
    background: #eaf4ec;
    border-bottom: 1px solid #dce8de;
}

.easybuy-nav-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.easybuy-browse-button {
    min-height: 38px;
    padding: 0 17px;
    border: 0;
    border-radius: 20px;
    background: var(--store-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.easybuy-primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.easybuy-primary-menu li {
    margin: 0;
    position: relative;
}

.easybuy-primary-menu a {
    display: block;
    padding: 15px 0;
    color: var(--store-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.easybuy-primary-menu a:hover,
.easybuy-primary-menu .current-menu-item > a {
    color: var(--store-primary);
}

/* Category panel */
.easybuy-category-panel {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--store-border);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.easybuy-category-panel.is-open {
    display: block;
}

.easybuy-category-panel-inner {
    padding: 22px 0;
}

.easybuy-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 25px;
}

.easybuy-category-grid a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--store-text);
    text-decoration: none;
    font-weight: 600;
}

.easybuy-category-grid a:hover {
    background: var(--store-primary-light);
    color: var(--store-primary);
}

/* Mobile menu button hidden on desktop */
.easybuy-mobile-menu-button {
    display: none;
}

/* Mobile drawer */
.easybuy-mobile-drawer {
    display: none;
}

/* Bottom nav hidden on desktop */
.easybuy-mobile-bottom-nav {
    display: none;
}

/* Sticky header */
@media (min-width: 769px) {
    .easybuy-site-header {
        position: sticky;
        top: 0;
        z-index: 99999;
    }

    .admin-bar .easybuy-site-header {
        top: 32px;
    }
}

/* Tablet */
@media (max-width: 1050px) and (min-width: 769px) {
    .easybuy-header-inner {
        gap: 12px;
    }

    .easybuy-brand {
        min-width: 145px;
    }

    .easybuy-header-contact {
        display: none;
    }

    .easybuy-primary-menu {
        gap: 17px;
    }

    .easybuy-primary-menu a {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    body {
        padding-bottom: 76px;
    }

    .easybuy-site-header {
        position: sticky;
        top: 0;
        z-index: 99999;
    }

    .admin-bar .easybuy-site-header {
        top: 0;
    }

    .easybuy-notice-bar {
        height: 34px;
    }

    .easybuy-notice-track span {
        font-size: 11px;
        padding: 0 28px;
    }

    .easybuy-main-header {
        min-height: 68px;
    }

    .easybuy-header-inner {
        width: 100%;
        min-height: 68px;
        padding: 8px 12px;
        gap: 10px;
        justify-content: space-between;
    }

    .easybuy-mobile-menu-button {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--store-border);
        border-radius: 10px;
        background: #fff;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .easybuy-menu-lines {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .easybuy-menu-lines span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--store-text);
    }

    .easybuy-brand {
        min-width: 0;
        flex: 1;
        text-align: center;
    }

    .easybuy-brand .custom-logo {
        max-height: 42px;
        max-width: 145px;
        margin-inline: auto;
    }

    .easybuy-site-title {
        font-size: 20px;
    }

    .easybuy-header-search,
    .easybuy-header-contact,
    .easybuy-desktop-nav {
        display: none;
    }

    .easybuy-header-actions {
        gap: 5px;
    }

    .easybuy-header-action {
        width: 39px;
        height: 39px;
    }

    .easybuy-header-action:first-child {
        display: none;
    }

    .easybuy-sale-button {
        display: none;
    }

    /* Mobile drawer */
    .easybuy-mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 100001;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }

    .easybuy-mobile-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .easybuy-mobile-drawer-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.5);
        opacity: 0;
        transition: opacity .25s ease;
    }

    .easybuy-mobile-drawer.is-open .easybuy-mobile-drawer-overlay {
        opacity: 1;
    }

    .easybuy-mobile-drawer-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100%;
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 25px rgba(0,0,0,.15);
    }

    .easybuy-mobile-drawer.is-open .easybuy-mobile-drawer-panel {
        transform: translateX(0);
    }

    .easybuy-mobile-drawer-header {
        min-height: 66px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--store-border);
    }

    .easybuy-mobile-drawer-header strong {
        font-size: 20px;
    }

    .easybuy-mobile-drawer-close {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: var(--store-primary-light);
        color: var(--store-primary);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .easybuy-mobile-menu-content {
        padding: 12px 18px 30px;
    }

    .easybuy-mobile-menu,
    .easybuy-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .easybuy-mobile-menu li {
        border-bottom: 1px solid #eef0f2;
        margin: 0;
    }

    .easybuy-mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 8px 3px;
        color: var(--store-text);
        text-decoration: none;
        font-weight: 600;
    }

    .easybuy-mobile-menu a:hover {
        color: var(--store-primary);
    }

    .easybuy-mobile-menu .sub-menu {
        padding-left: 14px;
    }

    .easybuy-mobile-section-title {
        margin-top: 22px;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--store-primary);
    }

    .easybuy-mobile-categories a {
        display: block;
        padding: 9px 3px;
        border-bottom: 1px solid #eef0f2;
        color: var(--store-text);
        text-decoration: none;
        font-size: 14px;
    }

    /* Fixed mobile bottom navigation */
    .easybuy-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100000;
        display: block;
        height: 76px;
        background: #fff;
        border-top: 1px solid var(--store-border);
        box-shadow: 0 -5px 18px rgba(0,0,0,.08);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .easybuy-bottom-menu {
        height: 100%;
        list-style: none;
        margin: 0;
        padding: 4px 2px 0;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
    }

    .easybuy-bottom-menu li {
        flex: 1 1 0;
        margin: 0;
        min-width: 0;
    }

    .easybuy-bottom-menu a {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #162d55;
        text-decoration: none;
        line-height: 1;
        overflow: hidden;
    }

    .easybuy-bottom-menu small {
        max-width: 100%;
        padding: 0 2px;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .easybuy-bottom-menu a:hover,
    .easybuy-bottom-menu .current-menu-item > a {
        color: var(--store-primary);
    }

    /*
     * Lightweight line-style icons.
     * Stage 9 can replace these with a proper icon set/SVG system.
     */
    .easybuy-bottom-icon {
        position: relative;
        width: 24px;
        height: 24px;
        display: block;
    }

    .easybuy-icon-home .easybuy-bottom-icon::before {
        content: '⌂';
        font-size: 25px;
    }

    .easybuy-icon-shop .easybuy-bottom-icon::before {
        content: '▦';
        font-size: 24px;
    }

    .easybuy-icon-cart .easybuy-bottom-icon::before {
        content: '🛒';
        font-size: 19px;
    }

    .easybuy-icon-account .easybuy-bottom-icon::before {
        content: '♙';
        font-size: 24px;
    }

    .easybuy-icon-wishlist .easybuy-bottom-icon::before {
        content: '♡';
        font-size: 27px;
    }

    .easybuy-icon-compare .easybuy-bottom-icon::before {
        content: '⇄';
        font-size: 25px;
    }

    .easybuy-icon-search .easybuy-bottom-icon::before {
        content: '⌕';
        font-size: 28px;
    }

    .easybuy-icon-menu .easybuy-bottom-icon::before {
        content: '☰';
        font-size: 22px;
    }

    @media (max-width: 420px) {
        .easybuy-bottom-menu small {
            font-size: 9px;
        }

        .easybuy-bottom-icon {
            transform: scale(.92);
        }
    }
}


/* Stage 2 bottom-navigation correction */
@media (max-width: 767px) {
    body .easybuy-mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 66px !important;
        z-index: 99999 !important;
        background: #fff !important;
        border-top: 1px solid #e7e7e7 !important;
        box-shadow: 0 -4px 18px rgba(0,0,0,.08) !important;
    }

    body .easybuy-mobile-bottom-nav > ul,
    body .easybuy-mobile-bottom-nav .menu {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        width: 100% !important;
        height: 66px !important;
        margin: 0 !important;
        padding: 3px 0 2px !important;
        list-style: none !important;
    }

    body .easybuy-mobile-bottom-nav > ul > li,
    body .easybuy-mobile-bottom-nav .menu > li {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .easybuy-mobile-bottom-nav .easybuy-bottom-link {
        width: 100% !important;
        min-width: 0 !important;
        height: 61px !important;
        padding: 3px 1px !important;
        box-sizing: border-box !important;
    }

    body .easybuy-mobile-bottom-nav .easybuy-bottom-link small {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body {
        padding-bottom: 66px;
    }
}

/*
 * If Storefront has generated a separate mobile footer/navigation,
 * keep the EasyBuy bar as the only fixed mobile navigation.
 */
@media (max-width: 767px) {
    .storefront-handheld-footer-bar {
        display: none !important;
    }
}


/* =========================================================
   Stage 3 — Hero & Promotional Banners
   ========================================================= */

.easybuy-hero-section {
    padding: 24px 0 30px;
    background: #f7f8fa;
}

.easybuy-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}

.easybuy-hero-main,
.easybuy-promo-card {
    position: relative;
    overflow: hidden;
    background-color: #173b73;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.easybuy-hero-main {
    min-height: 430px;
    border-radius: 14px;
    display: flex;
    align-items: center;
}

.easybuy-hero-overlay,
.easybuy-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,25,55,.86), rgba(7,25,55,.15));
}

.easybuy-promo-overlay {
    background: linear-gradient(90deg, rgba(7,25,55,.75), rgba(7,25,55,.08));
}

.easybuy-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 56px;
}

.easybuy-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.easybuy-hero-content h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 800;
}

.easybuy-hero-content p {
    max-width: 520px;
    margin: 0 0 25px;
    color: rgba(255,255,255,.9);
    font-size: 17px;
}

.easybuy-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border-radius: 7px;
    background: #f7b500;
    color: #14294d;
    font-weight: 800;
    text-decoration: none;
}

.easybuy-hero-button:hover {
    color: #14294d;
    opacity: .92;
}

.easybuy-promo-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.easybuy-promo-card {
    min-height: 206px;
    border-radius: 14px;
    text-decoration: none;
}

.easybuy-promo-content {
    position: absolute;
    z-index: 2;
    inset: auto 25px 23px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.easybuy-promo-content strong {
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
}

.easybuy-promo-content small {
    max-width: 280px;
    margin-top: 7px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
}

.easybuy-promo-content em {
    margin-top: 12px;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.easybuy-promo-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .easybuy-hero-grid {
        grid-template-columns: 1fr;
    }

    .easybuy-promo-column {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }
}

@media (max-width: 767px) {
    .easybuy-hero-section {
        padding: 12px 0 20px;
    }

    .easybuy-hero-grid {
        gap: 12px;
    }

    .easybuy-hero-main {
        min-height: 360px;
        border-radius: 10px;
    }

    .easybuy-hero-content {
        padding: 30px 24px;
    }

    .easybuy-hero-content h1 {
        font-size: 38px;
    }

    .easybuy-hero-content p {
        font-size: 15px;
    }

    .easybuy-promo-column {
        gap: 12px;
    }

    .easybuy-promo-card {
        min-height: 180px;
        border-radius: 10px;
    }

    .easybuy-promo-content {
        inset: auto 17px 17px;
    }

    .easybuy-promo-content strong {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .easybuy-promo-column {
        grid-template-columns: 1fr;
    }

    .easybuy-promo-card {
        min-height: 165px;
    }
}


/* =========================================================
   Stage 3 CORRECTED — isolated fixes
   ========================================================= */

/* Desktop search icon: exact mathematical centering. */
.easybuy-header-search button {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.easybuy-header-search button span {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

/* Mobile sticky custom header — notice + header remain together. */
@media (max-width: 768px) {
    .easybuy-site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
    }

    .admin-bar .easybuy-site-header {
        top: 46px !important;
    }

    .easybuy-mobile-search-button {
        flex: 0 0 39px;
        width: 39px;
        height: 39px;
        border: 1px solid var(--store-border);
        border-radius: 50%;
        background: #fff;
        color: var(--store-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 23px;
        line-height: 1;
        box-sizing: border-box;
    }

    .easybuy-mobile-search-button span {
        display: block;
        line-height: 1;
        transform: translateY(-1px);
    }

    .easybuy-mobile-search-box {
        display: flex;
        position: absolute;
        left: 10px;
        right: 10px;
        top: 102px;
        height: 46px;
        z-index: 100002;
        border: 1px solid var(--store-border);
        border-radius: 24px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 8px 22px rgba(0,0,0,.12);
    }

    .easybuy-mobile-search-box input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        padding: 0 14px;
        font-size: 14px;
        background: #fff;
    }

    .easybuy-mobile-search-box button {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: var(--store-primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 1px;
        font-size: 22px;
        line-height: 1;
    }

    body.easybuy-menu-open {
        overflow: hidden;
    }
}




/* =========================================================
   EasyBuy Stage 3 — Four Column Footer
   ========================================================= */

.easybuy-footer {
    margin-top: 50px;
    padding: 50px 0 0;
    background: #eaf7ee;
    color: #355347;
    border-top: 1px solid #d5eddd;
}

.easybuy-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 42px;
}

.easybuy-footer-column {
    min-width: 0;
}

.easybuy-footer-title {
    margin: 0 0 15px;
    color: var(--store-primary, #168b4d);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.easybuy-footer-about p {
    max-width: 330px;
    margin: 0 0 20px;
    color: #587064;
    font-size: 14px;
    line-height: 1.7;
}

.easybuy-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #587064;
    font-size: 13px;
    line-height: 1.5;
}

.easybuy-footer-contact span:first-child {
    width: 18px;
    flex: 0 0 18px;
    color: var(--store-primary, #168b4d);
    font-size: 15px;
    text-align: center;
}

.easybuy-footer-contact a {
    color: #466358;
    text-decoration: none;
}

.easybuy-footer-contact a:hover {
    color: var(--store-primary, #168b4d);
}

.easybuy-footer-column h3 {
    margin: 4px 0 18px;
    color: #17633e;
    font-size: 17px;
    font-weight: 700;
}

.easybuy-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.easybuy-footer-menu li {
    margin: 0 0 11px;
    padding: 0;
}

.easybuy-footer-menu a {
    color: #587064;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.easybuy-footer-menu a:hover {
    color: var(--store-primary, #168b4d);
}

.easybuy-footer-bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-top: 1px solid #d2e9da;
    color: #71867c;
    font-size: 11px;
}

@media (max-width: 900px) {
    .easybuy-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }
}

@media (max-width: 600px) {
    .easybuy-footer {
        margin-top: 35px;
        padding-top: 38px;
    }

    .easybuy-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .easybuy-footer-about {
        grid-column: 1 / -1;
    }

    .easybuy-footer-title {
        font-size: 22px;
    }

    .easybuy-footer-bottom {
        min-height: 65px;
    }
}


/* =========================================================
   Stage 3 readability + mobile navigation refinement
   ========================================================= */

/* Slightly larger footer typography on desktop/tablet. */
.easybuy-footer-about p,
.easybuy-footer-contact,
.easybuy-footer-menu a {
    font-size: 14px;
}

.easybuy-footer-column h3 {
    font-size: 18px;
}

.easybuy-footer-title {
    font-size: 27px;
}

/* Mobile footer: one column stacked vertically. */
@media (max-width: 600px) {
    .easybuy-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .easybuy-footer-about {
        grid-column: auto !important;
    }

    .easybuy-footer-column h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .easybuy-footer-about p,
    .easybuy-footer-contact,
    .easybuy-footer-menu a {
        font-size: 14px;
    }

    .easybuy-footer-menu li {
        margin-bottom: 11px;
    }
}

/* =========================================================
   Mobile bottom navigation
   - items automatically divide available width
   - no fixed 6-column assumption
   - centered icon + label
   - larger readable typography
   ========================================================= */

@media (max-width: 767px) {
    .easybuy-mobile-bottom-nav {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 5px 4px 6px !important;
        box-sizing: border-box !important;
    }

    .easybuy-mobile-bottom-nav > ul,
    .easybuy-mobile-bottom-nav .menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .easybuy-mobile-bottom-nav > ul > li,
    .easybuy-mobile-bottom-nav .menu > li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
    }

    .easybuy-mobile-bottom-nav .easybuy-bottom-link {
        width: 100% !important;
        min-width: 0 !important;
        height: 68px !important;
        padding: 4px 2px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .easybuy-mobile-bottom-nav .easybuy-bottom-icon {
        width: 27px !important;
        height: 27px !important;
        flex: 0 0 27px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .easybuy-mobile-bottom-nav .easybuy-bottom-link small,
    .easybuy-mobile-bottom-nav .easybuy-bottom-link span {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Very small phones: keep labels usable without overflowing. */
@media (max-width: 380px) {
    .easybuy-mobile-bottom-nav .easybuy-bottom-link {
        height: 65px !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    .easybuy-mobile-bottom-nav .easybuy-bottom-icon {
        width: 25px !important;
        height: 25px !important;
        flex-basis: 25px !important;
    }

    .easybuy-mobile-bottom-nav .easybuy-bottom-link small,
    .easybuy-mobile-bottom-nav .easybuy-bottom-link span {
        font-size: 11px !important;
    }
}


/* =========================================================
   Stage 3 — Typography + Indigo accents + Back to Top
   ========================================================= */

/* Indigo / blue styling for ecommerce text. */
.easybuy-footer,
.easybuy-footer p,
.easybuy-footer-contact,
.easybuy-footer-menu a {
    color: #34456f;
}

.easybuy-footer-title,
.easybuy-footer-column h3 {
    color: #263b73;
}

/* Footer text: bold and easier to read. */
.easybuy-footer-about p,
.easybuy-footer-contact,
.easybuy-footer-menu a {
    font-weight: 700;
}

/* Product name, description and reviews. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce div.product .product_title {
    color: #263b73;
    font-weight: 800;
}

.woocommerce ul.products li.product .price {
    font-weight: 800;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-product-details__short-description p,
.woocommerce div.product .woocommerce-tabs p {
    color: #34456f;
    font-weight: 600;
}

.woocommerce div.product .woocommerce-review-link,
.woocommerce #reviews,
.woocommerce #reviews p,
.woocommerce #reviews .comment-text,
.woocommerce #reviews .commentlist li {
    color: #34456f;
    font-weight: 600;
}

.woocommerce div.product .woocommerce-review-link {
    font-weight: 700;
}

/* Product description section if present in the custom layout. */
.easybuy-product-description,
.easybuy-product-description-content {
    color: #34456f;
}

.easybuy-product-description h2 {
    color: #263b73;
    font-weight: 800;
}

.easybuy-product-description-content p,
.easybuy-product-description-content li {
    color: #34456f;
    font-weight: 600;
}

/* Back-to-top button. Hidden until the visitor scrolls. */
.easybuy-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 100000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #263b73;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(38,59,115,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.easybuy-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.easybuy-back-to-top:hover {
    background: #344d8b;
}

@media (max-width: 767px) {
    .easybuy-back-to-top {
        right: 14px;
        bottom: 88px;
        width: 46px;
        height: 46px;
        font-size: 21px;
    }
}


/* =========================================================
   Stage 3 — Final mobile bottom-nav sizing/width correction
   ========================================================= */

@media (max-width: 767px) {
    /* Force the navigation bar itself to use the entire viewport. */
    .easybuy-mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
        box-sizing: border-box !important;
    }

    /* The actual menu takes 100% of the bar. */
    .easybuy-mobile-bottom-nav > ul,
    .easybuy-mobile-bottom-nav > .menu,
    .easybuy-mobile-bottom-nav nav > ul,
    .easybuy-mobile-bottom-nav nav > .menu {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        flex: 1 1 100% !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Every item receives exactly the same share of the available width. */
    .easybuy-mobile-bottom-nav > ul > li,
    .easybuy-mobile-bottom-nav > .menu > li,
    .easybuy-mobile-bottom-nav nav > ul > li,
    .easybuy-mobile-bottom-nav nav > .menu > li {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    /* Bigger, centered touch target. */
    .easybuy-mobile-bottom-nav .easybuy-bottom-link {
        width: 100% !important;
        max-width: none !important;
        height: 72px !important;
        padding: 5px 2px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    /* Bigger icons. */
    .easybuy-mobile-bottom-nav .easybuy-bottom-icon {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }

    /* Bigger labels. */
    .easybuy-mobile-bottom-nav .easybuy-bottom-link small,
    .easybuy-mobile-bottom-nav .easybuy-bottom-link span {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }
}

/* Footer text noticeably larger, while preserving the existing indigo theme. */
.easybuy-footer-about p,
.easybuy-footer-contact,
.easybuy-footer-menu a {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.easybuy-footer-column h3 {
    font-size: 19px !important;
    font-weight: 800 !important;
}

@media (max-width: 600px) {
    .easybuy-footer-about p,
    .easybuy-footer-contact,
    .easybuy-footer-menu a {
        font-size: 15px !important;
    }

    .easybuy-footer-column h3 {
        font-size: 19px !important;
    }

    .easybuy-footer-menu li {
        margin-bottom: 12px !important;
    }
}


/* =========================================================
   Stage 3 — Editable desktop page navigation
   ========================================================= */

@media (min-width: 769px) {
    .easybuy-nav-inner {
        gap: 18px;
    }

    .easybuy-primary-menu {
        flex: 1 1 auto;
        min-width: 0;
        gap: 5px;
        justify-content: flex-start;
        overflow: hidden;
    }

    .easybuy-primary-menu li {
        flex: 0 0 auto;
    }

    .easybuy-primary-menu a {
        padding: 9px 11px;
        border-radius: 7px;
        color: #34456f;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .easybuy-primary-menu a:hover,
    .easybuy-primary-menu .current-menu-item > a {
        color: var(--store-primary);
        background: #e6f4eb;
    }

    .easybuy-primary-menu-default {
        align-items: center;
    }
}

@media (max-width: 1050px) and (min-width: 769px) {
    .easybuy-primary-menu {
        gap: 2px;
    }

    .easybuy-primary-menu a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12px;
    }
}
