﻿/* --- BREADCRUMB --- */
.breadcrumb-area {
    padding: 30px 0;
    margin-top: 20px;
}

.breadcrumb-content {
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    color: #666;
}

    .breadcrumb-content a {
        text-decoration: none;
        color: #4B3022;
        transition: 0.3s;
    }

        .breadcrumb-content a:hover {
            color: #FFD700;
        }

    .breadcrumb-content .divider {
        margin: 0 10px;
    }

    .breadcrumb-content .current {
        font-weight: 600;
    }

/* --- MAIN LAYOUT --- */
.product-detail-section {
    padding-bottom: 80px;
}

.row-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 80px;
}

/* --- COLUMN LEFT: GALLERY --- */
.col-gallery {
    flex: 1;
    min-width: 350px;
    max-width: 500px; /* Giới hạn chiều rộng ảnh */
}

.gallery-main {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
}

    .gallery-main .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* Mũi tên slider đổi màu theo theme */
    .gallery-main .swiper-button-next,
    .gallery-main .swiper-button-prev {
        color: var(--theme-color, #4B3022);
        background: rgba(255,255,255,0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transform: scale(0.7);
    }

.gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

    .gallery-thumbs .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.6;
        cursor: pointer;
        border-radius: 10px;
        overflow: hidden;
        border: 2px solid transparent;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border-color: #4B3022;
    }

    .gallery-thumbs .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- COLUMN RIGHT: INFO --- */
.col-info {
    flex: 1;
    min-width: 350px;
}

.badges-wrapper {
    margin-bottom: 15px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-family: "Kanit", sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
}

    .badge.sale {
        background: #ff6b81;
    }

    .badge.hot {
        background: #FFD700;
        color: #4B3022;
    }

.p-name {
    font-family: "Pacifico", cursive;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.p-rating {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.p-price {
    font-family: "Kanit", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #aaa;
    font-weight: 400;
}

.p-desc {
    font-family: "Kanit", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.p-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

    .p-features li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

/* FORM CART */
.p-form {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    height: 50px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4B3022;
}

    .qty-btn:hover {
        background: #f0f0f0;
    }

.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: "Kanit";
    font-weight: bold;
    font-size: 1.1rem;
    color: #4B3022;
    background: transparent;
}
    /* Ẩn mũi tên input number */
    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.btn-add-to-cart {
    flex: 1;
    min-width: 180px;
    height: 50px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: "Kanit", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

    .btn-add-to-cart:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

.btn-wishlist {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #4B3022;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

    .btn-wishlist:hover {
        background: #4B3022;
        color: #fff;
        border-color: #4B3022;
    }

/* Meta & Social */
.p-meta {
    font-family: "Kanit", sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

    .p-meta span {
        display: block;
        margin-bottom: 5px;
    }

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .social-share span {
        font-weight: bold;
        font-family: "Kanit";
    }

    .social-share a {
        color: #888;
        font-size: 1.1rem;
        transition: 0.3s;
    }

        .social-share a:hover {
            color: #4B3022;
            transform: translateY(-3px);
        }

/* --- TABS SECTION --- */
.product-tabs {
    margin-top: 50px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-link {
    background: transparent;
    border: none;
    padding-bottom: 15px;
    font-family: "Kanit", sans-serif;
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

    .tab-link.active {
        color: #4B3022;
        font-weight: 600;
    }

        .tab-link.active:after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #4B3022;
        }

.tab-pane {
    display: none;
    font-family: "Kanit";
    line-height: 1.7;
    color: #555;
    animation: fadeIn 0.5s;
}

    .tab-pane.active {
        display: block;
    }

/* --- RELATED PRODUCTS --- */
.related-products {
    margin-top: 80px;
}

.section-title {
    font-family: "Allura", cursive;
    font-size: 4rem;
    text-align: center;
    color: #4B3022;
    margin-bottom: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .row-detail {
        flex-direction: column;
    }

    .col-gallery {
        max-width: 100%;
    }

    .p-name {
        font-size: 3rem;
    }
}
/* CSS CHO PHẦN REVIEW LIST */
.review-list {
    margin-bottom: 30px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    gap: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 1.2rem;
}

.review-content {
    flex: 1;
}

.r-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.r-name {
    font-weight: 600;
    color: #333;
    font-family: 'Kanit';
}

.r-date {
    font-size: 0.85rem;
    color: #999;
}

.r-stars {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.r-comment {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* CSS CHO FORM REVIEW */
.review-form-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}


/* Star Rating Input */
.rate {
    float: left;
    height: 46px;
    padding: 0 10px;
}

    /* Sửa thành opacity: 0 để ẩn nhưng vẫn nằm tại chỗ, không gây nhảy trang */
    .rate:not(:checked) > input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .rate:not(:checked) > label {
        float: right;
        width: 1em;
        overflow: hidden;
        white-space: nowrap;
        cursor: pointer;
        font-size: 30px;
        color: #ccc;
    }

        .rate:not(:checked) > label:before {
            content: '★ ';
        }

    .rate > input:checked ~ label {
        color: #FFD700;
    }

    .rate:not(:checked) > label:hover,
    .rate:not(:checked) > label:hover ~ label {
        color: #FFD700;
    }

.form-group {
    margin-bottom: 15px;
    clear: both;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Kanit';
}



    .btn-submit-review:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }