:root {
    --primary-orange: #e6912d;
    --primary-shadow: rgba(230, 145, 45, 0.4);
    --bg-cream: #fdf5e8;
    --text-dark: #4a3728;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15%;
}

.logo img { height: 100px; width: auto; }
nav ul { display: flex; list-style: none; gap: 35px; }
nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 500; }
.nav-tools { display: flex; gap: 15px; align-items: center; }
.nav-tools input { padding: 8px 15px; border-radius: 20px; border: 1px solid #ddd; outline: none; }

/* --- HERO SEKCE --- */
.hero {
    padding: 60px 15% 120px 15%;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.hero-content {
    flex: 0 0 auto; 
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    white-space: nowrap; 
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 450px; /* Popisek se klidně lámat může, aby nevypadal divně */
    line-height: 1.5;
}

.price {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.price span {
    font-weight: 800;
    font-size: 2.2rem;
}

/* OBRÁZEK - VRSTVA POD TEXTEM */
.hero-image {
    position: absolute;
    left: 25%; 
    top: 55%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 750px; 
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

/* IKONY VRAVO */
.features {
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-left: auto; /* Tlačí ikony k pravému okraji */
}

.feature { display: flex; align-items: center; gap: 15px; font-weight: 600; }
.feature img { width: 45px; height: 45px; }
.feature small { display: block; font-weight: 400; opacity: 0.6; }

/* TLAČÍTKA */
.hero-btns { display: flex; gap: 15px; }
.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--primary-shadow);
}
.btn-secondary {
    background-color: var(--white);
    border: none;
    padding: 18px 30px;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* PRODUKTY DOLE */
.products {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 8%;
}

.product-card {
    background: linear-gradient(to bottom, transparent 35%, #f7e8d0 35%);
    border-radius: 50px;
    padding: 30px;
    text-align: center;
    width: 250px;
    box-shadow: 0 15px 35px rgba(74, 55, 40, 0.1);
}

.img-circle {
    width: 180px; height: 180px;
    background: #fff; border-radius: 50%;
    margin: 0 auto 15px; overflow: hidden;
    border: 6px solid #fff;
}

.img-circle img { width: 100%; height: 100%; object-fit: cover; }

.btn-detail {
    margin-top: 15px;
    background: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
}

/* --- SEKCE O FIRMĚ (NOVÉ) --- */
.about-firm {
    padding: 80px 12%;
    background-color: rgba(247, 232, 208, 0.3); /* Velmi jemný podkres */
    margin-top: 50px;
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
    text-align: justify; /* Zarovnání do bloku působí v tomto případě lépe */
}

.signature {
    margin-top: 30px;
    font-weight: 800;
    color: var(--primary-orange);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Responzivita pro text o firmě */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 20px;
    }
    .about-text h2 {
        font-size: 1.8rem;
    }
}

/* --- STYLOVÁNÍ OBRÁZKU V TEXTU --- */
.about-column {
    flex: 1;
}

.about-image-box {
    margin-bottom: 25px;
    border-radius: 30px;
    overflow: hidden;
    /* Použití tvého oblíbeného stínu pro konzistenci */
    box-shadow: 0 15px 35px rgba(74, 55, 40, 0.15);
}

.about-image-box img {
    width: 100%;
    height: auto;
    display: block;
    /* Jemný efekt, aby fotka vypadala "chutněji" */
    transition: transform 0.5s ease;
}

.about-image-box:hover img {
    transform: scale(1.03); /* Při najetí se fotka lehce zvětší */
}

/* Úprava pro mobilní zařízení */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    .about-image-box {
        max-width: 100%;
    }
}

/* --- STYLOVÁNÍ PATIČKY --- */
footer {
    padding: 40px 12%;
    border-top: 1px solid rgba(74, 55, 40, 0.1); /* Jemná dělící čára */
    background-color: var(--bg-cream);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 35px; /* Trochu menší logo v patičce působí elegantněji */
    width: auto;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.6;
}

/* --- STRÁNKA SORTIMENT --- */
.sortiment-page {
    padding-bottom: 80px;
}

.sortiment-header {
    text-align: center;
    padding: 60px 12%;
}

.sortiment-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Nastavení mřížky */
.products-grid {
    display: grid;
    /* Vytvoří sloupce, které se automaticky přizpůsobí šířce (min 250px) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 12%;
    justify-items: center; /* Vycentruje karty v buňkách */
}

/* Úprava ceny uvnitř karty */
.card-price {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

/* Aktivní odkaz v menu */
nav ul li a.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
}

/* --- STRÁNKA ROZVOZ --- */
.delivery-page {
    padding-bottom: 50px;
}

.delivery-hero {
    text-align: center;
    padding: 60px 12%;
    background: linear-gradient(to bottom, #fdf5e8, #f7e8d0);
}

.delivery-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Nastavení řádků (Obrázek + Text) */
.delivery-row {
    display: flex;
    align-items: center;
    padding: 80px 12%;
    gap: 60px;
}

/* Třída pro otočení pořadí (Obrázek vlevo) */
.delivery-row.reverse {
    flex-direction: row-reverse;
}

.delivery-text {
    flex: 1;
}

.delivery-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.delivery-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.delivery-list {
    list-style: none;
    font-weight: 600;
}

.delivery-list li {
    margin-bottom: 10px;
}

.delivery-img {
    flex: 1;
    text-align: center;
}

.delivery-img img {
    max-width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(74, 55, 40, 0.15); /* Tvůj oblíbený stín */
}

.delivery-zones {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
    .delivery-row, .delivery-row.reverse {
        flex-direction: column;
        text-align: center;
        padding: 40px 8%;
    }
}

/* --- STRÁNKA KONTAKT --- */
.contact-page {
    padding-bottom: 100px;
}

.contact-hero {
    text-align: center;
    padding: 60px 15%;
}

.contact-container {
    display: flex;
    padding: 0 15%;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Tabulka otevírací doby */
.opening-hours {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin-top: 10px;
}

.opening-hours td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 55, 40, 0.1);
}

.opening-hours td:last-child {
    text-align: right;
    font-weight: 700;
}

/* Vizuální prvek vpravo */
.contact-visual {
    flex: 1;
}

.contact-card-box {
    position: relative;
    background: var(--white);
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(74, 55, 40, 0.1);
}

.contact-card-box img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.status-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: #27ae60; /* Zelená pro "Otevřeno" */
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Responzivita */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 50px;
    }
    .contact-visual {
        width: 100%;
    }
}
/* --- SEKCE FOTO-GALERIE NA CELOU ŠÍŘI --- */
.firm-gallery-full {
    width: 100%;
    margin-top: 0; /* Navazuje přímo na sekci O firmě */
    padding: 0;    /* Žádné odsazení od krajů */
    overflow: hidden;
}

