/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
    --color-background: #fdfdfc;
    --color-white: #ffffff;
    --color-text: #5a5a5a;
    --color-headings: #2c2c2c;
    --color-primary: #b59a78;
    --color-primary-dark: #8e795e;
    --color-border: #eceae6;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1140px;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --color-success: #27ae60;
    --color-error: #e74c3c;
}

/* --- RESET A ZÁKLADNÍ STYLY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    background-color: var(--color-background); 
    color: var(--color-text); 
    line-height: 1.8; 
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.5rem; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
main section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 20px; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 60px; font-size: 1.1rem; }
.loader { text-align: center; padding: 50px; font-size: 1.2rem; color: var(--color-text); }
.error { color: var(--color-error); text-align: center; padding: 20px; }

/* --- PŘÍSTUPNOST --- */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --- HLAVIČKA --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}
body:not(.scrolled) .header {
    background-color: transparent;
}
.header.scrolled {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: slideInDown 0.5s ease-out forwards;
}
@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo a { font-family: var(--font-headings); font-size: 1.5rem; font-weight: 700; color: var(--color-headings); }
.header .navigation a { margin-left: 35px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.hamburger-menu { display: none; }

/* --- TLAČÍTKA --- */
.cta-button { 
    display: inline-block; background-color: var(--color-primary); color: var(--color-white); 
    padding: 15px 35px; border-radius: 50px; font-weight: 700; 
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; 
    box-shadow: var(--shadow-light); border: none; cursor: pointer;
}
.cta-button:hover { background-color: var(--color-primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-medium); }

/* --- ÚVODNÍ HERO CAROUSEL --- */
.hero-carousel {
    position: relative;
    height: 100vh;
    background-color: #e0e0e0;
}
.hero-carousel .splide__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    overflow: hidden;
}
.hero-carousel .splide__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-carousel .hero-caption {
    position: absolute;
    z-index: 2;
    color: var(--color-white);
    max-width: 600px;
    width: 90%;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    text-align: right;
    right: 5%;
    bottom: 15%;
    transform: none;
    left: auto;
}
.hero-carousel .hero-caption h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-carousel .hero-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero-carousel .splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    width: 3em;
    height: 3em;
}
.hero-carousel .splide__arrow svg { fill: var(--color-headings); }
.hero-carousel .splide__arrow:hover { background: var(--color-white); }

