/*
Theme Name: B2B Theme
Theme URI: https://b2b.gruppogiamundo.com
Author: Gabriele Maione
Author URI: https://github.com/Gabriele-Maione
Description: Theme for b2b.gruppogiamundo.com
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2btheme
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@font-face { font-family : 'NotoSans'; font-style : normal; font-weight : 400; src : url(./fonts/NotoSans-Regular.woff2); font-display: swap;}
@font-face { font-family : 'NotoSans'; font-style : normal; font-weight : 700; src : url(./fonts/NotoSans-Bold.woff2); font-display: swap;}
@font-face { font-family : 'Lora'; font-style : normal; font-weight : 700; src : url(./fonts/Lora-Bold.ttf); font-display: swap;}
@font-face { font-family : 'Lora'; font-style : normal; font-weight : 400; src : url(./fonts/Lora-Regular.ttf); font-display: swap;}

body, html{ box-sizing: border-box; margin: 0; padding: 0;}
*,*:before,*:after{box-sizing: border-box;}
h1, h2, h3, h4, h5, h6, p, ol, ul{margin: 0; padding: 0;}
img{height: auto;}

::selection {
    background: var(--b2b-primary-color);
    color: #fff;
}

:root {
    /* theme colors */
    --b2b-primary-color: #CCA35C;
    --b2b-primary-hover: #B8882E;
    --b2b-primary-light: #F5EBD7;
    --b2b-dark-blue: #0E1C29;
    --b2b-red: #E02B2B;

    /* text colors */
    --default-color: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8a8ca5;
    --bg-color: #FAFBFC;
    --bg-surface: #FFFFFF;
    --link-color: var(--b2b-primary-color);
    --border-color: #E8E8ED;

    /* shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-gold: 0 4px 20px rgba(201,153,63,0.25);
    --shadow-gold-lg: 0 8px 32px rgba(201,153,63,0.35);

    /* theme sizes */
    --b2b-border-radius: 16px;
    --b2b-medium-border-radius: 10px;
    --b2b-small-border-radius: 6px;
    --b2b-top-bar-height: 100px;
    --b2b-navbar-height: 60px;
    --b2b-header-height: calc(var(--b2b-top-bar-height) + var(--b2b-navbar-height) + 1px);
    --search-bar-height: 48px;
    --b2b-spacing: 100px;
    --b2b-product-gallery-height: 480px;

    /* font sizes */
    --h1-fs: clamp(38px, 24.605px + 1.744vw, 56px);
    --h2-fs: clamp(28px, 13.116px + 1.938vw, 48px);
    --h3-fs: clamp(24px, 18.047px + 0.775vw, 32px);
    --h4-fs: 26px;
    --h5-fs: 20px;
    --h6-fs: 18px;
    --default-fs: clamp(18px, 16.512px + 0.194vw, 20px);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    @media (max-width: 768px) {
        --b2b-spacing: 50px;
    }

    @media (max-width: 1140px){
        --b2b-top-bar-height: 80px;
    }
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: var(--b2b-header-height);
}
body{
    font-family: 'NotoSans', sans-serif;
    background: var(--bg-color);
    font-size: var(--default-fs);
    word-break: break-word;
    color: var(--default-color);
}
h1{font-size: var(--h1-fs); line-height: 1.2; font-weight: 700; font-family: 'Lora', serif; letter-spacing: -0.02em; color: var(--default-color);}
h2{font-size: var(--h2-fs); line-height: 1.2; font-weight: 800; font-family: 'Lora', serif; letter-spacing: -0.02em; color: var(--default-color);}
h3{font-size: var(--h3-fs); line-height: 1.25; font-weight: 800; font-family: 'Lora', serif; letter-spacing: -0.01em; color: var(--default-color);}
h4{font-size: var(--h4-fs); line-height: 1.3; font-weight: 800; font-family: 'Lora', serif; color: var(--default-color);}
h5{font-size: var(--h5-fs); line-height: 1.3; font-weight: 800; font-family: 'Lora', serif; color: var(--default-color);}
h6{font-size: var(--h6-fs); line-height: 1.3; font-weight: 800; color: var(--default-color);}
p{line-height: 1.75; font-size: var(--default-fs); color: var(--text-secondary);}
a{text-decoration: none; color: var(--link-color); font-size: var(--default-fs); font-family: 'Lora', serif; transition: color var(--transition-fast);}
a:hover{color: var(--b2b-primary-hover);}
.large-text{--default-fs: clamp(18px, 13.535px + 0.581vw, 24px)}

h2, h3, h4, h5, h6, p, ul, ol, fieldset{
    margin-bottom: 20px;
}

