
.product-header {
    margin-top: 10px;
    padding: 5px;
    margin-bottom: 20px;
    gap: 20px;
    border: 1px solid #eeeeed;
}
.product-header img {
    max-width: 100%;
    margin-right: 20px;
}
.product-header .rating i {
    color: #ffc107;
}
.product-header .rating span {
    color: #6c757d;
}
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.review {
    margin-bottom: 20px;
}
.review .reviewer {
    font-weight: bold;
}
.review .rating i {
    color: #ffc107;
}
.product-details, .product-reviews {
    border-top: 1px solid #eeeeed;
    padding-top: 20px;
}
.product-details {
    border-bottom: 1px solid #eeeeed;
    padding-bottom: 20px;
}

.image-preview {
    width: 55%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 400px;
    overflow: hidden;
    position: relative;
}

#mainImage {
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.thumbnail-container .thumb {
    width: 70px;      
    height: 70px;     
    object-fit: cover;     
    border: 2px solid #ddd;    
    border-radius: 8px;       
    cursor: pointer;      
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-container .thumb:hover {
    transform: scale(1.1);        
    border-color: #007bff;       
}

/* Kiểu khi thumbnail đã được chọn */
.thumbnail-container .thumb.selected {
    border-color: #28a745;     
    transform: scale(1.1);        
}

.old-price {
    margin: 0;
    text-decoration: line-through;
    color: #888;
    font-size: 1rem; 
    margin-right: 10px; 
    font-weight: normal; 
}


.product-price {
    margin: 5px 0;
    color: #e74c3c;
    font-size: 1.5rem; 
    font-weight: bold;
}

.product-sku {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
}

.product-sku::before {
    content: "🔖 ";
}
.product-stock {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-stock span {
    font-weight: bold;
}

.product-stock .text-success {
    color: #28a745; 
}

.product-stock .text-danger {
    color: #d9534f; 
}

.product-discount {
    font-size: 18px;
    font-weight: bold;
    color: #ff5722; 
    background: #fff3e0;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.product_information{
    flex: 1;
    width: 100%;
    padding: 10px;
}

.box-quantity{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.box-quantity label {
    margin: 0;
    font-weight: 600;
}
.box-quantity .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    max-width: 140px;
}

.box-quantity .btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0c0c0c;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.box-quantity .btn:hover {
    background-color: #0c0c0c;
}

.box-quantity input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
}

.btn.btn-custom {
    padding: 7px 20px;
    border-radius: 2px;
    background-color: #000;
    color: #fff;
    transition: all 0.2s linear;
    border:1px solid #000;
}
.btn.btn-custom:hover  {
    background-color: #fff;
    color: #000;
    border:1px solid #000;
}
.btn-outline-custom {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 2px;
    padding: 7px 20px;
    font-size: 16px;
    transition: 0.3s;
    margin-left: 0px;
}

.btn-outline-custom:hover {
    background-color: #000;
    color: white;
}

.box-product-description img,
.box-product-description table {
    max-width: 100%;
}

.product-reviews .review {
    padding: 10px;
}

.review-item-box {
    gap: 10px;
}

.review-content {
    margin-bottom: 0;
    margin-top: 5px;
}

.admin-reply {
    background-color: #f8f9fa;
    border-left: 4px solid #2c8660;
    border-radius: 8px;
    padding: 5px 10px;
    margin-top: 10px;
    margin-left: 20px;
}

.admin-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.admin-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.admin-name {
    font-size: 1rem;
    font-weight: bold;
    color: #2c8660;
}

.admin-message {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}
/* Pre-Order Box */
.preorder-info {
    background: linear-gradient(135deg, #333, #000);
    color: #ffeb3b;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: glow 1.5s infinite alternate;
}

/* Badge Pre-Order */
.preorder-badge {
    background: #ffeb3b;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Hiệu ứng Pre-Order */
@keyframes glow {
    0% { box-shadow: 0px 0px 10px rgba(255, 235, 59, 0.3); }
    100% { box-shadow: 0px 0px 20px #c3c3c3b3; }
}


@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    .product-header {
        flex-direction: column;
        gap: 15px;
    }

    .product-header img {
        width: 100%;
        margin: 0;
    }
    .image-preview {
        width: 100%;
        height: 300px;
    }
    .box-btn-action {
        flex-direction: column;
    }
    .btn-outline-custom  {
        margin: 0;
        margin-top: 10px;
    }
    .admin-reply {
        margin-left: 10px;
    }

    .product-details {
        padding: 0px 10px;
    }
}