﻿/* Giao dien san pham noi that - tach rieng khoi style.css (module Biet thu cho thue) */

/* ---------- Danh sach ---------- */
.nt-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nt-head-left { width: 40%; }
.nt-h1 { margin: 0; color: #135096; font-family: 'muli'; font-weight: bold; font-size: 25px; }
.nt-desc { font-size: 15px; color: #333; line-height: 23px; margin-top: 9px; }
.nt-filter { display: flex; align-items: center; flex-wrap: wrap; }
.nt-chip {
    color: #333; margin: 4px 5px; font-size: 14px; font-weight: bold; text-decoration: none !important;
    border: 1px solid #33333361; border-radius: 50px; padding: 7px 16px; transition: all ease .2s; user-select: none;
}
.nt-chip:hover { background-color: #f2f2f2; }
.nt-chip.active { background-color: #135096; border-color: #135096; color: #fff; }
.nt-empty { display: block; margin-top: 25px; }

.nt-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px; row-gap: 30px; margin-top: 30px;
}
.nt-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.nt-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.nt-thumb { display: block; position: relative; width: 100%; padding-bottom: 100%; background: #f4f4f4; overflow: hidden; }
.nt-thumb img, .nt-noimg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-tags { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; z-index: 2; }
.nt-tag { font-size: 11px; font-weight: bold; color: #fff; padding: 3px 9px; border-radius: 50px; margin-bottom: 4px; background: #3279ff; }
.nt-tag.t1 { background: #e8590c; }
.nt-tag.t2 { background: #2b8a3e; }
.nt-tag.t3 { background: #7048e8; }
.nt-tag.t4 { background: #e03131; }
.nt-percent { position: absolute; right: 8px; top: 8px; z-index: 2; background: #e03131; color: #fff; font-size: 13px; font-weight: bold; padding: 4px 8px; border-radius: 6px; }

.nt-body { padding: 12px 14px 16px; }
.nt-name { text-decoration: none !important; display: block; }
.nt-name h3 {
    margin: 0 0 8px; color: #333; font-size: 16px; line-height: 22px; height: 44px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nt-name:hover h3 { color: #2154a3; }
.nt-price { display: flex; align-items: baseline; flex-wrap: wrap; min-height: 30px; }
.nt-price strong { color: #e03131; font-size: 20px; margin-right: 8px; }
.nt-price strong.nt-contact { color: #135096; font-size: 17px; }
.nt-price del { color: #888; font-size: 14px; }
.nt-btn {
    display: block; text-align: center; margin-top: 12px; background: #135096; color: #fff !important;
    border-radius: 6px; padding: 9px 10px; font-size: 14px; font-weight: bold; text-decoration: none !important; transition: opacity .2s;
}
.nt-btn:hover { opacity: .85; }

/* ---------- Chi tiet ---------- */
.nt-detail-top { padding: 25px 0; }
.nt-detail-top .container { display: flex; flex-wrap: wrap; }
.nt-gallery { width: 48%; }
.nt-gallery-main { position: relative; width: 100%; padding-bottom: 80%; background: #f4f4f4; border-radius: 12px; overflow: hidden; }
.nt-gallery-main a, .nt-gallery-main img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.nt-gallery-main img { object-fit: contain; background: #fff; }
.nt-thumbs { display: flex; flex-wrap: wrap; margin: 10px -4px 0; }
.nt-thumbs a { width: 20%; padding: 0 4px; box-sizing: border-box; margin-bottom: 8px; }
.nt-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e6e6e6; display: block; }
.nt-info { width: 52%; padding-left: 30px; box-sizing: border-box; }
.nt-info h1 { margin: 0 0 12px; font-size: 26px; color: #222; line-height: 34px; }
.nt-info .nt-tags { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 10px; }
.nt-info .nt-tag { margin-right: 6px; font-size: 12px; padding: 4px 11px; }
.nt-info-price { display: flex; align-items: baseline; flex-wrap: wrap; margin: 10px 0 16px; }
.nt-info-price strong { color: #e03131; font-size: 30px; margin-right: 12px; }
.nt-info-price strong.nt-contact { color: #135096; font-size: 24px; }
.nt-info-price del { color: #888; font-size: 18px; margin-right: 10px; }
.nt-info-price .nt-percent { position: static; }
.nt-info-note { color: #555; font-size: 15px; line-height: 24px; margin-bottom: 18px; }
.nt-cta {
    display: inline-block; background: #e03131; color: #fff !important; font-size: 16px; font-weight: bold; text-transform: uppercase;
    padding: 12px 26px; border-radius: 6px; text-decoration: none !important; cursor: pointer;
}
.nt-cta:hover { opacity: .88; }
.nt-hotline { margin-top: 14px; font-size: 15px; color: #333; }
.nt-hotline a { color: #135096; font-weight: bold; text-decoration: none; }
.nt-form-note { color: #555; font-size: 13px; margin: 0 0 12px; text-align: center; }
.nt-textarea {
    border: 1px solid #99999936; outline: none; border-radius: 5px; padding: 8px 13px; color: #333; font-size: 13px;
    width: 100%; box-sizing: border-box; min-height: 70px; font-family: inherit;
}
.nt-submit {
    display: block !important; width: 100%; text-align: center; box-sizing: border-box;
    background-color: #e03131 !important; font-weight: bold;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .nt-head { flex-direction: column; align-items: flex-start; }
    .nt-head-left { width: 100%; margin-bottom: 10px; }
    .nt-gallery, .nt-info { width: 100%; padding-left: 0; }
    .nt-info { margin-top: 18px; }
}
@media (max-width: 739px) {
    .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 18px; }
    .nt-name h3 { font-size: 14px; line-height: 20px; height: 40px; }
    .nt-price strong { font-size: 16px; }
    .nt-info h1 { font-size: 21px; line-height: 28px; }
    .nt-info-price strong { font-size: 24px; }
    .nt-filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
    .nt-chip { white-space: nowrap; }
}

/* ---------- Slide banner trang Noi that: bo zoom, khong gioi han chieu cao ---------- */
/* Cac slide xep chong cung 1 o luoi nen khung cao bang anh dang hien thi */
.slideshow { height: auto !important; }
.slideshow .photo { display: grid; height: auto; }
.slideshow .photo li {
    grid-area: 1 / 1;
    position: relative;
    height: auto;
    top: auto;
    left: auto;
}
.slideshow .photo li:first-child { display: block; }
.slideshow .photo li img,
.slideshow .photo li:nth-child(2n+1) img,
.slideshow .photo li:nth-child(2n) img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
    animation: none !important;
}
