﻿/* ===================================
   FUKUOKA HALAL STORE - MAIN STYLES
   =================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #28a745 100%);
    --light-bg: #f8f9fa;
    --danger-color: #ff6b6b;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gold-color: #ffd700;
    --ramadan-purple: #764ba2;
    --ramadan-green: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ===================================
   RAMADAN BANNER
   =================================== */
.ramadan-banner {
    background: var(--secondary-gradient);
    color: white;
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: fadeInDown 0.5s ease-in-out;
}

.ramadan-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.ramadan-text-en {
    font-size: 1.1rem;
}

.ramadan-text-ar {
    font-size: 1.3rem;
    font-weight: 700;
}

.ramadan-banner i {
    color: var(--gold-color);
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===================================
   HEADER STYLES
   =================================== */
.main-header {
    background: var(--primary-gradient);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .main-header .navbar {
        padding: 1rem 0;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.brand-name {
    display: none;
}

@media (min-width: 576px) {
    .brand-name {
        display: inline;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

    .nav-links li a {
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
    }

        .nav-links li a:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

/* Categories Dropdown */
.dropdown-item-custom {
    position: relative;
}

.dropdown-toggle-custom {
    cursor: pointer;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    margin-top: 10px;
    padding: 10px 0;
    z-index: 1001;
}

    .dropdown-item-custom:hover .dropdown-menu-custom,
    .dropdown-menu-custom:hover {
        display: block;
    }

    .dropdown-menu-custom a {
        display: block;
        padding: 10px 20px;
        color: #333;
        text-decoration: none;
        transition: all 0.2s;
    }

        .dropdown-menu-custom a:hover {
            background: var(--light-bg);
            padding-left: 25px;
        }

/* Auth Links */
.auth-links {
    display: flex;
    gap: 10px;
}

    .auth-links .btn {
        border-radius: 20px;
        padding: 6px 20px;
        font-weight: 600;
        transition: all 0.3s;
    }

        .auth-links .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

    .mobile-menu-toggle:hover {
        background: rgba(255,255,255,0.3);
    }

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ===================================
   MOBILE SIDEBAR
   =================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

    .mobile-sidebar.active {
        right: 0;
    }

.sidebar-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sidebar-header h5 {
        margin: 0;
        font-size: 1.2rem;
    }

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.sidebar-content {
    padding: 20px;
}

    .sidebar-content a {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        border-radius: 8px;
        margin-bottom: 5px;
        transition: all 0.2s;
    }

        .sidebar-content a:hover {
            background: var(--light-bg);
            padding-left: 20px;
        }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

    .sidebar-overlay.active {
        display: block;
    }

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 20px 0;
}

/* ===================================
   FOOTER STYLES
   =================================== */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 35px;
    height: 35px;
    border-radius: 5px;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: white;
        text-decoration: none;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background: var(--ramadan-green);
            transform: translateY(-3px);
        }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: all 0.3s;
    }

        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }

.footer-contact {
    list-style: none;
    padding: 0;
}

    .footer-contact li {
        color: rgba(255,255,255,0.8);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-contact i {
        color: var(--ramadan-green);
        width: 20px;
    }

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .footer-bottom p {
        margin: 0;
        color: rgba(255,255,255,0.7);
    }

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

    .footer-bottom-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-bottom-links a:hover {
            color: white;
        }

/* ===================================
   MOBILE BOTTOM NAVIGATION
   =================================== */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 1000;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 8px 5px;
    transition: all 0.3s;
    border-radius: 10px;
    margin: 0 3px;
}

    .mobile-bottom-nav .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
    animation: bounce 2s infinite;
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 30px;
    }
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   RAMADAN POPUP MODAL
   =================================== */
.ramadan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

    .ramadan-modal.active {
        display: flex;
    }

.ramadan-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

.ramadan-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ramadan-close:hover {
        color: #333;
    }

.ramadan-modal-body {
    text-align: center;
}

.ramadan-icon {
    font-size: 4rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.ramadan-greeting-en {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.ramadan-greeting-ar {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ramadan-green);
    margin-bottom: 20px;
}

.ramadan-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.ramadan-decoration {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    color: var(--gold-color);
}

    .ramadan-decoration i {
        animation: twinkle 1.5s infinite alternate;
    }

        .ramadan-decoration i:nth-child(2) {
            animation-delay: 0.3s;
        }

        .ramadan-decoration i:nth-child(3) {
            animation-delay: 0.6s;
        }

@keyframes twinkle {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */
@media (max-width: 576px) {
    .ramadan-content {
        font-size: 0.9rem;
    }

    .ramadan-text-en {
        font-size: 0.9rem;
    }

    .ramadan-text-ar {
        font-size: 1.1rem;
    }

    .ramadan-modal-content {
        padding: 30px 20px;
    }

    .ramadan-greeting-en {
        font-size: 1.5rem;
    }

    .ramadan-greeting-ar {
        font-size: 2rem;
    }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

/* ===================================
   CART COUNTER BADGE
   =================================== */
.cart-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.4);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Make cart link relative for badge positioning */
.nav-links a[href*="Cart"],
.mobile-bottom-nav a[href*="Cart"] {
    position: relative;
}

/* ===================================
   ADD TO CART POPUP
   =================================== */
.add-to-cart-popup {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 4000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

    .add-to-cart-popup.show {
        right: 20px;
    }

.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.popup-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20ba5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: checkBounce 0.6s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.popup-title {
    flex: 1;
}

    .popup-title h4 {
        margin: 0;
        font-size: 1.1rem;
        color: #333;
        font-weight: 700;
    }

    .popup-title p {
        margin: 0;
        font-size: 0.85rem;
        color: #28a745;
        font-weight: 600;
    }

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

    .popup-close:hover {
        color: #333;
    }

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.popup-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
/*    font-weight: 600;*/
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .popup-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        color: white;
    }

.popup-btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

    .popup-btn-secondary:hover {
        background: #667eea;
        color: white;
    }

/* Mobile responsive */
@media (max-width: 576px) {
    .add-to-cart-popup {
        width: calc(100% - 40px);
        right: -100%;
    }

        .add-to-cart-popup.show {
            right: 20px;
        }
}