/*
 * ===================================================================
 * KOMPLETNÍ STYLY PRO WEB CIMBÁLY PUSTKA (FINAL)
 * ===================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500&display=swap');

:root {
    --gold: #b8860b;
    --black: #000000;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #f1f1f1;
    /* Sjednocení obou fontů na stejný hůlkový typ */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height-desktop: 80px;
    --header-height-mobile: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
    background-color: var(--white);
    color: var(--gray);
    padding-top: var(--header-height-desktop); /* Prostor pro pevnou hlavičku */
}

/* Pozadí stránek */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/workshop.jpg'); /* Ujisti se, že tento obrázek existuje, jinak řádek smaž */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: grayscale(80%) brightness(1.2);
    opacity: 0.08;
    z-index: -1;
}

/* =========================================
   HLAVIČKA A NAVIGACE
   ========================================= */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a { display: block; }
.logo img {
    max-height: 50px;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li > a {
    color: var(--gray);
    text-decoration: none;
    padding: 1rem 1.2rem;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links > li > a:hover {
    color: var(--gold) !important;
}

.nav-links > li > a:hover::after {
    width: calc(100% - 2.4rem);
}

/* Ikony sociálních sítí v hlavičce */
.social-icons-header {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    order: 4;
}

.social-icons-header a {
    color: var(--gray);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons-header a:hover {
    color: var(--gold);
}

/* Dropdown Menu */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    min-width: 250px;
    padding: 0.5rem 0;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--gray) !important;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-secondary);
    font-weight: 400;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--gold) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    padding: 1rem;
    order: 5; 
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--gray);
    transition: all 0.4s ease-in-out;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }


/* =========================================
   HLAVNÍ OBSAH A TYPOGRAFIE
   ========================================= */
main { flex-grow: 1; }

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--gold);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: bold;
    border-radius: 0px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}
.cta-button:hover {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

/* Kontejner pro podstránky */
.content-page, .contact-page, .product-page {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    animation: fadeInUp 0.8s ease-out;
}

.content-page h1, .product-page h1 {
    font-size: 2.8rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.75rem;
    margin-top: 0;
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}
.content-page h2, .product-page h2 { 
    font-size: 2.2rem; 
    margin-top: 3rem; 
    margin-bottom: 1rem; 
    font-family: var(--font-primary);
}
.content-page h3, .product-page h3 { 
    font-size: 1.8rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    font-family: var(--font-primary);
}
.content-page p, .product-page p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.6; }

/* Seznamy s fajfkou */
.content-page ul, .product-page ul { list-style: none; padding-left: 0; margin-bottom: 2rem; }
.content-page ul li, .product-page ul li { padding-left: 2rem; position: relative; margin-bottom: 0.75rem; font-size: 1.1rem; }
.content-page ul li::before, .product-page ul li::before {
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.product-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 1rem auto 2rem;
    cursor: pointer; /* Indikuje, že lze kliknout (lightbox) */
    transition: transform 0.3s ease;
}
.product-image:hover { transform: scale(1.02); }
/* =========================================
   DOMOVSKÁ STRÁNKA (SLIDESHOW)
   ========================================= */
.slideshow {
    height: calc(100vh - var(--header-height-desktop));
    position: relative;
    overflow: hidden;
    margin-top: 0; 
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Zarovnání obsahu doprava */
    text-align: right; /* Zarovnání textu doprava */
}

.slideshow-container {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 100%;
    background-color: #333;
    z-index: 1;
}
.slide {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.slide.active { opacity: 1; }

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top; /* <--- TOTO je ta změna: přišpendlí fotku nahoru */
}

.slideshow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    padding: 4rem;
    max-width: 800px;
    margin-right: 5%; /* Odsazení od pravého kraje */
}
.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem auto; /* Zarovnání bloku textu vpravo */
    animation: fadeInUp 1s ease 0.2s;
    line-height: 1.6;
}
.hero-content .cta-button {
    background-color: var(--gold);
    border-color: var(--gold);
}
.hero-content .cta-button:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* =========================================
   PŘÍSLUŠENSTVÍ (KARTY)
   ========================================= */
.accessory-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    background-color: #fdfdfd;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.accessory-item.reverse { flex-direction: row-reverse; }