ul, ol{
    list-style: none;

    & > li{
        margin-bottom: 10px;
    }

    &:not(ol) > li{
        &::marker{
            color: var(--b2b-primary-color);
        }
    }

    & > li:has(ul, ol) &{
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .wp-block-spacer{
        height: var(--b2b-spacing)!important;
    }
}

.animate {
    transition: all var(--transition-base);
}

.fadein{
    opacity: 0;
    transform: translateY(24px);

    &.inview{
        animation: fade-slide-up .8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: 0.2s;
    }
}

@keyframes underline-grow {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tab-pane-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes catalog-menu-fade {
    from {
        opacity: 0;
        top: 130%;
    }
    to {
        opacity: 1;
        top: 100%;
    }
}

.hide{
    display: none!important;
}

.w-100{width: 100%!important;}

.m0{margin: 0!important;}
.mb-1{margin-bottom: 20px!important;}
.mb-2{margin-bottom: 50px!important;}
.mb-3{margin-bottom: 100px!important;}
.mt-1{margin-top: 20px!important;}
.mt-2{margin-top: 50px!important;}
.mt-3{margin-top: 100px!important;}

.gap{
    gap: 5%;

    @media(max-width: 768px){
        gap: 32px;
    }
}


.container{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-small{
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn{
    border: none;
    background: var(--b2b-primary-color);
    padding: 14px 28px;
    border-radius: var(--b2b-border-radius);
    color: #FFFFFF;
    white-space: nowrap;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;

    &:hover{
        box-shadow: var(--shadow-gold-lg);
        color: #FFFFFF;
    }

    &:active{
        transform: translateY(0);
        box-shadow: var(--shadow-xs);
    }

    &:has(.icon){
        display: flex;
        gap: 10px;
        align-items: center;
    }
}

.btn-outline{
    border: 2px solid var(--b2b-primary-color);
    background: transparent;
    border-radius: var(--b2b-border-radius);
    color: var(--b2b-primary-color);
    white-space: nowrap;
    padding: 14px 28px;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;

    &:hover{
        background: var(--b2b-primary-color);
        color: #FFFFFF;
    }

    &:has(.icon){
        display: flex;
        gap: 10px;
    }
}

.spacer{
    height: var(--b2b-spacing);
}

.spacer-large{
    height: 200px;
}

.img-full-width img{
    width: 100%;
}

.rounded-image img{
    border-radius: var(--b2b-border-radius);
}

.card{
    background: var(--bg-surface);
    border-top: 4px solid var(--b2b-primary-color);
    border-radius: var(--b2b-border-radius);
    text-align: center;
    padding: 48px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;

    &:hover{
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    @media (max-width: 1200px) {
        padding: 32px;
    }
}

/*
    Wordpress elements
*/


.wp-block-button{

    & .wp-block-button__link{
        border-radius: var(--b2b-border-radius);
        transition: all var(--transition-base);
        font-weight: 600;
        padding: 14px 28px;
        font-size: var(--default-fs);
        border: 2px solid var(--b2b-primary-color);
    }

    &:not(.is-style-outline) .wp-block-button__link{
        color: #FFFFFF;
        background: var(--b2b-primary-color);
    }

    &:not(.is-style-outline) .wp-block-button__link:hover{
        box-shadow: var(--shadow-gold-lg);
        background: var(--b2b-primary-hover);
        border-color: var(--b2b-primary-hover);
    }

    &.is-style-outline .wp-block-button__link{
        background: transparent;
        color: var(--b2b-primary-color);
    }

    &.is-style-outline .wp-block-button__link:hover{
        background: var(--b2b-primary-hover);
        border-color: var(--b2b-primary-hover);
        color: #FFFFFF;
    }
}

.wp-block-cover{
    padding: var(--b2b-spacing) 0;
}

blockquote{
    border-left: 4px solid var(--b2b-primary-color);
    margin: 0;
    padding-left: 32px;
    background: var(--b2b-primary-light);
    padding: 24px 32px;
    border-radius: 0 var(--b2b-medium-border-radius) var(--b2b-medium-border-radius) 0;
    font-style: italic;
}

/*
    Icons
*/

.icon{
    display: block;
    width: 24px;
    height: 24px;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    &.user-icon{
        mask-image: url(assets/svg/user-icon.svg);
        background-color: #000000;

        &:hover{
            background-color: var(--b2b-primary-color);
            transition: background-color 0.3s ease;
        }
    }

    &.catalog-icon{
        mask-image: url(assets/svg/catalog-icon.svg);
        background-color: #FFFFFF;
    }

    &.arrow-right-icon{
        mask-image: url(assets/svg/arrow-right.svg);
    }

    &.simple-arrow-right-icon{
        mask-image: url(assets/svg/simple-arrow-right.svg);
    }

    &.simple-arrow-left-icon{
        mask-image: url(assets/svg/simple-arrow-right.svg);
        background-color: #000000;
        rotate: 180deg;
    }

    &.phone-icon{
        mask-image: url(assets/svg/phone-2.svg);
        background-color: #000000;
    }

    &.email-icon{
        mask-image: url(assets/svg/email.svg);
        background-color: #000000;
    }

    &.search-icon{
        mask-image: url(assets/svg/search.svg);
        background-color: #FFFFFF;
    }

    &.facebook-icon{
        mask-image: url(assets/svg/facebook.svg);
        background-color: #000000;
    }

    &.instagram-icon{
        mask-image: url(assets/svg/instagram.svg);
        background-color: #000000;
    }

    &.wa-icon{
        mask-image: url(assets/svg/wa.svg);
        background-color: #000000;
    }

    &.x-icon{
        mask-image: url(assets/svg/x.svg);
        background-color: #000000;
    }

    &.date-icon{
        mask-image: url(assets/svg/date.svg);
        background-color: #000000;
    }

    &.tags-icon{
        mask-image: url(assets/svg/tags.svg);
        background-color: #000000;
    }

    &.star-selected-icon{
        mask-image: url(assets/svg/star-selected.svg);
        background-color: var(--b2b-primary-color);
    }

    &.star-unselected-icon{
        mask-image: url(assets/svg/star-unselected.svg);
        background-color: var(--b2b-primary-color);
    }

    &.star-half-selected-icon{
        mask-image: url(assets/svg/star-half-selected.svg);
        background-color: var(--b2b-primary-color);
    }
}

.title-page-wrapper{
    margin-top: 32px;

    & h1{
        margin: 0;

        &:after{
            margin: 0;
        }
    }
}

.title-decoration{
    display: inline-block;
    position: relative;
    margin-bottom: 32px;

    &:after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -10px;
        background: var(--b2b-primary-color);
        width: 0;
        height: 4px;
        border-radius: 2px;
    }

    &.inview:after{
        animation: underline-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: 0.3s;
    }
}

.show-more-link{
    display: flex;
    color: var(--b2b-primary-color);
    padding-left: 16px;
    gap: 8px;
    align-items: center;
    font-size: 18px;
    margin-bottom: 26px!important;

    &:after{
        content: '';
        display: block;
        width: 32px;
        height: 32px;
        mask-image: url(assets/svg/arrow-right.svg);
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        background: var(--b2b-primary-color);
        transition: transform .3s ease;
    }

    &:hover{

        &:after{
            transform: translateX(32px);
            transition-duration: 1s;
        }
    }

    @media(max-width: 768px){
        padding-left: 0;
        margin-bottom: 20px!important;
    }
}

@media(max-width: 768px){
    div:has(.title-decoration + .show-more-link){
        flex-direction: column;
        align-items: start;
        gap: 0;
    }
}

.page-container{
    margin-top: 50px;
    margin-bottom: 50px;
}


/* Fields */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select{
    display: block;
    width: 100%;
    height: 52px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--b2b-medium-border-radius);
    margin-bottom: 0;
    outline: none;
    font-size: 16px;
    background: var(--bg-surface);
    color: var(--default-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);

    &::placeholder{
        color: var(--text-muted);
    }

    &:focus{
        border-color: var(--b2b-primary-color);
        box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.15);
    }
}

textarea{
    min-height: 200px;
}

button[type="submit"], 
input[type="submit"]{
    background: var(--b2b-primary-color);
    border: none;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: var(--b2b-medium-border-radius);
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;

    &:hover{
        box-shadow: var(--shadow-gold-lg);
        background: var(--b2b-primary-hover);
    }
}

fieldset{
    border: 1.5px solid var(--border-color);
    border-radius: var(--b2b-medium-border-radius);
}

.woocommerce-password-strength{
    margin-top: 20px;
    margin-bottom: 0;
}

/* Search bar */

.search-bar-wrapper{
    position: relative;

    & input{
        border-radius: 50px;
        height: var(--search-bar-height);
        width: 100%;
        border: 1.5px solid var(--border-color);
        padding: 16px 24px;
        padding-right: 88px;
        font-size: 16px;
        outline: none;
        background: var(--bg-surface);
        transition: all var(--transition-base);

        &:focus{
            border-color: var(--b2b-primary-color);
            box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.12), var(--shadow-sm);
        }
    }

    & .search-bar-button{
        position: absolute;
        right: 4px;
        top: 4px;
        bottom: 4px;
        width: auto;
        padding: 0 24px;
        border-radius: 50px;
        border: none;
        background: var(--b2b-primary-color);
        cursor: pointer;
        transition: all var(--transition-base);
       

        &:hover{
            box-shadow: var(--shadow-gold-lg);
            transform: scale(1.02);
        }
    }
}

/*
   Header
*/

.header{
    --link-color: var(--default-color);
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-sm);
 
    & .header-top-bar{
        height: var(--b2b-top-bar-height);
        display: grid;
        grid-template-columns: 1fr 400px 1fr;
        column-gap: 16px;
        align-items: center;

        /* Logo */
        .logo-wrapper{
            justify-self: start;
        }

        .logo-wrapper .site-title{
            font-size: 24px;
            font-weight: bold;
            color: var(--default-color);
        }

        .custom-logo-link{
            display: block;
            max-width: 250px;
            justify-self: start;
        }
        .custom-logo-link .custom-logo{
            width: 100%;
        }
      
        /* Search bar */
        & .search-form-wrapper{
            justify-self: center;
            width: 100%;
        }

        /* Navbar toggle and other buttons */
        .wrap{
            justify-self: end;
            display: flex;
            gap: 16px;
            align-items: center;
        }

        /* Cart icon */

        .wrap .cart{
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wrap .cart:has(button:disabled) {
            display: none;
        }

        .wrap .wc-block-mini-cart__button{
            padding: 0;
        }

        /* Hide the default WooCommerce SVG icon */
        .wrap .cart .wc-block-mini-cart__icon {
            display: none !important;
        }
       
        .wrap .cart .wc-block-mini-cart__quantity-badge::before {
            content: '';
            display: block;
            width: 24px; 
            height: 24px;
            background-color: #000000;
            mask-image: url('assets/svg/cart-icon.svg');
            mask-size: contain;
            mask-repeat: no-repeat;
            mask-position: center;
        }

        .wrap .cart .wc-block-mini-cart__quantity-badge:hover::before {
            background-color: var(--b2b-primary-color);
            transition: background-color 0.3s ease;
        }

        .wrap .cart .wc-block-mini-cart__badge{
            position: absolute;
            top: -16px;
            right: -8px;
            background-color: var(--b2b-primary-color);
            color: #ffffff;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: none;
            left: unset;
            margin: 0;
        }

        /* Dropdown menu button */
        .wrap .btn-navbar-toggle{
            display: none;
            border: none;
            position: relative;
            float: right;
            padding: 16px;
            padding-right: 0;
            margin-left: -16px;
            background-color: transparent;
        }

        .wrap .btn-navbar-toggle .icon-bar{
            display: block;
            background: #000000;
            width: 26px;
            height: 2px;
            border-radius: 4px;
        }
        .wrap .btn-navbar-toggle .icon-bar:first-child{
            margin-bottom: 6px;
        }

        .wrap .btn-navbar-toggle.active .icon-bar:nth-child(1){
            transform: translateY(4px) rotate(45deg);
        }

        .wrap .btn-navbar-toggle.active .icon-bar:nth-child(2){
            transform: translateY(-4px) rotate(-45deg);
        }
    }

    & .divider{
        height: 1px;
        width: 100%;
        background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    }

    & .navbar-header {
        --default-fs: 18px;

        .container{
            position: relative;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 32px;
        }

        /* Catalog products menu */
        
        .container .catalog-menu-wrapper .catalog-menu-label{
            height: var(--b2b-navbar-height);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--b2b-dark-blue);
            color: #FFFFFF;
            padding: 8px 32px;
            border-radius: var(--b2b-border-radius) var(--b2b-border-radius) 0 0;
            font-size: 18px;
            text-align: center;
            cursor: default;
            transition: background var(--transition-base);
            letter-spacing: 0.02em;
        }

        .container .catalog-menu-wrapper .catalog-menu-label:after{
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            border-right: 2px solid;
            border-bottom: 2px solid;
            border-color: inherit;
            transform: rotate(45deg);
            margin-left: 8px;
        }

        .container .catalog-menu-wrapper .catalog-menu{
            flex-direction: column;
            border-top: 1px solid var(--border-color);
            border-radius: 0 0 var(--b2b-border-radius) var(--b2b-border-radius);
            box-shadow: var(--shadow-xl);
            overflow: hidden;
        }

        .container .catalog-menu-wrapper .catalog-menu .tabs{
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 32px;
            height: var(--b2b-navbar-height);
            border-bottom: 1px solid var(--border-color);
        }

        .container .catalog-menu-wrapper .catalog-menu .tabs .tab{
            font-size: var(--default-fs);
            font-weight: bold;
            height: 100%;
            align-content: center;
            cursor: pointer;
            background: none;
            border: none;
            color: #000;
        }

        .container .catalog-menu-wrapper .catalog-menu .tabs .tab.active{
            border-top: 2px solid transparent;
            border-bottom: 2px solid var(--b2b-primary-color);
            color: var(--b2b-primary-color);
        }

        .container .catalog-menu-wrapper .catalog-menu .tab-pane{
            display: none;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 32px;
            background: var(--bg-surface);
            padding: 24px 32px;
            animation: tab-pane-fade 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .container .catalog-menu-wrapper .catalog-menu .tab-pane a:hover{
            color: var(--b2b-primary-color);
        }

        .container .catalog-menu-wrapper .catalog-menu .tab-pane.active{
            display: grid;
        }

        .container .catalog-menu-wrapper .catalog-menu .tab-pane .pane-group .pane-group-title{
            display: block;
            padding: 8px 0;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .container .catalog-menu-wrapper .catalog-menu .tab-pane .pane-group .pane-group-list a{
            display: block;
            padding: 8px 0;
        }

        .container .catalog-menu-wrapper .catalog-menu .catalog-tab > a{
            display: block;
            height: 100%;
            align-content: center;
            padding: 0 16px!important;
            font-weight: bold;
        }

        

        /* Main menu */
        
        & .container{

            & ul{
                margin: 0;

                & li{
                    margin: 0;
                }
            }

            & .main-menu{
                display: flex;
                flex-wrap: wrap;
                align-items: center;

                & .menu-item{
                    position: relative;
                    

                    & > a{
                        display: flex;
                        align-items: center;
                        font-size: 18px;
                        padding: 0 12px;
                        position: relative;
                        height: 100%;
                    }

                    &.active > a{
                        color: var(--b2b-primary-color);
                    }

                    &:has(.sub-menu) > a:after{
                        content: '';
                        display: block;
                        width: 6px;
                        height: 6px;
                        border-right: 2px solid;
                        border-bottom: 2px solid;
                        border-color: inherit;
                        transform: rotate(45deg);
                        margin-left: 8px;
                    }

                    &:hover{
                        & > a{
                            color: var(--b2b-primary-color);
                            transition: color var(--transition-fast);
                        }
                    }
                }

                & > .menu-item{
                    
                    &:last-child > a{
                        padding-right: 0;
                    }

                    &.evidence{
                        height: fit-content;
                        padding: 0;
                        padding-left: 16px;
                        
                        & > a{
                            background: var(--b2b-primary-color);
                            border-radius: var(--b2b-border-radius);
                            color: #FFFFFF;
                            padding: 10px 20px;
                            font-weight: bold;
                            transition: all var(--transition-base);
                        }

                        & > a:hover{
                            box-shadow: var(--shadow-gold-lg);
                            background: var(--b2b-primary-hover);
                        }
                    }
                }
            }
        }
    }

    @media(min-width: 1141px){
        .admin-bar &{
            top: 32px;
        }
        

        & .navbar-header{

            & .main-menu{

                & .sub-menu{
                    min-width: 200px;
                    visibility: hidden;
                    opacity: 0;
                    top: 100%;
                    transition: all var(--transition-base);
                    box-shadow: var(--shadow-lg);
                    border-radius: var(--b2b-border-radius);
                    padding: 12px 0;
                    border: 1px solid var(--border-color);
                }
                
                & .menu-item{

                    & .sub-menu{
                        position: absolute;
                        background: var(--bg-surface);
                        z-index: 9999;
                        right: 90%;
                        top: -12px;

                        & .menu-item{
                            height: 40px;
                        }
                    }

                    & > .sub-menu:before{
                        content: '';
                        position: absolute;
                        top: 16px;
                        right: -10px;
                        width: 12px;
                        height: 32px;
                        clip-path: polygon(0% 0, 100% 50%, 0 100%);
                        background: var(--bg-surface);
                    }
                    
                    &:hover > .sub-menu{
                        visibility: visible;
                        opacity: 1;
                        right: calc(100% + 10px);
                    }
                }

                /*Main sub-menu*/
                & > .menu-item{
                    height: var(--b2b-navbar-height);

                    & > .sub-menu{
                        top: 130%;
                        left: 0!important;
                    }

                    &:hover > .sub-menu{
                        top: calc(100% + 10px);
                    }

                    & > .sub-menu:before{
                        content: '';
                        position: absolute;
                        display: block;
                        top: -10px;
                        left: 16px;
                        width: 32px;
                        height: 12px;
                        clip-path: polygon(50% 0, 100% 100%, 0 100%);
                        background: var(--bg-surface);
                        box-shadow: var(--shadow-md);
                    }
                }
            }

            .catalog-menu-wrapper .catalog-menu{
                 display: flex;
                position: absolute;
                top: 130%;
                left: 16px;
                right: 16px;
                background: var(--bg-surface);
                z-index: 9999;
                opacity: 0;
                visibility: hidden;
            }

            .container .catalog-menu-wrapper:hover .catalog-menu{
                visibility: visible;
                opacity: 1;
                top: 100%;
                animation: catalog-menu-fade 0.25s ease;
            }
        }
    }

    @media(max-width: 1140px){

        & .header-top-bar{
            grid-template-columns: 1fr 1fr;

            & .search-form-wrapper{
                position: absolute;
                bottom: 16px;
                right: 16px;
                left: 16px;
                justify-self: unset;
                width: auto;
            }


            & .wrap{
                & .btn-navbar-toggle{
                    display: block;
                }
            }
        }

        & .divider{
            background: none;
        }

        & .navbar-header{
            height: var(--b2b-navbar-height);

            .side-collapse{
                position: fixed;
                top: var(--b2b-header-height);
                left: 0;
                right: 0;
                background: var(--bg-surface);
                height: 0;
                overflow: hidden;
                z-index: 9999;
                flex-direction: column;
                justify-content: start;
                align-items: unset;
                overflow-y: auto;
                transition: height var(--transition-slow);
            }

            .side-collapse.open{
                height: calc(100% - var(--b2b-header-height));

                body:has(&){
                    overflow: hidden;
                }
            }

            /* Main menu in mobile */

            .side-collapse .main-menu{
                flex-direction: column;
                align-items: start;
                padding-bottom: 32px;
                border-bottom: 1px solid var(--border-color);
            }

            .side-collapse .main-menu a{
                height: 60px!important;
                padding: 0!important;
            }

            .side-collapse .main-menu > .menu-item{
                width: 100%;
            }

            .side-collapse .main-menu .menu-item.evidence{
                padding: 0;
                margin-top: 10px;
            }

            .side-collapse .main-menu .menu-item.evidence > a{
                justify-content: center;
            }

            .side-collapse .main-menu .menu-item:has(.sub-menu){
                display: grid;
                grid-template-rows: 60px 0fr;
                transition: grid-template-rows 0.2s ease-in-out;
                overflow: hidden;
            }

            .side-collapse .main-menu .menu-item:has(.sub-menu).open{
                grid-template-rows: 60px 1fr;
            }

            .side-collapse .main-menu .menu-item .sub-menu{
                border-left: 2px solid var(--b2b-primary-color);
                overflow: hidden;
                padding-left: 16px;
            }

            /* Catalog menu in mobile */

            .side-collapse .catalog-menu-wrapper{
                order: 1;
                margin-bottom: 32px;
            }

            .container .catalog-menu-wrapper .catalog-menu .tab-pane{
                grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
            }
        }
    }
}



/* 
    Mini cart overlay 
*/

.wc-block-components-drawer__screen-overlay{
    & .wc-block-mini-cart__title{
        font-size: 24px;
        font-weight: 700;
        font-family: 'Lora', serif;
    }

    & .wc-block-components-button{
        top: 20px;
        box-shadow: none!important;
    }

    & .wc-block-cart-item__image img{
        border-radius: var(--b2b-medium-border-radius);
    }

    & .wc-block-components-product-name{
        font-size: 24px!important;
    }

    & .wc-block-cart-item__remove-link{
        color: var(--b2b-primary-color)!important;
        transition: color var(--transition-fast);

        &:hover{
            color: var(--b2b-primary-hover)!important;
        }
    }

    & .wc-block-components-quantity-selector__input{
        height: unset;
    }

    & .wc-block-mini-cart__footer-actions{
        margin-bottom: 16px;
        flex-direction: column;
    }

    & .wc-block-mini-cart__footer-actions .wc-block-components-button:first-child{
        background: var(--bg-surface);
        border: 2px solid var(--b2b-primary-color);
        color: var(--b2b-primary-color);
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        flex: 1;
        transition: all var(--transition-base);
    }

    & .wc-block-mini-cart__footer-actions .wc-block-components-button:first-child:hover{
        background: var(--b2b-primary-hover);
        border-color: var(--b2b-primary-hover);
        color: #FFFFFF;
    }

    & .wc-block-mini-cart__footer-actions .wc-block-components-button:last-child{
        background: var(--b2b-primary-color);
        border: 2px solid var(--b2b-primary-color);
        color: #FFFFFF;
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        flex: 1;
        transition: all var(--transition-base);
    }

    & .wc-block-mini-cart__footer-actions .wc-block-components-button:last-child:hover{
        box-shadow: var(--shadow-gold-lg);
        background: var(--b2b-primary-hover);
        border-color: var(--b2b-primary-hover);
    }

    & .wp-block-woocommerce-mini-cart-shopping-button-block{
        background: var(--bg-surface);
        border: 1.5px solid var(--b2b-primary-color);
        color: var(--b2b-primary-color);
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        flex: 1;
        transition: all var(--transition-base);
        box-shadow: none!important;
        margin-bottom: 10px;
    }
}


/* 
    Hero home page 
*/

.hero{
    --h2-fs: clamp(30px, 6.186px + 3.101vw, 62px);
    --default-fs: clamp(18px, 13.535px + 0.581vw, 24px);
    height: calc(100vh - var(--b2b-header-height));
    position: relative;

    & h2{
        animation: fade-slide-up 0.6s ease-out forwards;
        animation-delay: 0.3s;
    }

    & p{
        max-width: 800px;
        animation: fade-slide-up 0.6s ease-out forwards;
        animation-delay: 0.55s;
    }

    & h2, & p{
        opacity: 0;
        transform: translateY(20px);
    }
    
    & .wp-block-button a{
        padding: 18px 48px!important;
        font-size: var(--default-fs);
        font-weight: 600;
        letter-spacing: 0.02em;
        opacity: 0;
        animation: fade-slide-up 0.6s ease-out forwards;
        animation-delay: 0.8s;
    }
}


.media-content-wrapper{
    gap: 5%;

    & ul{
        list-style: inside;

        & li{
            margin-bottom: 20px;
        }
    }

    @media(max-width: 768px){
        gap: 32px;

        & .content-wrapper{
            order: 1;
        }
    }
}

/* 
    Single product page
*/

.single-product-wrapper{
    margin-top: 32px;
    margin-bottom: var(--b2b-spacing);

    main:has(&){
        max-width: 1440px;
        margin: 0 auto;
        margin-top: 32px;
        padding: 0 16px;
    }

    .woocommerce-notices-wrapper:has(+ &) .woocommerce-message  {
        margin-top: 16px;
    }

    & > .product{
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 32px;
    }
    
    & .product .onsale{
        display: none;
        position: absolute;
        top: 16px;
        left: 16px;
        background: var(--b2b-red);
        color: #FFFFFF;
        padding: 4px 8px;
        font-size: 12px;
        border-radius: var(--b2b-border-radius);
    }

    /* Product single image */

    & .product .single-product-image{
        width: 100%;
    }

    & .product .single-product-image img{
        width: 100%;
        height: 100%;
        border-radius: var(--b2b-border-radius);
        object-fit: cover;
        transition: transform var(--transition-slow);
    }

    & .product .single-product-image img:hover{
        transform: scale(1.02);
    }

    /* Product gallery */

    & .product .product-gallery-container{
        display: flex;
        gap: 16px;
        max-height: var(--b2b-product-gallery-height);
    }

    & .product .product-gallery-container .main-product-slider {
        width: 100%;
    }

    & .product .product-gallery-container .main-product-slider .splide__track{
        height: 100%;
    }

    & .product .product-gallery-container .main-product-slider img{
        width: 100%;
        height: 100%;
        border-radius: var(--b2b-border-radius);
        object-fit: cover;
    }

    & .product .product-gallery-container .thumbs-product-slider .splide__slide{
        border-radius: 8px;
        border: none;
        overflow: hidden;
    }

    & .product .product-gallery-container .thumbs-product-slider .splide__slide.is-active{
        border: 2px solid var(--b2b-primary-color);
    }

    & .product .product-gallery-container .thumbs-product-slider .splide__arrows{
        display: none;
    }

    & .product .product-gallery-container .thumbs-product-slider:hover .splide__arrows{
        display: flex;
    }

    & .product .product-gallery-container .splide__arrows button{
        background: var(--bg-surface);
        width: 42px;
        height: 42px;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        border: 1.5px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: all var(--transition-base);
    }

    & .product .product-gallery-container .splide__arrows button:hover svg{
        fill: var(--b2b-primary-color);
    }

    & .product .product-gallery-container .splide__arrows button:hover{
        border-color: var(--b2b-primary-color);
        box-shadow: var(--shadow-md);
    }

    /* Product title */
    & .product .product_title{
        font-size: var(--h1-fs);
    }

    /* Product rating */
    & .product .star-rating .icon{
        display: inline-block;
    }

    /* Product price */
    & .product .price{
        margin-bottom: 20px;
        font-size: 28px;
        color: var(--b2b-primary-color);
    }

    & .product .price:has(del){
        display: flex;
        align-items: center;
        justify-content: start;
        flex-direction: row-reverse;
        gap: 8px;
    }

    & .product .price del{
        font-size: 18px;
        color: #ccc;
        margin-right: 8px;
    }

    & .product .price ins{
        text-decoration: none;
    }

    /* Product cart form */
    & .product .cart{
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 24px;
    }

    & .product .cart .variations > tbody{
        display: grid;
        gap: 16px;
    }

    & .product .cart .variations > tbody > tr{ 
        display: flex;
        gap: 10px;
    }

    & .product .cart .variations > tbody select{
        padding: 0 32px 0 12px;
        background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 10px center;
        color: var(--default-color);
        height: 36px;
        border: 1.5px solid var(--border-color);
        border-radius: 8px;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: border-color var(--transition-fast);
    }

    & .product .cart .variations > tbody select:focus{
        border-color: var(--b2b-primary-color);
        box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.12);
    }

    & .product .cart .variations > tbody .reset_variations{
        display: none;
        visibility: hidden;
        padding: 10px;
        border: 1.5px solid var(--b2b-red);
        border-radius: var(--b2b-medium-border-radius);
        display: block;
        margin-top: 8px;
        text-align: center;
        color: var(--b2b-red);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 16px;
        transition: all var(--transition-fast);
    }

    & .product .cart .variations_button,
    & .product .cart .group_table > tbody{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    & .product .cart .group_table > tbody > tr{
        display: flex;
        gap: 8px;
        align-items: center;
    }

    & .product .woocommerce-variation-price{
        margin-bottom: 16px;
    }

    /* Product quantity */
    & .product .quantity{
        display: flex;
        align-items: center;
        height: 32px;
    }

    & .product .quantity input.qty{
        width: 50px;
        text-align: center;
        border: 1.5px solid var(--border-color);
        border-radius: 0;
        height: 100%;
        outline: none;
        appearance: textfield;
        -moz-appearance: textfield;
        font-weight: 600;
        padding: 4px;
    }

    & .product .quantity input.qty::-webkit-outer-spin-button,
    & .product .quantity input.qty::-webkit-inner-spin-button{
        -webkit-appearance: none;
        margin: 0;
    }

    & .product .quantity input.qty:focus{
        border-color: var(--b2b-primary-color);
    }

    & .product .quantity .qty-btn{
        background: var(--bg-surface);
        border: 1.5px solid var(--border-color);
        padding: 0px 16px;
        transition: all var(--transition-fast);
        font-size: 18px;
        height: 100%;
        color: var(--default-color);
        cursor: pointer;
    }

    & .product .quantity .qty-btn:hover{
        border-color: var(--b2b-primary-color);
        background: var(--b2b-primary-color);
        color: #FFFFFF;
    }

    & .product .quantity .qty-btn.qty-minus{
        border-radius: 8px 0 0 8px;
    }

    & .product .quantity .qty-btn.qty-plus{
        border-radius: 0 8px 8px 0;
    }

    & .product .single_add_to_cart_button{
        background: var(--b2b-primary-color);
        border: none;
        color: #FFFFFF;
        padding: 16px 32px;
        border-radius: var(--b2b-border-radius);
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    & .product .single_add_to_cart_button:hover{
        box-shadow: var(--shadow-gold-lg);
        background: var(--b2b-primary-hover);
    }

    /* Product meta */

    & .product .product_meta{
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: var(--bg-surface);
        border-left: 4px solid var(--b2b-primary-color);
        border-radius: var(--b2b-medium-border-radius);
        padding: 20px 24px;
        box-shadow: var(--shadow-md);
        transition: box-shadow var(--transition-base);
    }

    & .product .product_meta:hover{
        box-shadow: var(--shadow-lg);
    }

    & .product .woocommerce-tabs{
        grid-column: 1/-1;
        margin-top: var(--b2b-spacing);
    }

    & .product .woocommerce-tabs .tabs{
        display: flex;
        gap: 32px;
        border-bottom: 2px solid var(--border-color);
    }

    & .product .woocommerce-tabs .tabs li{
        margin: 0;
    }

    & .product .woocommerce-tabs .tabs li a{
        display: block;
        font-weight: bold;
        padding: 16px 8px;
        font-size: 18px;
        color: var(--text-secondary);
        transition: color var(--transition-fast);
        position: relative;
    }

    & .product .woocommerce-tabs .tabs li a:hover{
        color: var(--b2b-primary-color);
    }

    & .product .woocommerce-tabs .tabs li.active a{
        color: var(--b2b-primary-color);
        border-bottom: 3px solid var(--b2b-primary-color);
    }

    /* Product attribute table */

    & .product .woocommerce-product-attributes{
        width: 100%;
    }

    & .product .woocommerce-product-attributes > tbody > tr{
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 16px;
        padding: 12px 0;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }

    & .product .woocommerce-product-attributes > tbody > tr > th{
        text-align: left;
    }

    & .product .woocommerce-product-attributes > tbody > tr p{
        margin: 0;
    }

    /* Product rating star selector */
   
    & .product p.stars a{
        position: relative;
        height: 1em;
        width: 1em;
        text-indent: -999em;
        display: inline-block;
        text-decoration: none;
        font-size: 24px;
        overflow: hidden;
    }

    & .product p.stars a:before{
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background: url(assets/svg/star-unselected.svg) no-repeat center center;
    }

    & .product p.stars a:has(~ .active):before,
    & .product p.stars a.active:before{
        background: url(assets/svg/star-selected.svg) no-repeat center center;
    }


    & .product p.stars a:has(~ a:hover):before,
    & .product p.stars a:hover:before{
        background: url(assets/svg/star-selected.svg) no-repeat center center;
    }
   
    /* Product review comments */

    & .product .commentlist .comment_container{
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }

    & .product .commentlist .comment_container .comment-text{
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: var(--b2b-border-radius);
        background: var(--bg-surface);
        box-shadow: var(--shadow-xs);
        transition: box-shadow var(--transition-base);
    }

    & .product .commentlist .comment_container .comment-text:hover{
        box-shadow: var(--shadow-sm);
    }

    & .product .commentlist .comment_container .comment-text .description p{
        margin: 0;
    }

    & .product .commentlist .comment_container img{
        width: 100%;
        object-fit: cover;
        border-radius: var(--b2b-medium-border-radius);
        aspect-ratio: 1/1;
    }

    & .product .commentlist .comment_container .comment-text .star-rating{
        float: right;
    }

    & .product .commentlist .children{
        margin-left: 20px;
    }

    /* Product review form */

    & .product #review_form_wrapper{
        border: 1.5px solid var(--border-color);
        padding: 24px;
        border-radius: var(--b2b-border-radius);
        background: var(--bg-surface);
        box-shadow: var(--shadow-sm);
    }


    /* Related products */

    & .product .related-products{
        grid-column: 1/-1;
        margin-top: var(--b2b-spacing);
    }

    @media(max-width: 1140px){
        & > .product{
            grid-template-columns: 1fr;
        }

        & .product .product-gallery-container{
            margin-bottom: 20px;
        }

        & > .product .summary{
            width: 100%;
        }

        & .product .product-gallery-container .thumbs-product-slider{
            display: none;
        }

        & .product .woocommerce-tabs{
            overflow: hidden;
        }

        & .product .woocommerce-tabs .tabs{
            overflow-x: auto;
            gap: 16px;
        }

        & .product .woocommerce-tabs .tabs li a{
            white-space: nowrap;
        }
    }
}

/* Product card */

& .products .product{
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--b2b-border-radius);
    display: flex;
    flex-direction: column;
    max-width: 600px;
    height: 100%;
    margin: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-slow);

    &:hover{
        transform: translateY(-3px);
    }

    & > a:first-child{
        margin-bottom: 20px;
        overflow: hidden;
    }

    & .product-card-image-wrapper{
        aspect-ratio: 4/3;
        overflow: hidden;
        margin-bottom: 10px;
    }

    & img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--b2b-border-radius) var(--b2b-border-radius) 0 0;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    &:hover img{
        transform: scale(1.06);
    }

    & h2{
        font-size: 22px;
        color: var(--default-color);
        margin: 0 16px 6px 16px;
        transition: color var(--transition-fast);
    }

    &:hover h2{
        color: var(--b2b-primary-color);
    }

    & .price{
        color: var(--b2b-primary-color);
        font-size: 18px;
        font-weight: bold;
        margin: 0 16px;
    }

    & .onsale{
        position: absolute;
        z-index: 999;
        top: 12px;
        left: 12px;
        background: var(--b2b-primary-color);
        color: #FFFFFF;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 50px;
        font-weight: bold;
        letter-spacing: 0.03em;
        box-shadow: var(--shadow-gold);
    }

    & .out-of-stock{
        position: absolute;
        z-index: 999;
        top: 12px;
        right: 12px;
        background: var(--b2b-red);
        color: #FFFFFF;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 50px;
        font-weight: bold;
        box-shadow: 0 2px 8px rgba(224, 43, 43, 0.3);
    }

    & .button,  & .login-link{
        background: var(--b2b-primary-color);
        border: none;
        color: #FFFFFF;
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        margin: auto 16px 16px 16px;
        transition: all var(--transition-base);
        cursor: pointer;
    }

    & .button:hover, & .login-link:hover{
        box-shadow: var(--shadow-gold-lg);
        background: var(--b2b-primary-hover);
    }

    & .login-link{
        font-size: 14px;
    }

    & .added_to_cart{
        border: 1.5px solid var(--b2b-primary-color);
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        margin: auto 16px 16px 16px;
        transition: all var(--transition-base);
        color: var(--b2b-primary-color);
    }

    & .added_to_cart:hover{
        background: var(--b2b-primary-light);
    }

    & .star-rating{
        margin: 0 16px;
    }

    & .star-rating .icon{
        display: inline-block;
    }
}


