/*
Theme Name: FoodLovers & Coop
Theme URI: https://gewoonsherp.nl
Author: FoodLovers & Coop
Author URI: https://gewoonsherp.nl
Description: Een professioneel WordPress thema voor FoodLovers en Coop supermarkten. Volledig compatibel met Blocksy en Elementor. Ondersteunt twee merken op één website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: defoodlovers-coop
Domain Path: /languages
Tags: e-commerce, two-columns, custom-menu, featured-images, translation-ready, blocksy-compatible, elementor-compatible

FoodLovers & Coop WordPress Theme, Copyright 2024
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f3920d;
    --primary-dark: #d17a0a;
    --primary-light: #ffa733;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Header Styles */
.top-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}

.top-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-slogan {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slogan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slogan-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.top-header-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-header-right a:hover {
    opacity: 0.8;
}

/* Main Header Styles */
.main-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.site-logo img,
.custom-logo {
    max-height: 70px;
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease, max-height 0.3s ease;
}

.site-branding .custom-logo {
    display: block;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Main Content Styles */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Full width for pages without sidebar */
.page .site-main,
.page-template-default .site-main {
    max-width: 100%;
    padding: 40px 20px;
}

.page .entry-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Homepage specific styles */
.home .site-main {
    max-width: 100%;
    padding: 0 20px 40px 20px;
}

.home .brands-section {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.brand-info {
    color: var(--text-light);
    line-height: 1.8;
}

.brand-info p {
    margin-bottom: 15px;
}

.brand-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.brand-button:hover {
    background-color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: var(--primary-color);
    outline: none;
}

.mobile-menu-toggle.active {
    color: var(--primary-color);
}

/* Sticky Header */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    z-index: 999;
}

/* WordPress Admin Bar Support */
.admin-bar .main-header.sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-header.sticky {
        top: 46px;
    }
}

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

.main-header.sticky .site-logo img,
.main-header.sticky .custom-logo {
    max-height: 45px;
    height: 45px;
    transition: height 0.3s ease, max-height 0.3s ease;
}

/* Sticky Header Navigation Links - White text */
.main-header.sticky .main-navigation a {
    color: #ffffff;
}

.main-header.sticky .main-navigation a:hover,
.main-header.sticky .main-navigation a:focus {
    color: #ffffff;
    opacity: 0.9;
}

.main-header.sticky .main-navigation a::after {
    background-color: #ffffff;
}

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

/* Add padding to body when header is sticky to prevent content jump */
body.header-sticky {
    padding-top: 0;
}

.main-header.sticky + .site-content {
    margin-top: 0;
}

/* Brand Card Animations */
.brand-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.brand-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .top-header-container {
        padding: 0 15px;
    }

    .header-container {
        padding: 15px;
    }

    .site-main {
        padding: 30px 15px;
    }

    .brands-section {
        gap: 25px;
    }

    .brand-card {
        padding: 25px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .top-header {
        padding: 8px 0;
        font-size: 13px;
    }

    .top-header-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 0 15px;
    }

    .top-header-slogan,
    .top-header-right {
        width: 100%;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
        position: relative;
    }

    .site-branding {
        flex: 1;
        min-width: 0;
    }

    .site-logo img,
    .custom-logo {
        max-height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
        padding: 5px 10px;
        font-size: 22px;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
    }

    .main-navigation ul li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        width: 100%;
    }

    .main-navigation a::after {
        display: none;
    }

    .site-main {
        padding: 25px 15px;
    }

    .brands-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .brand-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .brand-card {
        padding: 20px;
    }

    .brand-info {
        font-size: 15px;
    }

    .brand-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        margin-top: 15px;
    }

    .main-header.sticky {
        position: relative;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .top-header {
        font-size: 12px;
        padding: 6px 0;
    }

    .top-header-container {
        padding: 0 10px;
        gap: 6px;
    }

    .header-container {
        padding: 10px;
    }

    .site-logo img,
    .custom-logo {
        max-height: 45px;
    }

    .mobile-menu-toggle {
        font-size: 20px;
        padding: 4px 8px;
    }

    .site-main {
        padding: 20px 10px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-card {
        padding: 15px;
    }

    .brand-info {
        font-size: 14px;
    }

    .brand-button {
        padding: 12px 15px;
        font-size: 14px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }
}

/* Elementor Compatibility */
.elementor-section {
    position: relative;
}

.elementor-widget-container {
    word-wrap: break-word;
}

/* Blocksy Compatibility */
.ct-header {
    position: relative;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

