/**
 * GRAND MÓDA - MAIN STYLESHEET
 * Moderní, profesionální design s elegantními animacemi a efekty
 */

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== BAREVNÉ SCHÉMA A PROMĚNNÉ ===== */
:root {
    /* Primární barvy - elegantní zlatá a tmavá */
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a1a;
    --primary-light: #f8f8f8;
    
    /* Sekundární barvy */
    --secondary-rose: #C9A0A0;
    --secondary-grey: #5a5a5a;
    --accent-burgundy: #722F37;
    
    /* Vánoční barvy - sjednocená paleta */
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-dark-green: #0c3c26;
    --christmas-gold: #FFD54F;
    --christmas-burgundy: #8b0000;
    
    /* Utility barvy */
    --white: #ffffff;
    --black: #000000;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    
    /* Stíny */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    
    /* Přechody */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fonty - pouze Poppins pro moderní vzhled */
    --font-primary: 'Poppins', 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* ===== ZÁKLADNÍ RESET A STYLY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FAIL-SAFE VIDITELNOST (prevence bílé stránky) ===== */
.product-card, .category-card, .section-title, .products-grid, .categories-grid {
    opacity: 1 !important;
    visibility: visible !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul, ol {
    list-style: none;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ===== UTILITY TŘÍDY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Jednotné paddingy pro sekce */
section, .section {
    padding: 60px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ===== HORNÍ MENU ===== */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--primary-gold);
}

/* Mobilní menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ===== HLAVNÍ NAVIGACE ===== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

/* ===== HEADER SEARCH TOGGLE ===== */
.header-search-wrapper {
    position: relative;
}

.search-toggle-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4af37 100%);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.search-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* ===== HEADER LIVE SEARCH ===== */
.header-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-search.active {
    width: 400px;
    opacity: 1;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 15px rgba(212, 175, 55, 0.3);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    outline: none;
    color: var(--primary-dark);
}

.header-search input::placeholder {
    color: #6c757d;
}

.search-close-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-close-btn:hover {
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: searchDropdown 0.2s ease-out;
}

@keyframes searchDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item:focus {
    background: linear-gradient(135deg, #fdf9f0 0%, #f5f0e6 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
    outline: none;
}

.search-result-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    background: #f8f9fa;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-image img {
    transform: scale(1.05);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.search-result-name mark {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: var(--primary-dark);
    padding: 0 2px;
    border-radius: 3px;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.search-result-sku {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

.search-result-sku mark {
    background: #fff3cd;
    border-radius: 2px;
}

.search-result-category,
.search-result-brand {
    display: inline-block;
}

.search-result-brand::before {
    content: '•';
    margin-right: 0.5rem;
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.search-result-arrow {
    color: #ccc;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-arrow {
    color: var(--primary-gold);
    transform: translateX(4px);
}

.search-no-results {
    padding: 2.5rem;
    text-align: center;
    color: #6c757d;
}

.search-no-results i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.5;
    color: var(--primary-gold);
}

.search-no-results p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.search-no-results small {
    opacity: 0.7;
}

.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--primary-gold);
}

.search-loading i {
    margin-right: 0.5rem;
}

.search-show-all {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.search-show-all a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c9a227 100%);
    color: white;
}

.search-show-all a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-dark);
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Skrýt scroll při otevřeném menu */
body.menu-open {
    overflow: hidden;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--primary-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 1.3rem;
    color: var(--primary-dark);
    position: relative;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.icon-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, var(--accent-burgundy) 0%, #8B3A47 100%);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== HERO SEKCE ===== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-burgundy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle, var(--primary-gold) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== TLAČÍTKA ===== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4af37 100%);
    color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c09930 0%, #b89930 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Velikosti tlačítek */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Full width tlačítko */
.btn-block {
    display: block;
    width: 100%;
}

/* ===== KATEGORIE SEKCE ===== */
.categories-section {
    padding: 4rem 0;
    background-color: var(--primary-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-gold);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-content {
    padding: 1.5rem;
    text-align: center;
}

.category-card-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.category-card-content p {
    color: var(--secondary-grey);
    font-size: 0.9rem;
}

/* ===== PRODUKTY SEKCE ===== */
.products-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop: 3 produkty */
    gap: 2rem;
}

.products-content .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop: 3 produkty */
    gap: 2rem;
}