/* 
    Shop page
*/

.shop-container{
    margin-top: 32px;
    margin-bottom: 50px;

    main:has(&){
        max-width: 1440px;
        margin: 0 auto;
        margin-top: 32px;
        padding: 0 16px;
    }

    & .shop-layout{
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 32px;
        margin-top: 32px;
    }

    & .shop-layout.no-sidebar{
        grid-template-columns: 1fr;
    }

    & .shop-sidebar .wc-block-product-filter-removable-chips__item{
        border-radius: 5px;
        font-size: 13px;
    }   

    & .shop-sidebar .wc-block-product-filter-removable-chips__item svg:hover{
        fill: var(--b2b-primary-color);
    }

    & .shop-sidebar .wc-block-product-filter-clear-button button{
        font-size: 16px;
        padding: 12px 16px!important;
    }

    & .shop-sidebar input.max, & .shop-sidebar input.min{
        height: unset;
        border: 1.5px solid var(--border-color);
        border-radius: var(--b2b-medium-border-radius);
    }

    & .shop-sidebar input.max:focus, & .shop-sidebar input.min:focus{
        border-color: var(--b2b-primary-color);
    }

    & .woocommerce-ordering{
        margin-bottom: 20px;
    }

    & .woocommerce-ordering select{
        padding: 8px 36px 8px 16px;
        background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 12px center;
        color: var(--default-color);
        height: 48px;
        border: 1.5px solid var(--border-color);
        border-radius: var(--b2b-medium-border-radius);
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: border-color var(--transition-fast);
    }

    & .woocommerce-ordering select:focus{
        border-color: var(--b2b-primary-color);
        box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.12);
    }

    & .products-wrapper{
        clear: both;
    }

    & .products{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    & .woocommerce-pagination > .page-numbers{
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 50px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    & .woocommerce-pagination .page-numbers li{
        margin: 0;
       
        border: 1.5px solid var(--border-color);
        border-radius: var(--b2b-medium-border-radius);
        transition: all var(--transition-fast);
    }

    & .woocommerce-pagination .page-numbers li a,
    & .woocommerce-pagination .page-numbers li span{
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        padding: 8px 16px;
        font-weight: 500;
    }

    & .woocommerce-pagination .page-numbers li:has(.current){
        border-color: var(--b2b-primary-color);
        background: var(--b2b-primary-light);
    }

    & .woocommerce-pagination .page-numbers li .current{
        color: var(--b2b-primary-color);
    }

    & .woocommerce-pagination .page-numbers li:not(:has(.dots)):hover{
        border-color: var(--b2b-primary-color);
    }

    @media(min-width: 601px){
        & .shop-sidebar .wc-block-product-filters__overlay-content{
            gap: 32px;
        }

        & .shop-sidebar > .widget_block{
            position: sticky;
            top: calc(var(--b2b-header-height) + 20px);
            border: 1px solid var(--border-color);
            border-radius: var(--b2b-border-radius);
            padding: 24px;
            box-shadow: var(--shadow-sm);
            background: var(--bg-surface);
        }

        & .woocommerce-result-count{
            display: inline-block;
            margin-bottom: 20px;
            min-height: 48px;
            align-content: center;
            margin-right: 8px;
        }

        & .woocommerce-ordering{
            margin-bottom: 20px;
            float: right;
        }
    }

    @media(max-width: 1140px){
        & .shop-layout{
            grid-template-columns: 280px 1fr;
        }
    }

    @media(max-width: 900px){
        & .shop-layout{
            grid-template-columns: 250px 1fr;
        }
    }

    @media(max-width: 600px) {
        & .shop-layout{
            grid-template-columns: 1fr;
            gap: 32px;
        }

        & .shop-sidebar button{
            background: var(--b2b-primary-color);
            border: none;
            color: #FFFFFF;
            padding: 6px 12px;
            border-radius: var(--b2b-medium-border-radius);
            text-align: center;
            width: fit-content;
            font-weight: 600;
            box-shadow: var(--shadow-gold);
        }

        & .shop-sidebar .wc-block-product-filters__overlay-header{
            padding: 16px;
        }

        & .shop-sidebar .wc-block-product-filters__apply{
            width: 100%;
            padding: 12px 16px;
            font-size: 16px;
        }

        & .products{
            grid-template-columns: 1fr;
        }
    }
}





/*
    Cart page
*/

.woocommerce-cart{

    & .wc-block-components-sidebar-layout{
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 32px;
    }
   
    & .wc-block-cart__main{
        width: 100%;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-top: 4px solid var(--b2b-primary-color);
        border-radius: var(--b2b-border-radius);
        padding: 24px;
        box-shadow: var(--shadow-sm);
    }

    & .wc-block-cart__main .wc-block-cart-item__image{
        padding-left: 0;
    }

    & .wc-block-cart__main .wc-block-cart-item__image img{
        border-radius: var(--b2b-medium-border-radius);
    }

    & .wc-block-cart__main .wc-block-components-product-name{
        font-size: 24px!important;
    }

    & .wc-block-cart__main .wc-block-components-quantity-selector input{
        height: unset;
    }

    & .wc-block-cart__main .wc-block-cart-item__remove-link{
        color: var(--b2b-primary-color)!important;

        &:hover{
            color: var(--b2b-primary-hover)!important;
        }
    }

    & .wc-block-cart__sidebar{
        width: 100%;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-top: 4px solid var(--b2b-primary-color);
        border-radius: var(--b2b-border-radius);
        padding: 24px;
        box-shadow: var(--shadow-sm);
        height: fit-content;
    }

    & .wc-block-cart__sidebar .wc-block-cart__submit-button{
        box-shadow: none!important;
    }

    & .wc-block-cart__sidebar .wc-block-cart__submit-button .wc-block-components-button__text{
        background: var(--b2b-primary-color);
        border: none;
        color: #FFFFFF;
        padding: 14px 16px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        width: 100%;
        transition: all var(--transition-base);

        &:hover{
            box-shadow: var(--shadow-gold-lg);
            background: var(--b2b-primary-hover);
        }
    }

    @media(max-width: 900px){
        & .wc-block-components-sidebar-layout{
            grid-template-columns: 1fr;
        }
    }
}


/* 
    Checkout page
*/

.woocommerce-checkout{

    & .wc-block-components-main,
    & .wp-block-woocommerce-checkout-order-summary-block{
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--b2b-border-radius);
        padding: 20px;
        box-shadow: var(--shadow-sm);
    }

    & .wc-block-checkout__main{
        & input, & select, & textarea{
            border: 1.5px solid var(--border-color)!important;
            border-radius: var(--b2b-medium-border-radius)!important;
            height: 52px!important;
            background: var(--bg-surface)!important;
            outline: none!important;

            &:focus{
                border-color: var(--b2b-primary-color)!important;
                box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.15)!important;
            }
        }

        & .wc-block-components-checkbox__input{
            height: 20px!important;
            border-radius: 4px!important;
        }

        & .wc-block-components-checkout-step__content:has(.wc-block-components-radio-control-accordion-option){
            border-radius: var(--b2b-medium-border-radius)!important;
            border: 2px solid var(--b2b-primary-color)!important;
            overflow: hidden;
            background: var(--b2b-primary-light);
        }

        & .wc-block-components-radio-control-accordion-option{
            box-shadow: unset!important;
        }
    }

    & .wc-block-components-product-metadata__description p{
        font-size: 14px;
    }

    & .wc-block-components-checkout-place-order-button{
        background: var(--b2b-primary-color);
        border: none;
        color: #FFFFFF;
        padding: 18px 48px;
        border-radius: var(--b2b-border-radius);
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        transition: all var(--transition-base);
        box-shadow: unset!important;

        &:hover{
            box-shadow: var(--shadow-gold)!important;
            background: var(--b2b-primary-hover);
        }
    }
    
    & .wc-block-checkout__actions{
        margin: 0;
    }

    & .wc-block-components-totals-wrapper:last-child .wc-block-components-totals-item{
        color: var(--b2b-primary-color)
    }
}



