/*
Theme Name: NoePan
Description: Tema personalizado para NoePan - Panadería Artesanal en Valdeorras. Diseño responsivo con colores corporativos y tipografías especiales.
Version: 1.0
Author: NoePan Team
Text Domain: noepan
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #FAF8F5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #3D2B1F;
    margin: 0 0 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

a {
    color: #B8764E;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3D2B1F;
}

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

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #B8764E;
    background: transparent;
    color: #B8764E;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #B8764E;
    color: #FAF8F5;
    transform: translateY(-2px);
}

.btn-primary {
    background: #B8764E;
    color: #FAF8F5;
}

.btn-primary:hover {
    background: #3D2B1F;
    border-color: #3D2B1F;
}

/* ===== HEADER ===== */
.site-header {
    background: #FAF8F5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #3D2B1F;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B8764E;
    transition: width 0.3s ease;
}

.main-navigation a:hover:after,
.main-navigation a.current-menu-item:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon, .search-icon {
    font-size: 1.2rem;
    color: #B8764E;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #B8764E;
    color: #FAF8F5;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Sticky Header */
.site-header.sticky {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #B8764E;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: url('/wp-content/uploads/2025/03/images.jpeg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 90px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 26, 31, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FAF8F5;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #FAF8F5;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== PRODUCT CARDS SECTION ===== */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #3D2B1F;
}

.section-subtitle {
    text-align: center;
    color: #B8764E;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.product-card {
    text-align: center;
    padding: 40px 20px;
    background: #FAF8F5;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #E8E4E0;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3D2B1F;
}

.product-description {
    color: #666;
    line-height: 1.6;
}

/* ===== SPECIALTIES SECTION ===== */
.specialties-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FAF8F5 0%, #F5F1EA 100%);
}

.specialties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.specialties-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.specialties-features {
    padding-left: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 15px;
}

.feature-icon {
    color: #B8764E;
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-content h4 {
    color: #3D2B1F;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* ===== HEALTH SECTION ===== */
.health-section {
    padding: 80px 0;
    text-align: center;
}

.health-content {
    max-width: 800px;
    margin: 0 auto;
}

.health-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #3D2B1F;
}

.health-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 100px 0;
    background: url('/wp-content/uploads/2026/02/trigo-gallego-bica-noepan.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 26, 31, 0.7);
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    color: #FAF8F5;
    line-height: 1.4;
}

/* ===== DISTRIBUTION SECTION ===== */
.distribution-section {
    padding: 80px 0;
    background: #F5F1EA;
}

.distribution-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.distribution-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #3D2B1F;
}

.distribution-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: url('/wp-content/uploads/2026/02/pan-artesanal-masa-madre-noepan.jpg') center/cover no-repeat;
    position: relative;
    color: #FAF8F5;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 26, 31, 0.85);
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #FAF8F5;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p, .footer-column a {
    color: rgba(250, 248, 245, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    color: #FAF8F5;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #B8764E;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 248, 245, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.9rem;
}

/* ===== BLOG STYLES ===== */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.blog-main {
    flex: 1;
}

.post-card {
    background: #FAF8F5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #3D2B1F;
}

.post-meta {
    color: #B8764E;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #B8764E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar */
.sidebar {
    background: #FAF8F5;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar h3 {
    color: #3D2B1F;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E8E4E0;
}

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

.sidebar a {
    color: #666;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #B8764E;
}

.category-count {
    color: #B8764E;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Search Form */
.search-form {
    position: relative;
    margin-bottom: 2rem;
}

.search-form input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #E8E4E0;
    border-radius: 5px;
    background: #FAF8F5;
    color: #3D2B1F;
}

.search-form input:focus {
    outline: none;
    border-color: #B8764E;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #B8764E;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ===== WOOCOMMERCE STYLES ===== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.woocommerce .product {
    background: #FAF8F5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.woocommerce .product:hover {
    transform: translateY(-5px);
}

.woocommerce .product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.woocommerce .product h2,
.woocommerce .product h3 {
    padding: 20px 20px 10px;
    color: #3D2B1F;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.woocommerce .price {
    color: #B8764E !important;
    font-size: 1.25rem !important;
    font-weight: 600;
    padding: 0 20px 10px;
}

.woocommerce .button,
.woocommerce .add_to_cart_button {
    background: transparent !important;
    border: 2px solid #B8764E !important;
    color: #B8764E !important;
    padding: 10px 20px !important;
    margin: 0 20px 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.woocommerce .button:hover,
.woocommerce .add_to_cart_button:hover {
    background: #B8764E !important;
    color: #FAF8F5 !important;
    transform: translateY(-2px);
}

/* Cart Widget */
.widget_shopping_cart .cart_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #E8E4E0;
}

.widget_shopping_cart .cart_list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specialties-features {
        padding-left: 0;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FAF8F5;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-navigation.open {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .woocommerce .products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .products-section,
    .specialties-section,
    .health-section,
    .distribution-section {
        padding: 60px 0;
    }
    
    .product-card {
        padding: 30px 15px;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .woocommerce .products {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }

/* WordPress Core Styles */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-style: italic; }
.sticky { /* Sticky post styles */ }
.gallery { /* Gallery styles */ }
.bypostauthor { /* Author comment styles */ }

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===== WooCommerce Shop Grid ===== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.woocommerce ul.products li.product a img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3D2B1F;
    margin: 0.5rem 0;
}
.woocommerce ul.products li.product .price {
    color: #B8764E !important;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.8rem;
}
.woocommerce ul.products li.product .button {
    background: transparent !important;
    border: 2px solid #B8764E !important;
    color: #B8764E !important;
    border-radius: 25px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px 22px !important;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.woocommerce ul.products li.product .button:hover {
    background: #B8764E !important;
    color: #fff !important;
}
.woocommerce .woocommerce-result-count { color: #8B7355; }
.woocommerce .woocommerce-ordering select {
    border: 1px solid #E8E4E0;
    border-radius: 6px;
    padding: 8px 12px;
}
@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
}
@media (max-width: 480px) {
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
}
