/* ============================================
   KOMOCA FOODS - CUSTOM STYLES
   ============================================ */

/* ============================================
   1. CSS VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
    --primary-green: #2D5F3F;
    --accent-orange: #FF6B35;
    --light-bg: #F8F6F3;
    --dark-text: #1A1A1A;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--dark-text);
}

/* ============================================
   2. NAVIGATION STYLES
   ============================================ */
.navbar-laravel {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: #1e4029 !important;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--accent-orange);
    padding-left: 2rem;
}

.admin-badge {
    background: #FFE8E0;
    color: var(--accent-orange);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
}

/* ============================================
   3. HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #E8E5E0 100%);
    padding: 80px 0;
    margin: -30px -15px 60px -15px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-button {
    background: var(--accent-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   4. SECTION TITLES
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

/* ============================================
   5. PRODUCT CARDS
   ============================================ */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-block;
    background: #FFE8E0;
    color: var(--accent-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
}

.add-to-cart {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.add-to-cart:hover {
    background: #1e4029;
    transform: scale(1.05);
}

/* ============================================
   6. FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--light-bg);
    padding: 80px 0;
    margin: 80px -15px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.feature-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   7. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: var(--primary-green);
    color: white;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    margin: 80px 0;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.newsletter-button {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

/* ============================================
   8. MAIN CONTENT AREA
   ============================================ */
main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   9. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Product Cards */
    .product-image {
        height: 220px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Features */
    .features-section {
        padding: 60px 0;
        margin: 60px -15px;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: 40px 20px;
        margin: 60px 0;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .add-to-cart {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================
   10. UTILITY CLASSES
   ============================================ */
.text-primary-green {
    color: var(--primary-green) !important;
}

.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.bg-accent-orange {
    background-color: var(--accent-orange) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

/* ============================================
   11. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#cart-count {
    font-size: 0.8rem;
    position: absolute;
    top: 4px;
    right: -10px;
}
.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
}

.hero-slider {
    background: #fefefe;
    padding: 60px 0;
}

.hero-content {
    padding: 30px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin: 15px 0;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff8c00;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: #ff7000;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 20px;
}