/* Post page */

.post-content{
    margin-bottom: 50px;

    & .post-categories{
        margin: 0 0 10px;
        display: flex;
        gap: 8px;

        & li{
            background: var(--b2b-primary-color);
            border-radius: var(--b2b-border-radius);
            margin: 0;
            padding: 6px 12px;
            font-size: 12px;
            display: block;

            & a{
                display: block;
                color: #FFFFFF;
                font-size: 14px;
                font-weight: bold;
            }
        }
    }

    & h1{
        margin-bottom: 20px;
    }

    & .post-date{
        display: flex;
        align-items: center;
        gap: 8px;
    }

    & h2{
        color: var(--b2b-dark-blue);
    }

    & img{
        width: 100%;
        margin-bottom: 20px;
        border-radius: var(--b2b-border-radius);
    }

    & .tags-wrapper{
        display: flex;
        align-items: center;
        position: relative;
        padding: 20px 0;

        & p{
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 8px 0 0;
            min-width: fit-content;
            font-size: 14px;
        }

        & .tags{
            font-size: 16px;

            & a{
                font-size: 16px;
            }
        }

        &:before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: #000000;
        }
    }

    .content-wrapper{
        display: flex;
        gap: 32px;
    }
}


.floating-share-post{
    display: none;
    --admin-bar-height: 0px;
    --share-post-top: calc(var(--b2b-header-height) + var(--admin-bar-height) + 20px);

    @media(min-width: 767px) {
        display: block;
        position: sticky;
        height: 100%;
        top: var(--share-post-top);
        margin-bottom: 20px;
        text-align: center;
        transition: top .3s ease;
        will-change: top;

        .admin-bar &{
            --admin-bar-height: 32px;
        }

        & .share-post-header{
            display: block;
            font-size: 12px;
            margin-bottom: 16px;
            color: var(--b2b-primary-color);
        }

        & .share-post-body{
            display: flex;
            flex-direction: column;
            gap: 12px;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
            padding: 12px 8px;
        }

        a{
            border-radius: 8px;
            padding: 6px;

            & .icon{
                background-color: #FFFFFF;
            }

            &:has(.wa-icon){
                background: #18c518;
            }

            &:has(.facebook-icon){
                background: #366eff;
            }

            &:has(.x-icon){
                background: #000000;
            }

            &:has(.email-icon){
                background: #ff9900;
            }
        }
    }
}


