/* ======================================
   NAVIGATION STYLES - NEW BOURBON STREET HEADER
   ====================================== */

/* 3-column layout for navbar */
#navigation .navbar-custom {
    height: 120px;
    margin-bottom: 0px;
    background-color: transparent;
}
#navigation .navbar-custom .navbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

#navigation .navbar-custom a {
    transition: all 300ms ease;
}

#navigation .navbar-custom li a:hover {
    color: var(--white-transparent);
}

#navigation .navbar-custom .social-icons a:hover {
    opacity: 0.7;
}

#navigation .navbar-custom .navbar-row .navbar-left-section,
#navigation .navbar-custom .navbar-row .navbar-right-section {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	height: 120px;
    justify-content: space-between;
}

#navigation .navbar-custom .navbar-since {
	line-height: 100%;
	text-transform: uppercase;
	color: var(--white);
	margin-right: auto;
	padding-right: 20px;
	letter-spacing: 0.5px;
}
#navigation .navbar-custom .col-right ul,
#navigation .navbar-custom .col-center ul {
    margin-bottom: 0px;
}

#navigation .navbar-custom li.card-button img {
    height: 22px;
    vertical-align: sub;
}

#navigation .navbar-custom li.card-button a:hover {
    opacity: 0.7;
}

/* Shop button styling */
#navigation .navbar-custom li.shop-button {
    margin-right: 15px;
}

#navigation .navbar-custom li.shop-button .button {
    text-decoration: none;
    padding: 8px 8px 8px 16px;
}

#navigation .navbar-custom li.shop-button .material-icons-outlined {
    font-size: 18px;
}

#navigation .navbar-custom .navbar-since b {
	font-weight: 700;
}

#navigation .navbar-custom .navbar-row .navbar-center-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 75px;
	padding: 0 30px;
}

#navigation .navbar-custom .navbar-row .navbar-center-logo img {
	height: 75px;
	width: auto;

}

/* Menu items left and right of logo */
#navigation .navbar-custom .navbar-row .navbar-left-menu,
#navigation .navbar-custom .navbar-row .navbar-right-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
    height: 38px;
    position: relative;
	align-items: center;
}
#navigation .navbar-custom .navbar-row .navbar-left-menu:after, #navigation .navbar-custom .navbar-row .navbar-right-menu:after,
#navigation .navbar-custom .navbar-row .navbar-left-menu li:after, #navigation .navbar-custom .navbar-row .navbar-right-menu li:after {
    content: "";
    background-color: #fff;
    width: 100%;
    height: 2px;
    position: absolute;
    display: block;
    bottom: 0px;
}
#navigation .navbar-custom .navbar-row .navbar-left-menu:after, #navigation .navbar-custom .navbar-row .navbar-right-menu:after {
    width: calc(100% - 50px);
    bottom: -6px;
    border-radius: 2px;
}
#navigation .navbar-custom .navbar-row .navbar-left-menu:after {
    margin-left: 50px;
}
#navigation .navbar-custom .navbar-row .navbar-left-menu li:last-child:after, #navigation .navbar-custom .navbar-row .navbar-right-menu li:last-child:after {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}
#navigation .navbar-custom .navbar-row .navbar-left-menu li:first-child:after, #navigation .navbar-custom .navbar-row .navbar-right-menu li:first-child:after {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}


#navigation .navbar-custom .navbar-left-menu li,
#navigation .navbar-custom .navbar-right-menu li {
	margin: 0;
	padding: 0;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

#navigation .navbar-custom .navbar-left-menu li a,
#navigation .navbar-custom .navbar-right-menu li a  {
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--white);
    margin-left: 25px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
#navigation .navbar-custom .navbar-left-menu li a::before,
#navigation .navbar-custom .navbar-right-menu li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 32px);
    height: calc(100% + 12px);
    background: var(--theme-900);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms ease, background-color 300ms ease;
}

#navigation .navbar-custom .navbar-left-menu li a:hover,
#navigation .navbar-custom .navbar-right-menu li a:hover {
    color: var(--white-transparent);
}

#navigation .navbar-custom li a:hover::before {
    opacity: 1;
}

.theme-green #navigation .navbar-custom li a.active::before {
    opacity: 1;
    background-image: url('../../images/title-textured-background-middle-green.png');
    background-size: auto 100%;
}

#navigation .navbar-custom li a.active::before {
    opacity: 1;
    background-image: url('../../images/title-textured-background-middle.png');
    background-size: auto 100%;
}

#navigation .navbar-custom li a.active:hover::before {
    opacity: 1;
}

#navigation .navbar-custom .navbar-right-menu li a {
    margin-right: 25px;
    margin-left: 0px;
}

/* ======================================
   LANGUAGE SWITCHER
   ====================================== */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-flag-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.2s;
    box-shadow: none;
}

.lang-flag-btn:hover {
    opacity: 0.7;
}

.lang-flag-btn .lang-text {
    font-weight: 600;
    font-style: italic;
    font-size: 20px;
}

.arrow-box {
    transition: transform 0.2s;
    background: var(--white);
    border-radius: 7px;
    width: 26px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    padding-top: 1px;
}

.lang-flag-btn .arrow {
    font-size: 23px;
    transition: transform 0.2s;
    color: #160c0c;
    line-height: 1;
}

.lang-flag-btn.open .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 150px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block !important;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    box-shadow: none;
    font-size: 17px;
    color: #333;
    font-family: 'Crimson Pro', serif;
    transition: all 300ms ease;
    justify-content: flex-start;

}

.lang-option:hover {
    opacity: 0.7;
    background-color:rgb(232, 232, 232);
}

