:root {
    --main-font: 'Trio', sans-serif;
    --primary-color: #313131;
    --background-light: #F8F6F1;
}

/* Do NOT style all links globally here */
body {
    font-family: var(--main-font);
}

.site-navigation a {
    text-decoration: none;
}

/*=======================
HEADER STYLES
====================*/
/* Desktop Header */
@media (min-width: 768px) {
    #site-header,
    .site-header {
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1% 2%;
        box-sizing: border-box;
    }

    #site-navigation,
    .site-branding,
    .Right-Side-links {
        width: 33%;
    }

    .site-branding {
        text-align: center;
        font-family: var(--main-font);
        font-size: 20px;
    }

    .Right-Side-links {
        display: flex;
        justify-content: end;
        gap: 30px;
        align-items: center;
    }
}

/* =============================
NAVIGATION MENU
============================= */
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.primary-menu a {
    font-family: var(--main-font);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navigation Link Effects */
.site-navigation a {
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
}

/* Mobile: always black inside drawer, regardless of transparent header */
@media (max-width: 768px) {
    .site-navigation a {
        color: var(--primary-color) !important;
    }
}

.site-navigation a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #A29C8E;
    transition: width 0.3s ease;
}

.site-navigation a:hover {
    color: #A29C8E;
}

.site-navigation a:hover:after {
    width: 100%;
}

/* =========================
CART STYLES
=========================*/
.header-cart-container {
    position: relative;
    display: inline-block;
}

.header-cart-container .cart-icon img {
    width: 25px;
    height: auto;
    display: block;
}

.header-cart-container .cart-contents-count {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 8px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 50%;
    text-align: center;
}

/* =============================
SEARCH TOGGLE
============================= */
#search-toggle.search-icon {
    border: none;
    background: none;
    cursor: pointer;
}

/* =============================
HIDDEN ON DESKTOP
============================= */
.nav-toggle,
.nav-drawer-footer,
.secondary-menu {
    display: none;
}

/* =============================
MOBILE STYLES
============================= */
@media (max-width: 768px) {
    /* Hamburger Menu Toggle */
    #nav-toggle.nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: start;
        width: 50px;
        height: auto;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1003;
    }

    .hamburger {
        display: inline-block;
        width: 30px;
        height: 14px;
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 90%;
        height: 2px;
        background: #fff; /* will be overridden by sticky-header transparent/solid logic */
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }

    /* Hamburger Active → X */
    .nav-toggle.active .hamburger span {
        background: #000 !important;
    }
    .nav-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    html.mobile-menu-open,
    body.mobile-menu-open {
        overflow: hidden;
        height: 100%;
    }

    /* Drawer Navigation */
    .site-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 450px;
        height: 100%;
        background: var(--background-light);
        z-index: 1002;
        box-shadow: 2px 0 18px rgba(0, 0, 0, 0.12);
        transition: left 0.32s cubic-bezier(.2, .9, .3, 1);
        box-sizing: border-box;
    }

    .site-navigation.active {
        transform: translateX(0);
        left: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        height: 100vh;
        z-index: 1001;
        display: none;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Drawer Inner Layout */
    .nav-drawer-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .empty-box {
        height: 60px;
    }

    .nav-drawer-menu-wrap {
        padding: 15px 5%;
        flex: 1;
        overflow-y: auto;
        box-sizing: border-box;
    }

    ::-webkit-scrollbar {
      width: 6px;
    }
    ::-webkit-scrollbar-track {
      background: #fff;
    }
    ::-webkit-scrollbar-thumb {
      background: #000;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #555;
    }

    .primary-menu {
        display: block;
    }

    .primary-menu a {
        padding: 0;
        font-size: 25px;
        line-height: 45px;
        color: var(--primary-color);
        text-transform: uppercase;
        font-family: var(--main-font);
        text-decoration: none;
    }

    .secondary-menu {
        display: block;
        margin: 10px 0 0;
        font-size: 10px;
        text-transform: uppercase;
        padding: 0;
        line-height: 35px;
    }

    .secondary-menu ul,
    .secondary-menu li {
        list-style: none;
        padding: 0;
    }

    .nav-drawer-footer {
        position: relative;
        height: auto;
        display: block;
        padding: 16px 0px;
        box-sizing: border-box;
    }

    /* Social Icons */
    .social-menu,
    .social-icons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .social-menu a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #eee;
    }

    .social-menu a svg,
    .social-icons a svg {
        width: 18px;
        height: 18px;
        fill: #111;
        display: block;
    }

    .secondary-menu .pro-cat-tittle a {
        font-size: 15px !important;
    }
    .secondary-menu .pro-cat-tittle .pro-cat a {
        font-size: 8px !important;
    }

    .social-menu .icon-instagram > a {
        background: url('https://brandlootfootwear.com/wp-content/uploads/2025/09/icons8-instagram-50-1.png') no-repeat left center;
        background-size: 18px 18px;
        padding-left: 28px;
    }

    /* WhatsApp */
    .social-menu .icon-whatsapp > a {
        background: url('https://brandlootfootwear.com/wp-content/uploads/2025/09/icons8-whatsapp-50-1.png') no-repeat left center;
        background-size: 18px 18px;
        padding-left: 28px;
        display: inline-flex;
        align-items: center;
    }

    .social-menu .icon-instagram > a,
    .social-menu .icon-whatsapp > a {
        text-indent: -9999px;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        width: 28px;
        height: 28px;
        padding: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

.social-menu {
    list-style: none;
    padding-left: 0;
}

/* =========================
FIX: FORCE TRIO ON LOGO + NAV LINKS
========================= */

/* Logo text (desktop + mobile) */
.site-branding a {
    font-family: var(--main-font) !important;
    text-decoration: none !important;
}

/* Desktop primary nav – extra safety */
@media (min-width: 768px) {
    .site-header .primary-menu > li > a {
        font-family: var(--main-font) !important;
    }
}

/* Mobile drawer – primary + secondary menu links */
@media (max-width: 768px) {
    .site-navigation .primary-menu a,
    .site-navigation .secondary-menu a {
        font-family: var(--main-font) !important;
        text-decoration: none;
    }
}