/* Blog page */
.blog-content{
    margin: var(--b2b-spacing) auto;

    & .grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 32px;
        row-gap: 64px;
    }

    & article{
        display: flex;
        flex-direction: column;
        max-width: 720px;

        & .post-content-wrap{
            flex: 1 1 auto;
            margin-bottom: 20px;
        }

        &:not(:has(img)) .post-content-wrap{
            flex: 0;
        }

        & .post-thumb-wrapper{
            display: block;
            position: relative;
            margin-bottom: 20px;

            & > a{
                display: flex;
            }
        }

        & .post-categories{
            position: absolute;
            bottom: 12px;
            left: 12px;
            display: flex;
            flex-wrap: wrap-reverse;
            gap: 8px;
            margin: 0;

            & > li{
                display: inline-block;
                padding: 6px 12px;
                background: var(--b2b-primary-color);
                border-radius: var(--b2b-border-radius);
                margin: 0;

                & > a{
                    display: block;
                    color: #FFFFFF;
                    font-size: 12px;
                    font-weight: bold;
                }
            }
        }

        & .post-thumb-wrapper:not(:has(img)) .post-categories{
            position: unset;
        }

        & img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: var(--b2b-border-radius);
        }

        .post-date{
            display: flex;
            gap: 8px;
            align-items: center;
        }

        & h3{
            --h3-fs: 20px;
            margin-bottom: 20px;
        }

        .post-excerpt{
            margin: 0;
        }

        .blog-btn{
            padding: 0;
            margin: 0!important;
        }
    }

    .pagination{
        grid-column: 1 / -1;
        justify-self: center;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;

        & span, & a{
            float: left;
            padding: 14px 19px;
            border: 1px solid #ddd;
            color: #000;
            border-radius: 4px;

            &:hover{
                border: 1px solid var(--b2b-primary-color);
                color: var(--b2b-primary-color);
            }
        }

        .current{
            border: 1px solid var(--b2b-primary-color);
            color: var(--b2b-primary-color);
        }
    }

    @media(max-width: 768px){
        & .grid{
            grid-template-columns: 100%;
        }
    }
}