.lang-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}



@media (min-width: 1200px) and (max-width: 1400px) {   
    .social-icons li {
        padding-left: 1px;
        padding-right: 1px;
    }
}

/* ======================================
   MOBILE MENU
   ====================================== */

/* Hamburger Button */
.navbar-toggle {
    display: none;
    background: var(--white);
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
    transition: background-color 0.2s;
    box-shadow: none;
}

.navbar-toggle:hover {
    background-color: rgba(244, 245, 239, 0.9);
}

.navbar-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #160c0c;
    margin: 4px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 5%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #160c0c;
    z-index: 1200;
    transition: top 0.15s ease-out, opacity 0.15s ease-out;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.active {
    top: 0;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(244, 245, 239, 0.2);
    position: relative;
}

.mobile-logo {
    text-align: center;
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    box-shadow: none;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 30px 20px;
    text-align: center;
}

.mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-items li {
    margin-bottom: 10px;
}

.mobile-menu-items li a {
    display: block;
    padding: 15px 20px;
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    font-size: 29px;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mobile-menu-items li a:hover {
    background-color: rgba(244, 245, 239, 0.1);
}

/* Mobile Actions */
.mobile-menu-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(244, 245, 239, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-cart {
    width: 100%;
    max-width: 300px;
}

.mobile-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: rgba(244, 245, 239, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mobile-cart-link:hover {
    background-color: rgba(244, 245, 239, 0.15);
}

.mobile-cart-link img {
    width: 24px;
    height: 24px;
}

.mobile-cart-link span {
    color: var(--white);
    font-family: 'Crimson Pro', serif;
    font-size: 19px;
    font-weight: 500;
}

.mobile-cart-count {
    margin-left: auto;
    background-color: var(--white);
    color: #160c0c;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.mobile-language {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.mobile-language .language-switcher {
    display: block;
    width: 100%;
}

.mobile-language .lang-flag-btn {
    width: 100%;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: rgba(244, 245, 239, 0.1);
    border-radius: 8px;
}

.mobile-language .lang-dropdown {
    position: relative !important;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid rgba(244, 245, 239, 0.1);
    background-color: rgba(244, 245, 239, 0.05);
    width: 100%;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    border-radius: 8px;
}

/* Force dropdown to show when show class is added in mobile */
.mobile-menu .lang-dropdown.show {
    display: block !important;
}

.mobile-language .lang-option {
    justify-content: center;
    color: var(--white);
}

.mobile-language .lang-option span {
    color: var(--white);
}

.mobile-language .lang-option:hover {
    background-color: rgba(244, 245, 239, 0.15);
}

/* Mobile Social */
.mobile-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(244, 245, 239, 0.2);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-social a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mobile-social a:hover {
    opacity: 1;
}

.mobile-social img {
    width: 30px;
    height: 30px;
}

/* Mobile Since */
.mobile-since {
    margin-top: 40px;
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    color: var(--white);
    letter-spacing: 1px;
}

.mobile-since strong {
    font-weight: 700;
}

@media (max-width: 1199px) and (min-width: 768px) {
.lang-dropdown.show {
    left: 0px;
}
.language-switcher {
    position: absolute;
    left: 15px;
    top: 42px;
}
}

@media (max-width: 992px) {
    #navigation .navbar-custom .navbar-row .navbar-center-logo img {
        height: 60px;
    }
    #navigation .navbar-custom .navbar-row .navbar-center-logo {
        padding: 0px 15px;
    }
    #navigation .navbar-custom .navbar-right-menu li a {
        margin-right: 20px;
        font-size: 17px;
    }
    #navigation .navbar-custom .navbar-left-menu li a {
        margin-left: 20px;
        font-size: 17px;
    }

    #navigation .navbar-custom li.shop-button {
        margin-right: 0px;
    }
 
}

@media (max-width: 767px) {
    /* Show hamburger button */
    .navbar-toggle {
        display: block;
    }
    
    /* Hide desktop menu items */
    .navbar-left-menu,
    .navbar-right-menu {
        display: none !important;
    }
    
    /* Hide desktop language switcher and cart in navigation */
    .navbar-right-section .portal {
        display: none !important;
    }
    
    /* Adjust header height */
    #navigation .navbar-custom {
        height: 80px;
    }
    
    #navigation .navbar-custom .navbar-row {
        height: 80px;
    }
    
    #navigation .navbar-custom .navbar-row .navbar-left-section,
    #navigation .navbar-custom .navbar-row .navbar-right-section {
        height: 80px;
    }
    
    /* Center logo on mobile */
    #navigation .navbar-custom .navbar-row .navbar-center-logo {
        flex: 1;
        padding: 0 10px;
    }
    
    #navigation .navbar-custom .navbar-row .navbar-center-logo img {
        height: 59px;
        margin: 0 auto;
    }
    
    /* Adjust navbar sections for mobile */
    #navigation .navbar-custom .navbar-row .navbar-left-section {
        flex: 0 0 auto;
    }
    
    #navigation .navbar-custom .navbar-row .navbar-right-section {
        flex: 0 0 auto;
        justify-content: flex-end;
    }
    
    #navigation .navbar-custom .navbar-row .navbar-right-section .col-right {
        margin-left: auto;
    }
    #navigation .navbar-toggle {
        position: absolute;
        right: 0px;
        top: 2px;
    }
    
    /* Hide "SINCE 1990" on mobile */
    .navbar-since {
        display: none !important;
    }
    
    /* Hide social icons on mobile */
    .social-icons {
        display: none !important;
    }
}