.accessory-text { flex-basis: 60%; }
.accessory-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--gray);
}
.cta-button-small {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background-color: transparent;
    color: var(--gold);
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 0; /* TADY JE ZMĚNA: z 50px na 0 pro ostré hrany */
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}
.cta-button-small:hover { 
    background-color: var(--gold); 
    color: var(--white); 
}

/* =========================================
   KONTAKT
   ========================================= */
.contact-page { max-width: 1200px; padding: 0 2rem; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem;
}
.contact-info { text-align: center; }
.contact-info .contact-logo { max-width: 180px; margin-bottom: 1.5rem; }
.contact-info address { font-style: normal; line-height: 1.9; }
.contact-info strong { color: var(--gold); }
.map { min-height: 400px; overflow: hidden;}
.map iframe { width: 100%; height: 100%; border:0; }
.social-icons-contact { margin-top: 1.5rem; }
.social-icons-contact a {
    color: var(--gray);
    font-size: 1.8rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}
.social-icons-contact a:hover { color: var(--gold); }

/* =========================================
   PATIČKA
   ========================================= */
footer {
    background-color: var(--gray);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2.5rem;
    margin-top: auto;
    /* PŘIDANÉ DVA ŘÁDKY: */
    position: relative; 
    z-index: 150; /* Musí být větší než z-index u .sidebar (což je 100) */
}

/* =========================================
   LIGHTBOX (ZVĚTŠOVÁNÍ OBRÁZKŮ)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* =========================================
   ANIMACE
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.from-left { transform: translateX(-50px); }
.animate-on-scroll.from-left.is-visible { transform: translateX(0); }
.animate-on-scroll.from-right { transform: translateX(50px); }
.animate-on-scroll.from-right.is-visible { transform: translateX(0); }


/* =========================================
   RESPONZIVITA
   ========================================= */
@media (max-width: 992px) {
    body { padding-top: var(--header-height-mobile); }
    header { height: var(--header-height-mobile); }
    nav { padding: 0 1rem; }
    .logo img { max-height: 40px; }

    /* Skrytí ikon v hlavičce na tabletu (budou v menu nebo patičce) */
    .social-icons-header { display: none; } 

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height-mobile));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        padding-top: 1rem;
        transition: left 0.4s ease-in-out;
        order: 2;
        overflow-y: auto;
    }
    .nav-links.active { display: flex; left: 0; }
    .nav-links li { width: 100%; }
    
    .hamburger { display: block; }

    .slideshow { height: calc(100vh - var(--header-height-mobile)); }
    .hero-content {
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        padding: 2rem;
    }
    .hero-content p { margin: 1.5rem auto; }
    
    .accessory-item, .accessory-item.reverse {
        flex-direction: column;
        padding: 1.5rem;
    }
    .accessory-text { text-align: center; }
.accessory-item, 
    .accessory-item.reverse,
    .sidebar-content .accessory-item,
    .sidebar-content .accessory-item.reverse {
        display: flex !important;
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
    }

    /* Obal pro texty rozdělíme, aby šlo seřadit nadpis zvlášť od zbytku */
    .accessory-text {
        display: contents; /* Zruší obalující div a umožní flexboxu seřadit jeho potomky (h3, p, a) */
    }

    /* 1. NADPIS bude úplně nahoře */
    .accessory-text h3 {
        order: -2 !important; /* -2 zajistí, že to bude zaručeně první */
        margin-bottom: 0 !important;
        text-align: center;
    }

    /* 2. FOTKA bude uprostřed (pod nadpisem) */
    .accessory-image {
        order: -1 !important; /* -1 ho dá pod nadpis, ale nad zbytek textu */
        width: 100% !important;
        margin: 1rem 0 !important;
    }

    /* 3. TEXT (popis) bude pod fotkou */
    .accessory-text p {
        order: 1 !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }

    /* 4. TLAČÍTKO "Více informací/detailů" bude úplně dole */
    .accessory-text .cta-button-small {
        order: 2 !important;
        margin: 0 auto !important; /* Vycentruje tlačítko */
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2rem; }
    .content-page h1 { font-size: 2.2rem; }
    .contact-container { grid-template-columns: 1fr; padding: 1.5rem; }
    .content-page, .product-page { padding: 1.5rem 1rem; margin: 2rem auto; }
}
/* =========================================
   BOČNÍ MENU (Cimbály a Příslušenství)
   ========================================= */

