/* ========================================
   PRODUCT DETAIL PAGE - Univision
   Based on SieuMua247 design
======================================== */

/* Breadcrumb */
.uv-detail-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
}

.uv-detail-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.uv-detail-breadcrumb .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.uv-detail-breadcrumb a {
    color: #0035a8;
    text-decoration: none;
    white-space: nowrap;
}

.uv-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.uv-detail-breadcrumb .separator {
    color: #9ca3af;
}

.uv-detail-breadcrumb .current {
    color: #0035a8;
    font-weight: 700;
    white-space: nowrap;
}

/* Product Detail Section */
.uv-product-detail-section {
    background: #f1f5f9;
    padding: 30px 0;
}

.uv-product-detail-wrapper {
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Product Gallery */
.uv-product-gallery {
    flex: 0 0 450px;
    max-width: 450px;
}

.uv-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 15px;
}

.uv-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.uv-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uv-gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.uv-gallery-thumb:hover,
.uv-gallery-thumb.active {
    border-color: #0035a8;
}

.uv-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Product Info */
.uv-product-info {
    flex: 1;
}

.uv-product-info-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.uv-product-info-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.uv-product-info-rating .uv-stars {
    display: flex;
    gap: 3px;
}

.uv-product-info-rating .uv-stars i {
    color: #fbbf24;
    font-size: 14px;
}

.uv-product-info-rating .uv-review-count {
    color: #0035a8;
}

.uv-product-info-rating .uv-sold-count {
    color: #6b7280;
}

/* Price */
.uv-product-info-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.uv-product-info-price .uv-old-price {
    font-size: 16px;
    color: #6b7280;
    text-decoration: line-through;
}

.uv-product-info-price .uv-current-price {
    font-size: 28px;
    font-weight: 700;
    color: #ce0030;
}

.uv-product-info-price .uv-discount-badge {
    background: #0035a8;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Meta */
.uv-product-info-meta {
    margin-bottom: 25px;
}

.uv-product-info-meta .uv-meta-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #e5e7eb;
}

.uv-product-info-meta .uv-meta-item:last-child {
    border-bottom: none;
}

.uv-product-info-meta .uv-meta-label {
    color: #6b7280;
    min-width: 100px;
}

.uv-product-info-meta .uv-meta-value {
    color: #1f2937;
    font-weight: 500;
}

.uv-product-info-meta .uv-meta-value.uv-points {
    color: #0035a8;
    font-weight: 700;
}

/* Quantity Selector */
.uv-quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.uv-quantity-box {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.uv-quantity-btn {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #374151;
    transition: background 0.3s;
}

.uv-quantity-btn:hover {
    background: #e5e7eb;
}

.uv-quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

/* Actions */
.uv-product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.uv-btn-add-cart {
    flex: 1;
    max-width: 280px;
    padding: 14px 25px;
    background: #0035a8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.uv-btn-add-cart:hover {
    background: #002a86;
    transform: translateY(-2px);
}

.uv-btn-add-cart.uv-btn-exchange {
    background: #ce0030;
}

.uv-btn-add-cart.uv-btn-exchange:hover {
    background: #a80026;
}

.uv-btn-favorite {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9ca3af;
    transition: all 0.3s;
}

.uv-btn-favorite:hover,
.uv-btn-favorite.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* Share */
.uv-product-share {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.uv-share-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.uv-share-buttons {
    display: flex;
    gap: 10px;
}

.uv-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
}

.uv-share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.uv-share-btn.copy { background: #64748b; }
.uv-share-btn.facebook { background: #1877f2; }
.uv-share-btn.zalo {
    background: #0068ff;
    font-weight: 700;
    font-size: 14px;
}

/* Installment Section */
.uv-installment-section {
    background: #f1f5f9;
    padding: 0 0 30px;
}

.uv-installment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.uv-installment-option {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.uv-installment-option:hover {
    border-color: #0035a8;
    transform: translateY(-2px);
}

.uv-installment-months {
    font-size: 16px;
    font-weight: 700;
    color: #0035a8;
    margin-bottom: 5px;
}

.uv-installment-monthly {
    font-size: 18px;
    font-weight: 700;
    color: #ce0030;
    margin-bottom: 5px;
}

.uv-installment-total {
    font-size: 13px;
    color: #6b7280;
}

/* Description Section */
.uv-description-section {
    background: #f1f5f9;
    padding: 0 0 40px;
}

.uv-section-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.uv-section-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.uv-description-content {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.uv-description-content img {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

.uv-description-content.expanded {
    max-height: none;
}

.uv-description-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
}

.uv-description-content.expanded::after {
    display: none;
}

.uv-btn-read-more {
    display: block;
    text-align: center;
    padding: 12px;
    color: #0035a8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.uv-btn-read-more:hover {
    background: #e5e7eb;
}

/* FAQ */
.uv-faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uv-faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.uv-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.3s;
}

.uv-faq-question:hover {
    color: #0035a8;
}

.uv-faq-question i {
    font-size: 14px;
    transition: transform 0.3s;
}

.uv-faq-item.active .uv-faq-question i {
    transform: rotate(180deg);
}

.uv-faq-answer {
    display: none;
    padding: 0 20px 15px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.uv-faq-item.active .uv-faq-answer {
    display: block;
}

/* Reviews */
.uv-reviews-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.uv-reviews-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.uv-reviews-score {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 120px;
}

.uv-reviews-score-number {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.uv-reviews-score-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 8px;
}

.uv-reviews-score-stars i {
    color: #fbbf24;
    font-size: 14px;
}

.uv-reviews-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.uv-review-filter-btn {
    padding: 8px 16px;
    border: none;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
}

.uv-review-filter-btn:hover,
.uv-review-filter-btn.active {
    background: #0035a8;
    color: #fff;
}

.uv-reviews-action {
    text-align: right;
}

.uv-reviews-action p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.uv-btn-write-review {
    padding: 12px 30px;
    background: #0035a8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.uv-btn-write-review:hover {
    background: #002a86;
}

.uv-review-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.uv-review-empty i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Related Products */
.uv-related-products-section {
    background: #f1f5f9;
    padding: 0 0 60px;
}

.uv-related-products-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
}

.uv-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.uv-related-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.uv-related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.uv-related-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.uv-related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s;
}

.uv-related-product-card:hover .uv-related-product-image img {
    transform: scale(1.05);
}

.uv-related-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ce0030;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.uv-related-product-info {
    padding: 15px;
}

.uv-related-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.uv-related-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.uv-related-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.uv-related-current-price {
    font-size: 16px;
    font-weight: 700;
    color: #ce0030;
}

.uv-related-product-points {
    font-size: 13px;
    color: #0035a8;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .uv-related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .uv-product-detail-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .uv-product-gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .uv-product-info-title {
        font-size: 20px;
    }

    .uv-related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .uv-product-info-price .uv-current-price {
        font-size: 22px;
    }

    .uv-reviews-header {
        flex-direction: column;
    }

    .uv-reviews-summary {
        flex-direction: column;
        width: 100%;
    }

    .uv-reviews-action {
        text-align: left;
        width: 100%;
    }

    .uv-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .uv-btn-add-cart {
        max-width: none;
    }

    .uv-installment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .uv-product-detail-wrapper {
        padding: 15px;
    }

    .uv-gallery-main {
        aspect-ratio: 1;
    }

    .uv-gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .uv-product-info-title {
        font-size: 18px;
    }

    .uv-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .uv-section-box {
        padding: 15px;
    }

    .uv-reviews-filters {
        gap: 5px;
    }

    .uv-review-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
