/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm Bakery Colors */
    --primary-brown: #8B4513;
    --warm-beige: #F6E8D6;
    --cream: #FCF5E5;
    --chocolate: #3E2723;
    
    /* Gym Energy Colors */
    --energy-orange: #FF6B35;
    --power-green: #4CAF50;
    --muscle-red: #E74C3C;
    
    /* Neutral Colors */
    --dark-gray: #2C3E50;
    --medium-gray: #7F8C8D;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, rgba(139, 69, 19, 0.7), rgba(255, 107, 53, 0.7));
    --card-gradient: linear-gradient(145deg, #FFFFFF, #FCF5E5);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--cream);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(139, 69, 19, 0.03) 35px,
            rgba(139, 69, 19, 0.03) 70px
        );
}

/* Sticky-footer layout */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Desktop First Approach */
.navbar {
    background: var(--warm-beige);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--energy-orange);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-brown);
    text-decoration: none;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-brown), var(--energy-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
}

/* Desktop Menu - Visible by default */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    background: var(--warm-beige);
    color: var(--primary-brown);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--energy-orange);
    color: var(--white);
}

.cart-badge {
    background: var(--muscle-red);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
    min-width: 20px;
    text-align: center;
}

/* Overlay - Hidden on Desktop */
.nav-overlay {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: var(--hero-gradient), url('https://source.unsplash.com/1600x900/?gym,bakery,protein,baking') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--energy-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cta-button {
    background: var(--energy-orange);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: var(--muscle-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Featured Section */
.featured {
    padding: 5rem 0;
    background: var(--cream);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--energy-orange);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 3rem;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--energy-orange);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
}

/* About Us Section */
.about-us {
    padding: 5rem 0;
    background: var(--warm-beige);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--energy-orange);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: var(--energy-orange);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    background: var(--warm-beige);
    color: var(--primary-brown);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--energy-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 5rem 0 3rem;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--warm-beige);
    padding: 2rem;
    border-radius: 20px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--card-gradient);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-icon {
    font-size: 2rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    color: inherit;
    text-decoration: none;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--energy-orange);
}

.social-section h3 {
    margin-bottom: 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--energy-orange);
}

.social-card.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: var(--white);
}

.social-card.linkedin:hover {
    background: #0077B5;
    color: var(--white);
}

.social-card.facebook:hover {
    background: #1877F2;
    color: var(--white);
}

.social-card.tiktok:hover {
    background: #000;
    color: var(--white);
}

.social-card.email:hover {
    background: var(--energy-orange);
    color: var(--white);
}

/* Menu Page Styles */
.menu-header {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.menu-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--cream);
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    background: var(--warm-beige);
    color: var(--primary-brown);
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--energy-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--energy-orange);
    color: var(--white);
    border-color: var(--muscle-red);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--energy-orange);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--warm-beige);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--energy-orange);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.new {
    background: var(--power-green);
}

.product-info {
    padding: 1.5rem;
}

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

.product-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Nutrition Panel */
.nutrition-panel {
    background: var(--warm-beige);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
}

.nutrition-panel h4 {
    color: var(--primary-brown);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.nutrition-panel small {
    font-weight: 400;
    color: var(--medium-gray);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.nutrition-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 8px;
}

.nutrition-value {
    display: block;
    font-weight: 600;
    color: var(--energy-orange);
    font-size: 1.1rem;
}

.nutrition-label {
    display: block;
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 2px;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--warm-beige);
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--power-green);
}

.price-note {
    font-size: 0.8rem;
    color: var(--medium-gray);
    display: block;
}

.add-to-cart-btn {
    background: var(--energy-orange);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--muscle-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover .btn-icon {
    transform: rotate(90deg);
}

.footer {
    background: var(--chocolate);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

/* Section plate */
.section-plate {
    position: relative;
    background: #FBF3EA;
    border: 1.5px solid rgba(139,69,19,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 24px rgba(0,0,0,0.04);
    border-radius: 28px;
    padding: 1.25rem;
    margin-top: 0.25rem;
}

.section-plate::before {
    content: "";
    position: absolute;
    left: 18px; 
    right: 18px; 
    top: 10px;
    height: 6px; 
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,107,53,.25), rgba(139,69,19,.25));
}

.section-plate .contact-wrap {
    background: #FFF8F2;
    border-radius: 22px;
    border: 1px solid rgba(139,69,19,0.10);
}

/* Flex filler for sticky footer layout */
.site-content { 
    flex: 1 0 auto; 
    display: block; 
}

/* Tablet Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile Styles Only */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
    }
    
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        padding: 0.8rem 15px;
    }
    
    .logo {
        font-size: 1.2rem;
        z-index: 1002;
    }
    
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }
    
    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--primary-brown);
        border-radius: 10px;
        transition: all 0.3s ease;
        transform-origin: 1px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    /* Mobile menu styling */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 75%;
        max-width: 300px;
        height: 100vh;
        padding: 80px 20px 20px;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        border-left: 3px solid transparent;
        border-radius: 0 10px 10px 0;
    }
    
    .nav-link.active {
        border-left-color: var(--energy-orange);
        background: var(--warm-beige);
        color: var(--primary-brown);
    }
    
    .nav-link:hover {
        transform: translateX(5px);
        background: var(--warm-beige);
        color: var(--primary-brown);
    }
    
    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Other mobile adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-plate { 
        margin: 0 12px 1rem; 
        padding: .9rem; 
        border-radius: 22px; 
    }
    
    .contact-item { 
        padding: 1rem 1.25rem; 
    }
}