.page-with-sidebar {
    display: block;
    width: 100%;
    padding-left: 200px; /* Vytvoření místa zleva pro fixní menu */
    box-sizing: border-box;
}

.sidebar {
    position: fixed; /* Zůstane přibité na místě, i když doscrollujete na konec stránky */
    top: var(--header-height-desktop);
    left: 0;
    width: 200px;
    height: calc(100vh - var(--header-height-desktop)); /* Výška až dolů k okraji prohlížeče */
    background-color: var(--white);
    padding: 3rem 1.5rem;
    border-radius: 0;
    border-top: none;
    box-shadow: 6px 0 15px rgba(0,0,0,0.04);
    z-index: 100; /* Ujistí se, že menu je vždy vrstvené nad obsahem */
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-menu li a {
    color: var(--gray);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

.sidebar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    color: var(--gold);
}

.sidebar-menu li a:hover::after {
    width: 100%;
}

.sidebar-content {
    margin: 2rem auto; /* Postará se o vycentrování obsahu ve zbývajícím pravém prostoru */
}

/* Kotvy na počítači - zajistí, aby se prvek odscrolloval správně pod hlavní hlavičku */
.accessory-item {
    scroll-margin-top: calc(var(--header-height-desktop) + 2rem);
}

/* =========================================
   Responzivita postranního menu (Mobil)
   ========================================= */
@media (max-width: 992px) {
    .page-with-sidebar {
        padding-left: 0; /* Na mobilu levé odsazení nepotřebujeme */
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        position: sticky; /* Zůstane přilepené nahoře */
        top: var(--header-height-mobile); /* Přesně pod hlavní hlavičkou webu */
        width: 100%;
        height: auto;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Stín mířící dolů */
        z-index: 999; /* Zabrání tomu, aby scrollující text prosvítal PŘES toto menu */
        background-color: var(--white); /* Pevné bílé pozadí */
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .sidebar-content {
        padding: 1rem;
    }

    /* Kotvy na mobilu - musí kompenzovat i výšku tohoto nového navigátoru */
    .accessory-item {
        scroll-margin-top: calc(var(--header-height-mobile) + 100px); 
    }
}
/* =========================================
   VELKÉ SEKCE PRO CIMBÁLY (Fullscreen design)
   ========================================= */

/* 1. Odstraníme výchozí bílý box a stín z kontejneru, aby se sekce mohly roztáhnout */
.content-page.sidebar-content {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* 2. Úvodní text nahoře nad sekcemi */
.sidebar-content .product-intro {
    background-color: var(--white);
    margin: 0;
    padding: 4rem 10% 3rem 10%;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.8;
}

/* 3. Jednotlivé sekce přes celou šířku a na 85% výšky stránky */
.sidebar-content .accessory-item {
    min-height: 85vh; /* Zabere minimálně 85% výšky okna prohlížeče */
    margin-bottom: 0; /* Zrušíme mezery mezi sekcemi, aby na sebe barvy plynule navazovaly */
    border-radius: 0; /* Zrušíme zakulacení rohů */
    box-shadow: none; /* Zrušíme stíny karet */
    padding: 4rem 8%;
    gap: 6rem; /* Větší mezera mezi fotkou a textem */
    background-color: var(--white); /* Běžná sekce je bílá */
    justify-content: center; /* Vycentrování obsahu uvnitř bloku */
    
    /* Přichytávání scrollování přesně pod hlavičku (bez mezery) */
    scroll-margin-top: var(--header-height-desktop); 
}

/* 4. Lehká namodralá barva pro každou druhou (otočenou) sekci */
.sidebar-content .accessory-item.reverse {
    background-color: #f4f8fc; /* Velmi jemná, prémiová ledově modrá */
}

/* 5. Zvětšení fotek */
.sidebar-content .accessory-image {
    flex-basis: 50%;
}

.sidebar-content .accessory-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 0px; /* Pokud už fotky nemají pozadí, můžete smazat i tento řádek, protože zaoblení rohů průhledné fotky nic nedělá */
    box-shadow: none; /* TADY JE ZMĚNA - zrušení stínu */
}

/* 6. Zvětšení textů a POJISTKA PRO SPRÁVNÝ FONT */
.sidebar-content .accessory-text {
    flex-basis: 50%;
}

.sidebar-content .accessory-text h3 {
    font-family: var(--font-primary); /* Vynucení správného fontu */
    font-weight: 700; /* Vynucení správné tloušťky */
    font-size: 3.5rem; 
    margin-bottom: 1.5rem;
    color: var(--black);
}

.sidebar-content .accessory-text p {
    font-family: var(--font-secondary); /* Vynucení správného fontu */
    font-weight: 400; /* Vynucení správné tloušťky */
    font-size: 1.3rem; 
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.sidebar-content .cta-button-small {
    font-size: 1.15rem;
    padding: 1rem 3rem;
    border-width: 2px;
}

/* =========================================
   AKTIVNÍ POLOŽKA V MENU (Scrollspy)
   ========================================= */
.sidebar-menu li a.active {
    color: var(--gold); /* Decentně zezlátne */
}

.sidebar-menu li a.active::after {
    width: 30px; /* Jen krátká elegantní čárka, ne přes celé slovo */
    background-color: var(--gold);
    opacity: 0.6; /* Lehká průhlednost pro jemnější efekt */
}

/* Pokud na už aktivní položku najedete myší, podtrhne se naplno */
.sidebar-menu li a.active:hover::after {
    width: 100%;
    opacity: 1;
}
/* =========================================
   Responzivita pro mobil a tablet
   ========================================= */
@media (max-width: 992px) {
    /* Na mobilu nemá smysl držet 85vh, protože telefony mají jiný poměr stran */
    .sidebar-content .accessory-item {
        min-height: auto; 
        padding: 4rem 1.5rem;
        gap: 3rem;
        text-align: center;
        /* Odsazení při scrollování musí kompenzovat i horní přilepené boční menu */
        scroll-margin-top: calc(var(--header-height-mobile) + 120px);
    }

    .sidebar-content .accessory-text h3 {
        font-size: 2.5rem;
    }

    .sidebar-content .accessory-text p {
        font-size: 1.15rem;
    }
    
    .sidebar-content .product-intro {
        padding: 2rem 1.5rem;
        font-size: 1.15rem;
    }
}
/* =========================================
   VZORNÍK BAREV (miniatury)
   ========================================= */
.color-swatches-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.color-swatches-section h4 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.swatches-container {
    display: flex;
    flex-wrap: wrap; /* Na mobilech zalomí fotky do dalších řádků */
    gap: 1.5rem;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* Šířka miniatury */
}

.swatch-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
}

.swatch-item img:hover {
    transform: scale(1.05); /* Po najetí se zlehka přiblíží */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: var(--gold); /* Zlatý rámeček na znamení kliknutelnosti */
}

.swatch-item span {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    text-align: center;
}

/* =========================================
   LIGHTBOX (Kino mód pro zvětšování fotek)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    display: flex;
    flex-direction: column; /* Uspořádá obrázek a text hezky pod sebe */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh; /* Zmenšeno z 90vh, aby zbylo místo na text pod ním */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Nový styl pro popisek pod fotkou */
#lightbox-caption {
    margin-top: 20px;
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold); 
}
/* =========================================
   GALERIE (Slideshow pro produkty)
   ========================================= */
