/*
Theme Name: Fresh Bake
Description: A comprehensive WordPress theme designed specifically for FreshBake.
Author: gmcosta
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fresh-bake
Tags: food-and-drink, e-commerce, business, responsive-layout, custom-post-types, featured-images, threaded-comments, translation-ready, accessibility-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ========================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ======================================== */
:root {
    /* Brand Colors - Default values, overridden by customizer */
    --primary-red: #B91C1C;
    --primary-orange: #F59E0B;
    --background-cream: #FEF3C7;

    /* UI Colors */
    --primary-text: #1a1a1a;
    --secondary-text: #666666;
    --main-background: #ffffff;
    --button-hover: #D97706;

    /* Typography */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --base-font-size: 16px;

    /* Additional Colors */
    --fresh-cream: #FEF3C7;
    --fresh-red: #B91C1C;
    --fresh-orange: #F59E0B;
    --fresh-blue: #2E86AB;
    --fresh-dark: #1a1a1a;
    --coffee-brown: #8B4513;
    --coffee-light: #D2691E;
    --logo-blue: #1E3A8A;
    --logo-navy: #1E40AF;
    --logo-orange: #F97316;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --card-border-radius: 1rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Border Radius Scale */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* New Design System Styles */
.druk-font {
    font-family: 'Oswald', 'Arial Black', 'Helvetica', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(135deg, #B91C1C 0%, #F59E0B 50%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-title {
    color: #B91C1C;
}

.brand-accent {
    color: #F59E0B;
}

.price-tag {
    color: #B91C1C;
    font-weight: 700;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-bg {
    background: linear-gradient(135deg, #FEF3C7 0%, #fff 30%, #FEF3C7 70%, #fff 100%);
}

.section-divider {
    background: linear-gradient(90deg, transparent, #B91C1C, transparent);
    height: 2px;
    width: 100px;
    margin: 0 auto;
}

.store-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 239, 211, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-slider .swiper-pagination-bullet {
    background: #ff5733;
    opacity: 0.5;
}

.news-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff5733;
}

.product-slider .swiper-pagination-bullet {
    background: #ff5733;
    opacity: 0.5;
}

.product-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff5733;
}

.product-slider .swiper-button-next,
.product-slider .swiper-button-prev {
    color: #ff5733;
}

.product-slider .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: auto;
}

.news-slider .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: auto;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 239, 211, 0.6) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Menu Tab Styles */
.menu-tab {
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #F59E0B !important;
    color: white !important;
}

.menu-content {
    display: block;
}

.menu-content.hidden {
    display: none;
}

/* Animation Classes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

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

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

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .druk-font {
        font-size: 2rem;
    }
    
    .hero-bg {
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .store-card,
    .product-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .druk-font {
        font-size: 1.5rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}

/* Custom Logo Styles */
.custom-logo {
    height: 3rem;
    width: auto;
}

/* Navigation Styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
#mobile-menu {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: #F59E0B;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: rgba(245, 158, 11, 0.9);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid #F59E0B;
    color: #F59E0B;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-secondary:hover {
    background: #F59E0B;
    color: white;
}

/* Utility Classes */
.bg-brand-orange {
    background-color: #F59E0B;
}

.text-brand-orange {
    color: #F59E0B;
}

.border-brand-orange {
    border-color: #F59E0B;
}

.bg-coffee-brown {
    background-color: #8B4513;
}

.text-coffee-brown {
    color: #8B4513;
}

.bg-fresh-cream {
    background-color: #FEF3C7;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}
/* Menu Tab Styles */
.menu-tab {
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #f97316;
    color: white;
}

.menu-content {
    display: none;
}

.menu-content.active {
    display: block;
}

/* Custom Slider Controls */
.swiper-pagination-custom .swiper-pagination-bullet,
.swiper-pagination-news .swiper-pagination-bullet {
    background: #d1d5db !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-custom .swiper-pagination-bullet-active,
.swiper-pagination-news .swiper-pagination-bullet-active {
    background: #f97316 !important;
    transform: scale(1.2) !important;
}

.swiper-button-prev-custom,
.swiper-button-next-custom,
.swiper-button-prev-news,
.swiper-button-next-news {
    position: static !important;
    margin: 0 !important;
    width: 48px !important;
    height: 48px !important;
    background: #f97316 !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover,
.swiper-button-prev-news:hover,
.swiper-button-next-news:hover {
    background: rgba(249, 115, 22, 0.9) !important;
    transform: scale(1.05) !important;
}

.swiper-button-prev-custom:after,
.swiper-button-next-custom:after,
.swiper-button-prev-news:after,
.swiper-button-next-news:after {
    display: none !important;
}

/* Hide default Swiper navigation */
.product-slider .swiper-button-next,
.product-slider .swiper-button-prev,
.news-slider .swiper-button-next,
.news-slider .swiper-button-prev {
    display: none !important;
}

/* News slider specific fixes */
.news-slider {
    overflow: visible !important;
}

.news-slider .swiper {
    overflow: visible !important;
    padding-bottom: 2rem !important;
}

.news-slider .swiper-slide {
    height: auto !important;
}

/* Pagination centering */
.swiper-pagination-news {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 1 !important;
    max-width: 200px !important;
}
