/* Shared Navbar & Category Nav - use with includes/navbar.php */
:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --luxury-burgundy: #8b1538;
    --luxury-gold: #c9a961;
}

.promo-banner {
    background: linear-gradient(135deg, var(--luxury-burgundy) 0%, #6b0f2a 50%, var(--luxury-burgundy) 100%);
    color: #f4e4bc;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(139, 21, 56, 0.3);
    border-bottom: 2px solid var(--primary-color);
}
.promo-banner p { margin: 0; font-size: 0.95rem; letter-spacing: 0.5px; }

.navbar-modern {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(26, 26, 46, 0.06);
    padding: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1050;
    position: relative;
    width: 100%;
}
.navbar-modern.scrolled {
    box-shadow: 0 4px 30px rgba(26, 26, 46, 0.1);
    background: rgba(255, 255, 255, 1) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.navbar-modern .navbar-brand { padding: 8px 0; position: relative; }
.navbar-modern .navbar-brand img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.navbar-modern .navbar-brand:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}
.navbar-modern .nav-link {
    position: relative;
    padding: 8px 14px;
    font-weight: 500;
    font-size: 13.5px;
    color: #1a1a2e !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 2px;
    border-radius: 7px;
}
.navbar-modern .nav-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(139, 21, 56, 0.08) 100%);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.navbar-modern .nav-link:hover::before { transform: translate(-50%, -50%) scale(1); }
.navbar-modern .nav-link:hover { color: var(--primary-color) !important; }
.navbar-modern .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(139, 21, 56, 0.1) 100%);
}
.navbar-modern .nav-link.active::before { transform: translate(-50%, -50%) scale(1); }

/* Navbar social icons - left of Contact / Our shop and stalls */
.navbar-modern .navbar-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.navbar-modern .navbar-social-icons .nav-link {
    padding: 6px 8px;
    font-size: 14px;
    color: #1a1a2e !important;
}
.navbar-modern .navbar-social-icons .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dark navbar (e.g. categories, search, orders) - social icons */
.navbar-dark .navbar-social-icons,
.bg-dark .navbar-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.navbar-dark .navbar-social-icons .nav-link,
.bg-dark .navbar-social-icons .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 8px;
    font-size: 14px;
}
.navbar-dark .navbar-social-icons .nav-link:hover,
.bg-dark .navbar-social-icons .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-modern .btn-navbar-modern {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    position: relative;
    overflow: hidden;
}
.navbar-modern .btn-navbar-modern::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}
.navbar-modern .btn-navbar-modern:hover::before { left: 100%; }
.navbar-modern .btn-navbar-modern:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
.navbar-modern .btn-navbar-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--luxury-gold) 100%);
    border: 1px solid var(--primary-color);
    color: #000;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}
.navbar-modern .btn-navbar-primary:hover {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}
.navbar-modern .btn-navbar-cart {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 13px;
    position: relative;
}
.navbar-modern .btn-navbar-cart:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.navbar-modern .navbar-toggler-modern {
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(255,255,255,0.9) 100%);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
}
.navbar-modern .navbar-toggler-modern:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.18) 0%, rgba(255,255,255,1) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(212,175,55,0.25);
}
.navbar-modern .navbar-toggler-modern:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}
.navbar-toggler-icon-modern {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 15px;
    cursor: pointer;
}
.navbar-toggler-icon-modern span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), #b8941f);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.navbar-toggler-icon-modern span:nth-child(2) { width: 14px; margin-left: 3px; }
.navbar-toggler-modern.is-active .navbar-toggler-icon-modern span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    width: 20px;
}
.navbar-toggler-modern.is-active .navbar-toggler-icon-modern span:nth-child(2) {
    opacity: 0; width: 0; margin-left: 0;
}
.navbar-toggler-modern.is-active .navbar-toggler-icon-modern span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    width: 20px;
}

.lang-currency-switchers { gap: 4px; }
.lc-dropdown { position: relative; }
.lc-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.lc-btn:hover, .lc-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(255,255,255,1) 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(212,175,55,0.2);
}
.lc-btn::after { display: none !important; }
.lc-flag { font-size: 15px; line-height: 1; }
.lc-symbol { font-weight: 700; font-size: 13px; color: var(--primary-color); }
.lc-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px; }
.lc-chevron { font-size: 8px; margin-left: 1px; transition: transform 0.25s ease; color: #888; }
.lc-btn[aria-expanded="true"] .lc-chevron { transform: rotate(180deg); color: var(--primary-color); }
.lc-menu {
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid rgba(212,175,55,0.25);
    border-top: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(26,26,46,0.14);
    background: #fff;
    margin-top: 6px !important;
    animation: lcFadeIn 0.18s ease;
}
@keyframes lcFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lc-menu-header {
    padding: 8px 14px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.lc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: #2a2a3e;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.lc-item:hover {
    background: linear-gradient(90deg, rgba(212,175,55,0.1) 0%, transparent 100%);
    color: var(--primary-color);
}
.lc-item.lc-active {
    background: linear-gradient(90deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%);
    color: var(--primary-color);
    font-weight: 600;
}
.lc-item-flag { font-size: 16px; line-height: 1; flex-shrink: 0; }
.lc-item-symbol { font-weight: 700; font-size: 13px; color: var(--primary-color); min-width: 20px; text-align: center; flex-shrink: 0; }
.lc-item-label { flex: 1; font-size: 13px; }
.lc-item-code { font-size: 10px; font-weight: 700; color: #aaa; background: #f5f5f5; padding: 1px 5px; border-radius: 4px; flex-shrink: 0; }
.lc-item.lc-active .lc-item-code { background: rgba(212,175,55,0.15); color: var(--primary-color); }
.lc-check { font-size: 10px; color: var(--primary-color); margin-left: auto; }
@media (max-width: 767px) {
    .lc-btn { padding: 3px 8px; font-size: 11.5px; }
    .lc-flag { font-size: 13px; }
    .lc-menu { min-width: 190px; }
}

.navbar-modern .search-form { position: relative; }
.navbar-modern .search-input {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 7px;
    padding: 6px 38px 6px 12px;
    font-size: 13px;
    width: 200px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}
.navbar-modern .search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: #fff;
}
.navbar-modern .search-input::placeholder { color: #8a8a9e; }
.navbar-modern .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8a8a9e;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
}
.navbar-modern .search-btn:hover { color: var(--primary-color); background: rgba(212, 175, 55, 0.1); }

.navbar-modern .dropdown-menu {
    background: linear-gradient(135deg, #fff 0%, #faf9f6 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 2px solid var(--primary-color);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    pointer-events: none;
}
@media (min-width: 768px) {
    .navbar-modern .dropdown:hover .dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
    }
    .navbar-modern .dropdown:hover .dropdown-toggle { color: var(--primary-color) !important; }
    .navbar-modern .dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
}
.navbar-modern .dropdown-menu.show {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.navbar-modern .dropdown-item {
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}
.navbar-modern .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 0;
    background: var(--primary-color);
    transition: height 0.2s ease;
}
.navbar-modern .dropdown-item:hover,
.navbar-modern .dropdown-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--primary-color);
    padding-left: 25px;
}
.navbar-modern .dropdown-item:hover::before,
.navbar-modern .dropdown-item.active::before { height: 70%; }

.navbar-modern .mobile-search-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.navbar-modern .mobile-search-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}
.navbar-modern .dropdown-toggle::after { border-top-color: #333; transition: transform 0.3s ease; }
.navbar-modern .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

.mobile-search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: none;
    padding: 80px 20px 20px;
}
.mobile-search-container { width: 100%; max-width: 600px; margin: 0 auto; }
.mobile-search-close {
    position: absolute;
    top: 20px; right: 20px;
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Category navbar */
.category-navbar {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.25);
    padding: 0;
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05);
    position: relative;
    z-index: 1040;
}
.category-navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 15px;
}
.category-navbar .category-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.category-navbar .category-nav-link {
    display: block;
    padding: 6px 13px;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}
.category-navbar .category-nav-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(139, 21, 56, 0.1) 100%);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.category-navbar .category-nav-link:hover::before { transform: translate(-50%, -50%) scale(1); }
.category-navbar .category-nav-link:hover { color: var(--primary-color); transform: translateY(-2px); }
.category-navbar .dropdown-menu {
    background: linear-gradient(135deg, #fff 0%, #faf9f6 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2) !important;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 2px solid var(--primary-color);
    min-width: 220px;
}
@media (min-width: 768px) {
    .category-navbar .dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: all !important;
    }
}
.category-navbar .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}
.category-navbar .dropdown-item {
    color: #333 !important;
    padding: 10px 20px;
    font-size: 14px;
}
.category-navbar .dropdown-item:hover,
.category-navbar .dropdown-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%) !important;
    color: var(--primary-color) !important;
}
@media (max-width: 767.98px) {
    .category-navbar { display: none; }
    .navbar-modern .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-top: 1px solid #e5e5e5;
        margin-top: 10px;
        border-radius: 8px;
    }
}
@media (max-width: 767px) {
    .navbar-modern { padding: 4px 0 !important; }
    .navbar-modern .navbar-brand img { height: 28px !important; }
    .btn-navbar-cart, .mobile-search-btn { width: 34px !important; height: 34px !important; padding: 0 !important; font-size: 13px !important; }
}
