/* ===== GLOBAL STYLES ===== */
* {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== PAGE MANAGEMENT ===== */
.page {
    display: none;
    padding-top: 45px;
}

.page.active {
    display: block;
}

/* ===== NAVIGATION STYLES ===== */
.navbar-scroll {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.nav-tabs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 10px;
}

.nav-tabs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #7c3aed, #db2777);
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-icon {
    padding: 0.375rem;
    width: auto;
    height: auto;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Button Color Variants */
.btn-orange {
    background: linear-gradient(to right, #f97316, #dc2626);
    color: white;
}

.btn-orange:hover {
    background: linear-gradient(to right, #ea580c, #b91c1c);
}

.btn-green {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
}

.btn-green:hover {
    background: linear-gradient(to right, #059669, #047857);
}

.btn-whatsapp {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(to right, #059669, #047857);
}

.btn-purple {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(to right, #7c3aed, #db2777);
}

.btn-primary {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #7c3aed, #db2777);
}

.btn-secondary {
    background: linear-gradient(to right, #6b7280, #4b5563);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #4b5563, #374151);
}

/* ===== CART STYLES ===== */
.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== PRODUCT CARD STYLES ===== */
.product-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* ===== CATEGORY CARD STYLES ===== */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== IMAGE STYLES ===== */
.image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.image-placeholder.has-image {
    border: 2px solid #10b981;
    background: none;
}

.protected-image {
    user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.protected-image::selection {
    background: transparent;
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.text-gradient {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TAB STYLES ===== */
.tab-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-button.active {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    color: white;
    border-color: transparent;
}

/* ===== CUSTOM RADIO STYLES ===== */
.custom-radio {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.custom-radio input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.custom-radio .radio-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: white;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-circle {
    border-color: #8b5cf6;
    background-color: #8b5cf6;
}

.custom-radio input[type="radio"]:checked + .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    transform: translate(-50%, -50%);
}

.custom-radio input[type="radio"]:hover + .radio-circle {
    border-color: #a855f7;
}

/* Radio Color Variants */
.payment-radio .radio-circle {
    border-color: #10b981;
}

.payment-radio input[type="radio"]:checked + .radio-circle {
    border-color: #10b981;
    background-color: #10b981;
}

.payment-radio input[type="radio"]:hover + .radio-circle {
    border-color: #059669;
}

.delivery-radio .radio-circle {
    border-color: #f59e0b;
}

.delivery-radio input[type="radio"]:checked + .radio-circle {
    border-color: #f59e0b;
    background-color: #f59e0b;
}

.delivery-radio input[type="radio"]:hover + .radio-circle {
    border-color: #d97706;
}

.size-radio .radio-circle {
    border-color: #3b82f6;
}

.size-radio input[type="radio"]:checked + .radio-circle {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

.sugar-radio .radio-circle {
    border-color: #ec4899;
}

.sugar-radio input[type="radio"]:checked + .radio-circle {
    border-color: #ec4899;
    background-color: #ec4899;
}

.milk-radio .radio-circle {
    border-color: #06b6d4;
}

.milk-radio input[type="radio"]:checked + .radio-circle {
    border-color: #06b6d4;
    background-color: #06b6d4;
}

/* ===== SCREENSHOT PROTECTION ===== */
.screenshot-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    backdrop-filter: blur(20px);
}

.screenshot-warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100vw;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



/* ===== FOOTER STYLES ===== */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 80px;
}

.footer-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-category-btn span {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.app-btn span {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-btn span {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-category-btn {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    .footer-category-btn span {
        font-size: 0.7rem;
    }
    
    .footer-category-btn i {
        font-size: 1rem !important;
    }
    
    .app-btn {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .social-btn {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    footer .grid {
        gap: 1rem;
    }
    
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-category-btn {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .footer-category-btn span {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .footer-category-btn i {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Footer Animation Effects */
.footer-category-btn,
.app-btn,
.social-btn {
    position: relative;
    overflow: hidden;
}

.footer-category-btn::before,
.app-btn::before,
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-category-btn:hover::before,
.app-btn:hover::before,
.social-btn:hover::before {
    left: 100%;
}

/* Footer Section Titles */
footer h4 {
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    border-radius: 1px;
}

/* Footer Links Hover Effect */
footer a:not(.app-btn):not(.social-btn):not(.footer-category-btn) {
    position: relative;
    transition: all 0.3s ease;
}

footer a:not(.app-btn):not(.social-btn):not(.footer-category-btn):hover {
    padding-right: 0.5rem;
}

footer a:not(.app-btn):not(.social-btn):not(.footer-category-btn):hover::before {
    content: '←';
    position: absolute;
    right: 0;
    opacity: 0.7;
}

/* Footer Border Animations */
.border-t.border-gray-700 {
    position: relative;
}

.border-t.border-gray-700::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    transition: all 0.8s ease;
    transform: translateX(-50%);
}

.border-t.border-gray-700:hover::before {
    width: 100%;
}