.gallery-wrapper {
    display: flex; /* Použijeme flex, aby se fotky naskládaly vedle sebe */
    width: 100%;
}

.gallery-item {
    flex: 1;       /* Každá fotka zabere stejný podíl šířky */
    height: 350px; /* Můžeš zvýšit, aby galerie víc vynikla */
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ořízne fotky tak, aby vyplnily prostor */
    display: block;
    /* Odstranili jsme stíny a oblé rohy pro čistý "edge-to-edge" vzhled */
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
    .gallery-wrapper {
        flex-wrap: wrap; /* Na mobilu se fotky naskládají pod sebe */
    }
    .gallery-item {
        flex: 1 0 50%; /* Dvě fotky vedle sebe na menších obrazovkách */
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 0 100%; /* Na úplně malém mobilu jedna fotka na řádek */
    }
}

.btn-primary, .btn-secondary {
    display: inline-block;    /* Důležité: aby fungoval padding */
    text-decoration: none;    /* Odstraní podtržení textu */
    text-align: center;       /* Vycentruje text uvnitř */
    transition: 0.3s;         /* Plynulá animace při najetí */
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 35px;
    font-weight: bold;
    box-shadow: 0 10px 20px var(--primary-shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 18px 30px;
    border-radius: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Efekt při najetí myší */
.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}