@import url('https://fonts.cdnfonts.com/css/din-condensed');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --primary: #346739;
    --dark: #000200;
    --white: #FFFFFF;
    --light: #f7f7f7;
    --gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DIN Condensed', sans-serif;
    background: #fff;
    overflow-x: hidden;
}

/* Don't let the body font override Font Awesome */

i {
    font-family: "Font Awesome 6 Free" !important;
}

.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab{
    font-family: "Font Awesome 6 Free" !important;
}

.fa-solid,
.fas{
    font-weight:900 !important;
}

.fa-regular,
.far{
    font-weight:400 !important;
}

.fa-brands,
.fab{
    font-family:"Font Awesome 6 Brands" !important;
    font-weight:400 !important;
}

/* ===========================================
   BUTTON RESET
   Stops theme/browser default button styling
   (background/border/radius) from leaking into
   our icon buttons — this is what turned the
   cart-close "x" into a solid blue square.
=========================================== */
.close-cart,
.fx_nav_close,
.fx_mobile_toggle,
.fx_actions button,
.fx_nav_actions button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: var(--dark) !important;
    cursor: pointer;
}

.close-cart:hover,
.fx_nav_close:hover,
.fx_mobile_toggle:hover {
    color: var(--primary) !important;
}

/* ===========================================
   HEADER
=========================================== */
.fx_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background:var(--white);
    box-shadow:
        0 8px 20px rgba(0,0,0,.08),
        0 20px 45px rgba(0,0,0,.08);

    border-bottom: 1px solid rgba(0,0,0,.08);

}

.fx_logo {
    height: 4vw;
}

.fx_logo a img {
    height: 100%;
}

.fx_logo a {
    text-decoration: none;
}

.fx_nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx_nav ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.fx_nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
    transition: .3s ease-in-out;
}

.fx_has_mega:hover > a{
    color: var(--primary);
    letter-spacing:3px;
}

.fx_has_mega:hover > a::after{
    width:100%;
}

.fx_nav > ul > li > a{
    position:relative;
    /*padding:35px 0;*/
    transition:.35s;
}

/*.fx_nav > ul > li > a.active {*/
/*    padding:35px 0;*/
/*}*/

.fx_nav > ul > li > a::after{
    display: none;
    content:"";
    position:absolute;
    left:0;
    bottom:20px;
    width:0;
    height:3px;
    background:var(--primary);
    transition:.35s;
}

.fx_nav > ul > li:hover > a::after{
    width:100%;
}

.fx_nav:hover > ul > li > a{
    color:#bdbdbd;
}

.fx_nav:hover > ul > li:hover > a{
    /*padding: 20px 0;*/
    color:var(--primary);
    letter-spacing:3px;
    border-bottom: 3px solid var(--primary);
}

.fx_nav a.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    /*font-size: 20px;*/
}

.fx_nav a.active:hover {
    border-bottom: none;
}

/* Mobile-only nav head (logo + close button) and action icons —
   hidden by default, only switched on inside the ≤991px block below. */
.fx_nav_head {
    display: none;
}

.fx_nav_actions {
    display: none;
}

.fx_actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fx_actions button {
    font-size: 22px;
}

.fx_actions button i {
    color: var(--dark);
}

.fx_actions a {
    text-decoration: none;
    color: #111;
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    position: relative;
}

.fx_mobile_toggle {
    display: none;
    font-size: 26px;
}

/* ==========================================
   FIXED HEADER
========================================== */

.fx_header{
    width: 100%;
    z-index: 9999;

    padding:15px 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    transition:
        background .35s ease,
        padding .35s ease,
        box-shadow .35s ease;
}

/* Header after scroll */

.fx_header.fx_header_scrolled{

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background:#ffffff;

    box-shadow:
        0 8px 20px rgba(0,0,0,.08),
        0 20px 45px rgba(0,0,0,.08);

    border-bottom: 1px solid rgba(0,0,0,.08);

    /*padding:20px 70px;*/

}

