/* ===== SHARED NAVIGATION & UI STYLES ===== */

header {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-text h1 {
        font-size: 32px;
    }

    .logo-text p {
        font-size: 12px;
    }

    .logo-img {
        height: 35px;
        width: 35px;
    }

    .logo-area {
        gap: 0.5rem;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--dark) 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.header-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    color: var(--dark);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.25rem;
    font-family: 'Outfit';
}

.mobile-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-contact a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact i {
    color: var(--primary);
}

.mobile-nav-link.active {
    color: var(--primary);
}

.close-menu {
    align-self: flex-end;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contact Info in Header */
.contact-info a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.contact-info i {
    color: var(--primary);
    margin-right: 8px;
}

@media (max-width: 768px) {
    .contact-info {
        display: none;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-space {
    height: 80px;
}

@media (min-width: 1024px) {
    .footer-space {
        display: none;
    }
}

/* ===== LOADING OVERLAY ===== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.loader-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary, #FFB300);
    border-radius: 50%;
    animation: hkSpin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.progress-wrapper {
    width: 200px;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

#loaderProgress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0.8rem;
    font-family: 'Outfit';
}

@keyframes hkSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== FLOATING CART BAR ===== */
.cart-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.cart-bar:hover {
    transform: translateX(-50%) translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon-wrapper {
    background: var(--primary);
    color: var(--dark);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

.cart-count {
    background: var(--dark);
    color: var(--white);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.checkout-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* ===== MODAL SYSTEM ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-detail {
    padding: 2.5rem;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-float {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

body.rtl .whatsapp-float {
    right: auto;
    left: 2rem;
}