/* =========================================================
   PRODUCT DETAIL LAYOUT
   ========================================================= */
.catalog-product-view{
    padding-bottom:5rem;
}
.catalog-product-view .product-detail {
    padding: 20px 0 30px;
}

/* ---- Gallery ---- */

.product-gallery {
    margin-bottom: 15px;
}

.product-gallery__main .owl-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery__main .product-gallery__item {
    position: relative;
}

.product-gallery__thumbs {
    margin-top: 10px;
}

.product-gallery__thumbs .product-gallery__thumb {
    padding: 2px;
    border: 1px solid #eee;
    cursor: pointer;
    margin: 0 3px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery__thumbs .product-gallery__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery__thumbs .product-gallery__thumb.is-active {
    border-color: #c60b23;
    box-shadow: 0 0 0 1px #c60b23 inset;
}

/* ---- Info main ---- */

.product-info-main {
    padding-left: 10px;
}

.product-info-main .product-name h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
}

/* Rating + link */
.product-detail__ratings {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-detail__ratings .rating-links {
    margin: 0;
    font-size: 13px;
}

.product-detail__ratings .rating-links a {
    color: #555;
}

.product-detail__ratings .rating-links a:hover {
    color: #c60b23;
}

/* Social + mô tả ngắn */
.product-detail__social {
    margin-bottom: 8px;
}

.short-description__content {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Giá + meta */
.product-detail__price-meta {
    margin-top: 12px;
    margin-bottom: 15px;
}

.product-detail__price-meta .price-box {
    margin-bottom: 8px;
}

.product-detail__price-meta .price-box .price {
    font-size: 22px;
    font-weight: 700;
    color: #c60b23;
}

.product-detail__price-meta .old-price .price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.product-detail__price-meta .special-price .price {
    font-size: 22px;
    color: #c60b23;
}

.product-meta .meta-row {
    margin: 0 0 3px;
    font-size: 13px;
    color: #555;
}

.product-meta .meta-row span,
.product-meta .meta-row a {
    font-weight: 600;
}

/* ---- Add to cart area ---- */

.product-detail__actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
}

.product-detail__actions label {
    margin: 0;
    font-weight: 600;
}

.product-detail__actions .qty-holder {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.product-detail__actions .qty {
    width: 60px;
    text-align: center;
    border: none;
    padding: 6px 5px;
    font-size: 14px;
}

.product-detail__actions .qty-changer {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.product-detail__actions .qty-changer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.product-detail__actions .qty-changer a:hover {
    background: #f5f5f5;
}

.product-detail__actions .btn-cart {
    background-color: #c60b23;
    border-color: #c60b23;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    padding: 8px 18px;
}

.product-detail__actions .btn-cart:hover,
.product-detail__actions .btn-cart:focus {
    background-color: #a4081d;
    border-color: #a4081d;
    color: #fff;
}

/* Wishlist / so sánh */
.product-detail__links {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.product-detail__links a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.product-detail__links a i {
    margin-right: 4px;
}

.product-detail__links a:hover {
    color: #c60b23;
}

/* =========================================================
   PRODUCT TABS
   ========================================================= */

.product-detail__tabs {
    margin-top: 25px;
}

.product-tabs__nav {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}

.product-tabs__nav > li {
    margin: 0;
}

.product-tabs__nav > li > a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.product-tabs__nav > li.active > a,
.product-tabs__nav > li > a:hover {
    color: #c60b23;
    border-color: #c60b23;
}

.product-tabs__content .tab-pane {
    display: none;
    padding: 10px 0 5px;
    font-size: 14px;
    line-height: 1.6;
}

.product-tabs__content .tab-pane.active {
    display: block;
}

.product-description {
    margin-bottom: 15px;
}

.product-detail__subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 8px;
}

/* Review form */
.product-reviews {
    margin-bottom: 15px;
}

.product-detail__rating-select {
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* ===== QTY BOX ===== */
.catalog-product-view .add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.catalog-product-view .add-to-cart label {
    margin: 0;
    font-weight: 600;
}

.catalog-product-view .qty-holder {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

/* input số lượng */
.catalog-product-view .qty-holder .qty {
    width: 70px;
    padding: 6px 8px;
    border: 0;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.catalog-product-view .qty-holder .qty::-webkit-inner-spin-button,
.catalog-product-view .qty-holder .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 2 nút lên/xuống */
.catalog-product-view .qty-holder .qty-changer {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.catalog-product-view .qty-holder .qty-changer a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    text-decoration: none;
    color: #555;
    background: #f7f7f7;
    cursor: pointer;
}

.catalog-product-view .qty-holder .qty-changer a + a {
    border-top: 1px solid #ddd;
}

.catalog-product-view .qty-holder .qty-changer a:hover {
    background: #e5e5e5;
}
/* ===== REVIEW LIST + FORM ===== */
.catalog-product-view .product-reviews {
    margin-bottom: 16px;
    font-size: 14px;
}

.catalog-product-view .add-review {
    margin-top: 10px;
}

.catalog-product-view .add-review .form-add h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.catalog-product-view .add-review .form-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-product-view .add-review .form-list > li {
    margin-bottom: 14px;
}

.catalog-product-view .add-review label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.catalog-product-view .add-review .input-box input,
.catalog-product-view .add-review .input-box textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.catalog-product-view .add-review .input-box textarea {
    min-height: 120px;
    resize: vertical;
}

/* hàng chọn rating */
.catalog-product-view .product-detail__rating-select {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 14px;
}

.catalog-product-view .product-detail__rating-select input[type="radio"] {
    margin: 0 2px;
}

.catalog-product-view .add-review .buttons-set {
    margin-top: 10px;
}

.catalog-product-view .add-review .buttons-set .button {
    min-width: 120px;
}

.catalog-product-view .add-review .buttons-set {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: left;        /* nếu muốn nút nằm phải: đổi thành right */
}

.catalog-product-view .add-review .buttons-set .button {
    display: inline-block;
    min-width: 140px;
    padding: 8px 20px;
    border-radius: 3px;
    border: 1px solid #c60b23;
    background-color: #c60b23;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

/* giữ màu chữ bên trong 2 lớp span */
.catalog-product-view .add-review .buttons-set .button span,
.catalog-product-view .add-review .buttons-set .button span span {
    color: inherit;
}

.catalog-product-view .add-review .buttons-set .button:hover,
.catalog-product-view .add-review .buttons-set .button:focus {
    background-color: #a4081d;
    border-color: #a4081d;
    color: #fff;
}
/* ===== PRODUCT TAGS ===== */
.catalog-product-view .product-detail-tags {
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.catalog-product-view .product-detail-tags strong {
    font-weight: 600;
    margin-right: 6px;
}

.catalog-product-view .product-detail-tags a {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f3f3f3;
    color: #c60b23;
    font-size: 13px;
    text-decoration: none;
}

.catalog-product-view .product-detail-tags a:hover {
    background: #c60b23;
    color: #fff;
}
/* ===== RATING ROW (REVIEW FORM) ===== */
.catalog-product-view .product-detail__rating-select {
    display: inline-flex;        /* không chiếm full width */
    align-items: center;
    flex-wrap: nowrap;           /* không cho xuống hàng */
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;         /* text + radio nằm chung 1 hàng */
}

/* chữ "Chưa tốt" / "Tốt" */
.catalog-product-view .product-detail__rating-select .rating-text {
    font-size: 13px;
    color: #555;
}

.catalog-product-view .product-detail__rating-select .rating-text--bad {
    margin-right: 4px;
}

.catalog-product-view .product-detail__rating-select .rating-text--good {
    margin-left: 4px;
}

/* ô radio */
.catalog-product-view .product-detail__rating-select .rating-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-view .product-detail__rating-select .rating-radio input[type="radio"] {
    margin: 0 2px;
}
@media (max-width: 991px) {
    .product-info-main {
        padding-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .product-info-main .product-name h1 {
        font-size: 20px;
    }

    .product-tabs__nav {
        gap: 12px;
    }
}
