/* Product Detail Page - Clean Design */

/* Container */
.product-detail-wrapper {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 30px 20px;
}

/* Category Banner */
.category-banner {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Top Header Section */
.product-detail-header {
    margin-bottom: 25px;
}

.product-detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    padding: 0;
}

.product-detail-divider {
    height: 1px;
    background: #d0c4e8;
    border: none;
    margin: 0;
}

/* Main Content Section - Image + Info */
.product-main-content {
    display: grid;
    grid-template-columns: 1fr 900px;
    gap: 30px;
    margin-top: 25px;
}

/* Left: Main Product Image */
.product-main-image {
    background: #000;
    /*border-radius: 8px;*/
    overflow: hidden;
    width: 100%;
    /*aspect-ratio: 1/1;*/
    max-width: 460px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border: 1px solid #ffffff;
    /*border-radius: 10px;*/
}

/* Right: Product Info Card */
.product-info-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.product-shortcode {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #e1ad14;
    margin: 0;
}

.product-contact-text {
    font-size: 20px;
    color: #fff;
    margin: 10px 0;
}

/* Social Buttons */
.product-social-buttons {
    display: flex;
    /*justify-content: center;*/
    gap: 12px;
    /*margin: 20px 0;*/
    /*padding: 0 20px;*/
}

.product-social-btn {
    padding: 15px 36px;
    border: none;
    border-radius: 5px;
    /*font-size: 12px;*/
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(220, 227, 235, 0.9);
    color: #1877F2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    text-align: center;
}

.product-social-btn.facebook {
    background: rgba(220, 227, 235, 0.9);
    color: #1877F2;
}

.product-social-btn.facebook:hover {
    background: rgba(220, 227, 235, 1);
    color: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.product-social-btn.zalo {
    background: rgba(220, 227, 235, 0.9);
    color: #0084FF;
    width: 160px;
}

.product-social-btn.zalo:hover {
    background: rgba(220, 227, 235, 1);
    color: #0074e4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.product-social-btn img {
    width: 14px;
    height: 14px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .product-social-buttons {
        gap: 8px;
        padding: 0 15px;
        margin: 15px 0;
    }
    
    .product-social-btn {
        padding: 5px 12px;
        font-size: 11px;
        gap: 4px;
        min-width: 100px;
    }
    
    .product-social-btn img {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .product-social-buttons {
        gap: 6px;
        padding: 0 10px;
    }
    
    .product-social-btn {
        padding: 10px 10px;
        font-size: 10px;
        gap: 3px;
        min-width: 160px;
    }
    
    .product-social-btn img {
        width: 11px;
        height: 11px;
    }
}

/* Product Images Section (6 slots) */
.product-images-section {
    margin-top: 40px;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-image-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #000;
    /*border-radius: 8px;*/
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.product-image-slot:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #ffffff;
    /*border-radius: 10px;*/
}

.product-image-slot.empty-slot {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.product-image-slot.empty-slot:hover {
    transform: none;
    box-shadow: none;
}

.product-image-slot.empty-slot i {
    font-size: 32px;
    color: #ccc;
}

/* Related Products Section */
.related-products-section {
    margin-top: 50px;
    margin-bottom: -55px;
    background-color: #e6e6f5;
    padding: 40px 0;
    /* Full-width background technique */
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 15px);
    padding-right: calc(50vw - 50% + 15px);
}

.related-products-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    text-align: left;
}

.related-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive */
@media (max-width: 968px) {
    .product-main-content {
        grid-template-columns: 1fr;
    }
    
    .product-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-detail-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 26px;
    }
    
    .product-images-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    
    .related-products-section {
        /* Maintain full-width background on mobile */
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 10px);
        padding-right: calc(50vw - 50% + 10px);
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-products-title {
        font-size: 20px;
    }
}