/* Tablet: 3 produkty na řádek */
.device-tablet .products-grid,
.device-tablet .products-content .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Mobil: 1 produkt na řádek - VELKÝ A ČITELNÝ */
.device-mobile .products-grid,
.device-mobile .products-content .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
}

/* ===== PRODUKTOVÉ KARTY - MODERNÍ ČISTÝ DESIGN ===== */
.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 3px solid transparent;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-5px);
    border-top-color: var(--primary-gold);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-burgundy) 0%, #8B3A47 100%);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-badge.new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bestsellers-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--christmas-red, #c41e3a) 0%, var(--christmas-burgundy, #8b0000) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(196, 30, 58, 0.4);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bestsellers-badge i {
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.product-card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-quick-view {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.product-card:hover .product-quick-view {
    bottom: 0;
}

.product-quick-view .btn {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.product-quick-view .btn:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.product-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-title a {
    color: var(--primary-dark);
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary-gold);
}

.product-rating {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.product-rating .star {
    color: var(--primary-gold);
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.price-label {
    color: var(--secondary-grey);
    font-weight: 500;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-burgundy);
}

/* Skladovost produktu */
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.product-stock.in-stock {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 1px solid #10B981;
}

.product-stock.out-of-stock {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 1px solid #EF4444;
}

.product-stock svg {
    flex-shrink: 0;
}

.price-original {
    font-size: 1rem;
    color: var(--secondary-grey);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.cart-info {
    display: none;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.cart-info i {
    margin-right: 0.25rem;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #C9A961 100%);
    color: var(--primary-dark);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #C9A961 0%, var(--primary-gold) 100%);
}

.btn-wishlist {
    width: 45px;
    background-color: var(--primary-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1.2rem;
}

.btn-wishlist:hover {
    background-color: var(--accent-burgundy);
    color: var(--white);
}

/* ===== PATIČKA ===== */
/* ===== FOOTER - MODERNÍ ČISTÝ STYL ===== */
.footer {
    background-color: #2a2a2a;
    color: #e8e8e8;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: #e8e8e8;
    transition: var(--transition-fast);
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--primary-gold);
    padding-left: 4px;
}

.footer-contact-info {
    margin: 1rem 0;
}

.footer-contact-info p {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #e8e8e8;
}

.footer-contact-info i {
    color: var(--primary-gold);
    width: 16px;
    font-size: 0.9rem;
}

.footer-contact-info a {
    color: #e8e8e8;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-info a:hover {
    color: var(--primary-gold);
}

.company-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== ANIMACE ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .main-nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .main-header .container {
        position: relative;
        flex-wrap: wrap;
    }
    
    .header-search-wrapper {
        order: 2;
    }
    
    .header-search.active {
        width: 90vw;
        max-width: 400px;
        right: -10px;
    }
    
    /* Zobrazit hamburger menu na tabletu/mobilu */
    .hamburger-menu {
        display: flex;
        order: -1;
        margin-right: 1rem;
    }
    
    /* Mobilní navigace */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--primary-light);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    /* Overlay při otevřeném menu */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== PAGINACE ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a252f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #1a252f 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c5a028 100%);
    color: white;
    border-color: var(--primary-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    cursor: default;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    color: #999;
    font-size: 1rem;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Tlačítko "Načíst více" */
.btn-load-more:hover {
    background: linear-gradient(135deg, #c5a028 0%, var(--primary-gold) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.btn-load-more:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* Responsive paginace */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pagination-btn span {
        display: none; /* Skrýt text "Předchozí/Další" na malých zařízeních */
    }
    
    .pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===== FILTRY PRODUKTŮ ===== */
/* ===== FILTRY - MODERNÍ ČISTÝ DESIGN ===== */
.filter-sidebar {
    background: #f7f7f7;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.filter-sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--secondary-grey);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    transition: var(--transition-fast);
    border-radius: 6px;
}

.filter-option:hover {
    background-color: #f0f0f0;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
}

.filter-option label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--primary-dark);
    -webkit-user-select: none;
    user-select: none;
    flex: 1;
}

.filter-option label strong {
    color: var(--secondary-grey);
    font-weight: 600;
}

/* Hierarchické odsazení kategorií */
.filter-option[style*="margin-left"] label {
    font-size: 0.9rem;
}

/* ===== HIERARCHICKÉ KATEGORIE (DETAILS) ===== */
.category-tree, .category-children {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

details.cat-node {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    background: #fafafa;
}

details.cat-node[open] {
    background: #fff;
    border-color: var(--primary-gold);
}

details.cat-node summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    -webkit-user-select: none;
    user-select: none;
}

details.cat-node summary::-webkit-details-marker { display: none; }
details.cat-node summary:before {
    content: '\25B6'; /* trojúhelník */
    display: inline-block;
    transform: rotate(0deg);
    transition: transform .2s ease;
    font-size: 0.6rem;
    color: var(--secondary-grey);
}
details.cat-node[open] summary:before {
    transform: rotate(90deg);
    color: var(--primary-gold);
}

details.cat-node .category-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s;
}

details.cat-node .category-link:hover {
    color: var(--primary-gold);
}

details.cat-node .category-link.active {
    font-weight: 600;
    color: var(--primary-gold);
}

details.cat-node input[type="radio"] {
    flex-shrink: 0;
}

details.cat-node label {
    flex: 1;
}

/* Layout pro stránku produktů */
.products-page { 
    padding: 3rem 0; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.products-layout { 
    display: grid; 
    grid-template-columns: 300px 1fr; 
    gap: 2rem; 
    align-items: start; 
}

/* Počítadlo produktů v kategoriích */
.cat-count {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: normal;
}

.category-link.active .cat-count {
    color: var(--primary-gold);
}

/* ZOBRAZENÍ V SEZNAMU */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    height: auto;
    padding: 1.5rem;
}

.products-list .product-card-image {
    width: 200px;
    height: 200px;
    margin: 0;
}

.products-list .product-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.products-list .product-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.products-list .product-card-description {
    display: block;
    color: #495057;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
}

.products-list .product-price-wrapper {
    margin-top: auto;
}

.products-list .product-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    min-width: 150px;
}

.products-list .btn-add-cart {
    margin: 0;
    white-space: nowrap;
}

/* VIEW TOGGLE HOVER EFEKTY */
.view-btn:hover {
    background: var(--primary-gold) !important;
    color: #fff !important;
}

/* VYLEPŠENÉ FILTRY */
.filter-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.filter-sidebar h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.filter-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-option:hover {
    padding-left: 0.5rem;
}

/* ========================================
   VISITOR STATISTICS COUNTER
   ======================================== */

.visitor-stats-container {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-box:hover::before {
    left: 100%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-online .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: pulse-online 2s ease-in-out infinite;
}

.stat-today .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.stat-total .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.stat-content {
    flex: 1;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsivní úpravy */
@media (max-width: 768px) {
    .visitor-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .visitor-stats-container {
        margin: 2rem 0 1.5rem;
        padding: 1.5rem 0;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}


.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    color: #495057;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-range-inputs input {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
}

.price-range-inputs input:focus {
    border-color: var(--primary-gold);
    outline: none;
}

.price-range-inputs span {
    color: #6c757d;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-actions .btn {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    border-radius: 8px;
}

/* ===== RECENZE ZÁKAZNÍKŮ ===== */
.reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.review-rating {
    color: var(--primary-gold);
    font-size: 1rem;
}

.review-rating i {
    margin-right: 2px;
}

.review-content {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid var(--primary-gold);
}

.review-content p {
    color: var(--primary-dark);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

.review-content > div {
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 992px) { 
    .products-layout { 
        grid-template-columns: 1fr; 
    } 
    
    .filter-sidebar { 
        order: 2;
        position: static;
    }
    
    .products-list .product-card {
        grid-template-columns: 1fr;
    }
    
    .products-list .product-card-image {
        width: 100%;
        height: 250px;
    }
    
    .products-list .product-actions {
        flex-direction: row;
        min-width: auto;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reviews-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid-home {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem;
    }
    
    .carousel-content .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== DEVICE-SPECIFIC OPTIMIZATIONS ===== */

/* Mobilní zařízení */
.device-mobile {
    font-size: 14px;
}

.device-mobile .product-card {
    font-size: 0.85rem;
}

.device-mobile .product-name {
    font-size: 0.95rem;
    line-height: 1.3;
}

.device-mobile .product-price {
    font-size: 1.1rem;
}

.device-mobile .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.device-mobile .container {
    padding: 0 10px;
}

.device-mobile .main-header .container {
    padding: 0 15px;
}

.device-mobile .product-image {
    height: 350px; /* Velký obrázek pro mobil - 1 produkt na řádek */
}

.device-mobile .product-info {
    padding: 20px; /* Větší padding pro lepší čitelnost */
}

.device-mobile .product-name {
    font-size: 1.1rem; /* Větší název produktu */
}

.device-mobile .product-price {
    font-size: 1.3rem; /* Větší cena */
}

.device-mobile .top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0;
}

.device-mobile .top-bar span {
    margin: 0 0.5rem;
}

.device-mobile h1 {
    font-size: 1.8rem;
}

.device-mobile h2 {
    font-size: 1.5rem;
}

.device-mobile h3 {
    font-size: 1.2rem;
}

/* Tablet optimalizace */
.device-tablet .products-grid {
    gap: 1.5rem;
}

.device-tablet .product-card {
    font-size: 0.9rem;
}

/* Touch-friendly tlačítka pro mobil a tablet */
.device-mobile .btn,
.device-tablet .btn,
.device-mobile button,
.device-tablet button,
.device-mobile .product-actions button,
.device-tablet .product-actions button {
    min-height: 44px;
    min-width: 44px;
}

.device-mobile .nav-icon,
.device-tablet .nav-icon {
    padding: 12px;
}

/* Větší touch oblasti pro mobilní zařízení */
.device-mobile .product-card,
.device-tablet .product-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* Skrýt některé prvky na mobilu pro lepší výkon */
.device-mobile .product-badge-container .badge:nth-child(n+3) {
    display: none;
}

.device-mobile .social-links a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* ==========================================================================
   KLIENTSKÁ ZÓNA (ACCOUNT) - RESPONZIVNÍ DESIGN
   ========================================================================== */

/* Základní layout pro account stránku */
.account-page {
    padding: 2rem 0;
    min-height: 80vh;
}

.account-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hlavní grid layout */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar */
.account-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.account-user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-light);
    margin-bottom: 1.5rem;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #e6c558);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    text-transform: uppercase;
}

.account-user-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.account-user-info p {
    margin: 0;
    color: var(--secondary-grey);
    font-size: 0.85rem;
}

/* Navigace */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.account-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.account-nav-item.active {
    background: linear-gradient(135deg, var(--primary-gold), #e6c558);
    color: var(--primary-dark);
    font-weight: 600;
}

.account-nav-item i {
    width: 20px;
    text-align: center;
}

.account-nav-item.logout-link {
    color: var(--danger);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-light);
}

/* Content area */
.account-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    min-height: 400px;
}

.account-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Karty na dashboardu */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dashboard-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-gold);
}

