/* 
 * Bonita Cafe - Global Styles
 * Mobile First Design
 */

:root {
    --primary-red: #A50000;
    --dark-red: #7D0000;
    --white: #FFFFFF;
    --beige: #F5F5DC;
    --coffee-brown: #4B3621;
    --caramel: #C68E17;
    --light-gray: #F4F4F4;
    --dark-gray: #333333;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.mobile-nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: var(--coffee-brown);
    z-index: 1001;
    padding: 40px 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.close-btn {
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
    text-align: left;
}

.sidebar-links li {
    margin-bottom: 25px;
}

.sidebar-links a {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

.sidebar-links a.active {
    color: var(--caramel);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 0 60px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 100%;
    padding: 0 15px;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--beige);
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
}

/* Products Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

@media (min-width: 576px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-padding {
    padding: 60px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--coffee-brown);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image img {
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--coffee-brown);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--coffee-brown);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--caramel);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--caramel);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--caramel);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Media Queries */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    /* Removed redundant product-grid rule */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1, .hero-content p, .hero-btns {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.4s; }
.hero-btns { animation-delay: 0.6s; }

/* Luxury Touches */
.product-card {
    border: 1px solid rgba(75, 54, 33, 0.1);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.product-price {
    background: var(--beige);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(165, 0, 0, 0.3);
}

/* Loading Animation */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--beige);
    border-top: 5px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2500;
}

.toast {
    background: var(--coffee-brown);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