/*
    Product slider
*/

.products-slider{
    & .splide__track{
        padding: 16px 0;
    }
    
    & .splide__arrows button{
        background: var(--bg-surface);
        width: 42px;
        height: 42px;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        border: 1.5px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        transition: all var(--transition-base);
        cursor: pointer;
    }

    & .splide__arrows button:hover{
        border-color: var(--b2b-primary-color);
        box-shadow: var(--shadow-md);
    }

    & .splide__pagination{
        bottom: -20px;
    }

    & .splide__pagination button.is-active{
        background: var(--b2b-primary-color);
    }
}


/*
    Brand slider
*/

.brand-slider{
    & .wp-block-image{
        width: 100%!important;
        align-items: center!important;
    }

    & img{
        width: 75%!important;
    }
}


/* Password input field */

& .password-input{
    display: block;
    position: relative;

    & .show-password-input{
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        right: 12px;
        bottom: 14px;
        cursor: pointer;
        background: transparent;
        border: none;
    }

    & .show-password-input:before{
        content: '';
        display: block;
        width: 20px;
        height: 20px;
        background-color: #000000;
        mask-image: url(assets/svg/eye-password-show.svg);
        mask-size: cover;
        mask-position: center;
        mask-repeat: no-repeat;
    }

    & .show-password-input.display-password:before{
        mask-image: url(assets/svg/eye-password-hide.svg);
    }
}


