﻿
.product-details-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

/* Breadcrumb */
.custom-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

    .custom-breadcrumb .breadcrumb-item a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 500;
    }

    .custom-breadcrumb .breadcrumb-item.active {
        color: #6c757d;
        font-weight: 600;
    }

/* Left Image Card */
.product-gallery-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-product-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.main-image-wrapper:hover .main-product-img {
    transform: scale(1.04);
}

.detail-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 2;
}

.zoom-btn {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

    .zoom-btn:hover {
        background: #0d6efd;
        color: #fff;
    }

/* Thumbnail */
.thumbnail-row {
    flex-wrap: wrap;
}

.thumb-item {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    flex: 0 0 auto;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .thumb-item:hover,
    .thumb-item.active {
        border-color: #0d6efd;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.18);
    }

/* Right Info */
.product-detail-info {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.category-badge {
    display: inline-block;
    background: #e8f1ff;
    color: #0d6efd;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-text {
    color: #6c757d;
    font-size: 14px;
}

.product-title {
    font-size: 30px;
    font-weight: 800;
    color: #1b1f24;
    line-height: 1.3;
    margin-bottom: 14px;
}

.rating-section {
    flex-wrap: wrap;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .stars i {
        color: #ffc107;
        font-size: 15px;
    }

.rating-count {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.sold-count {
    color: #198754;
    font-size: 14px;
    font-weight: 600;
}

/* Price */
.price-section {
    background: #f8fbff;
    border: 1px solid #e3efff;
    border-radius: 16px;
    padding: 18px;
}

.detail-current-price {
    font-size: 34px;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
}

.detail-old-price {
    font-size: 18px;
    color: #9aa1a9;
    text-decoration: line-through;
    font-weight: 500;
}

.detail-discount {
    background: #eaf8ee;
    color: #198754;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.tax-info {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

/* Description */
.short-desc h6 {
    color: #1b1f24;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 7px 0;
        color: #495057;
        font-size: 15px;
    }

        .feature-list li i {
            margin-top: 3px;
            font-size: 15px;
        }

/* Buttons */
.action-buttons {
    margin-top: 10px;
}

.btn-add-cart,
.btn-buy-now {
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background: linear-gradient(135deg, #0d6efd, #4f46e5);
    color: #fff;
}

    .btn-add-cart:hover {
        background: linear-gradient(135deg, #0b5ed7, #4338ca);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
    }

.btn-buy-now {
    background: linear-gradient(135deg, #ff7b00, #ff5722);
    color: #fff;
}

    .btn-buy-now:hover {
        background: linear-gradient(135deg, #e86f00, #f4511e);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 87, 34, 0.25);
    }

/* Responsive */
@media (max-width: 991px) {
    .main-product-img {
        height: 350px;
    }

    .product-title {
        font-size: 24px;
    }

    .detail-current-price {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .product-gallery-card,
    .product-detail-info {
        padding: 18px;
        border-radius: 16px;
    }

    .main-product-img {
        height: 280px;
    }

    .thumb-item {
        width: 64px;
        height: 64px;
    }

    .product-title {
        font-size: 22px;
    }

    .detail-current-price {
        font-size: 26px;
    }

    .detail-old-price {
        font-size: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-product-img {
        height: 240px;
    }

    .product-title {
        font-size: 20px;
    }

    .thumb-item {
        width: 58px;
        height: 58px;
    }

    .price-section .d-flex {
        gap: 10px !important;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .label-cell {
        width: 45%;
        font-size: 13px;
        padding: 10px 12px 10px 18px !important;
    }

    .value-cell {
        width: 55%;
        font-size: 13px;
        padding: 10px 12px !important;
    }

    .product-table-section h6 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .label-cell {
        white-space: normal;
        font-size: 12px;
    }

    .value-cell {
        font-size: 12px;
    }
}