/* style_product.css - stejný vibe jako index.php, ale pro detailní stránku */

:root {
    --bg: #1a1a1a;
    --bg-elevated: #2a2a2a;
    --bg-soft: #3a3a3a;
    --accent: #b8a600;
    --accent-soft: rgba(184,166,0,0.15);
    --accent-strong: #cc9828;
    --text: #f5f5f5;
    --text-soft: #a8a8a8;
    --danger: #dc3545;
    --success: #28a745;
    --border-subtle: rgba(255,255,255,0.12);
    --radius: 10px;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Layout */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(184,166,0,0.3);
}

.logo-text {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 1.15rem;
}

.logo-text span {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(42,42,42,0.8);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-strong);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    border-radius: 25px;
    background: rgba(42,42,42,0.9);
    border: 1px solid var(--border-subtle);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184,166,0,0.4);
}

.nav-ghost {
    opacity: 0.85;
}

/* Main */

.main {
    min-height: calc(100vh - 116px);
    padding: 2rem 0 3rem;
}

/* Alerts */

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.6rem;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(40,167,69,0.15);
    color: var(--success);
    border: 1px solid rgba(40,167,69,0.3);
}

/* Breadcrumb */

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Detail */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: rgba(42,42,42,0.9);
}

.main-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition);
}

.main-image:hover img {
    transform: scale(1.02);
}

.no-image-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px;
    background: linear-gradient(135deg, #404040, #303030);
    color: var(--text-soft);
    font-size: 1.1rem;
    border-radius: 14px;
}

.image-gallery {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex: 1;
    min-width: 85px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(184,166,0,0.3);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-details h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.product-price-large {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 0.8rem;
}

.product-stock {
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-stock.in-stock {
    background: rgba(40,167,69,0.15);
    color: var(--success);
    border: 1px solid rgba(40,167,69,0.3);
}

.product-stock.out-of-stock {
    background: rgba(220,53,69,0.15);
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.3);
}

.add-to-cart-form {
    margin: 1.2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-large {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #111;
    box-shadow: 0 4px 16px rgba(184,166,0,0.3);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,166,0,0.4);
}

/* Product Sections */

.product-sections {
    margin-top: 2rem;
}

.product-section {
    margin-bottom: 2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--border-subtle);
}

.product-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.4rem;
}

.product-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.product-section p {
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 1rem;
}

/* Footer */

.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(26,26,26,0.8);
    padding: 1.8rem 0 2rem;
    margin-top: 3rem;
}

.footer .container {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

/* Responsive */

@media (max-width: 960px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-image img,
    .no-image-large {
        height: 400px;
    }
    
    .gallery-thumb {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 0 1rem;
        gap: 0.8rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main {
        padding-top: 1.6rem;
    }
    
    .main-image img,
    .no-image-large {
        height: 350px;
    }
    
    .product-detail {
        gap: 1.6rem;
    }
    
    .product-details h1 {
        font-size: 1.9rem;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .image-gallery {
        gap: 0.6rem;
    }
    
    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .main-image img,
    .no-image-large {
        height: 300px;
    }
    
    .product-section {
        padding: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-bottom: none;
        border-radius: 10px;
        background: rgba(42,42,42,0.5);
        margin-bottom: 1rem;
    }
    
    .product-section h3 {
        font-size: 1.15rem;
    }
}
