/* zakladne */
:root {
    --primary-green: #689f38;
    --primary-hover: #558b2f;
    --dark-brown: #5d4037;
    --light-bg: #f4f7f6;
    --text-color: #333;
    --header-bg: white;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* hlavicka a menu */
header {
    background: var(--header-bg);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: auto;
}
.logo {
    height: 90px;
    display: block;
    margin-left: -150px;
}
@media (max-width: 1400px) {
    .logo { margin-left: 0; }
    .header-container { flex-direction: column; gap: 1px; }
}
nav {
    background: var(--primary-green);
    padding: 15px;
    text-align: center;
}
nav a {
    color: white !important;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}
nav a:hover { opacity: 0.8; }
nav a.active {
    border-bottom: 2px solid white;
    padding-bottom: 1px;
    font-weight: bold;
}
footer {
    text-align: center;
    padding: 40px;
    background: var(--dark-brown);
    color: white;
    margin-top: 50px;
}









/* index.php */
.photo-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide { min-width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    transition: 0.3s;
}
.banner-btn:hover { background: #689f38; }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }
.hero-buttons { text-align: center; margin: 30px 0; }
.hero-buttons a {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 0 10px;
}
.btn-primary {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(104, 159, 56, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 159, 56, 0.5);
    background-color: #558b2f;
}
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #558b2f;
    border: 2px solid #558b2f;
}
.btn-secondary:hover {
    background-color: white;
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.search-section {
    background-color: var(--dark-brown);
    padding: 40px 20px;
    text-align: center;
    color: white;
}
.search-section h2 {
    color: white !important;
    margin-bottom: 20px;
    font-size: 1.7rem;
}
.search-wrapper { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
.search-form { display: flex; width: 100%; gap: 0; align-items: center; }
.input-group { position: relative; flex: 1; }
.search-icon-svg {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: #666; pointer-events: none;
}
.search-form input {
    width: 100%; padding: 15px 15px 15px 45px; border-radius: 30px 0 0 30px;
    border: none; font-size: 1.2rem; outline: none; text-align: left; box-sizing: border-box;
}
.search-form button {
    padding: 15px 30px; border-radius: 0 30px 30px 0; border: none;
    background-color: var(--primary-green); color: white; font-weight: bold;
    font-size: 1.2rem; cursor: pointer; transition: 0.3s; white-space: nowrap; height: 100%;
}
.search-form button:hover { background-color: var(--primary-hover); }









/* produkty.php */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px;
    margin: 40px 0;
}
.category-card {
    background: white;
    min-height: 280px !important;
    padding: 40px 20px !important;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid #5D4037 !important;
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(104, 159, 56, 0.2);
    border-color: var(--primary-green) !important;
}
.category-card .icon { font-size: 70px !important; margin-bottom: 20px; display: block; }
.category-card h3 { margin: 10px 0; font-size: 24px !important; color: var(--dark-brown); }
.category-card p { color: #666; font-size: 14px; }
.count-badge { font-size: 0.7em; color: #777; font-weight: normal; }
.subcategory-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
@media (max-width: 768px) { .subcategory-grid { grid-template-columns: 1fr; } }
.subcategory-card {
    display: flex; align-items: center; padding: 30px; background: white; border-radius: 10px;
    text-decoration: none; color: #333; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s; border: 2px solid #5D4037;
}
.subcategory-card:hover {
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #689f38;
}
.subcategory-card .icon { font-size: 50px; margin-right: 25px; color: #689f38; }
.subcategory-card h3 { font-size: 20px; margin: 0; color: #333; }
.catalog-layout {
    display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin-top: 30px; align-items: start;
}
@media (max-width: 768px) { .catalog-layout { grid-template-columns: 1fr; } }
.sorting-bar { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.sorting-select {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; color: #555;
    font-size: 14px; cursor: pointer; outline: none; background: white;
}
.filter-sidebar { background: white; padding: 20px; border-radius: 15px; border: 1px solid #ddd; }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.filter-group:last-child { border-bottom: none; }
.filter-input {
    width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box;
}
.apply-filter-btn {
    width: 100%; background: #689f38; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; font-weight: bold;
}
.apply-filter-btn:hover { background: #558b2f; }
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; margin-top: 30px;
}
.product-card {
    background: white; border-radius: 12px; padding: 20px; text-align: center; border: 1px solid #eee;
    display: flex; flex-direction: column; transition: 0.3s;
}
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-5px); }
.img-wrapper {
    height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; background-color: #fff;
}
.product-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card h4 { font-size: 1rem; height: 3rem; overflow: hidden; margin: 10px 0; color: #333; }
.price { font-size: 1.4rem; font-weight: bold; color: var(--primary-green); margin: 10px 0; }
.buy-btn {
    display: block; background: var(--primary-green); color: white; padding: 12px; border-radius: 6px;
    text-decoration: none; margin-top: auto; font-weight: bold; transition: background 0.3s;
}
.buy-btn:hover { background: var(--primary-hover); }
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 40px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-link {
    display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 5px; color: #555;
    text-decoration: none; transition: all 0.2s; background: white;
}
.page-link:hover { background-color: #f1f1f1; border-color: #bbb; }
.page-link.active { background-color: #689f38; color: white; border-color: #689f38; font-weight: bold; }











/* detail.php */
.detail-container {
    max-width: 1100px; margin: 40px auto; padding: 20px; background: white;
    border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex; gap: 40px; align-items: flex-start;
}
.detail-image {
    flex: 1; min-width: 300px; border: 1px solid #eee; border-radius: 10px;
    padding: 20px; background: #fff; display: flex; justify-content: center; align-items: center;
}
.detail-image img { max-width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.detail-info { flex: 1; min-width: 300px; }
.detail-category {
    color: #689f38; font-weight: bold; text-transform: uppercase; font-size: 0.9em; margin-bottom: 10px; display: block;
}
.detail-title { font-size: 2.2em; color: #333; margin: 0 0 20px 0; line-height: 1.2; }
.detail-price-box { margin-bottom: 25px; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.detail-price { font-size: 2em; color: #d32f2f; font-weight: bold; }
.detail-desc { color: #555; line-height: 1.8; font-size: 1.1em; margin-bottom: 30px; }
.btn-buy-large {
    display: inline-block; background-color: #689f38; color: white; padding: 18px 40px;
    font-size: 1.2em; font-weight: bold; text-decoration: none; border-radius: 5px;
    transition: background 0.3s, transform 0.2s; text-align: center; width: 100%; box-sizing: border-box;
}
.btn-buy-large:hover {
    background-color: #558b2f; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(104, 159, 56, 0.3);
}
@media (max-width: 768px) {
    .detail-container { flex-direction: column; }
    .detail-image, .detail-info { min-width: 100%; }
}
.breadcrumbs {
    max-width: 1200px; margin: 20px auto 10px auto; padding: 0 20px;
    font-size: 14px; color: #666; font-family: sans-serif;
}
.back-nav {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}
.breadcrumbs {
    max-width: 1200px;
    margin: 10px auto 10px auto;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
    font-family: sans-serif;
    text-align: left;
}
.breadcrumbs a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumbs a:hover {
    color: #4CAF50;
    text-decoration: underline;
}
.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}
.breadcrumbs .current-page {
    color: #888;
}
.home-icon { font-size: 16px; position: relative; top: 1px; }

.back-link {
    display: inline-block; color: var(--dark-brown); text-decoration: none; font-weight: bold;
    background: #e0e0e0; padding: 8px 15px; border-radius: 5px;
}
.back-link:hover { background: #ccc; }











/* kontakt.php */
.msg-box { max-width: 1200px; margin: 20px auto; padding: 0 20px; }

.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }

.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.alert-danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.contact-container {
    display: flex; flex-wrap: wrap; gap: 40px; max-width: 1100px;
    margin: 60px auto; padding: 0 20px; align-items: stretch;
}
.contact-info {
    flex: 1; min-width: 300px; background-color: #5D4037; color: #ffffff;
    padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-info h2 {
    margin-top: 0; color: white; border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 15px; margin-bottom: 30px;
}
.info-item { margin-bottom: 25px; font-size: 16px; line-height: 1.6; }
.info-item strong { display: block; font-size: 18px; margin-bottom: 5px; color: white; }
.contact-form { flex: 1.5; min-width: 300px; padding: 20px 0; }
.contact-form h2 { margin-top: 0; margin-bottom: 25px; color: #333; }
.form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; color: #555; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: 6px;
    box-sizing: border-box; font-size: 15px; background-color: #f9f9f9; transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #5D4037; background-color: #fff; outline: none;
}
.contact-form textarea { height: 150px; resize: vertical; }
.btn-send {
    width: 100%; padding: 18px; background-color: var(--primary-green); color: white; border: none;
    border-radius: 6px; cursor: pointer; font-size: 18px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-send:hover {
    background-color: #4E342E; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .contact-container { flex-direction: column; gap: 30px; margin: 30px auto; }
    .contact-info { padding: 30px; }
}