.dashboard-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.dashboard-card p {
    margin: 0;
    color: var(--secondary-grey);
    font-size: 0.9rem;
}

/* Tabulky objednávek */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-light);
}

.orders-table th {
    background: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Formuláře */
.account-form {
    max-width: 500px;
}

.account-form .form-group {
    margin-bottom: 1.5rem;
}

.account-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* Mobilní hamburger menu pro sidebar */
.mobile-account-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #e6c558);
    color: var(--primary-dark);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.mobile-account-toggle:hover {
    transform: scale(1.1);
}

/* TABLET LAYOUT (max-width: 992px) */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
    
    .account-sidebar {
        padding: 1.25rem;
    }
    
    .account-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .account-nav-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE LAYOUT (max-width: 768px) */
@media (max-width: 768px) {
    .account-page {
        padding: 1rem 0;
    }
    
    .account-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .account-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        border-radius: 0;
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 60px;
    }
    
    .account-sidebar.active {
        left: 0;
    }
    
    .mobile-account-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .account-content {
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
        min-height: auto;
    }
    
    .account-content h2 {
        font-size: 1.25rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    
    .dashboard-card-icon {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .dashboard-card h3 {
        font-size: 1.25rem;
    }
    
    /* Tabulky - responzivní */
    .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Formuláře na mobilu */
    .account-form {
        max-width: 100%;
    }
    
    .account-form input,
    .account-form select,
    .account-form textarea {
        padding: 0.85rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Overlay pro sidebar */
    .account-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .account-overlay.active {
        display: block;
    }
}

/* SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
    .account-page {
        padding: 0.5rem 0;
    }
    
    .account-content {
        padding: 0.75rem;
    }
    
    .account-content h2 {
        font-size: 1.1rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .mobile-account-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Device-specific account styles */
.device-mobile .account-page [style*="grid-template-columns: 280px"] {
    grid-template-columns: 1fr !important;
}

.device-mobile .account-sidebar[style] {
    position: fixed !important;
    left: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    border-radius: 0 !important;
    z-index: 1001 !important;
    top: 0 !important;
    transition: left 0.3s ease !important;
}

.device-mobile .account-sidebar.active {
    left: 0 !important;
}

/* ==========================================================================
   CHECKOUT & CART - RESPONZIVNÍ DESIGN
   ========================================================================== */

/* Checkout layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* Cart responzivní */
.cart-items {
    width: 100%;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--primary-light);
    align-items: center;
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 150px;
    }
    
    .cart-item-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   PRODUCT DETAIL - RESPONZIVNÍ DESIGN
   ========================================================================== */

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-layout {
        gap: 1.5rem;
    }
    
    .product-gallery-thumbnails {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .product-gallery-thumb {
        min-width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   GENERAL MOBILE IMPROVEMENTS
   ========================================================================== */

/* Touch-friendly buttons */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    input[type="submit"],
    input[type="button"],
    button {
        min-height: 44px;
    }
    
    /* Better spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Footer on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 2rem;
    }
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Better focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .account-sidebar,
    .mobile-account-toggle,
    .main-nav,
    .footer {
        display: none !important;
    }
    
    .account-content {
        width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
   AUTH PAGES (LOGIN, REGISTER) - RESPONZIVNÍ DESIGN
   ========================================================================== */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e9ecef 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-container h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-container .form-group {
    margin-bottom: 1.25rem;
}

.auth-container .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.auth-container .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-container .form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.auth-container .btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    min-height: 48px;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .auth-container {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .auth-container h1 {
        font-size: 1.5rem;
    }
    
    .auth-container .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 1rem;
    }
}

/* ==========================================================================
   CHECKOUT PAGE - RESPONZIVNÍ DESIGN
   ========================================================================== */

.checkout-page {
    padding: 2rem 0;
    min-height: 80vh;
    background: var(--primary-light);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.checkout-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 1rem 0;
    }
    
    .checkout-form-section,
    .checkout-summary {
        padding: 1rem;
        border-radius: 10px;
    }
}

/* ==========================================================================
   HEADER - VYLEPŠENÍ PRO MOBIL
   ========================================================================== */

@media (max-width: 768px) {
    .main-header {
        padding: 0.75rem 0;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .nav-icons {
        gap: 0.5rem;
    }
    
    .nav-icon {
        padding: 0.5rem;
        font-size: 1.1rem;
    }
    
    .cart-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   FOOTER - VYLEPŠENÍ PRO MOBIL
   ========================================================================== */

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 1rem;
    }
    
    .footer-col ul {
        padding: 0;
    }
    
    .footer-col li {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   BREADCRUMBS - RESPONZIVNÍ
   ========================================================================== */

.breadcrumbs {
    padding: 1rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--primary-light);
}

.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    color: var(--secondary-grey);
}

.breadcrumbs a {
    color: var(--secondary-grey);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
    
    .breadcrumbs ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .breadcrumbs li {
        white-space: nowrap;
    }
}
