/* --- 1. ZÁKLADNÍ NASTAVENÍ --- */

:root {
    --primary-brown: #4E342E;
    --secondary-wood: #8D6E63;
    --bg-creme: #F5F5DC;
    --text-dark: #1a1a1a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-creme);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.brand-btn,
.hero-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link,
.btn {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}


/* --- 2. HLAVIČKA --- */

header {
    background-color: var(--bg-creme);
    height: 90px;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* LOGO */

.logo-container {
    display: flex;
    align-items: center;
}


/* NAVIGACE - STŘED */

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link:hover {
    color: var(--secondary-wood);
    text-decoration: underline;
}


/* PRAVÁ STRANA */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-checkbox,
.burger-icon {
    display: none;
}


/* --- 3. KOŠÍK --- */

.cart-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-btn {
    background: var(--primary-brown);
    color: var(--bg-creme);
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    background: var(--white);
    border: 2px solid var(--primary-brown);
    padding: 1.5rem;
    transition: 0.3s;
    z-index: 1001;
}

.cart-wrapper:hover .cart-dropdown {
    visibility: visible;
    opacity: 1;
    top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}


/* --- 4. HERO SLIDER --- */

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
    border-bottom: 3px solid var(--primary-brown);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    width: 100%;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.hero-btn {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.hero-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 30s infinite;
}

.slide_1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Dunk_Low_Yellow.png');
    animation-delay: 0s;
}

.slide_2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Nike_Air_Max_Plus.png');
    animation-delay: 5s;
}

.slide_3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Nike_Air_force.png');
    animation-delay: 10s;
}

.slide_4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/SB_Dunk_Low_strangelove.png');
    animation-delay: 15s;
}

.slide_5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Nike_Air_Max_90.png');
    animation-delay: 20s;
}

.slide_6 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Jordan_1_Retro.png');
    animation-delay: 25s;
}

@keyframes slideshow {
    0%,
    17% {
        opacity: 1;
        transform: scale(1);
    }
    21%,
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}


/* --- 5. GRID --- */

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 1rem;
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-brown);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-wood);
}


/* ZMĚNA ZDE - ČTVERCOVÝ OBRÁZEK */

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Vynutí dokonalý čtverec */
    object-fit: cover;
    /* Zajistí, že se fotka nedeformuje */
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-buy {
    background: var(--primary-brown);
    color: var(--bg-creme);
    padding: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: auto;
    font-weight: 700;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--secondary-wood);
    color: white;
}


/* --- 6. OSTATNÍ --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    background: #fafafa;
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

footer {
    background: var(--primary-brown);
    color: var(--bg-creme);
    text-align: center;
    padding: 3rem;
    margin-top: auto;
}


/* --- RESPONZIVITA --- */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    header {
        height: auto;
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }
    .logo-container {
        margin-right: auto;
        order: 1;
    }
    /* Logo na mobilu menší */
    .logo-container img {
        height: 100px !important;
    }
    .header-right {
        order: 2;
    }
    .burger-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--primary-brown);
        margin-left: 15px;
    }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background-color: var(--bg-creme);
        border-top: 2px solid var(--primary-brown);
        margin-top: 1rem;
        padding: 1rem 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .main-nav li {
        border-bottom: 1px solid rgba(78, 52, 46, 0.2);
    }
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
    .menu-checkbox:checked~.main-nav {
        display: block;
    }
    .cart-dropdown {
        width: 90vw;
        right: 0;
        top: 50px;
        position: fixed;
        left: 5%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-slider {
        height: 60vh;
    }
    /* Mobil: produkty pod sebou */
    .grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}