/* ===========================
   Mega Menu (desktop hover)
=========================== */

.fx_nav ul{
    position:relative;
}

.fx_has_mega{
    position:relative;
}

.fx_header{
    position: relative;
}

.fx_nav{
    position: static;
}

.fx_nav ul{
    position: static;
}

.fx_has_mega{
    position: static;
}

.fx_mega_menu{

    position: absolute;

    top: 95%;
    left: 0;
    right: 0;

    width: 70%;

    background:

    linear-gradient(
        to bottom,
        #f9fbf9 0%,
        #ffffff 100%
    );
    
    border-top:4px solid var(--primary);

    box-shadow:
        0 25px 60px rgba(0,0,0,.08);


    box-shadow: 0 18px 40px rgba(0,0,0,.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: .35s ease;

    pointer-events: none;

    z-index: 999;
    margin: auto;
}

.fx_mega_menu.active{

    opacity:1;
    visibility:visible;

    transform:translateY(0);

    pointer-events:auto;

}

.fx_mega_inner{

    max-width:100%;

    margin:auto;

    padding:50px 70px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:50px;

}

.fx_mega_column{

    display:flex;
    flex-direction:column;
    gap:18px;

}

.fx_mega_column a{
    width: fit-content;

    text-decoration:none;

    color: var(--dark);

    text-transform:uppercase;

    transition:.3s;

    display:inline-block;

}

.fx_mega_column a:hover{

    color:var(--primary);
    padding-left:12px;

}

.fx_mega_column{

    border-right:2px solid #ececec;

}

.fx_mega_column:last-child{

    border-right:none;

}

/* ===========================================
   CART DRAWER (structure)
=========================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: .4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 28px;
}

.close-cart {
    font-size: 32px;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
    font-size: 15px;
    color: #444;
}

.cart-footer{
    margin-top:auto;
    position:sticky;
    bottom:0;
    background:#fff;
    padding:20px;
    border-top:1px solid #ececec;
    box-shadow:0 -5px 20px rgba(0,0,0,.05);
}

.cart-footer a{
    width:100%;
    height:54px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:18px;
    margin-bottom:12px;
    border-radius: 6px;
    font-weight: 600;
}

.cart-footer a:last-child{
    margin-bottom:0;
}

.cart-footer a.cart-btn-primary {
    background: var(--dark);
    color: var(--white);
}

.cart-footer a.cart-btn-primary:hover { background: var(--primary); }

.cart-footer a.cart-btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray);
}

.cart-footer a.cart-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===========================================
   CART DRAWER — WooCommerce mini-cart content
   These target WC's actual default markup:
   ul.woocommerce-mini-cart > li.mini_cart_item
   containing a.remove, an <a> that wraps the
   thumbnail + product name together, a
   p.quantity, and a dl.variation.
   Image+name share one <a>, so we float the
   image inside it instead of using grid — a
   grid would assume they're separate columns,
   which is what broke the layout last time.
=========================================== */

/* WooCommerce already prints its own View Cart / Checkout buttons here —
   .cart-footer above has the styled versions, so hide WC's copy. */
.cart-body .woocommerce-mini-cart__buttons,
.cart-body p.buttons {
    display: none !important;
}

.cart-body ul.woocommerce-mini-cart,
.cart-body ul.cart_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-body .mini_cart_item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.cart-body .mini_cart_item:first-child {
    padding-top: 0;
}

/* The <a> that wraps thumbnail + product name */
.cart-body .mini_cart_item > a:not(.remove) {
    display: block;
    overflow: hidden; /* clearfix — contains the floated image */
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    order: 1;
    padding-right: 26px; /* keep clear of the remove "x" */
}

.cart-body .mini_cart_item > a:not(.remove) img {
    float: left;
    margin-right: 14px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

/* Meta (Fabric/Fit/Pattern/Size) */
.cart-body .mini_cart_item dl.variation {
    order: 2;
    font-size: 14px;
    color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 10px 0 0;
}

.cart-body .mini_cart_item dl.variation dt {
    font-weight: 600;
    display: inline;
}

.cart-body .mini_cart_item dl.variation dd {
    display: inline;
    margin: 0 0 0 4px;
}

.cart-body .mini_cart_item dl.variation p {
    margin: 0;
}

/* Quantity × price line */
.cart-body .mini_cart_item .quantity {
    order: 3;
    font-size: 15px;
    color: var(--gray);
    margin-top: 8px;
}

.cart-body .mini_cart_item a.remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--gray) !important;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    background: none;
}