.woocommerce-form,
.lost_reset_password{
    display: grid;
    gap: 16px;

    & > * {
        grid-column: span 2;
    }

    & label:has(input[type="checkbox"]){
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    & input[type="checkbox"]{
        width: 20px;
        height: 20px;
        margin: 0;
    }

    & wc-order-attribution-inputs{
        display: none;
    }

    @media(min-width: 769px){
        grid-template-columns: 1fr 1fr;

        & .form-row{
            margin-bottom: 8px;
            width: 100%;
        }

        & .form-row-first{
            grid-column: 1 / 2;
        }

        & .form-row-last{
            grid-column: 2 / -1;
        }
    }

    @media (max-width: 768px){
        grid-template-columns: 1fr;
    }
}

/* Select 2 style */

& .select2-selection{
    height: 52px!important;
    border: 1.5px solid var(--border-color)!important;
    border-radius: var(--b2b-medium-border-radius)!important;
    padding: 14px 16px!important;
    font-size: 16px!important;
    margin: 0!important;
    background: var(--bg-surface)!important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast)!important;
}

& .select2-selection:focus,
& .select2-container--open .select2-selection{
    border-color: var(--b2b-primary-color)!important;
    box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.12)!important;
}

& .select2-selection .select2-selection__rendered{
    line-height: normal!important;
    padding: 0!important;
    color: var(--default-color)!important;
}

