/* =============================================
   PRODUCTS PAGE STYLES
============================================= */

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px var(--side-padding);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #cccccc;
    margin: 0;
}

/* Full Width Banner */
.banner-section {
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Products List Section */
.products-list-section {
    padding: 50px var(--side-padding);
    background-color: #f8f9fa;
}

.products-list-section .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Item */
.product-item {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.product-item:last-child {
    margin-bottom: 0;
}

/* Product Images */
.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.product-image-main {
    min-height: 450px;
}

.product-image-secondary {
    min-height: 450px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* Lightbox Icon */
.lightbox-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(58, 58, 58, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-image:hover .lightbox-icon {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

/* Product Details */
.product-details {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 450px;
    background-color: #f8f9fa;
}

.product-code {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-title {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-description {
    font-size: 14px;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Product Features */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 12px;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-block;
    text-align: center;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-block;
    text-align: center;
}

.btn-secondary-custom:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE - TABLET
============================================= */
@media (max-width: 991px) {
    .page-header {
        padding: 50px var(--side-padding);
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .banner-image {
        height: 300px;
    }
    
    .products-list-section {
        padding: 40px var(--side-padding);
    }
    
    .product-image-main,
    .product-image-secondary {
        min-height: 350px;
    }
    
    .product-details {
        padding: 35px 25px;
        min-height: 350px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-description {
        font-size: 13px;
    }
    
    .product-features li {
        font-size: 12px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        font-size: 12px;
        padding: 9px 18px;
    }
}

/* =============================================
   RESPONSIVE - MOBILE
============================================= */
@media (max-width: 767px) {
    .page-header {
        padding: 40px 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .banner-image {
        height: 250px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        opacity: 1;
    }
    
    .products-list-section {
        padding: 30px 20px;
    }
    
    .product-item {
        margin-bottom: 20px;
    }
    
    .product-item .row {
        flex-direction: column;
    }
    
    /* Stack order: Main image > Details > Secondary image */
    .product-item .col-md-6 {
        order: 1;
    }
    
    .product-item .col-md-3:first-of-type {
        order: 2;
    }
    
    .product-item .col-md-3:last-of-type {
        order: 3;
    }
    
    .product-image-main {
        min-height: 250px;
        max-height: 250px;
    }
    
    .product-image-secondary {
        min-height: 200px;
        max-height: 200px;
    }
    
    .product-details {
        padding: 30px 25px;
        min-height: auto;
    }
    
    .product-code {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .product-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .product-features {
        margin-bottom: 20px;
    }
    
    .product-features li {
        padding: 5px 0;
        font-size: 12px;
    }
    
    .product-features li i {
        font-size: 11px;
        margin-right: 8px;
    }
    
    .product-actions {
        gap: 10px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* =============================================
   VERY SMALL MOBILE
============================================= */
@media (max-width: 375px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .product-details {
        padding: 25px 20px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-description {
        font-size: 12px;
    }
}