:root {
    --primary-color: #2d4a22; 
    --accent-color: #4caf50;  
    --page-bg: #f7f9f6; 
    --text: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--page-bg);
    color: var(--text);
    scroll-behavior: smooth;
}

section { scroll-margin-top: 80px; }

/* --- HLAVIČKA --- */
header {
    background: #d9e4d5; 
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); }
nav ul { display: flex; list-style: none; gap: 20px; padding: 0; margin: 0; }
nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--primary-color); }

.cart-link { background: var(--primary-color); color: white !important; padding: 5px 15px; border-radius: 20px; font-weight: 600 !important; text-decoration: none; }
.cart-link:hover { background: var(--accent-color); }

/* --- HERO SEKCE --- */
.hero { display: flex; align-items: center; max-width: 1400px; margin: 0 auto; padding: 80px 5%; }
.hero-text-area { flex: 0 0 500px; text-align: left; padding-right: 50px; }
.hero-text-area h1 { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; line-height: 1.1; }
.hero-text-area p { font-size: 1.1rem; color: #666; line-height: 1.6; }
.hero-image-area { flex: 1; text-align: left; }
.hero-img { width: 100%; max-width: 550px; height: auto; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); cursor: zoom-in; transition: opacity 0.3s; }
.hero-img:hover { opacity: 0.9; }

/* --- SEKCE PRODUKTŮ --- */
.section-container { display: flex; max-width: 1400px; margin: 0 auto; padding: 80px 5%; align-items: flex-start; }
.section-title-side { flex: 0 0 500px; text-align: left; position: sticky; top: 120px; height: fit-content; }
.section-title-side h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 5px; white-space: nowrap; }
.small-info { color: #888; font-size: 0.9rem; }

.product-list-side { flex: 1; }
.product-item { display: flex; background: white; border-radius: 20px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 8px 25px rgba(0,0,0,0.04); align-items: center; }
.list-img { width: 220px; height: 220px; object-fit: cover; cursor: zoom-in; transition: opacity 0.3s;}
.list-img:hover { opacity: 0.9; }
.list-info { padding: 30px 40px; text-align: left; flex: 1; }
.list-info h3 { margin: 0 0 12px 0; color: var(--primary-color); font-size: 1.5rem; }
.list-info .desc { color: #666; font-size: 0.95rem; margin-bottom: 15px; line-height: 1.5; }
.list-info .price { font-size: 1.5rem; color: var(--accent-color); font-weight: bold; }

/* --- MŘÍŽKA KARET --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: space-between;}
.card img { width: 100%; height: 300px; object-fit: cover; cursor: zoom-in; transition: opacity 0.3s; }
.card img:hover { opacity: 0.9; }
.card-info { padding: 25px; text-align: center; }
.card-info h3 { color: var(--primary-color); margin: 0 0 10px 0; font-size: 1.3rem; }
.card-info .price { font-size: 1.4rem; color: var(--accent-color); font-weight: bold; margin-bottom: 15px; }

/* --- STYL PRO VÝBĚR VARIANT (ROLETKA) --- */
.variant-select {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background-color: #fafafa;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.3s;
}
.variant-select:hover {
    border-color: #aaa;
}

/* --- TLAČÍTKA --- */
.btn-buy, .btn-submit { background: var(--primary-color); color: white; border: none; padding: 12px 30px; border-radius: 30px; cursor: pointer; font-weight: 600; font-size: 1rem; margin-top: 10px; box-sizing: border-box; text-decoration: none; transition: 0.3s;}
.btn-buy:hover, .btn-submit:hover { background: var(--accent-color); }
.btn-submit { width: 100%; }

/* --- RESPONSIVITA (Mobilní verze) --- */
@media (max-width: 1100px) {
    header { flex-direction: column; gap: 15px; padding-top: 20px; padding-bottom: 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    
    .hero, .section-container { flex-direction: column; text-align: center; }
    .hero-text-area, .section-title-side { text-align: center; flex: none; width: 100%; padding: 0; position: static; height: auto; }
    .product-item { flex-direction: column; }
    .list-img { width: 100%; height: 280px; }
}

/* --- RECENZE --- */
.reviews-section { padding: 80px 5%; text-align: center; }
.reviews-section h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.review-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.04); text-align: center; }
.review-card .stars { font-size: 1.5rem; margin-bottom: 15px; }
.review-card .review-text { font-style: italic; color: #555; line-height: 1.6; margin-bottom: 20px; }
.review-card .review-author { font-weight: 600; color: var(--primary-color); }

/* --- POPTÁVKA FORMULÁŘ --- */
.poptavka-section { padding: 80px 5% 40px; }
.form-container { max-width: 600px; margin: 0 auto; background: white; padding: 50px; border-radius: 25px; box-shadow: 0 15px 50px rgba(0,0,0,0.04); box-sizing: border-box; text-align: center; }
.form-container h2 { color: var(--primary-color); font-size: 2.2rem; margin-top: 0; margin-bottom: 5px;}
input, textarea { width: 100%; padding: 15px; margin: 10px 0; border: 1px solid #ddd; border-radius: 12px; box-sizing: border-box; font-family: 'Poppins', sans-serif;}

/* --- KONTAKT DOLE --- */
.contact-section { padding: 40px 5% 80px; }
.contact-info-bottom { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-details { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: left; }
.contact-details li { margin-bottom: 15px; color: #444; font-size: 1.05rem; }
.contact-details strong { color: var(--primary-color); display: inline-block; width: 90px; }
footer { text-align: center; padding: 40px; color: #888; font-size: 0.9rem; margin-top: 20px; }

/* --- MODAL (OBRÁZKY) --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); overflow: auto;}
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; border-radius: 15px; position: relative; top: 5%;}
.close { position: absolute; top: 20px; right: 35px; color: white; font-size: 45px; font-weight: bold; cursor: pointer; z-index: 2001;}

/* --- MODAL KOŠÍK --- */
.cart-box { background-color: #fff; margin: 5% auto; padding: 40px; border-radius: 20px; width: 90%; max-width: 600px; position: relative; box-shadow: 0 10px 50px rgba(0,0,0,0.2);}
.cart-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; align-items: center;}
.cart-item:last-child { border-bottom: none; }
.btn-remove { background: #ff4d4d; color: white; border: none; border-radius: 5px; cursor: pointer; padding: 5px 10px; margin-left: 10px;}
.cart-total-row { text-align: right; font-size: 1.2rem; font-weight: bold; margin-top: 20px; color: #555;}
.final-total { font-size: 1.5rem; color: var(--accent-color); border-top: 2px solid #ddd; padding-top: 15px; margin-top: 15px;}
.checkout-options { text-align: left; margin-bottom: 20px; background: #f9f9f9; padding: 15px; border-radius: 10px;}
.checkout-options label { display: block; margin-bottom: 10px; cursor: pointer;}