.cart-body .mini_cart_item a.remove:hover {
    border-color: #c0392b;
    color: #c0392b !important;
}

.cart-body .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--dark);
}

.cart-body .woocommerce-mini-cart-message,
.cart-body .cart-empty {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    padding: 60px 20px;
}

/* ===========================================
   MOBILE NAV OVERLAY
=========================================== */
.fx_nav_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 490;
}

.fx_nav_overlay.active {
    display: block;
}

body.fx_nav_locked {
    overflow: hidden;
}


/* ===========================================
   FOOTER — NEW DESIGN
=========================================== */
.fx_footer {
    background: #1d1d1d;
    padding: 80px 70px 0;
}

.fx_footer_main {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* Brand col */
.fx_footer_brand h3 {
    color: var(--white);
    font-size: 34px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.fx_footer_brand img{
    height: 80px;
    margin-bottom: 16px;
    margin-left: -10px;
}

.fx_footer_brand>p {
    color: #888;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.fx_footer_contact {
    margin-bottom: 24px;
}

.fx_footer_contact>div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: #888;
    font-size: 16px;
}

.fx_footer_contact i {
    color: var(--primary);
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

.fx_footer_social {
    display: flex;
    gap: 12px;
}

.fx_footer_social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #aaa;
    text-decoration: none;
    transition: .3s;
    font-size: 16px;
}

.fx_footer_social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotateY(-180deg);
}

/* Latest news col */
.fx_footer_col h4 {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.fx_footer_col>a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 12px;
    transition: .3s;
}

.fx_footer_col>a:hover {
    color: var(--primary);
    margin-left: 15px;
}

.fx_footer_news a {
    display: block;
    text-decoration: none;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.fx_footer_news a:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fx_footer_news span {
    display: block;
    color: #bbb;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 5px;
    transition: .3s;
}

.fx_footer_news a:hover span {
    color: var(--primary);
}

.fx_footer_news em {
    font-style: normal;
    color: #555;
    font-size: 15px;
    letter-spacing: 1px;
}

/* Gallery col */
.fx_footer_gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.fx_footer_gallery a {
    display: block;
    height: 72px;
    overflow: hidden;
}

.fx_footer_gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
    opacity: .75;
}

.fx_footer_gallery a:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Footer bottom */
.fx_footer_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.fx_footer_bottom p {
    color: #555;
    font-size: 16px;
}