/* --- PRODUKTOVÁ SEKCE V2 --- */
.section-produkty {
    padding-top: 120px; /* Zvětšená horní mezera */
}
.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background: none;
    border: 2px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text);
    transition: all 0.3s;
}
.filter-btn:hover {
    background-color: var(--color-border);
    color: var(--color-headings);
}
.filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
#product-slider-container {
    padding: 10px;
}
.product-slide {
    padding: 5px 0;
}
.product-card-v2 {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card-v2:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}
.product-image-container {
    position: relative;
    border-bottom: 1px solid var(--color-border);
}
.product-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.product-info-v2 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-info-v2 h3 {
    font-size: 1.1rem;
    color: var(--color-headings);
    margin-bottom: 15px;
    flex-grow: 1;
}
.product-price {
    margin-bottom: 20px;
}
.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}
.price-old {
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: line-through;
    margin-left: 10px;
}
.detail-btn-v2 {
    width: 100%;
    background-color: var(--color-headings);
    color: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.detail-btn-v2:hover {
    background-color: var(--color-primary);
}
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.badge {
    color: var(--color-white);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-sale { background-color: var(--color-error); }
.badge-new { background-color: var(--color-success); }

/* --- SEKCE POPTÁVKA --- */
.section-poptavka {
    background-color: var(--color-headings);
    color: var(--color-white);
    text-align: center;
}
.section-poptavka h2 { color: var(--color-white); margin-bottom: 15px; }
.section-poptavka p { color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; }

/* --- SEKCE RUČNÍ VÝROBA S VIDEEM --- */
.section-pribeh-firmy-video {
    position: relative;
    padding: 120px 0;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}
.pribeh-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.pribeh-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}
.section-pribeh-firmy-video .container { position: relative; z-index: 3; }
.pribeh-text-content h2, .pribeh-text-content h3 { color: var(--color-white); text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.pribeh-text-content p { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* --- SEKCE RECENZE --- */
.section-recenze { background-color: #f7f5f2; }
.recenze-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.recenze-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--color-primary);
}
.recenze-text { font-style: italic; margin-bottom: 20px; position: relative; padding-left: 20px; }
.recenze-text::before {
    content: '“';
    font-family: var(--font-headings);
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 3rem;
    color: var(--color-border);
}
.recenze-autor { font-weight: 700; color: var(--color-headings); text-align: right; }

/* --- KONTAKTNÍ FORMULÁŘ --- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.form-group { margin-bottom: 20px; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 15px; border: 1px solid var(--color-border); 
    background-color: #fdfdfd; border-radius: 5px; font-family: var(--font-body); 
    font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--color-primary); }
.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b59a78' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}
.form-row { display: flex; gap: 20px; }
#form-status { margin-top: 20px; font-weight: bold; }
.honeypot { display: none; }

/* --- MODÁLNÍ OKNO PRO PRODUKTY --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 20px;
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--color-white); margin: 5% auto; padding: 30px;
    border-radius: var(--border-radius); width: 90%; max-width: 900px;
    box-shadow: var(--shadow-medium); position: relative; animation: slideInTop 0.4s ease-out;
}
@keyframes slideInTop { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.modal-main-image { width: 100%; height: auto; object-fit: cover; border-radius: var(--border-radius); }
.modal-thumbnails { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.modal-thumbnails img {
    width: 80px; height: 80px; object-fit: cover; border-radius: var(--border-radius);
    cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s;
}
.modal-thumbnails img.active, .modal-thumbnails img:hover { border-color: var(--color-primary); }
.modal-title { font-size: 2rem; color: var(--color-headings); margin-bottom: 15px; }
.modal-price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }
.modal-price .old-price { font-size: 1.2rem; margin-left: 15px; text-decoration: line-through; color: var(--color-text); }
.modal-description { margin-bottom: 30px; }
.close-button {
    color: #aaa; position: absolute; top: 15px; right: 25px;
    font-size: 35px; font-weight: bold; cursor: pointer; transition: color 0.3s;
    background: none; border: none;
}
.close-button:hover, .close-button:focus { color: var(--color-headings); }

/* --- PATIČKA A OSTATNÍ --- */
.footer {
    background-color: var(--color-headings);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
.back-to-top { 
    position: fixed; bottom: 20px; right: 20px; background-color: var(--color-primary); 
    color: var(--color-white); width: 45px; height: 45px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 24px; 
    text-decoration: none; opacity: 0; visibility: hidden; 
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s; z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background-color: var(--color-primary-dark); }

/* --- STYLY PRO PODSTRÁNKU PRODUKTŮ --- */
.section-all-products { background-color: #f9f9f9; }
.page-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; color: var(--color-text); }
.search-and-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
.search-bar {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    overflow: hidden;
}
.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}
.search-bar button {
    background-color: var(--color-primary);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}
.search-bar button:hover { background-color: var(--color-primary-dark); }
.product-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.text-center { text-align: center; }

/* --- RESPONZIVNÍ DESIGN --- */
@media (max-width: 992px) {
    h2, .hero-carousel .hero-caption h2 { font-size: 2.4rem; }
    .modal-body, .kontakt-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    main section { padding: 60px 0; }
    .hero-carousel .hero-caption h2 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .header .navigation { display: none; }
    .header .hamburger-menu { display: block; cursor: pointer; font-size: 1.5rem; background: none; border: none; }
    .form-row { flex-direction: column; gap: 0; }
    .search-and-filters { flex-direction: column; }
}




/* --- SEKCE POPTÁVKA (VYLEPŠENÝ CTA BLOK) --- */
.section-cta-poptavka {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
    background-image: url('../img/poptavka-bg.jpg'); /* DŮLEŽITÉ: Doplňte cestu k vašemu obrázku! */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Vytváří elegantní paralax efekt při rolování */
}
.poptavka-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Ztmavující vrstva pro čitelnost textu */
}
.poptavka-content {
    position: relative; /* Aby byl nad overlayem */
    z-index: 2;
}
.section-cta-poptavka h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.section-cta-poptavka p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}
