/* =======================================================
   ZÁKLADNÉ NASTAVENIA
======================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: #f4f7f6; }

/* =======================================================
   LIŠTA S MENU (NAVBAR)
======================================================= */
nav {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}
nav a:hover, nav a.active {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
}

/* =======================================================
   HLAVNÝ ÚVODNÝ BLOK (HERO SECTION)
======================================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('pozadie.jpg');
    background-size: cover;
    background-attachment: scroll;
    background-position: center center; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    z-index: 10;
    padding: 20px;
    margin-top: -150px; 
}

.hero-content h1 {
    font-size: clamp(60px, 10vw, 115px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.8);
    line-height: 1;
    color: #ffffff;
}

.hero-content p {
    font-size: clamp(18px, 2vw, 26px);
    max-width: 900px;
    margin: 0 auto 45px;
    font-weight: 600;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.8);
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* =======================================================
   TLAČIDLÁ
======================================================= */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background: #2ecc71;
    color: white;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.5);
    border: 2px solid #2ecc71;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(5px);
}

.btn:hover {
    transform: translateY(-5px);
    background: white;
    color: #1e293b;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* =======================================================
   PÁSIK VÝHOD
======================================================= */
.features-bar {
    background: #1e293b;
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}
.feature { display: flex; align-items: center; gap: 15px; text-align: left; }
.feature i { font-size: 35px; color: #2ecc71; }
.feature h4 { margin: 0; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.feature p { margin: 0; font-size: 13px; color: #94a3b8; }

/* =======================================================
   NAJNOVŠIE PRODUKTY
======================================================= */
.new-products-section { max-width: 1400px; margin: 80px auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 32px; color: #1e293b; margin-bottom: 50px; font-weight: 800; text-transform: uppercase; }
.section-title span { color: #2ecc71; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.karta { background: white; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; transition: 0.3s; display: flex; flex-direction: column; position: relative; }
.karta:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.foto-obal { height: 300px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.foto-obal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.nazov { font-size: 18px; font-weight: 600; color: #222; height: 55px; overflow: hidden; margin-top: 10px; transition: 0.2s; }
.nazov:hover { color: #0277bd; }
.cena { font-size: 24px; color: #e63946; font-weight: 800; }
.btn-kupit { background: transparent; color: #27ae60; text-decoration: none; padding: 8px 20px; border: 2px solid #27ae60; border-radius: 8px; font-size: 15px; font-weight: 700; text-align: center; transition: 0.3s; }
.btn-kupit:hover { background: #27ae60; color: white; }
.spodok-karty { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #f5f5f5; }

.favorite-btn { position: absolute; top: 15px; right: 15px; background: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: 0.2s; z-index: 10; }
.favorite-btn:hover { transform: scale(1.1); }
.favorite-btn i { font-size: 20px; color: #ccc; transition: 0.2s; }
.favorite-btn.active i { color: #e74c3c; }

/* =======================================================
   PÄTIČKA (FOOTER)
======================================================= */
footer { background: #0f172a; color: #94a3b8; padding: 60px 20px; text-align: center; }
footer .copy { color: white; font-weight: 600; display: block; margin-bottom: 10px; }
footer p { margin: 5px 0; font-size: 14px; }

/* =======================================================
   RESPONZIVITA (MOBILNÉ ZOBRAZENIE)
======================================================= */
@media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .features-bar { gap: 30px; flex-direction: column; align-items: center; text-align: center; }
    .feature { flex-direction: column; gap: 10px; }
}

@media (max-width: 768px) {
    .hero { background-attachment: scroll; background-position: center center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: 55px; letter-spacing: 4px; }
    .hero-content { margin-top: -80px; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .karta:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 5px); margin: 0 auto; }
    .foto-obal { height: 180px; padding: 10px; }
    .info { padding: 15px; }
    .nazov { font-size: 14px; height: 42px; margin-top: 5px; }
    .cena { font-size: 18px; }
    .btn-kupit { padding: 6px 12px; font-size: 13px; }
    .favorite-btn { width: 32px; height: 32px; top: 8px; right: 8px; }
    .favorite-btn i { font-size: 15px; }
}