.product-gallery {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 0px;
    overflow: hidden;
    /* ZRUŠENO černé pozadí a stín */
    box-shadow: none; 
    background-color: transparent; 
}

.gallery-container {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.gallery-img.active {
    opacity: 1;
    z-index: 2;
}

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

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    /* Lehký stínek, aby šipky byly vidět i na bílé fotce */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

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

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

/* ÚPRAVA TEČEK PRO BÍLÉ POZADÍ */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* Změněno z bílé na poloprůhlednou černou/šedou, aby byly vidět */
    background: rgba(0, 0, 0, 0.3); 
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}
/* =========================================
   ODKAZY V SEZNAMECH (Doporučené příslušenství atd.)
   ========================================= */
.content-page ul li a, 
.product-page ul li a {
    color: var(--gray); /* Tmavě šedá/černá barva jako v menu */
    text-decoration: none; /* Odstraní výchozí modré podtržení */
    font-family: var(--font-primary); /* Sjednotí font s menu */
    font-size: 1.25rem; /* Mírné zvětšení, aby to odpovídalo menu */
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

/* Příprava zlaté linky (na začátku má šířku 0) */
.content-page ul li a::after, 
.product-page ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

/* Po najetí myší text zezlátne */
.content-page ul li a:hover, 
.product-page ul li a:hover {
    color: var(--gold);
}

/* Po najetí myší vyjede zlatá linka zleva doprava */
.content-page ul li a:hover::after, 
.product-page ul li a:hover::after {
    width: 100%;
}
/* =========================================
   PROLNUTÍ BÍLÉHO POZADÍ FOTEK S MODROU SEKCÍ
   ========================================= */
.sidebar-content .accessory-item.reverse .product-gallery,
.sidebar-content .accessory-item.reverse .accessory-image img {
    mix-blend-mode: multiply; /* Tento příkaz obarví bílou z fotky do barvy pozadí */
}
/* Zmenšení celkového kontejneru vzorníku */
.color-slideshow {
    max-width: 280px; /* Zmenšeno ze 400px na 280px */
    margin: 1.5rem auto;
}

/* Úprava textu barvy, aby byl níž a nepřekrývaly ho tečky */
.color-name-display {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.3rem; /* Mírně menší písmo pro lepší proporce */
    font-weight: 600;
    margin-top: 35px; /* Větší horní okraj vytvoří místo pod tečkami */
    color: var(--gold);
    display: block;
}

/* Zajištění, že tečky (bubliny) jsou nad textem barvy */
.color-slideshow .gallery-dots {
    bottom: 40px; /* Posunutí teček kousek nahoru od spodního okraje kontejneru */
}

/* Zmenšení šipek pro malou slideshow, aby nepřekážely výhledu na barvu */
.color-slideshow .gallery-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}
/* Zlaté nadpisy pro stránku Cimbály a jednotlivé modely */
.content-page h1, 
.product-page h1,
.sidebar-content h1,
.sidebar-content .accessory-text h3,
.product-page h2,
.product-page h3 {
    color: var(--gold) !important;
}
/* =========================================
   RÁMEČEK PRO STRÁNKU CIMBÁLY - IDENTICKÝ SE SLUŽBAMI
   ========================================= */

