/*
Theme Name: Naturholz
Theme URI: https://naturholz.de
Author: Hamza
Author URI: https://naturholz.de
Description: Custom WooCommerce theme for Naturholz.de - Premium German wood and terrace products. Features warm, natural aesthetics with modern e-commerce functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naturholz
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, theme-options

Naturholz WordPress Theme - Natürlich. Nachhaltig. Einzigartig.
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Primary Colors - Warm Wood Tones */
    --color-primary: #8B5E34;
    --color-primary-dark: #6B4423;
    --color-primary-light: #A67B5B;
    
    /* Secondary - Forest Greens */
    --color-secondary: #2D5A3D;
    --color-secondary-dark: #1E3D2A;
    --color-secondary-light: #4A7C5C;
    
    /* Accent - Honey/Amber */
    --color-accent: #C4943D;
    --color-accent-dark: #A67B2A;
    --color-accent-light: #D4A854;
    
    /* Neutrals - Warm Spectrum */
    --color-cream: #FAF6F1;
    --color-cream-dark: #F0EBE3;
    --color-beige: #E8E0D5;
    --color-sand: #D4C8B8;
    --color-warm-gray: #9A8F82;
    --color-charcoal: #3D3833;
    --color-dark: #2A2520;
    
    /* Functional Colors */
    --color-success: #4A7C5C;
    --color-error: #B54A4A;
    --color-warning: #C4943D;
    --color-info: #5A7A9A;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-wide: 1600px;
    --header-height: 80px;
    --header-height-scrolled: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows - Warm tinted */
    --shadow-sm: 0 1px 2px rgba(61, 56, 51, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(61, 56, 51, 0.08), 0 2px 4px -1px rgba(61, 56, 51, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(61, 56, 51, 0.1), 0 4px 6px -2px rgba(61, 56, 51, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(61, 56, 51, 0.12), 0 10px 10px -5px rgba(61, 56, 51, 0.04);
    --shadow-inner: inset 0 2px 4px rgba(61, 56, 51, 0.06);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: "kern" 1, "liga" 1;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

/* Display headings - Elegant serif */
.display-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

strong, b {
    font-weight: 600;
}

small {
    font-size: var(--text-sm);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--sm {
    padding: var(--space-2xl) 0;
}

.section--lg {
    padding: var(--space-5xl) 0;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: 1fr; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn--accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--dark {
    background-color: var(--color-dark);
    color: white;
    border-color: var(--color-dark);
}

.btn--dark:hover {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: white;
}

.btn--white {
    background-color: white;
    color: var(--color-dark);
    border-color: white;
}

.btn--white:hover {
    background-color: var(--color-cream);
    border-color: var(--color-cream);
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
}

.btn--icon {
    padding: var(--space-md);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-dark);
    background-color: white;
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.1);
}

.form-input::placeholder {
    color: var(--color-warm-gray);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: var(--space-xl);
}

.card__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

.card__text {
    color: var(--color-warm-gray);
    font-size: var(--text-sm);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 200, 184, 0.5);
    transition: all var(--transition-base);
}

/* Admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

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

/* Adjust body padding when admin bar is present */
.admin-bar .hero {
    padding-top: calc(var(--header-height) + 32px);
}

.admin-bar .page-header {
    padding-top: calc(var(--header-height) + var(--space-2xl) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .hero {
        padding-top: calc(var(--header-height) + 46px);
    }
    
    .admin-bar .page-header {
        padding-top: calc(var(--header-height) + var(--space-2xl) + 46px);
    }
}

/* Fix for mobile nav when admin bar is present */
.admin-bar .main-nav {
    top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .main-nav {
        top: calc(var(--header-height) + 46px);
    }
}

.site-header.scrolled {
    background-color: rgba(250, 246, 241, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--space-xl);
    max-width: var(--container-wide);
    margin: 0 auto;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo__image {
    height: 40px;
    width: auto;
}

/* Desktop/Mobile logo toggle */
.site-logo__image--mobile {
    display: none;
}

@media (max-width: 768px) {
    .site-logo__image--desktop {
        display: none;
    }
    .site-logo__image--mobile {
        display: block;
    }
}

.site-logo__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

.site-logo__tagline {
    font-size: var(--text-xs);
    color: var(--color-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu__item {
    position: relative;
}

.nav-menu__link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.nav-menu__link:hover,
.nav-menu__link.active {
    color: var(--color-primary);
}

.nav-menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu__link:hover::after,
.nav-menu__link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    padding: var(--space-md) 0;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.nav-menu__item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__link {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-charcoal);
    transition: all var(--transition-fast);
}

.nav-dropdown__link:hover {
    background-color: var(--color-cream);
    color: var(--color-primary);
    padding-left: var(--space-xl);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    color: var(--color-charcoal);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header-icon:hover {
    background-color: var(--color-beige);
    color: var(--color-primary);
}

.header-icon svg {
    width: 22px;
    height: 22px;
}

/* Cart Count Badge */
.cart-count,
.header-cart-count {
    position: absolute;
    top: 2px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    letter-spacing: 0.02em;
    color: white;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Hide badge when cart is empty */
.cart-count:empty,
.header-cart-count:empty {
    display: none;
}

/* Wishlist badge */
.wishlist-count {
    position: absolute;
    top: 2px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl);
        background-color: var(--color-cream);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu__link {
        padding: var(--space-md) 0;
        font-size: var(--text-lg);
        border-bottom: 1px solid var(--color-beige);
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 37, 32, 0.85) 0%,
        rgba(42, 37, 32, 0.6) 50%,
        rgba(42, 37, 32, 0.3) 100%
    );
}

.hero__content {
    position: relative;
    max-width: 700px;
    padding: var(--space-3xl) 0;
    color: white;
}

.hero__subtitle {
    display: inline-block;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background-color: rgba(196, 148, 61, 0.9);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
}

.hero__title {
    margin-bottom: var(--space-xl);
    font-size: var(--text-5xl);
    font-weight: 500;
    color: white;
    line-height: 1.1;
}

.hero__title span {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.hero__description {
    margin-bottom: var(--space-2xl);
    font-size: var(--text-lg);
    line-height: 1.8;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator__text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==========================================================================
   CATEGORY SHOWCASE
   ========================================================================== */

.categories-showcase {
    padding: var(--space-4xl) 0;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header__subtitle {
    display: inline-block;
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.section-header__title {
    margin-bottom: var(--space-lg);
}

.section-header__description {
    color: var(--color-warm-gray);
    font-size: var(--text-lg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.category-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.category-card__image {
    position: absolute;
    inset: 0;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.category-card:hover .category-card__image img {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(42, 37, 32, 0.9) 0%,
        rgba(42, 37, 32, 0.4) 40%,
        rgba(42, 37, 32, 0.1) 100%
    );
    transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(
        to top,
        rgba(139, 94, 52, 0.95) 0%,
        rgba(139, 94, 52, 0.5) 40%,
        rgba(139, 94, 52, 0.2) 100%
    );
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    color: white;
}

.category-card__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
    color: white;
}

.category-card__count {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.category-card__arrow {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.category-card:hover .category-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        aspect-ratio: 16/9;
    }
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.products-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-cream-dark);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.product-badge--sale {
    background-color: var(--color-error);
    color: white;
}

.product-badge--new {
    background-color: var(--color-secondary);
    color: white;
}

.product-badge--sustainable {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.product-card__actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.product-action-btn svg {
    width: 18px;
    height: 18px;
}

.product-card__content {
    padding: var(--space-lg);
}

.product-card__category {
    font-size: var(--text-xs);
    color: var(--color-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card__title {
    margin: var(--space-xs) 0 var(--space-sm);
    font-size: var(--text-base);
    font-weight: 500;
}

.product-card__title a {
    color: var(--color-dark);
}

.product-card__title a:hover {
    color: var(--color-primary);
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
}

.product-card__price del {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-warm-gray);
}

.product-card__unit {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--color-warm-gray);
}

/* ==========================================================================
   FEATURES / USP SECTION
   ========================================================================== */

.features-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-dark);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-item {
    text-align: center;
    padding: var(--space-xl);
}

.feature-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background-color: rgba(196, 148, 61, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-accent);
}

.feature-item__icon svg {
    width: 32px;
    height: 32px;
}

.feature-item__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    color: white;
}

.feature-item__text {
    font-size: var(--text-sm);
    opacity: 0.7;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ABOUT / BRAND SECTION
   ========================================================================== */

.about-section {
    padding: var(--space-5xl) 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image__main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image__main img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image__accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    padding: var(--space-xl);
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.about-image__accent-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    line-height: 1;
}

.about-image__accent-text {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.about-content__subtitle {
    display: inline-block;
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.about-content__title {
    margin-bottom: var(--space-xl);
}

.about-content__text {
    margin-bottom: var(--space-xl);
    color: var(--color-warm-gray);
    font-size: var(--text-lg);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.about-feature__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
}

.about-feature__text {
    font-size: var(--text-sm);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image__accent {
        bottom: -20px;
        right: 20px;
    }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-cream);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    text-align: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
    position: relative;
    margin-bottom: var(--space-xl);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.6;
    color: var(--color-charcoal);
}

.testimonial-card__quote::before {
    content: '"';
    display: block;
    font-family: var(--font-display);
    font-size: 60px;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 0.5;
    margin-bottom: var(--space-md);
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__info {
    text-align: center;
}

.testimonial-card__name {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
}

.testimonial-card__location {
    font-size: var(--text-sm);
    color: var(--color-warm-gray);
}

.testimonial-card__rating {
    display: flex;
    gap: 4px;
    color: var(--color-accent);
}

.testimonial-card__rating svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
    padding: var(--space-5xl) 0;
    background-color: var(--color-secondary-dark);
    color: white;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('assets/images/wood-pattern.svg') repeat;
    opacity: 0.05;
}

.cta-content {
    position: relative;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.cta-content__title {
    margin-bottom: var(--space-lg);
    font-size: var(--text-3xl);
    color: white;
}

.cta-content__text {
    margin-bottom: var(--space-2xl);
    font-size: var(--text-lg);
    opacity: 0.9;
}

.cta-content__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: white;
}

.footer-main {
    padding: var(--space-4xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: white;
    letter-spacing: 0.05em;
}

.footer-brand__text {
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
    opacity: 0.7;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-fast);
}

.footer-social__link:hover {
    background-color: var(--color-primary);
    color: white;
}

.footer-nav__title {
    margin-bottom: var(--space-lg);
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
}

.footer-nav__list {
    list-style: none;
}

.footer-nav__item {
    margin-bottom: var(--space-sm);
}

.footer-nav__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-nav__link:hover {
    color: var(--color-accent);
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom__copyright {
    font-size: var(--text-sm);
    opacity: 0.6;
}

.footer-bottom__links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom__link:hover {
    color: white;
}

.footer-payments {
    display: flex;
    gap: var(--space-sm);
    opacity: 0.6;
}

.footer-payments img {
    height: 24px;
    width: auto;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

/* Single Product */
.woocommerce-product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 var(--space-xl);
    border-bottom: 2px solid var(--color-beige);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    padding: 0;
    margin: 0 var(--space-lg) 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: var(--space-md) 0;
    font-weight: 500;
    color: var(--color-warm-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Quantity input */
.woocommerce .quantity .qty {
    width: 60px;
    padding: var(--space-sm);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Add to cart button */
.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background-color: var(--color-primary) !important;
    color: white !important;
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-primary);
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: var(--color-error);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
    font-weight: 600;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
}

/* Star rating */
.woocommerce .star-rating {
    color: var(--color-accent);
}

/* Messages */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--color-primary);
    background-color: var(--color-cream);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--color-primary);
}

.woocommerce-error {
    border-top-color: var(--color-error);
}

/* Cart */
.woocommerce-cart table.cart {
    border-collapse: separate;
    border-spacing: 0 var(--space-md);
}

.woocommerce-cart table.cart td {
    background-color: white;
    border: none;
    padding: var(--space-lg);
}

.woocommerce-cart table.cart td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.woocommerce-cart table.cart td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Checkout */
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon {
    background-color: var(--color-cream);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.woocommerce form .form-row label {
    font-weight: 500;
    color: var(--color-charcoal);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.1);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }

.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: white; }
.bg-dark { background-color: var(--color-dark); }
.bg-primary { background-color: var(--color-primary); }

.text-primary { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.text-white { color: white; }
.text-muted { color: var(--color-warm-gray); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* ========================================
 * Universal Cart Toast Notification
 * Works on ALL pages (shop, single product, cart)
 * ======================================== */
.naturholz-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary, #2d5a27);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 420px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
}
.naturholz-toast.visible {
    transform: translateX(0);
}
.naturholz-toast.error {
    background: #c53030;
}
.naturholz-toast .toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.naturholz-toast .toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.naturholz-toast .toast-cart-link {
    color: white;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}
.naturholz-toast .toast-cart-link:hover {
    opacity: 0.9;
}
.naturholz-toast .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}
.naturholz-toast .toast-close:hover {
    opacity: 1;
}

/* Cart icon bounce animation */
.cart-toggle.cart-updated {
    animation: naturholz-cart-bounce 0.5s ease;
}
@keyframes naturholz-cart-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive toast */
@media (max-width: 600px) {
    .naturholz-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}