/* Base styles */
:root {
    --font-family-base: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --primary-color: #764ba2;
    --secondary-color: #667eea;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom gradient background - can't use Bootstrap for this */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: var(--font-family-base);
    /* Copy protection */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Bootstrap's navbar z-index */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    color: #764ba2;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 10px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    background-color: #20c157;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float.pulse {
    animation: pulse 2s infinite;
}

/* About link styles */
.about-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: rgba(118, 75, 162, 0.1);
    border: 1px solid rgba(118, 75, 162, 0.2);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-link:before {
    content: "ℹ️";
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.about-link:hover {
    background-color: rgba(118, 75, 162, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-link.active {
    background-color: rgba(118, 75, 162, 0.3);
    font-weight: 600;
    color: var(--primary-color);
    border-color: rgba(118, 75, 162, 0.4);
}

/* Navigation links */
.navigation-links {
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-link.active:after {
    width: 100%;
}

.nav-link.home-link:before {
    content: "🏠";
    margin-left: 0.4rem;
    font-size: 0.9rem;
}

.nav-link.about-nav:before {
    content: "ℹ️";
    margin-left: 0.4rem;
    font-size: 0.9rem;
}

.nav-link.why-us-nav:before {
    content: "🌟";
    margin-left: 0.4rem;
    font-size: 0.9rem;
}

/* Page header styles */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Back to shop button */
.back-to-shop {
    display: inline-block;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
        left: 10px;
        font-size: 26px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Header responsiveness */
    .header .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin: 0 0.3rem;
    }

    .navigation-links {
        gap: 0.2rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
        /* Fallback for Android phones with navigation buttons */
        bottom: 10px;
    }

    /* Improved header responsiveness for small devices */
    .logo {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
        margin: 0 0.2rem;
    }

    .nav-link:before {
        margin-left: 0.3rem;
        font-size: 0.8rem;
    }

    .cart-icon {
        min-width: 40px;
        min-height: 40px;
    }

    .navigation-links {
        margin-top: 0.5rem;
    }
}