/* 1. Hlavní rámeček (stejná šířka, stín i zakulacení jako jinde) */
.content-page.sidebar-content {
    background-color: var(--white) !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05) !important;
    border-radius: 0px !important;
    max-width: 900px !important; /* DŮLEŽITÉ: Stejná šířka jako na sluzby.html */
    margin: 4rem auto !important; /* Vycentrování */
    padding: 0 !important; /* Dáme na 0, aby barvy uvnitř sahaly až do krajů */
    overflow: hidden !important; /* Zajistí, že rohy barevných pruhů nepřetečou přes kulatý rámeček */
}

/* 2. Odsazení úvodního textu (vynahrazuje to, že hlavní rámeček má padding 0) */
.content-page.sidebar-content .product-intro {
    padding: 3rem 3rem 1rem 3rem !important;
    margin: 0 !important;
    background-color: var(--white) !important;
}

/* 3. Jednotlivé modely cimbálů uvnitř rámečku */
.sidebar-content .accessory-item {
    min-height: auto !important;
    padding: 3rem !important; /* Odsazení textu a fotek uvnitř pruhu */
    margin-bottom: 0 !important; /* Žádné mezery mezi pruhy */
    border-radius: 0 !important; 
    border-bottom: none !important;
    gap: 3rem !important;
    background-color: var(--white) !important; /* Výchozí bílá */
}

/* 4. Střídání barev - modrý pruh */
.sidebar-content .accessory-item.reverse {
    background-color: #f4f8fc !important;
}

/* 5. Responzivita (mobily a tablety) */
@media (max-width: 992px) {
    .content-page.sidebar-content {
        margin: 2rem auto !important;
    }
    .content-page.sidebar-content .product-intro {
        padding: 2rem 1.5rem 0 1.5rem !important;
    }
    .sidebar-content .accessory-item {
        padding: 2rem 1.5rem !important;
        gap: 2rem !important;
    }
}
/* =========================================
   1. TMAVŠÍ MODRÁ PRO STŘÍDÁNÍ POLOŽEK
   ========================================= */
