﻿/* --- CSS Cho Dropdown Thuộc tính --- */
.product-option-group {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%; /* Hoặc một độ rộng cố định nếu bạn muốn */
    max-width: 300px;
}

.product-option-select {
    display: block;
    width: 100%;
    padding: 10px 35px 10px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    appearance: none; /* Ẩn mũi tên mặc định của trình duyệt */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .product-option-select:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* Mũi tên tùy chỉnh */
.select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none; /* Đảm bảo bạn vẫn có thể click vào select */
    font-size: 0.8rem;
}


/* --- CSS Cho Chia sẻ (Tối ưu hóa từ ký tự sang Font Awesome) --- */
.share-label {
    font-weight: 600;
    color: #333;
    margin-right: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
    padding-top: 5px;
    align-items: center;
}

.social-link {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.2s;
}

    .social-link.facebook:hover {
        color: #3b5998;
    }

    .social-link.twitter:hover {
        color: #1da1f2;
    }

    .social-link.pinterest:hover {
        color: #bd081c;
    }

    .social-link.email:hover {
        color: #dc3545;
    }






    /*LAYOUT PRODUCT DETAIL*/
/* --- Global Reset & Container --- */
.product-detail-section {
    padding: 3rem 0;
    /* Optional: Remove border-bottom if not needed, as per the original code */
}

.product-detail-layout {
    /* Đảm bảo khoảng cách giữa các cột được kiểm soát tốt */
    --bs-gutter-x: 30px;
    margin-left: calc(-1 * var(--bs-gutter-x) / 2);
    margin-right: calc(-1 * var(--bs-gutter-x) / 2);
    display: flex;
    flex-wrap: wrap;
}

/* --- Product Gallery Column --- */
.product-gallery-col {
    margin-bottom: 2rem; /* learts-mb-40 equivalent */
}

.product-images-wrap {
    position: relative;
    /* Tối ưu hóa không gian cho gallery chính và thumbnail */
}

.product-gallery-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .product-gallery-popup:hover {
        background-color: #333;
        color: #fff;
    }

/* Các lớp cho Slider ảnh chính và Thumbnail (giả định dùng thư viện như Slick/Owl Carousel) */
/* Cần đảm bảo thư viện slider được khởi tạo trên các lớp .product-gallery-slider và .product-thumb-slider */

/* --- Product Summery Column --- */
.product-summery-col {
    margin-bottom: 2rem; /* learts-mb-40 equivalent */
    padding-left: 15px; /* Thêm khoảng đệm cho cột tóm tắt */
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e67e22; /* Màu cam nổi bật cho giá */
    margin-bottom: 1.5rem;
}

/* Product Navigation */
.product-nav {
    display: flex;
    justify-content: flex-end; /* Căn phải hoặc căn đều tùy ý */
    gap: 10px;
    margin-bottom: 1rem;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #333;
    transition: all 0.2s;
    text-decoration: none;
}

    .nav-arrow:hover {
        background-color: #333;
        color: #fff;
        border-color: #333;
    }

    .nav-arrow.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        color: #999;
    }

/* Product Ratings */
.product-ratings {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Description & View More --- */
.product-summery-meta-box {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.short-description-content {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.fade-overlay-style {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /* Sử dụng màu nền của container để tạo hiệu ứng mờ dần */
    background: linear-gradient(transparent, #fff);
}

.view-more-container {
    text-align: right;
    margin-top: 5px;
    padding-top: 5px; /* Thêm chút khoảng đệm */
}

.view-more-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.2s;
}

    .view-more-btn:hover {
        color: #0056b3;
    }

/* --- Quantity & Action Buttons --- */
.action-block-container {
    padding: 1.5rem;
}

.quantity-control-wrap {
    margin-bottom: 1.5rem;
}

.qty-label {
    display: block;
    width: 100%;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background-color: #f5f5f5;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .qty-btn:hover {
        background-color: #e0e0e0;
    }

.qty-input {
    width: 4rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    padding: 0.5rem 0.25rem;
    outline: none;
}

.product-actions-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch; /* Đảm bảo các nút có cùng chiều cao */
}

.action-btn {
    background-color: #f5f5f5;
    border: 1px solid #333;
    padding: 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn, .compare-btn {
    width: 50px; /* Kích thước cố định cho nút tròn */
    height: 50px;
}

.add-to-cart-btn {
    flex: 1; /* Chiếm hết không gian còn lại */
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #333;
    font-weight: 600;
}

    .add-to-cart-btn:hover {
        background-color: #555;
    }

.cart-icon {
    margin-right: 0.5rem;
}

/* --- Options and Share --- */
.product-options-meta-group {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.product-option-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.option-label {
    font-weight: 600;
    color: #333;
    width: 100px; /* Cố định chiều rộng nhãn */
    flex-shrink: 0;
}

.custom-select-wrapper {
    position: relative;
    flex-grow: 1;
}

.product-option-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    appearance: none; /* Ẩn mũi tên mặc định của trình duyệt */
    -webkit-appearance: none;
    background-color: #fff;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none; /* Đảm bảo click vào select box */
}

.share-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}

    .social-link:hover {
        background-color: #333;
        color: #fff;
    }
