/* Shared Navigator Styles - include in pages that use navigator */
:root {
    --dark-green: #031c12;
    --mid-green: #0B6E4F;
    --light-green: #50C787;
    --bg-color: #f4f3ed;
    --text-dark: #1a1a1a;
}

/* Page Dimmer Overlay */
.page-dimmer {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.page-dimmer.active { opacity: 1; pointer-events: all; }

/* Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}
.transition-overlay.active { opacity: 1; pointer-events: all; }

/* Liquid Nav */
.liquid-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: rgba(10, 25, 18, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 35px;
    gap: 40px;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s;
}
.liquid-nav.hide-up { transform: translate(-50%, -150%); opacity: 0; pointer-events: none; }

.nav-brand .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.nav-brand .logo img {
    max-height: 35px;
    width: auto;
    transition: 0.3s;
}
.nav-brand .logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; text-transform: uppercase; transition: color 0.3s, text-shadow 0.3s; opacity: 0.85; }
.nav-links a:hover { color: var(--light-green); opacity: 1; text-shadow: 0 0 15px rgba(80, 199, 135, 0.6); }

.nav-icons { display: flex; gap: 20px; align-items: center; }
#langToggle { color: #fff; font-weight: 900; font-size: 1.1rem; cursor: pointer; user-select: none; transition: 0.3s; opacity: 0.85; padding: 5px; }
#langToggle:hover { color: var(--light-green); opacity: 1; transform: scale(1.1); }

.icon-btn { color: #fff; cursor: pointer; transition: 0.3s; opacity: 0.85; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: var(--light-green); opacity: 1; transform: scale(1.1); }

/* Navigation Dropdown */
.nav-dropdown { position: relative; }
.nav-shop-link { display: flex; align-items: center; gap: 5px; }
.nav-shop-link::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-shop-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(3, 28, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(80, 199, 135, 0.3);
    border-radius: 15px;
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}
.dropdown-item:hover {
    background: rgba(80, 199, 135, 0.2);
    color: var(--light-green);
    transform: translateX(5px);
}
.dropdown-icon {
    font-size: 1.1rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}
.dropdown-item:hover .dropdown-icon {
    filter: grayscale(0);
}

[dir="ltr"] .dropdown-menu { left: 50%; right: auto; }
[dir="ltr"] .nav-shop-link::after { content: '▼'; }

/* Search Bar */
.search-wrapper { display: flex; align-items: center; position: relative; }
.search-form { width: 0; opacity: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.search-form.active { width: 180px; opacity: 1; margin-inline-end: 15px; }
.search-form input { width: 100%; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50px; padding: 8px 15px; color: #fff; outline: none; font-family: inherit; font-weight: 600; transition: 0.3s; }
.search-form input::placeholder { color: rgba(255,255,255,0.7); }
.search-form input:focus { background: rgba(255, 255, 255, 0.25); border-color: var(--light-green); }

.search-suggestions {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    inset-inline-start: auto;
    margin-top: 8px;
    min-width: 260px;
    background: rgba(3, 28, 18, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(80, 199, 135, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    padding: 6px;
    display: none;
    z-index: 1000;
}
.search-suggestions.show {
    display: block;
}
.search-suggestion-item {
    width: 100%;
    text-align: start;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}
.search-suggestion-item:hover {
    background: rgba(80, 199, 135, 0.25);
    transform: translateY(-1px);
}

.search-suggestion-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-suggestion-placeholder {
    font-size: 1.4rem;
}
.search-suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-suggestion-name {
    font-weight: 600;
    line-height: 1.2;
}
.search-suggestion-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}
.search-suggestion-id {
    direction: ltr;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 350px; max-width: 100vw; height: 100vh;
    background: rgba(10, 25, 18, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255,255,255,0.1); z-index: 10000; padding: 30px 25px; color: #fff;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -15px 0 40px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.cart-sidebar.active { right: 0; }
[dir="ltr"] .cart-sidebar { right: auto; left: -400px; border-left: none; border-right: 1px solid rgba(255,255,255,0.1); box-shadow: 15px 0 40px rgba(0,0,0,0.5); }
[dir="ltr"] .cart-sidebar.active { left: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 20px; margin-bottom: 30px; }
.cart-header h3 { font-size: 1.5rem; color: var(--light-green); margin: 0; }
#closeCartBtn { background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; transition: 0.3s; line-height: 1; }
#closeCartBtn:hover { color: var(--light-green); transform: rotate(90deg); }
.empty-cart { text-align: center; margin-top: 50px; }
.empty-cart p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: #ddd; }

.cart-items { max-height: 400px; overflow-y: auto; margin-bottom: 20px; }
.cart-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cart-item-image { width: 60px; height: 60px; margin-left: 15px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 1rem; margin-bottom: 5px; color: #fff; }
.cart-item-price { font-size: 0.9rem; color: var(--light-green); margin-bottom: 8px; }
.cart-item-quantity { display: flex; align-items: center; gap: 10px; }
.quantity-btn { width: 25px; height: 25px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.quantity-btn:hover { background: var(--light-green); color: var(--dark-green); }
.cart-item-remove { width: 30px; height: 30px; border: none; background: transparent; color: #ff6b6b; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.cart-item-remove:hover { color: #ff5252; transform: scale(1.1); }

.cart-summary { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.checkout-btn { width: 100%; padding: 12px; background: var(--light-green); color: var(--dark-green); border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.checkout-btn:hover { background: var(--mid-green); color: #fff; }

.cart-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: rgba(3, 28, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--light-green);
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.cart-notification.show { right: 20px; }
.notification-content { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.notification-content svg { width: 20px; height: 20px; color: var(--light-green); }

.cart-count {
    position: absolute; top: -8px; right: -8px;
    background: var(--light-green); color: var(--dark-green); font-size: 0.75rem; font-weight: 700;
    padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; display: none;
}
[dir="ltr"] .cart-count { right: auto; left: -8px; }

/* Global WhatsApp floating button */
#whatsAppFloat {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0B6E4F;
    color: #25D366;
    border: 2px solid #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(3, 28, 18, 0.85), 0 0 32px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#whatsAppFloat:hover {
    transform: translateY(-4px) scale(1.07);
    background: #074734;
    box-shadow: 0 0 26px rgba(3, 28, 18, 1), 0 0 40px rgba(37, 211, 102, 0.8);
}
#whatsAppFloat svg {
    width: 30px;
    height: 30px;
}
