/* Product Detail Page Styles */
.product-detail-section {
    padding: 80px 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Left Column - Product Info */
.product-info-column {
    padding: 0 20px;
}

.product-title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    padding-bottom: 20px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2c3e50;
}

.product-categories {
    margin-bottom: 40px;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.product-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    padding: 30px;
    margin-bottom: 40px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 30px;
    font-weight: 400;
}

.qr-code-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-specs {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.product-specs h5 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-specs p {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.product-specs p strong {
    min-width: 120px;
    color: #2c3e50;
    font-weight: 600;
}

/* Right Column - Gallery */
.gallery-column {
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item__link {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.gallery-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-item__image {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-detail-section {
        padding: 60px 0;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-info-column {
        padding: 0 20px;
    }

    .product-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-info-column {
        padding: 0 15px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .product-specs {
        padding: 20px;
    }

    .product-content {
        padding: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        padding: 15px;
    }
}