& .select2-selection .select2-selection__arrow{
    height: 100%!important;
}

.select2-search__field{
    height: 48px!important;
    padding: 14px 16px!important;
    font-size: 16px!important;
    border-radius: var(--b2b-medium-border-radius);
    border: 1.5px solid var(--border-color)!important;
    outline: none;
}

.select2-search__field:focus{
    border-color: var(--b2b-primary-color)!important;
    box-shadow: 0 0 0 3px rgba(201, 153, 63, 0.12)!important;
}

.select2-results__option{
    padding: 12px 16px!important;
    font-size: 16px!important;
    border-radius: var(--b2b-small-border-radius);
    border: 1px solid transparent;
    margin: 4px 8px!important;
    transition: all var(--transition-fast);
}

.select2-results__option--highlighted{
    background: var(--b2b-primary-color)!important;
    color: #FFFFFF!important;
    border-radius: var(--b2b-small-border-radius);
}




/* Footer */

.site-footer{
    background: var(--b2b-dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 24px;
   
    & .footer-content{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 100px;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    & .footer-content .col-30{
        width: 30%;
       
        & .footer-logo-link{
            display: block;
            height: 42px;
            margin-bottom: 20px;
        }

        & .footer-logo{
            width: auto;
            height: 100%;
            filter: invert(1);
        }

        & .footer-site-title{
            font-family: 'Lora', serif;
            font-size: 24px;
            font-weight: 700;
            color: #FFFFFF;
            display: block;
            margin-bottom: 12px;
        }

        & .footer-description{
            color: #FFFFFF;
            font-size: 15px;
            line-height: 1.7;
            margin-bottom: 20px;
        }

        & > p{
            font-weight: bold;
            color: #FFFFFF;
        }

        & .follow-us-wrapper{
            display: flex;
            gap: 16px;
            margin-bottom: 20px;
            
            & .icon{
                background-color: #FFFFFF;
            }
        }

        & .contacts{
            display: flex;
            gap: 16px;
            flex-direction: column;
            margin-bottom: 20px;

            & a{
                display: flex;
                gap: 10px;
                align-items: center;
                font-size: 16px;
                color: #FFFFFF;
            }

            & .icon{
                transition: background-color var(--transition-fast);
                background-color: #FFFFFF;
            }
        }

        & .btn-outline{
            display: flex;
            border-color: #FFFFFF;
            color: #FFFFFF;
            justify-content: center;

            &:hover{
                background: #FFFFFF;
                color: var(--b2b-dark-blue);
            }
        }

    }

    & .footer-content .col-70{
        width: 70%;
        display: flex;

        & .footer-nav{
            width: 100%;
        }
    }

    & .footer-nav .footer-menu{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        flex-wrap: wrap;
        list-style: none;
        margin: 0;
    }

    & .footer-nav .footer-menu > li > a{
        display: block;
        font-weight: bold;
        margin-bottom: 20px;
    }

    & .footer-nav .footer-menu a{
        color: #FFFFFF;
        transition: color var(--transition-fast);
    }

    & .footer-nav .footer-menu a:hover{
        color: var(--b2b-primary-color);
    }

    & .footer-nav .footer-menu .sub-menu{
        margin: 0;
    }

    & .footer-bottom{
        padding-top: 24px;
        text-align: center;
    }

    & .footer-bottom p{
        margin-bottom: 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.4);
    }


    @media(max-width: 900px){
        & .footer-content{
            flex-direction: column;
            gap: 50px;
        }

        & .footer-content .col-30, & .footer-content .col-70{
            width: 100%;
        }

        & .footer-nav .footer-menu{
            grid-template-columns: 1fr;
            gap: 16px;
        }
    }
}

/* Woocommerce notice styling */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--b2b-medium-border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;

    &:focus-visible{
        outline: none;
    }

    & > * {
        margin: 0;
    }
}

.woocommerce-message {
    border-top: 4px solid green;
}

.woocommerce-error {
    border-top: 4px solid var(--b2b-red);
}

.woocommerce-info {
    border-top: 4px solid var(--text-secondary);
}


/* Woocommerce account navigation */
.woocommerce-MyAccount-navigation{

    .woocommerce:has(&){
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 50px;
    }

    & ul{
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: var(--bg-surface);
        padding: 32px 16px;
        border: 1px solid var(--border-color);
        border-radius: var(--b2b-border-radius);
        box-shadow: var(--shadow-sm);
        margin: 0;
    }

    & ul li{
        display: flex;
        margin: 0;
    }

    & ul li a{
        padding: 12px 16px;
        color: var(--default-color);
        transition: all var(--transition-fast);
        border-radius: var(--b2b-border-radius);
        width: 100%;
        border: 2px solid transparent;
    }

    & ul li a:hover{
        border: 2px solid var(--b2b-primary-color);
        background: var(--b2b-primary-light);
    }

    & ul li.is-active a{
        background-color: var(--b2b-primary-color);
        color: #FFFFFF;
        font-weight: bold;
    }

    @media(max-width: 768px){
        .woocommerce:has(&){
            grid-template-columns: 1fr;
        }

        & ul{
            gap: 12px;
            padding: 16px;
        }
    }

}

/* Woocommerce account orders */
.woocommerce-orders-table{
    width: 100%;
    text-align: center;

    & thead > tr > th{
        background: #f0f0f0;
        padding: 16px;

        &:first-child{
            border-top-left-radius: var(--b2b-border-radius);
        }

        &:last-child{
            border-top-right-radius: var(--b2b-border-radius);
        }
    }

    & tbody > tr > th, & tbody > tr > td{
        padding: 16px;
    }

    @media(max-width: 768px){
        .woocommerce-MyAccount-content:has(&){
            overflow-x: auto;
        }

        & .woocommerce-orders-table__cell{
            min-width: 150px;
        }
    }
}

/*
    Woocommerce account view order details
*/
.woocommerce-order-details, .woocommerce-customer-details{
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--b2b-primary-color);
    border-radius: var(--b2b-border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;

    --h2-fs: 32px;

    & table{
        width: 100%;
        text-align: left;
    }
}

/* Woocommerce account addresses */
.woocommerce-Addresses{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;

    --h2-fs: 32px;

    & .woocommerce-Address{
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-top: 4px solid var(--b2b-primary-color);
        border-radius: var(--b2b-border-radius);
        padding: 24px;
        box-shadow: var(--shadow-sm);
        position: relative;
    }

    & a.edit{
        display: block;
        margin-bottom: 20px;
    }

    @media(max-width: 1140px){
        grid-template-columns: 1fr;
    }
}


/*
    Google maps iframe style
*/
.maps{
    display: flex;
    width: 100%;

    & iframe{
        width: 100%;
        height: 300px;
        border: none;
        border-radius: var(--b2b-border-radius);
        box-shadow: var(--shadow-sm);
    }
}