/* KOVAX Polska - Main Stylesheet */

:root {
    --primary: #0090d2;
    --primary-dark: #006d9e;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f5f5f7;
    --white: #fff;
    --gray: #6c757d;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
}

a { text-decoration: none; color: inherit; transition: .3s; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
    background: var(--darker);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--primary); }
.top-bar-contact { display: flex; gap: 25px; }
.top-bar-contact a { display: flex; align-items: center; gap: 6px; }

/* Header */
.header {
    background: var(--dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 45px; }

/* Navigation Menu - Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 12px 14px;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    border-radius: 6px;
}
.nav-menu > li > a:hover {
    background: rgba(0,144,210,.2);
    color: var(--primary);
}

/* Dropdown */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}
.nav-menu li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 14px;
}
.nav-menu .dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}
.nav-menu .dropdown .sep {
    border-top: 1px solid #eee;
    margin: 8px 0;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--light);
    font-size: 14px;
}
.breadcrumb a { color: var(--primary); }

/* Footer */
.footer {
    background: var(--darker);
    color: #fff;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary);
}
.footer p, .footer a {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}
.footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Product Page Styles */
.product-main { padding: 60px 0; background: #fff; }
.product-main .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-gallery { position: sticky; top: 100px; }
.product-gallery-main {
    background: var(--light);
    border-radius: 15px;
    padding: 40px;
}
.product-gallery-main img { width: 100%; border-radius: 10px; }
.product-info h1 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 10px;
}
.product-info .grit-range {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}
.product-info .description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}
.product-features {
    background: var(--light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}
.product-features h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
}
.product-features ul { list-style: none; }
.product-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}
.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.product-cta {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    padding: 25px;
    border-radius: 10px;
    color: #fff;
}
.product-cta h3 { margin-bottom: 10px; }
.product-cta p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}
.product-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover { background: #fff; color: var(--dark); }

/* Responsive - Tablet */
@media (max-width: 968px) {
    .product-main .container { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Ukryj link 2w-polska na mobile */
    .top-bar-link { display: none; }
    .top-bar .container { justify-content: center; }
    .top-bar-contact { gap: 15px; }
    
    .menu-toggle { display: block; }
    
    /* Menu mobilne */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active { display: flex; }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Dropdown na mobile - domyślnie ukryty */
    .nav-menu .dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,.3);
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    /* Pokazuj dropdown gdy parent ma klasę .open */
    .nav-menu li.open > .dropdown { display: block; }
    
    .nav-menu .dropdown a {
        color: #fff;
        padding: 12px 20px 12px 35px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-menu .dropdown a:hover {
        background: rgba(0,144,210,.2);
        color: var(--primary);
    }
    .nav-menu .dropdown .sep { display: none; }
    
    .product-info h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}
