/* assets/css/products.css */

.product-page{
    display:flex;
    flex-direction:column;
    gap:35px;
}

/* HERO */
.product-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 420px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
}

.product-hero img {
    position: absolute;
    top: 0;
    right: 12%; /* Posunieme ho trochu od pravého kraja, aby nebol nalepený */
    width: 35%; /* Šírka podľa tvojho želania (napr. 40-45%) */
    height: 100%;
    object-fit: cover;
    
    /* Obostranný fade: zľava do tmy (0-30%) a zprava do tmy (70-100%) */
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    
    opacity: 0.90; /* Jemné stlmenie, aby to pôsobilo decentne */
    border-radius: var(--radius-lg); /* Ak chceš jemne zaobliť aj samotný obrázok */
}

.product-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 750px;
    color: #ffffff;
    background: linear-gradient(
        90deg,
        rgba(17,17,17,1) 0%,
        rgba(17,17,17,0.85) 50%,
        rgba(17,17,17,0) 100%
    );
}

.product-hero-content h1 {
    margin: 0 0 15px;
    font-size: 2.8rem;
}

.product-hero-content p {
    max-width: 650px;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
}

/* PRODUCT CONTENT */
.product-content {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.product-content-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.product-content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-content-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--primary);
}

.product-content-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.product-content-section ul {
    padding-left: 22px;
    margin: 0;
    line-height: 2;
    color: var(--text-muted);
}

/* BRANDS */
.product-brand-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-brand-list span {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
}

/* GALLERY */
.product-gallery-section h2 {
    margin-bottom: 20px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* CONTACT BOX */
.product-contact-box {
    text-align: center;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 45px;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--primary);
}

.product-contact-box h2 {
    margin-top: 0;
}

.product-contact-box p {
    max-width: 700px;
    margin: 20px auto 35px;
    line-height: 1.8;
    color: #cccccc;
}

/* Špecifické tlačidlo pre produktovú sekciu, aby neprepisovalo globálne .btn */
.product-contact-box .btn {
    background: var(--primary);
    color: #ffffff;
}

.product-contact-box .btn:hover {
    background: var(--primary-hover);
}