﻿:root {
    --brand-red: #E3000F;       /* Typická BURÁCI červená */
    --brand-blue: #003057;      /* Tmavá pro texty */
    --brand-gold: #FFC72C;      /* Akcentová zlatá */
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(227, 0, 15, 0.2);
}

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

/* Utility */
.hidden { display: none !important; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-blue);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- UI KOMPONENTY (Tlačítka) --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.3);
}

.btn-primary:hover {
    background-color: #c2000d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 0, 15, 0.4);
}

.btn-secondary {
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--brand-red);
    color: var(--white);
}

/* --- HLAVIČKA (Navigace) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--brand-red);
    letter-spacing: -1px;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-red);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--brand-red);
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* --- INTRO SEKCE --- */
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    background: radial-gradient(circle at 70% 50%, #fff0f0 0%, #ffffff 70%);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.intro-decor {
    position: absolute;
    left: -20%;
    top: 50%;
    transform: translateY(-50%);
    width: 70%;
    aspect-ratio: 1/1;
    background-color: var(--brand-red);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
    box-shadow: 0 0 100px rgba(227, 0, 15, 0.2);
}

.intro-text {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.intro-logo {
    max-width: 700px; /* Zmenšeno ze 700px */
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.intro-image {
    flex: 1;
    position: relative;
    text-align: right;
}

/* Simulace plovoucího sáčku */
.intro-image img {
    max-width: 60%; /* Zmenšeno z 80% na 60% pro lepší vzhled */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    animation: float 6s ease-in-out infinite;
}

/* Kulatá cedulka horká novinka */
.intro-badge {
    position: absolute;
    bottom: -1%;
    left: 39%;
    background-color: var(--brand-red);
    color: white;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    transform: rotate(-15deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
    padding: 15px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- PRODUKTY (Grid) --- */
.products-section {
    padding: 80px 10%;
    background-color: var(--white);
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

/* Dekorativní prvek pod nadpisem */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--brand-gold);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Skrytí podtržení v barevných úvodech na stránkách Výroba a Příběh */
.products-section [style*="background-color: var(--brand-red)"] .section-title::after {
    display: none;
}

.intro-header-red .section-title::after {
    display: none;
}

.category-filter {
    margin-bottom: 40px;
}

.category-filter span {
    margin: 0 15px;
    font-weight: 700;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.category-filter span.active, .category-filter span:hover {
    color: var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Karta produktu - to je klíčové pro UX */
.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-soft);
}

.card-img-wrapper {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Efekt při najetí - sáček se zvětší a natočí */
.product-card:hover .card-img-wrapper {
    transform: scale(1.15) rotate(3deg);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-small {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Tlačítko se objeví až při najetí */
.product-card:hover .btn-small {
    opacity: 1;
    transform: translateY(0);
}

/* --- PATIČKA --- */
footer {
    background-color: var(--brand-red);
    color: white;
    padding: 60px 10%;
    text-align: center;
    margin-top: 80px;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.instagram-link {
    font-size: 3rem;
    vertical-align: middle;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.instagram-link:hover {
    color: var(--brand-gold);
    transform: scale(1.2);
    opacity: 1;
}

/* --- KOŠÍK A MODÁLY --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--brand-gold);
    color: var(--brand-blue);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 30px;
    width: 80%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--brand-red);
}

/* Microsite styl v modálu */
.microsite {
    display: flex;
    gap: 40px;
    align-items: center;
}

.microsite-image {
    flex: 1;
    text-align: center;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.microsite-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.microsite-info {
    flex: 1;
}

.microsite-info h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 5px;
}

.microsite-info .tagline {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.microsite-info .price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.microsite-info .description {
    margin-bottom: 30px;
    color: #555;
}

/* Košík položky */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
}

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-actions button {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-actions .remove-btn {
    background-color: var(--brand-red);
    color: white;
}

.cart-item-quantity {
    font-weight: 700;
}

.cart-footer {
    margin-top: 30px;
    text-align: right;
}

.cart-footer .total {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Checkout Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus {
    border-color: var(--brand-red);
}

.price {
    font-weight: 800;
    color: var(--brand-red);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    .intro {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    .intro-text h1 { font-size: 2.5rem; }
    nav { display: none; /* Pro demo schováme menu na mobilu */ }
    .logo { margin: 0 auto; }
    
    .microsite {
        flex-direction: column;
        gap: 20px;
    }
    
    .microsite-info h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
}
/* --- MEDIA QUERIES --- */

/* Tablety a menší desktopy */
@media (max-width: 1024px) {
    .intro {
        padding: 60px 5%;
    }
    
    .intro-logo {
        max-width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* Stránky Výroba a Příběh */
    .products-section div[style*="padding: 100px 5%"] {
        padding: 60px 5% !important;
    }
    
    .products-section h1.section-title[style*="font-size: 5rem"] {
        font-size: 3rem !important;
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-red);
}

/* Mobily (na šířku a velké telefony) */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Změna zpět na row, aby logo a akce byly vedle sebe */
        justify-content: space-between;
        padding: 15px 5%;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px; /* Výška headeru */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: 0.3s;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
    }
    
    .intro {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        min-height: auto;
    }
    
    .intro-text {
        margin-bottom: 0;
    }
    
    .intro-logo, .intro-image {
        display: none;
    }
    
    .intro-decor {
        display: none;
    }

    .microsite {
        flex-direction: column;
        gap: 20px;
    }
    
    .microsite-image {
        height: 250px;
    }
    
    .microsite-info h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }

    /* Příběh - flex wrap */
    .products-section div[style*="display:flex"] {
        flex-direction: column;
    }
    
    .vyroba-step h2 {
        font-size: 1.8rem !important;
    }
}

/* Malé telefony */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    .intro-badge {
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-section h1.section-title[style*="font-size: 5rem"] {
        font-size: 2.2rem !important;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
}