/*
Theme Name: WorldPeace
Theme URI: https://worldpeace.shop
Author: WorldPeace Team
Author URI: https://worldpeace.shop
Description: Een modern, eco-vriendelijk WordPress thema voor WorldPeace - duurzame producten voor een betere wereld. Volledig geoptimaliseerd voor WooCommerce met SEO best practices.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
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: worldpeace
Tags: e-commerce, woocommerce, eco-friendly, modern, responsive, seo-optimized

WorldPeace WordPress Theme, Copyright 2024
WorldPeace is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #d946a6;
    --color-primary-dark: #b83890;
    --color-secondary: #1a1a1a;
    --color-grey-dark: #2d2d2d;
    --color-grey-medium: #4a4a4a;
    --color-grey-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-success: #10b981;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

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: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.site-logo span {
    color: var(--color-primary);
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-secondary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================================
   Mobile Navigation Styles
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--color-grey-light);
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    /* Animate hamburger to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Header layout adjustments for mobile */
    .header-inner {
        padding: 0.75rem 0;
    }

    .site-logo {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-grey-dark) 100%);
    color: var(--color-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(217, 70, 166, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

/* ==========================================================================
   Impact Section
   ========================================================================== */

.impact-section {
    padding: 4rem 0;
    background-color: var(--color-grey-light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.impact-label {
    color: var(--color-grey-medium);
    font-weight: 500;
}

/* ==========================================================================
   Peace & Support Section
   ========================================================================== */

.peace-section {
    padding: 4rem 0;
    background-color: var(--color-grey-light);
}

.peace-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.peace-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   WooCommerce Product Styles
   ========================================================================== */

.woocommerce-products-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 2rem 0;
}

.product {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product:hover .product-image img {
    transform: scale(1.05);
}

.eco-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-success);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-details {
    padding: 1.5rem;
}

.woocommerce-loop-product__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.product-description {
    color: var(--color-grey-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.add_to_cart_button {
    width: 100%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add_to_cart_button:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    box-shadow: none;
    padding: 3rem 0;
}

.single-product .product-image {
    aspect-ratio: auto;
}

.product_title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.woocommerce-product-details__short-description {
    margin-bottom: 2rem;
    color: var(--color-grey-medium);
}

.single-product .price {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cart {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.quantity input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid var(--color-grey-light);
    border-radius: 8px;
    text-align: center;
}

.single_add_to_cart_button {
    flex: 1;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.single_add_to_cart_button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.sustainability-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sustainability-badge p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.sustainability-badge p:last-child {
    margin-bottom: 0;
}

.certificate-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.newsletter-section {
    background-color: rgba(217, 70, 166, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(217, 70, 166, 0.2);
    margin-top: 3rem;
}

.newsletter-section h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 1.5rem auto 0;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--color-white);
}

.newsletter-form input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

.footer-love {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .single-product .product {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .impact-card {
        padding: 1.5rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section ul li {
        margin-bottom: 0.25rem;
    }
    
    .newsletter-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: 0.5rem;
    }
    
    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .site-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .newsletter-section {
        padding: 1rem;
    }
    
    .newsletter-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   SEO & Accessibility
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}