/**
 * Volnenka.si - Modern Styles
 * Mobile-first responsive design
 */

/* ========================================
   Custom Fonts
   ======================================== */
@font-face {
    font-family: 'Great Vibes';
    src: url('../font/great-vibes.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves performance by showing fallback font while loading */
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors - Warm natural palette */
    --primary-color: #da5d25;
    --primary-dark: #c35420;
    --primary-light: #D2691E;
    --secondary-color: #DEB887;
    --accent-color: #CD853F;
    
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    
    --bg-color: #FFF;
    --bg-light: #F9F7F4;
    --bg-lighter: #FFF8F0;
    
    --border-color: #E5E5E5;
    --border-light: #F0F0F0;
    
    --success-color: #4CAF50;
    --error-color: #E74C3C;
    --warning-color: #FF9800;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* ============================================
       Logo Shadow Controls - Adjust Separately
       ============================================
       
       HEADER SHADOW (subtle, for portion over navbar):
       - X offset: --logo-shadow-header-x (positive = right, negative = left)
       - Y offset: --logo-shadow-header-y (positive = down, negative = up)
       - Blur: --logo-shadow-header-blur (larger = softer shadow)
       - Color/Opacity: --logo-shadow-header-color (rgba format)
       
       BODY SHADOW (stronger, for hanging portion):
       - X offset: --logo-shadow-body-x (positive = right, negative = left)
       - Y offset: --logo-shadow-body-y (positive = down, negative = up)
       - Blur: --logo-shadow-body-blur (larger = softer shadow)
       - Color/Opacity: --logo-shadow-body-color (rgba format)
       ============================================ */
    
    /* Header shadow (subtle shadow for portion over navbar) */
    --logo-shadow-header-x: 0px;
    --logo-shadow-header-y: 2px;
    --logo-shadow-header-blur: 4px;
    --logo-shadow-header-color: rgba(0, 0, 0, 0.25);
    
    /* Body shadow (stronger shadow for hanging portion over content) */
    --logo-shadow-body-x: 0px;
    --logo-shadow-body-y: 8px;
    --logo-shadow-body-blur: 16px;
    --logo-shadow-body-color: rgba(0, 0, 0, 0.65);
    
    /* ============================================
       Decorative Nav Leaves Controls
       ============================================
       Adjust these to position and size the autumn leaves on the right side
       ============================================ */
    --nav-leaves-right: 10px;        /* Distance from right edge */
    --nav-leaves-top: 35px;         /* Distance from top (negative = hangs over) */
    --nav-leaves-height: 100px;      /* Height of the leaves image */
    
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

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

p {
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.main-content {
    min-height: calc(100vh - 400px);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    overflow: visible; /* Allow logo to hang off */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    position: relative;
    z-index: 10;
}

.nav-brand a {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    gap: 15px;
    color: var(--primary-dark);
}

.brand-logo {
    height: 150px; /* Much larger to allow significant hanging */
    width: auto;
    position: relative;
    top: -18px; /* Start from the very top */
    left: -20px; /* Shift to the left */
    margin-bottom: -150px; /* Allow most of the ornament to hang below header */
    
    /* Combined shadow: header shadow + body shadow */
    filter: 
        drop-shadow(
            var(--logo-shadow-header-x) 
            var(--logo-shadow-header-y) 
            var(--logo-shadow-header-blur) 
            var(--logo-shadow-header-color)
        )
        drop-shadow(
            var(--logo-shadow-body-x) 
            var(--logo-shadow-body-y) 
            var(--logo-shadow-body-blur) 
            var(--logo-shadow-body-color)
        );
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text-wrapper {
    position: relative;
    display: inline-block;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.brand-leaves {
    position: absolute;
    right: 80px;
    top: 60%;
    transform: translateY(-50%);
    height: 2.5em; /* Proportional to text size */
    width: auto;
    pointer-events: none;
    z-index: 2;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

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

/* Decorative autumn leaves on right side of nav */
.nav-decorative-leaves {
    position: absolute;
    right: var(--nav-leaves-right);
    top: var(--nav-leaves-top);
    height: var(--nav-leaves-height);
    width: auto;
    pointer-events: none; /* Allow clicking through the leaves */
    z-index: 15; /* Above nav elements but allow interaction */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .brand-logo {
        height: 100px; /* Smaller logo on mobile */
        top: -20px;
        left: 5px; /* Move to the right on mobile */
        margin-bottom: -30px; /* Less overhang on mobile */
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
    }
    
    .brand-leaves {
        display: none; /* Hidden on mobile - too busy */
    }
    
    .nav-decorative-leaves {
        display: none; /* Hidden on mobile - too busy */
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ========================================
   Hero Section with Carousel
   ======================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Smaller hero carousel for category pages */
.category-hero.hero {
    height: 400px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
    background: white;
}

.carousel-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.05);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

.nav-arrow {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.carousel-nav:hover .nav-arrow {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: normal; /* Great Vibes looks best at normal weight */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
    
    /* Smaller category hero on tablets */
    .category-hero.hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-nav {
        width: 20%;
    }
    
    .nav-arrow {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }
    
    /* Smaller category hero on mobile */
    .category-hero.hero {
        height: 250px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 25%;
    }
    
    .nav-arrow {
        font-size: 2.5rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 50px; /* Rounded pill shape */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #ffc26b 0%, #e03f19 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(224, 63, 25, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #ffb554 0%, #c93610 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 63, 25, 0.4);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: var(--spacing-xs) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ========================================
   Product Grid
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-carousel-slide.active {
    opacity: 1;
}

.product-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-carousel-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
    opacity: 0;
}

.product-card:hover .product-carousel-nav {
    opacity: 1;
}

.product-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.1);
}

.product-carousel-nav-prev {
    left: 0;
}

.product-carousel-nav-next {
    right: 0;
}

.product-carousel-nav .nav-arrow {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.product-carousel-nav:hover .nav-arrow {
    opacity: 1;
}

.product-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-carousel-indicators {
    opacity: 1;
}

.product-carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.product-carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-carousel-indicators .indicator.active {
    background: white;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: var(--spacing-md);
}

.product-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.product-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ========================================
   Description
   ======================================== */
.description {
    padding: var(--spacing-xxl) 0;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    /* text-align is set dynamically via inline style from language file */
}

.description-content p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Features
   ======================================== */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
}

/* ========================================
   Ordering Pages
   ======================================== */
.ordering-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.ordering-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.ordering-card:hover {
    box-shadow: var(--shadow-md);
}

.ordering-image {
    height: 100%;
    min-height: 200px;
}

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

.ordering-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ordering-content h2 {
    margin-bottom: var(--spacing-sm);
}

.ordering-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.ordering-image-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.ordering-title-link {
    text-decoration: none;
    color: inherit;
}

.ordering-title-link:hover {
    text-decoration: none;
}

.ordering-title-link h2 {
    transition: color 0.2s ease;
}

.ordering-title-link:hover h2 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .ordering-card {
        grid-template-columns: 1fr;
    }
    
    .ordering-image {
        height: 200px;
    }
}

/* Ordering Info */
.ordering-info {
    background-color: var(--bg-light);
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-step {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

/* ========================================
   Terms of Business Section
   ======================================== */
.terms-section {
    background-color: var(--bg-color);
    padding: var(--spacing-xxl) 0;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-content h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.terms-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.terms-item {
    background-color: var(--bg-lighter);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.terms-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.terms-item p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.terms-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.terms-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-content {
        padding: 0 var(--spacing-md);
    }
    
    .terms-item {
        padding: var(--spacing-md);
    }
    
    .terms-item:hover {
        transform: none;
    }
}

/* ========================================
   Forms
   ======================================== */
.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.order-form {
    background-color: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

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

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-actions {
    margin-top: var(--spacing-lg);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.btn-loading {
    display: none;
}

.btn-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Order Info Sidebar */
.order-info {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-info h3 {
    margin-bottom: var(--spacing-sm);
}

.info-box {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
}

.info-box h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
}

.info-box li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .order-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        padding: var(--spacing-md);
    }
}

/* ========================================
   Split Form Layout (Form + Explanation)
   ======================================== */
.form-container-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.form-column {
    min-width: 0; /* Prevent grid overflow */
}

.explanation-column {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
    font-size: 0.9rem;
}

.explanation-column h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.explanation-intro {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-lighter);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span,
.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ========================================
   Accordion Component
   ======================================== */
.accordion {
    margin-top: var(--spacing-lg);
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--primary-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-body {
    padding-bottom: var(--spacing-md);
}

/* Text Content Styling */
.accordion-body p hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-sm) 0;
}

/* Text and Table Combined */
.text-n-table p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.text-n-table p hr {
    margin: var(--spacing-sm) 0;
}

.text-n-table .info-table {
    margin-top: var(--spacing-sm);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-sm) 0;
    font-size: 0.85rem;
}

.info-table thead {
    background-color: var(--bg-color);
}

.info-table th {
    padding: var(--spacing-sm);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.info-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background-color: var(--bg-lighter);
}

/* Info List */
.info-list {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.info-list li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    font-size: 0.9rem;
}

.info-list li strong {
    color: var(--primary-dark);
}

/* Info Image */
.info-image {
    margin: var(--spacing-md) 0;
}

.info-image img {
    border-radius: var(--radius-md);
    width: 100%;
}

.info-image figcaption {
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* HTML Content */
.html-content {
    line-height: 1.6;
}

.html-content p {
    margin-bottom: var(--spacing-sm);
}

.html-content strong,
.html-content b {
    font-weight: 600;
    color: var(--primary-dark);
}

.html-content em,
.html-content i {
    font-style: italic;
}

.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-sm) 0;
}

.html-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-md) 0;
}

.html-content ul,
.html-content ol {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.html-content ul li,
.html-content ol li {
    margin-bottom: var(--spacing-xs);
}

.html-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Mobile: Explanation first, then form */
@media (max-width: 768px) {
    .form-container-split {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .explanation-column {
        order: -1; /* Move explanation to top on mobile */
        position: static;
        margin-bottom: var(--spacing-lg);
    }
    
    .form-column {
        order: 1;
    }
    
    .radio-group,
    .checkbox-group {
        gap: var(--spacing-xs);
    }
    
    .radio-label,
    .checkbox-label {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* ========================================
   About Page
   ======================================== */
.about-hero {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

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

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-text,
.story-text {
    padding: var(--spacing-lg);
}

.story-container {
    width: 100%;
}

.story-text {
    width: 100%;
    padding-bottom: 0;
}

.story-text p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-color);
}

.about-story {
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-certification {
    margin-top: calc(var(--spacing-lg) * -1);
    padding-top: 10;
}

.certification-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.certification-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 300px;
    height: auto;
}

.certification-text {
    padding: var(--spacing-lg);
}

.certification-text p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-color);
}

.about-values {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    background-color: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.value-card p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-color);
}

.about-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .certification-container {
        grid-template-columns: 1fr;
    }
    
    .certification-image {
        text-align: center;
    }
    
    .certification-image img {
        max-width: 100%;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #434343;
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand a {
    display: inline-block;
}

.footer-brand .footer-logo {
    display: block;
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-brand .footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: var(--spacing-xs);
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ========================================
   Cookie Notice
   ======================================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    color: white;
    padding: var(--spacing-md);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    animation: slideUp 0.3s ease;
}

.cookie-notice.hidden {
    display: none;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.cookie-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Error Page
   ======================================== */
.error-page {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--primary-color);
}

/* ========================================
   Category Pages
   ======================================== */
.category-hero {
    background-color: var(--bg-light);
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.category-hero.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-overlay {
    display: none;
}

.category-hero.with-image .category-hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.category-hero.with-image .container {
    position: relative;
    z-index: 2;
}

.category-header {
    text-align: center;
}

.category-header .back-link {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.category-hero.with-image .back-link {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
}

.category-hero.with-image .back-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

.category-hero.with-image .page-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Category hero carousel styling */
.category-hero.hero .page-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-hero.hero .back-link {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
}

.category-hero.hero .back-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

.category-hero.hero .category-header {
    position: relative;
    z-index: 2;
}

.category-hero.hero .category-hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

@media (max-width: 768px) {
    .category-hero.with-image {
        min-height: 300px;
    }
}

.category-description {
    padding: var(--spacing-xl) 0 var(--spacing-xs) 0;
}

/* Reduce spacing between category description and first subcategory */
.subcategory-section:first-of-type {
    padding-top: var(--spacing-md);
}

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

.description-content h2 {
    margin-bottom: var(--spacing-md);
}

.description-content .lead {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.category-details {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.category-details h3 {
    margin-bottom: var(--spacing-md);
}

.category-details ul {
    list-style: none;
    padding: 0;
}

.category-details li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.category-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Product Text for categories without subcategories */
.category-product-text {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}

.category-product-text p {
    margin-bottom: var(--spacing-md);
}

.category-product-text p:last-child {
    margin-bottom: 0;
}

.category-product-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.category-product-text ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.category-product-text li {
    margin-bottom: var(--spacing-xs);
}

/* Order Button in Description */
.category-order-button {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

/* Subcategory Header - match width with category description */
.subcategory-header {
    max-width: 800px;
    margin: 0 auto;
}

/* Subcategory Description */
.subcategory-description {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.subcategory-order-button {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

/* Subcategory Gallery - match background with category gallery */
.subcategory-gallery-container {
    margin-top: var(--spacing-xxl);
    background-color: var(--bg-light);
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
    padding: var(--spacing-xxl) var(--spacing-sm);
}

.subcategory-gallery-container .gallery-subtitle {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    padding: 0;
}

.subcategory-gallery-container .gallery-grid,
.subcategory-gallery-container .gallery-empty {
    margin: 0;
    padding: 0;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    text-transform: none;
}

.btn-order .btn-icon {
    font-size: 1.5rem;
}

.order-help-text {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Category Gallery */
.category-gallery {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: center;
}

.gallery-item-caption .product-code {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gallery-empty {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    color: var(--text-light);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal.hidden {
    display: none;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.gallery-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal-image img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.gallery-modal-product-code {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-md);
}

.gallery-modal-product-code span {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.gallery-modal-close:hover {
    transform: scale(1.2);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.gallery-modal-nav span {
    display: block;
    line-height: 1;
}

.gallery-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .gallery-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .gallery-modal-prev {
        left: 10px;
    }
    
    .gallery-modal-next {
        right: 10px;
    }
    
    .category-order-button {
        padding: var(--spacing-lg);
    }
    
    .btn-order {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
    
    .btn-order .btn-icon {
        font-size: 1.25rem;
    }
}

/* ========================================
   Utilities
   ======================================== */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.news-section .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.news-section .section-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-article-full {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.news-article-full:last-child {
    margin-bottom: var(--spacing-lg);
}

.news-article-full .news-article-header {
    margin-bottom: var(--spacing-lg);
}

.news-article-full .news-article-header h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.news-article-full .news-article-meta {
    color: var(--text-lighter);
    font-size: 0.875rem;
}

.news-article-full .news-article-image {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.news-article-full .news-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-full .news-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.news-article-full .news-article-content strong {
    font-weight: 600;
}

.news-article-full .news-article-content em {
    font-style: italic;
}

.no-news {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-light);
}

/* Single News Article */
.news-article-section {
    padding: var(--spacing-xxl) 0;
}

.news-article-header {
    margin-bottom: var(--spacing-xl);
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.back-link:hover {
    color: var(--primary-dark);
}

.news-article-meta {
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.news-article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.news-article-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: auto;
}

.news-article-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.news-article-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.news-article-content em {
    font-style: italic;
}

.news-article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* Pagination */
.pagination {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .news-article-full {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .news-article-full .news-article-header h2 {
        font-size: 1.5rem;
    }
    
    .news-article-full .news-article-content {
        font-size: 1rem;
    }
    
    .news-article-header h1 {
        font-size: 1.875rem;
    }
    
    .news-article-content {
        font-size: 1rem;
    }
    
    .pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
}

