/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* RESET A ZÁKLADY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    min-height: 100vh;
    font-family: 'Exo 2', sans-serif;
    color: #ffffff;
    background-color: #000814;
    display: flex;
    flex-direction: column;
}

/* VIDEO NA POZADÍ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.85) contrast(1.1);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 15, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00a8ff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link.active, .nav-link:hover {
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.15);
    border-color: #00a8ff;
}

.cart-button {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    font-weight: 600 !important;
    border: 1px solid #28a745 !important;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 100px 20px 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.eshop-header {
    text-align: center;
    margin-bottom: 30px;
}

.eshop-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: #00a8ff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.eshop-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* KARTY PRODUKTŮ */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: rgba(0, 15, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 168, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 168, 255, 0.6);
    box-shadow: 0 12px 25px rgba(0, 168, 255, 0.2);
}

.product-image {
    width: 100%;
    max-width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.details-button {
    background: linear-gradient(45deg, #007bff, #00a8ff);
    color: white;
    padding: 6px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.details-button:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.product-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00a8ff;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

.product-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid rgba(0, 168, 255, 0.5);
    border-radius: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.buy-button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* POČÍTADLO */
.counter-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.counter-container {
    text-align: center;
    padding: 20px 35px;
    background: rgba(0, 15, 30, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(0, 168, 255, 0.4);
    backdrop-filter: blur(10px);
}

.counter-label {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.counter-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00a8ff;
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.6);
}

.counter-increment {
    font-size: 0.85rem;
    color: #28a745;
    margin-top: 5px;
}

/* HLÁŠKY */
.alert-success, .alert-error {
    max-width: 600px;
    margin: 15px auto;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
.alert-success { background: rgba(40, 167, 69, 0.4); border: 1px solid #28a745; }
.alert-error { background: rgba(220, 53, 69, 0.4); border: 1px solid #dc3545; }

/* FOOTER */
.site-footer {
    background: rgba(0, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 168, 255, 0.3);
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #00a8ff;
}

.footer-copyright {
    color: #777;
    font-size: 0.8rem;
}

/* RESPONZIVITA */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    .main-content {
        padding-top: 130px;
    }
    .eshop-title {
        font-size: 2rem;
    }
}