/* E-shop CSS - Parní Kaktus */

@font-face {
    font-family: "ProtestStrike";
    src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ProtestStrike";
    line-height: 1.6;
    color: #1a3a1a;
    background: linear-gradient(135deg, #fbfcfd 0%, #f4f7f6 22%, #eef4f0 45%, #e8f5e9 65%, #f7faf8 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 18% 82%, rgba(76, 175, 80, 0.07) 0%, transparent 54%), radial-gradient(circle at 82% 18%, rgba(102, 187, 106, 0.07) 0%, transparent 54%), radial-gradient(circle at 42% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 52%), radial-gradient(circle at 50% 12%, rgba(15, 23, 42, 0.03) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern Header - stejný jako na kontaktkaktus.php */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(25px);
    border-bottom: 3px solid rgba(76, 175, 80, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
}

.logo-image {
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: contain;
}

.site-title {
    font-family: "ProtestStrike";
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.nav-button.primary {
    background: rgba(47, 107, 31, 0.08);
    color: #14532d;
    border-color: rgba(47, 107, 31, 0.22);
    box-shadow: none;
}

.nav-button.primary:hover {
    background: rgba(47, 107, 31, 0.12);
    transform: translateY(-1px);
    box-shadow: none;
}

.nav-button:focus-visible {
    outline: 3px solid rgba(47, 107, 31, 0.35);
    outline-offset: 3px;
}

.nav-icon {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: "ProtestStrike";
    font-size: 3rem;
    color: #1a3a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 3rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.info-banner {
    background: rgba(255, 255, 255, 0.75);
    border-left: 3px solid rgba(47, 107, 31, 0.35);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.login-banner {
    background: rgba(255, 255, 255, 0.75);
    border-left: 3px solid rgba(15, 23, 42, 0.18);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.login-link {
    color: #14532d;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #0f3f22;
}

.info-icon {
    font-size: 1.5rem;
}

/* E-shop Sections */
.eshop-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: "ProtestStrike";
    font-size: 2rem;
    color: #1a3a1a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image.placeholder {
    font-size: 4rem;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 1.5rem;
    color: #1a3a1a;
    margin: 0;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-artikl {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.product-price-wrapper {
    margin: 0.5rem 0;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.25rem;
}

.product-price-note {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* Modal produkt info */
.product-info-modal {
    background: linear-gradient(135deg, #f1f8f4, #e8f5e9);
    border-left: 4px solid #4caf50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-product-image-wrapper {
    flex-shrink: 0;
}

.modal-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #4caf50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-product-title {
    font-size: 1.25rem;
    color: #1a3a1a;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.personalizace {
    background: rgba(47, 107, 31, 0.08);
    color: #14532d;
    border: 1px solid rgba(47, 107, 31, 0.18);
}

.product-badge.category {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Filtr kategorií */
.filter-section {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.filter-title {
    font-size: 1.1rem;
    color: #1a3a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a1a;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(47, 107, 31, 0.35);
    background: rgba(47, 107, 31, 0.06);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(45, 103, 55, 0.92);
    color: #fff;
    border-color: rgba(45, 103, 55, 0.92);
    box-shadow: none;
}

.product-button {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background: rgba(45, 103, 55, 0.92);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-button:hover {
    background: rgba(45, 103, 55, 0.98);
    transform: translateY(-1px);
    box-shadow: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 2rem;
    color: #1a3a1a;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: #1a3a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #1a3a1a;
}

.modal form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a3a1a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(45, 103, 55, 0.70);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.10);
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button.primary {
    background: rgba(45, 103, 55, 0.92);
    color: #fff;
}

.button.primary:hover {
    background: rgba(45, 103, 55, 0.98);
    transform: translateY(-1px);
    box-shadow: none;
}

.button.secondary {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.button.secondary:hover {
    background: rgba(15, 23, 42, 0.10);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }

    .logo-image {
        width: 3.75rem;
        height: 2.5rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .nav-links-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
    }
}

/* Modal pro zobrazení obrázku produktu v plné velikosti */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3001;
    line-height: 1;
}

.image-modal-close:hover {
    color: #4caf50;
}

.image-modal-title {
    color: #fff;
    font-size: 1.25rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Odkaz na tabulku velikostí */
.size-chart-link-wrap {
    margin: 1rem 0 1.5rem;
}
.size-chart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(47, 107, 31, 0.12);
    border: 2px solid rgba(47, 107, 31, 0.35);
    border-radius: 12px;
    color: #2f6b1f;
    font-family: "ProtestStrike";
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.size-chart-link:hover {
    background: rgba(47, 107, 31, 0.2);
    border-color: rgba(47, 107, 31, 0.5);
}
.size-chart-icon {
    font-size: 1.2rem;
}

/* Modal tabulky velikostí – větší obsah */
.size-chart-modal .size-chart-content {
    max-width: 95%;
    max-height: 95vh;
    overflow: auto;
}
.size-chart-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}
.size-chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover efekt na obrázky produktů */
.product-image {
    position: relative;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: none;
}

.product-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image:hover::after {
    opacity: 1;
}