.fx_footer_legal {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fx_footer_legal a {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    transition: .3s;
}

.fx_footer_legal a:hover {
    color: var(--primary);
}

.fx_footer_legal span {
    color: var(--primary);
    font-size: 8px;
}

/* ===========================================
   RESPONSIVE — TABLET 992–1199
=========================================== */
@media (max-width: 1199px) {

    /* Footer 2+2 grid */
    .fx_footer_main {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   RESPONSIVE — MOBILE ≤991 (nav + hero)
=========================================== */
@media (max-width: 991px) {

    /* Header */
    .fx_header {
        padding: 20px 24px;
    }

    .fx_logo {
        height: 6vw;
        min-height: 32px;
    }

    .fx_actions {
        display: none;
    }

    .fx_mobile_toggle {
        display: block;
        z-index: 110;
    }

    /* Mobile nav overlay panel */
    .fx_nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--dark);
        z-index: 500;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;              /* fixes items being cut off */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 40px;
    }

    .fx_nav.fx_nav_open {
        display: flex;
    }

    /* Sticky logo/close row so it doesn't overlap the first menu item */
    .fx_nav_head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 24px;
        position: sticky;
        top: 0;
        background: var(--dark);
        z-index: 2;
    }

    .fx_nav_head_logo img {
        height: 32px;
    }

    .fx_nav_close {
        display: block;
        color: var(--white) !important;
        font-size: 26px;
    }

    .fx_nav_close:hover {
        color: var(--primary) !important;
    }

    .fx_nav ul {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        text-align: center;
        list-style: none;
        padding: 20px 24px 0;
    }

    .fx_nav a {
        color: var(--white);
        font-size: 30px;
        letter-spacing: 2px;
    }

    .fx_nav a::after {
        background: var(--white);
    }

    /* Mobile action icons — .fx_actions is hidden at this width,
       so search/cart/account need a mobile-only home. */
    .fx_nav_actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 26px;
        padding: 36px 24px 0;
    }

    .fx_nav_actions button,
    .fx_nav_actions a {
        color: var(--white) !important;
        font-size: 22px;
        position: relative;
        text-decoration: none;
    }

    /* ===== Mobile submenu accordion =====
       Desktop opens .fx_mega_menu on :hover; touch devices have no
       hover, so tapping the parent link previously did nothing
       (it also has no href). JS toggles .fx_mega_open on the <li>. */
    .fx_has_mega > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .fx_has_mega > a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        /*transform: rotate(45deg);*/
        transition: transform .25s ease;
        background: none;
        position: static;
    }

    .fx_has_mega.fx_mega_open > a::after {
        transform: rotate(0deg);
    }

    .fx_mega_menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: transparent;
        width: 100%;
        pointer-events: none;
        transition: max-height .35s ease;
    }

    .fx_has_mega.fx_mega_open > .fx_mega_menu {
        visibility: visible;
        max-height: 1000px;
        pointer-events: auto;
    }

    .fx_mega_inner {
        grid-template-columns: 1fr;
        padding: 10px 0 10px 0;
        gap: 14px;
    }

    .fx_mega_column {
        border-right: none;
        gap: 12px;
        align-items: center;
    }

    .fx_mega_column a {
        color: rgb(255, 255, 255, 0.5);
        font-size: 18px;
    }

    .fx_mega_column a:hover {
        color: var(--primary);
        padding-left: 0;
    }

    .fx_nav_close_legacy {
        display: none;
    }

    .fx_footer {
        padding: 60px 24px 0;
    }
}

/* ===========================================
   RESPONSIVE — MOBILE ≤768 (sections)
=========================================== */
@media (max-width: 768px) {

    /* Footer single col */
    .fx_footer_main {
        gap: 36px;
    }

}

/* ===========================================
   RESPONSIVE — MOBILE ≤480
=========================================== */
@media (max-width: 480px) {
    .fx_logo {
        height: 28px;
    }

    .fx_footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fx_footer_main {
         grid-template-columns: 1fr;
    }
}

/* ============================
   BACK TO TOP
============================ */
.all_back_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 999;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.all_back_top.visible {
    opacity: 1;
    visibility: visible;
}

.all_back_top:hover,
.all_back_top:focus {
    background: var(--dark);
    transform: translateY(-4px);
}

@media(max-width:640px) {
    .all_back_top {
        bottom: 18px;
        right: 16px;
    }
}


/* ===========================================
   Astra Theme Fixing
=========================================== */

ol, ul {
    margin: 0%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

a:focus {
    outline: none;
}

button,
button:hover,
button:focus,
button:active,
button:visited {
    outline: none !important;
    box-shadow: none !important;
}

#ast-scroll-top{
    display:none !important;
}

/* ===========================================
   Hide Astra's default page title on the
   real WooCommerce Cart / Checkout / My
   Account pages — our custom templates
   (ps-cart-title / ps-checkout-title / etc.)
   already render their own heading, so
   Astra's automatic title just duplicated it.
=========================================== */

body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header,
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header,
body.woocommerce-account .page-header {
    display: none !important;
}