/* =========================================================
   Giao diện mới – Cửa Rèm Vách Ngăn Điều Hòa
   Bố cục tham khảo caosapgiuong.com, lớp CSS tiền tố tp-
   ========================================================= */
:root {
    --tp-primary: #1f5fbf;
    --tp-primary-dark: #143f82;
    --tp-primary-soft: #eaf1fc;
    --tp-accent: #f26a21;
    --tp-accent-dark: #d9560f;
    --tp-zalo: #0068ff;
    --tp-text: #1d2733;
    --tp-muted: #6b7684;
    --tp-line: #e6eaf0;
    --tp-bg: #f4f6fa;
    --tp-radius: 12px;
    --tp-shadow: 0 6px 22px rgba(20, 45, 90, .08);
    --tp-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body.tp-body {
    font-family: var(--tp-font);
    color: var(--tp-text);
    background: var(--tp-bg);
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
}
.tp-body a { transition: color .2s, background .2s, border-color .2s; }
.tp-body img { max-width: 100%; }
.tp-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ---------- Nút ---------- */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
}
.tp-btn--sm { padding: 7px 12px; font-size: 13px; }
.tp-btn--lg { padding: 13px 24px; font-size: 16px; }
.tp-btn--accent { background: var(--tp-accent); color: #fff !important; }
.tp-btn--accent:hover { background: var(--tp-accent-dark); }
.tp-btn--zalo { background: var(--tp-zalo); color: #fff !important; }
.tp-btn--zalo:hover { background: #0052cc; }
.tp-btn--ghost { background: #fff; color: var(--tp-primary) !important; border-color: var(--tp-primary); }
.tp-btn--ghost:hover { background: var(--tp-primary); color: #fff !important; }
.tp-btn--white { background: #fff; color: var(--tp-primary-dark) !important; }
.tp-btn--white:hover { background: #fff4ec; color: var(--tp-accent) !important; }
.tp-btn--outline-white { border-color: #fff; color: #fff !important; }
.tp-btn--outline-white:hover { background: rgba(255,255,255,.15); }

/* ---------- Header ---------- */
.tp-header { position: relative; z-index: 100; background: #fff; }
.tp-topbar { background: var(--tp-primary-dark); color: #dfe8f7; font-size: 13px; }
.tp-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 15px; }
.tp-topbar__benefits { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.tp-topbar__benefits i, .tp-topbar__time i { color: #ffb37f; margin-right: 5px; }
.tp-topbar__time { white-space: nowrap; }

.tp-header__main { border-bottom: 1px solid var(--tp-line); }
.tp-header__row { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.tp-logo { flex: 0 0 auto; display: block; }
.tp-logo img { max-height: 64px; width: auto; display: block; }
.tp-search { flex: 1 1 auto; min-width: 0; }
.tp-search__form { display: flex; align-items: stretch; border: 2px solid var(--tp-primary); border-radius: 999px; overflow: hidden; background: #fff; margin: 0; }
.tp-search__form input { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: 0; padding: 10px 18px; font-size: 14px; background: transparent; box-shadow: none; height: auto; }
.tp-search__form button { border: 0; background: var(--tp-primary); color: #fff; padding: 0 22px; font-size: 16px; cursor: pointer; }
.tp-search__form button:hover { background: var(--tp-primary-dark); }
.tp-search__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 28px; overflow: hidden; }
.tp-search__tags a { font-size: 12px; color: var(--tp-muted); background: var(--tp-bg); border-radius: 999px; padding: 3px 10px; line-height: 1.5; }
.tp-search__tags a:hover { color: var(--tp-primary); background: var(--tp-primary-soft); }
.tp-header__contact { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.tp-hotline { display: flex; align-items: center; gap: 10px; color: var(--tp-text) !important; text-decoration: none !important; }
.tp-hotline__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tp-primary-soft); color: var(--tp-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tp-hotline__text { display: flex; flex-direction: column; line-height: 1.25; }
.tp-hotline__text small { font-size: 12px; color: var(--tp-muted); }
.tp-hotline__text strong { font-size: 18px; color: var(--tp-accent); }
.tp-burger, .tp-header__call-mobile { display: none; }

/* Menu chính */
.tp-nav { background: var(--tp-primary); }
.tp-nav__head, .tp-nav__search, .tp-nav__foot, .tp-nav__overlay, .tp-menu__toggle { display: none; }
.tp-menu { display: flex; flex-wrap: wrap; margin: 0 auto; list-style: none; }
.tp-menu__item { position: relative; }
.tp-menu__item > a { display: flex; align-items: center; gap: 6px; padding: 13px 18px; color: #fff !important; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none !important; }
.tp-menu__item > a:hover, .tp-menu__item.is-active > a { background: rgba(255,255,255,.14); }
.tp-menu__item > a .fa { font-size: 13px; opacity: .85; }
.tp-menu__sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--tp-shadow); list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.tp-menu__item:hover > .tp-menu__sub { opacity: 1; visibility: visible; transform: none; }
.tp-menu__sub li { list-style: none; }
.tp-menu__sub a { display: block; padding: 8px 18px; color: var(--tp-text) !important; font-size: 14px; text-decoration: none !important; }
.tp-menu__sub a:hover { color: var(--tp-primary) !important; background: var(--tp-primary-soft); }
.tp-menu__sub ul { padding: 0 0 4px 14px; margin: 0; }
.tp-menu__sub ul a { font-size: 13px; color: var(--tp-muted) !important; padding: 5px 18px; }

/* ---------- Khối chung ---------- */
.tp-section { padding: 26px 0; }
.tp-section .tp-wrap > .tp-section__head + .tp-grid,
.tp-section .tp-pills + .tp-grid { margin-top: 0; }
.tp-cat .tp-wrap, .tp-news .tp-wrap, .tp-videos .tp-wrap, .tp-reviews .tp-wrap {
    background: #fff;
    border-radius: var(--tp-radius);
    padding-top: 22px;
    padding-bottom: 24px;
    box-shadow: 0 1px 3px rgba(20,45,90,.05);
}
.tp-section__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; border-bottom: 2px solid var(--tp-line); }
.tp-section__head--center { justify-content: center; border-bottom: 0; }
.tp-section__title { position: relative; margin: 0 0 -2px; padding-bottom: 10px; font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--tp-primary-dark); border-bottom: 3px solid var(--tp-accent); line-height: 1.3; }
.tp-section__head--center .tp-section__title { border-bottom: 0; }
.tp-section__head--center .tp-section__title:after { content: ''; display: block; width: 60px; height: 3px; background: var(--tp-accent); margin: 10px auto 0; }
.tp-section__title a { color: inherit !important; text-decoration: none !important; }
.tp-section__more { flex: 0 0 auto; font-weight: 700; color: var(--tp-primary) !important; font-size: 14px; padding-bottom: 8px; }
.tp-section__more:hover { color: var(--tp-accent) !important; }
.tp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tp-pills a { padding: 6px 14px; border: 1px solid var(--tp-line); border-radius: 999px; font-size: 13px; color: var(--tp-text) !important; background: #fff; text-decoration: none !important; }
.tp-pills a:hover { border-color: var(--tp-primary); color: var(--tp-primary) !important; background: var(--tp-primary-soft); }

.tp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Banner ---------- */
.tp-body .owl-carousel.owl-loaded { display: block; }
.tp-hero { padding-top: 18px; }
.tp-hero__slider { border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); }
.tp-hero__item img { width: 100%; display: block; aspect-ratio: 1240 / 460; object-fit: cover; }
.tp-hero .owl-dots { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; }
.tp-hero .owl-dot span { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: rgba(255,255,255,.6); display: block; transition: all .2s; }
.tp-hero .owl-dot.active span { width: 26px; border-radius: 6px; background: #fff; }
.tp-hero .owl-nav > * { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50% !important; background: rgba(255,255,255,.85) !important; color: var(--tp-primary-dark) !important; font-size: 24px !important; line-height: 1 !important; }
.tp-hero .owl-nav .owl-prev { left: 14px; }
.tp-hero .owl-nav .owl-next { right: 14px; }

/* Danh mục nổi bật */
.tp-quick { padding-top: 18px; }
.tp-quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tp-quick__item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--tp-radius); padding: 12px; box-shadow: 0 1px 3px rgba(20,45,90,.05); text-decoration: none !important; border: 1px solid transparent; }
.tp-quick__item:hover { border-color: var(--tp-primary); box-shadow: var(--tp-shadow); }
.tp-quick__img { flex: 0 0 96px; height: 76px; border-radius: 10px; background: var(--tp-bg) center/cover no-repeat; }
.tp-quick__body { display: flex; flex-direction: column; gap: 4px; }
.tp-quick__body strong { color: var(--tp-text); font-size: 16px; line-height: 1.35; }
.tp-quick__body em { font-style: normal; font-size: 13px; color: var(--tp-accent); font-weight: 700; }

/* ---------- Thẻ sản phẩm ---------- */
.tp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; height: 100%; transition: box-shadow .2s, transform .2s, border-color .2s; }
.tp-card:hover { box-shadow: var(--tp-shadow); transform: translateY(-3px); border-color: #cfdcf2; }
.tp-card__img { display: block; position: relative; aspect-ratio: 1 / 1; background: #f7f8fb; overflow: hidden; }
.tp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tp-card:hover .tp-card__img img { transform: scale(1.05); }
.tp-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; }
.tp-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card__title a { color: var(--tp-text) !important; text-decoration: none !important; }
.tp-card__title a:hover { color: var(--tp-primary) !important; }
.tp-card__desc { display: none; margin: 0 0 12px; font-size: 13px; color: var(--tp-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.tp-card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-card__actions .tp-btn { width: 100%; }
/* thẻ nằm trong lưới bootstrap cũ / carousel */
.pro-cat-slider .item .tp-card, [class*="col-"] > .tp-card { margin-bottom: 20px; }

/* ---------- Video ---------- */
.tp-video__frame { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.tp-video__frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.tp-video h3 { font-size: 14px; font-weight: 700; margin: 10px 0 0; line-height: 1.4; }

/* ---------- Bài viết ---------- */
.tp-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; height: 100%; transition: box-shadow .2s; }
.tp-post:hover { box-shadow: var(--tp-shadow); }
.tp-post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tp-bg); }
.tp-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tp-post:hover .tp-post__img img { transform: scale(1.05); }
.tp-post__body { padding: 14px; display: flex; flex-direction: column; flex: 1 1 auto; }
.tp-post__date { font-size: 12px; color: var(--tp-muted); }
.tp-post__title { font-size: 16px; font-weight: 700; margin: 6px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-post__title a { color: var(--tp-text) !important; text-decoration: none !important; }
.tp-post__title a:hover { color: var(--tp-primary) !important; }
.tp-post__desc { font-size: 13px; color: var(--tp-muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-post__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--tp-accent) !important; }
/* trang danh mục bài viết cũ dùng cột bootstrap */
[class*="col-"] > .tp-post { margin-bottom: 24px; }

/* ---------- Đánh giá ---------- */
.tp-review { background: var(--tp-bg); border-radius: var(--tp-radius); padding: 20px; height: 100%; margin: 4px; }
.tp-review__stars { color: #ffb400; font-size: 14px; margin-bottom: 8px; }
.tp-review p { font-size: 14px; color: #3a4552; font-style: italic; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tp-review__author { display: flex; align-items: center; gap: 10px; }
.tp-review__author img { width: 44px !important; height: 44px; border-radius: 50%; object-fit: cover; }
.tp-review__author strong { font-size: 14px; }

/* ---------- Cam kết / CTA / Showroom ---------- */
.tp-services { padding: 26px 0 0; }
.tp-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tp-service { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--tp-radius); padding: 18px; box-shadow: 0 1px 3px rgba(20,45,90,.05); }
.tp-service > i { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--tp-primary-soft); color: var(--tp-primary); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.tp-service strong { display: block; font-size: 15px; color: var(--tp-text); }
.tp-service span { display: block; font-size: 13px; color: var(--tp-muted); line-height: 1.45; }

.tp-cta { padding: 26px 0 0; }
.tp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, var(--tp-primary-dark), var(--tp-primary)); border-radius: var(--tp-radius); padding: 28px 34px; color: #fff; }
.tp-cta h2 { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.tp-cta p { margin: 0; color: #d9e5f8; }
.tp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tp-stores { padding: 26px 0; }
.tp-stores__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tp-store { display: flex; gap: 14px; background: #fff; border-radius: var(--tp-radius); padding: 20px; box-shadow: 0 1px 3px rgba(20,45,90,.05); }
.tp-store__icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #fff1e8; color: var(--tp-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.tp-store__body h2, .tp-store__body h3 { font-size: 16px !important; margin: 0 0 8px; color: var(--tp-primary-dark); text-transform: uppercase; }
.tp-store__body h2 *, .tp-store__body h3 * { font-style: normal; }
.tp-store__body p { margin: 0 0 4px; font-size: 14px; color: #3a4552; }
.tp-store__body a { color: var(--tp-accent); }

/* ---------- Footer ---------- */
.tp-footer { background: #0f2547; color: #b8c6dc; font-size: 14px; }
.tp-footer__grid { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 44px; padding-bottom: 34px; }
.tp-footer__col { flex: 1 1 170px; min-width: 0; }
.tp-footer__about { flex: 1.6 1 260px; }
.tp-footer h3 { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0 0 16px; }
.tp-footer a { color: #b8c6dc; }
.tp-footer a:hover { color: #fff; }
.tp-footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.tp-footer__logo img { max-height: 54px; width: auto; display: block; }
.tp-footer__desc, .tp-footer__desc p, .tp-footer__desc span, .tp-footer__desc strong { color: #b8c6dc !important; font-size: 14px !important; }
.tp-footer__desc p { margin: 0 0 6px; }
.tp-footer__links, .tp-footer__contact { list-style: none; margin: 0; padding: 0; }
.tp-footer__links li { margin-bottom: 8px; }
.tp-footer__links a:before { content: '\203A'; margin-right: 8px; color: var(--tp-accent); }
.tp-footer__contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.tp-footer__contact i { color: var(--tp-accent); margin-top: 4px; width: 14px; }
.tp-footer__social { display: flex; gap: 8px; margin-top: 14px; }
.tp-footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.tp-footer__social a:hover { background: var(--tp-accent); }
.tp-zalo-text { font-weight: 800; font-size: 11px; letter-spacing: -.2px; }
.tp-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; font-size: 13px; text-align: center; color: #8ea0bd; }
.tp-footer__bottom a { color: #fff; }

/* ---------- Nút nổi + thanh di động ---------- */
.tp-float { position: fixed; right: 16px; bottom: 90px; z-index: 990; display: flex; flex-direction: column; gap: 10px; }
.tp-float__btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 22px; box-shadow: 0 6px 16px rgba(0,0,0,.2); text-decoration: none !important; }
.tp-float__btn--zalo { background: var(--tp-zalo); font-size: 13px; font-weight: 800; }
.tp-float__btn--call { background: var(--tp-accent); animation: tp-ring 1.6s infinite; }
.tp-float__btn--top { background: var(--tp-primary-dark); opacity: 0; visibility: hidden; transition: all .2s; }
.tp-float__btn--top.is-show { opacity: 1; visibility: visible; }
@keyframes tp-ring { 0% { box-shadow: 0 0 0 0 rgba(242,106,33,.55); } 70% { box-shadow: 0 0 0 16px rgba(242,106,33,0); } 100% { box-shadow: 0 0 0 0 rgba(242,106,33,0); } }
.tp-mbar { display: none; }

/* ---------- Trang chi tiết sản phẩm ---------- */
.tp-detail__code { font-size: 14px; color: var(--tp-muted); margin: 6px 0 12px; }
.tp-detail__code strong { color: var(--tp-text); }
.tp-detail__cta { margin: 20px 0; padding: 18px; border-radius: var(--tp-radius); background: var(--tp-primary-soft); border: 1px dashed #b9cdee; }
.tp-detail__cta-title { font-weight: 700; color: var(--tp-primary-dark); margin-bottom: 12px; }
.tp-detail__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-detail__perks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: #3a4552; }
.tp-detail__perks i { color: #1aa260; margin-right: 4px; }


/* =================== Responsive =================== */
@media (max-width: 1199px) {
    .tp-grid, .tp-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tp-hide-md { display: none !important; }
    .tp-menu__item > a { padding: 13px 12px; font-size: 13px; }
}
@media (max-width: 991px) {
    .tp-topbar__time, .tp-topbar__benefits li:nth-child(n+2) { display: none; }
    .tp-topbar__inner { justify-content: center; }
    .tp-header__row { gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
    .tp-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 0; background: var(--tp-primary-soft); border-radius: 10px; padding: 0 10px; cursor: pointer; order: 1; }
    .tp-burger span { display: block; height: 2px; background: var(--tp-primary-dark); border-radius: 2px; }
    .tp-logo { order: 2; flex: 1 1 auto; text-align: center; }
    .tp-logo img { max-height: 46px; margin: 0 auto; }
    .tp-header__call-mobile { display: flex; order: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--tp-accent); color: #fff !important; align-items: center; justify-content: center; font-size: 19px; }
    .tp-header__contact { display: none; }
    .tp-search { order: 4; flex: 1 1 100%; }
    .tp-search__tags { display: none; }

    .tp-nav { background: transparent; }
    .tp-nav__panel { position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 340px; background: #fff; z-index: 1001; overflow-y: auto; transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; }
    .tp-nav__overlay { display: block; position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 1000; opacity: 0; visibility: hidden; transition: all .28s; }
    .tp-nav.is-open .tp-nav__panel { transform: none; }
    .tp-nav.is-open .tp-nav__overlay { opacity: 1; visibility: visible; }
    .tp-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--tp-line); }
    .tp-nav__head img { max-height: 40px; }
    .tp-nav__close { border: 0; background: none; font-size: 32px; line-height: 1; color: var(--tp-muted); cursor: pointer; }
    .tp-nav__search { display: flex; margin: 12px 15px; }
    .tp-menu { display: block; padding: 0; }
    .tp-menu__item { border-bottom: 1px solid var(--tp-line); }
    .tp-menu__item > a { color: var(--tp-text) !important; padding: 13px 50px 13px 15px; }
    .tp-menu__item > a:hover, .tp-menu__item.is-active > a { background: var(--tp-primary-soft); color: var(--tp-primary) !important; }
    .tp-menu__item > a .fa { display: none; }
    .tp-menu__toggle { display: flex; position: absolute; right: 0; top: 0; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--tp-muted); cursor: pointer; }
    .tp-menu__item.is-open > .tp-menu__toggle .fa:before { content: '\f068'; }
    .tp-menu__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 8px 12px; border-radius: 0; min-width: 0; }
    .tp-menu__item:hover > .tp-menu__sub { transform: none; }
    .tp-menu__item.is-open > .tp-menu__sub { display: block; }
    .tp-nav__foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 15px; margin-top: auto; }

    .tp-quick__grid { grid-template-columns: 1fr; gap: 10px; }
    .tp-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-cta__inner { flex-direction: column; align-items: flex-start; padding: 24px; }
    .tp-stores__grid { grid-template-columns: 1fr; }
    .tp-footer__about { flex-basis: 100%; }
    .tp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    body.tp-body { padding-bottom: 62px; }
    .tp-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 995; background: #fff; border-top: 1px solid var(--tp-line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
    .tp-mbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; color: var(--tp-muted) !important; font-size: 11px; text-decoration: none !important; }
    .tp-mbar a i, .tp-mbar a b { font-size: 19px; color: var(--tp-primary); height: 22px; line-height: 22px; }
    .tp-mbar a b { font-size: 12px; color: var(--tp-zalo); }
    .tp-mbar__call i { width: 40px; height: 40px !important; line-height: 40px !important; border-radius: 50%; background: var(--tp-accent); color: #fff !important; margin-top: -18px; box-shadow: 0 4px 10px rgba(242,106,33,.4); text-align: center; }
    .tp-float { bottom: 76px; }
    .tp-float__btn--zalo, .tp-float__btn--call { display: none; }
}
@media (max-width: 767px) {
    .tp-grid, .tp-grid--4, .tp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tp-section { padding: 14px 0; }
    .tp-cat .tp-wrap, .tp-news .tp-wrap, .tp-videos .tp-wrap, .tp-reviews .tp-wrap { border-radius: 0; padding-top: 16px; padding-bottom: 16px; }
    .tp-section__title { font-size: 17px; }
    .tp-card__body { padding: 10px; }
    .tp-card__title { font-size: 14px; min-height: 39px; }
    .tp-card__desc { display: none; }
    .tp-card__actions { grid-template-columns: 1fr; gap: 6px; }
    .tp-hero { padding-top: 10px; }
    .tp-hero__slider { border-radius: 8px; }
    .tp-videos .tp-grid { grid-template-columns: 1fr; }
    .tp-services__grid { gap: 10px; }
    .tp-service { flex-direction: column; text-align: center; padding: 14px 10px; }
    .tp-cta h2 { font-size: 21px; }
    .tp-footer__grid { gap: 22px; padding-top: 30px; }
    .tp-footer__col { flex-basis: 100%; }
}

/* ---------- Bổ sung: ghi đè CSS cũ ---------- */
.tp-body h1, .tp-body h2, .tp-body h3, .tp-body h4, .tp-body h5 { font-family: var(--tp-font); }
.tp-section__title a, .tp-card__title a, .tp-post__title a { font-weight: inherit; font-family: inherit; }
.tp-hero__slider { position: relative; }
.tp-hero .owl-nav { position: static; margin: 0; }
.tp-hero .owl-nav > * { margin: 0 !important; border: 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.tp-hero .owl-dots, .tp-reviews .owl-dots { display: flex; justify-content: center; gap: 0; }
.tp-reviews .owl-dots { margin-top: 16px; }
.tp-hero .owl-dot, .tp-reviews .owl-dot { background: none !important; border: 0 !important; padding: 0 !important; }
.tp-reviews .owl-dot span { width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: #cfd8e6; display: block; }
.tp-reviews .owl-dot.active span { background: var(--tp-accent); }
@media (max-width: 767px) {
    .tp-hero .owl-nav { display: none; }
    .tp-hero .owl-dots { bottom: 8px; }
}
.tp-hero .owl-nav > *:before, .tp-hero .owl-nav > *:after { display: none !important; }

/* ---------- Giỏ hàng / giá ---------- */
.tp-cart { position: relative; display: flex; align-items: center; gap: 8px; color: var(--tp-text) !important; text-decoration: none !important; font-weight: 700; font-size: 14px; }
.tp-cart > .fa { width: 44px; height: 44px; border-radius: 50%; background: var(--tp-primary-soft); color: var(--tp-primary); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.tp-cart small, .tp-cart-mobile small, .tp-mbar__cart small { position: absolute; top: -4px; left: 30px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--tp-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.tp-cart-mobile { position: relative; background: var(--tp-primary) !important; }
.tp-cart-mobile small { left: auto; right: -4px; top: -4px; }
.tp-mbar__cart { position: relative; }
.tp-mbar__cart small { left: 50%; top: 6px; margin-left: 4px; }
.tp-card__img { position: relative; }
.tp-card__badge { position: absolute; top: 10px; left: 10px; background: #e53935; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tp-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; }
.tp-card__price strong { color: #e53935; font-size: 17px; font-weight: 800; }
.tp-card__price del { color: #9aa3ae; font-size: 13px; }
.tp-card__actions .tp-btn { font-family: var(--tp-font); }
.tp-card__actions .addtocart.disabled { opacity: .6; pointer-events: none; }

/* Khung mua hàng trang chi tiết */
.tp-detail__buy ul { display: flex !important; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-detail__buy li { flex: 1 1 200px; margin: 0 !important; float: none !important; }
.tp-detail__buy .addtocart { width: 100%; height: 52px; border-radius: 999px !important; border: 2px solid var(--tp-accent) !important; font-size: 16px !important; font-weight: 800 !important; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff !important; color: var(--tp-accent) !important; }
.tp-detail__buy li + li .addtocart { background: var(--tp-accent) !important; color: #fff !important; }
.tp-detail__buy .addtocart:hover { background: var(--tp-accent-dark) !important; border-color: var(--tp-accent-dark) !important; color: #fff !important; }
.tp-detail__buy .addtocart span { display: none; }
.product-detail-main .price-box .price { color: #e53935; font-size: 26px; font-weight: 800; }
@media (max-width: 991px) {
    .tp-cart__text { display: none; }
}

/* Sidebar: bài viết mới – hiện đủ ảnh minh hoạ, không cắt */
.sidebar-item-wide li { overflow: hidden; margin-bottom: 14px; }
.sidebar-item-wide .pro-media { width: 120px; padding-right: 12px; }
.sidebar-item-wide .pro-media img { width: 100% !important; height: auto !important; object-fit: contain !important; }
.sidebar-item-wide .pro-detail-info { margin-left: 120px; }