.sidebar-content .accessory-item.reverse {
    background-color: #e1edf8 !important; /* Původní vybledlá byla #f4f8fc. Tato je o tón tmavší. */
}

/* =========================================
   2. OPRAVA DVOJITÉHO RÁMEČKU (KONTAKT)
   ========================================= */
/* Vypne stín a pozadí u vnějšího obalu, čímž zmizí "dvojitý" efekt */
main.contact-page {
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

/* Zaručí, že vnitřní jednoduchý rámeček bude mít dost šířky pro velkou mapu */
main.contact-page .content-page {
    max-width: 1200px !important;
    margin: 4rem auto !important;
}
/* =========================================
   SJEDNOCENÍ TYPOGRAFIE - NETUČNÉ NADPISY
   ========================================= */

/* Všechny nadpisy budou tenké a jemně roztažené pro prémiový vzhled */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 300 !important; /* 300 = Light (tenký elegantní řez) */
    letter-spacing: 1.5px; /* Lehké mezery mezi písmeny pro vzdušnost */
}

/* Hlavní velké nadpisy necháme o něco větší, když už nejsou tučné */
.content-page h1, .product-page h1, .sidebar-content h1 {
    font-size: 3.2rem !important; 
}

/* Názvy produktů a podnadpisy */
.sidebar-content .accessory-text h3, .product-page h3, .content-page h2 {
    font-size: 2.2rem !important;
}

/* Vypnutí tučnosti u hlavního i bočního menu pro maximální čistotu designu */
.nav-links > li > a,
.sidebar-menu li a {
    font-weight: 400 !important; /* 400 = Regular (normální řez) */
    letter-spacing: 1px;
}

/* Zrušení tučnosti i u tlačítek */
.cta-button, .cta-button-small {
    font-weight: 400 !important;
    letter-spacing: 1px;
}
/* ========================================================
   FULLSCREEN GALERIE VZORNÍKU BAREV (Kino mód)
   ======================================================== */
.fullscreen-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide-container {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-slide-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

#fullscreen-gallery-caption {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 15px;
    font-family: var(--font-primary);
    text-align: center;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 45px;
    cursor: pointer;
    z-index: 3010;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: var(--gold);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 3010;
    border-radius: 0px;
    transition: background 0.3s, color 0.3s;
}

.gallery-nav:hover {
    background: var(--gold);
    color: var(--white);
}

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

.next-gallery-btn {
    right: 20px;
}
/* =========================================
   CITACE (např. stránka O nás)
   ========================================= */
.quote-text {
    font-size: 1.3rem; /* Zvětší text oproti běžným odstavcům */
    font-style: italic; /* Udělá z textu kurzívu */
    font-family: var(--font-primary); /* Použije váš hlavní font */
    color: var(--gold); /* Obarví text do vaší zlaté barvy */
    text-align: center; /* Vystředí text */
    margin: 3rem auto; /* Přidá dostatek prostoru nad a pod citací */
    padding: 0 2rem;
    line-height: 1.5;
}
/* =========================================
   FOTKA AUTORA POD CITACÍ
   ========================================= */
.author-container {
    display: flex;
    flex-direction: column; /* Naskládá fotku a podpis pod sebe */
    align-items: flex-end; /* Zarovná oba prvky doprava */
    padding-right: 2rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

/* Třída pro vaši fotku zůstává beze změny */
.author-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50% !important;
    border: 3px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   PODPIS AUTORA
   ========================================= */
.author-signature {
    width: 200px; /* Šířka podpisu - upravte číslo podle toho, jak ho chcete velký */
    height: auto; /* Výška se přizpůsobí automaticky */
    margin-top: 15px; /* Mezera mezi fotkou a podpisem */
    opacity: 0.9; /* Udělá podpis lehce průhledný, aby lépe splynul s pozadím */
    filter: brightness(0);
    /* ODPOZNÁMKUJTE (smažte lomenítka a hvězdičky) následující řádek, 
       pokud máte tmavý web a potřebujete černý podpis převést na čistě BÍLÝ: */
    /* filter: brightness(0) invert(1); */
}