/* ============================================================
   BLANC' homepage — BASE (Task 0)
   Chỉ chứa nền tảng dùng chung. Style từng section được thêm
   dần theo mỗi task (sẽ nối tiếp bên dưới khối RESPONSIVE cuối).
   Quy tắc: chỉ animate transform/opacity; ảnh bọc aspect-ratio
   để chống CLS (tốt cho PageSpeed).
   ============================================================ */

.bl-home, .bl-home * { box-sizing: border-box; }

.bl-home {
  font-family: var(--bl-font);
  color: var(--bl-text);
  font-size: var(--bl-fs-body);
  line-height: var(--bl-lh-base);
  -webkit-font-smoothing: antialiased;
  /* Font EuclidCircularAVN có glyph ligature lỗi (ff/fi/fl bị rỗng -> "Coffee"
     hiển thị thành "Co ee"). Tắt ligature để trình duyệt vẽ từng chữ cái. */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0;
}
.bl-home * { font-variant-ligatures: inherit; font-feature-settings: inherit; }
.bl-home img { display: block; max-width: 100%; }
.bl-home a { color: inherit; text-decoration: none; }
/* .container dùng đúng của web (blanc_reponsive.css: width:100%; max-width:1470px !important) —
   KHÔNG định nghĩa lại ở đây. */

/* -- Khung media chống CLS (mọi ảnh đặt trong .bl-media) -- */
.bl-media { position: relative; overflow: hidden; background: var(--bl-surface-2); border-radius: var(--bl-radius); }
.bl-media > img { width: 100%; height: 100%; object-fit: cover; }

/* -- Tiện ích chung -- */
.bl-section { padding: var(--bl-section-y) 0; }
.bl-h2 { font-size: var(--bl-fs-h2); font-weight: 700; line-height: var(--bl-lh-tight); letter-spacing: -0.01em; margin: 0 0 .5rem; }
.bl-h3 { font-size: var(--bl-fs-h3); font-weight: 600; line-height: 1.2; margin: 0 0 .75rem; }
.bl-muted { color: var(--bl-muted); }
.bl-center { text-align: center; }

/* -- Scroll reveal (transform/opacity) -- */
.bl-reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--bl-dur) var(--bl-ease), transform var(--bl-dur) var(--bl-ease); will-change: opacity, transform; }
.bl-reveal.bl-in { opacity: 1; transform: none; }

/* ============================================================
   >>> STYLE TỪNG SECTION THÊM TỪ ĐÂY (mỗi task 1 khối) <<<
   ============================================================ */

/* ----- ① HERO (Task 1) ----- */
.bl-hero { position: relative; }
/* Desktop: ảnh full ngang, hiện trọn ảnh (không crop, không khoảng trắng).
   width/height attr trên <img> vẫn giữ tỉ lệ -> không CLS. */
.bl-hero__media { font-size: 0; }
.bl-hero__media > img { width: 100%; height: auto; }

/* Video nền hero: cover, nằm trên ảnh poster, không chặn click, ẩn mọi control */
.bl-hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.bl-hero__video iframe,
.bl-hero__video video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; border: 0; pointer-events: none; object-fit: cover; }
.bl-hero__video video::-webkit-media-controls { display: none !important; }
.bl-hero__video video::-webkit-media-controls-enclosure { display: none !important; }

.bl-hero__inner { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.bl-hero__inner > .container { width: 100%; }
.bl-hero__content {
  margin-left: auto;
  width: min(54%, 760px);
  color: #fff;
  /* scrim chữ nhẹ để đảm bảo dễ đọc trên ảnh sáng (a11y) */
  text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}
.bl-hero__title {
  font-family: var(--bl-font);
  font-weight: 700;
  font-size: clamp(1.6875rem, 0.73rem + 3.56vw, 5rem);   /* 27px -> 80px */
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .35em;
}
.bl-hero__sub {
  font-family: var(--bl-font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4375rem, 0.5rem + 3.49vw, 4.6875rem); /* 23px -> 75px */
  line-height: 1.1;
  margin: 0 0 1.5em;
}
.bl-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.bl-hero__btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--bl-font); font-weight: 400;
  font-size: clamp(.75rem, .45rem + .6vw, 1.3125rem);     /* 12px -> 21px */
  line-height: 1;
  padding: .82em 1.5em; border-radius: 1.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: color var(--bl-dur-fast) var(--bl-ease);
}
/* Lớp màu "chảy": hover -> đầy từ TRÁI sang phải; rời chuột -> rút về bên PHẢI (ngược lại) */
.bl-hero__btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.bl-hero__btn:hover::before, .bl-hero__btn:focus-visible::before, .bl-hero__btn.is-active::before {
  transform: scaleX(1); transform-origin: left center;
}
.bl-hero__btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .7em; }
.bl-hero__btn-label .bl-hero__arrow { display: inline-flex; transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-hero__btn:hover .bl-hero__arrow { transform: translateX(4px); }

/* Nút trắng (solid): nền trắng, màu chảy = kem */
.bl-hero__actions .bl-hero__btn--solid { background: #fff; color: var(--bl-ink); }
.bl-hero__actions .bl-hero__btn--solid::before { background: var(--bl-cream); }
/* Nút viền (ghost): nền trong, màu chảy = trắng; chữ -> mực khi đầy */
.bl-hero__actions .bl-hero__btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.bl-hero__actions .bl-hero__btn--ghost::before { background: #fff; }
.bl-hero__actions .bl-hero__btn--ghost:hover, .bl-hero__actions .bl-hero__btn--ghost.is-active { color: var(--bl-ink); }

@media (max-width: 768px) {
  .bl-hero__media { aspect-ratio: 430 / 550; }
  .bl-hero__media > img { height: 100%; object-fit: cover; }
  .bl-hero__inner { align-items: flex-end; }
  .bl-hero__content {
    margin-left: 0; width: 100%;
    padding: 0 22px clamp(28px, 8vw, 56px);
  }
  .bl-hero__actions { flex-direction: column; align-items: flex-start; }
  .bl-hero__btn { width: min(200px, 70%); justify-content: space-between; }
}


/* ----- ② BEST SELLER (Task 2) — scaffold (product item do bạn tự gắn) ----- */
.bl-bestseller { padding-top: clamp(40px, 4vw, 80px); padding-bottom: clamp(40px, 4vw, 80px); }

/* Header: tabs (trái) + "Best seller" (phải) trên 1 đường line SVG;
   line có chỗ uốn lên ôm tab đang active (path dựng động trong home.js).
   subtitle nằm DƯỚI line, canh phải. */
.bl-bs__head {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
/* line SVG phủ toàn bộ chiều cao head; bump cao bằng tab -> ÔM TRỌN tab active */
.bl-bs__tabline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bl-bs__tabline path { fill: none; stroke: #AFAFAF; stroke-width: 0.8; }

.bl-bs__tabs { display: flex; align-items: flex-end; gap: clamp(16px, 2.6vw, 64px); flex-wrap: nowrap; }
.bl-bs__tab {
  background: none; border: 0; cursor: pointer; font-family: var(--bl-font); white-space: nowrap;
  font-weight: 500; line-height: 1; color: #C5C6C7;
  font-size: clamp(.8rem, 0.3rem + 2.35vw, 3rem);   /* 15px -> 50px */
  padding: clamp(12px,1.3vw,20px) clamp(8px,1vw,16px);      /* tab thường: padding ngang BÉ */
  transition: color var(--bl-dur-fast) var(--bl-ease);      /* KHÔNG transition padding -> tabline đo đúng ngay */
}
.bl-bs__tab:hover { color: #939598; }
.bl-bs__tab.is-active { color: #000; padding-left: clamp(20px,2.8vw,52px); padding-right: clamp(20px,2.8vw,52px); } /* active: padding ngang RỘNG -> bump cong rộng hơn */
.bl-bs__title { font-weight: 500; color: #000; line-height: 1; margin: 0 0 clamp(14px,1.4vw,22px); font-size: clamp(.8rem, 0.3rem + 2.35vw, 3rem); } /* 22 -> 50 */
.bl-bs__subtitle { font-weight: 300; color: #939598; margin: .7em 0 0; text-align: right; font-size: clamp(.6875rem, 0.435rem + 0.94vw, 1.5625rem); } /* 11 -> 25 */

/* Fade khi đổi collection bằng tab (.is-switching bật trong home.js) */
.bl-bs__carousel, .bl-explore__carousel, .bl-bs__panels, .bl-explore__panels { transition: opacity 200ms var(--bl-ease); }
.bl-bs__carousel.is-switching, .bl-explore__carousel.is-switching, .bl-bs__panels.is-switching, .bl-explore__panels.is-switching { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .bl-bs__carousel, .bl-explore__carousel, .bl-bs__panels, .bl-explore__panels { transition: none; }
}

/* Best seller: 4 panel (mỗi tab 1 collection) — chỉ panel active hiển thị */
.bl-bs__panels [data-bl-panel] { display: none; }
.bl-bs__panels [data-bl-panel].is-active { display: block; }

.bl-bs__carousel { position: relative; margin-top: var(--bl-block-y); }
/* .swiper riêng cắt overflow flush ở mép trong -> slide không thò ra gutter 80px */
/* overflow: clip + clip-margin -> vẫn cắt slide thò vào gutter, nhưng cho badge (-13px) lòi ra ~18px.
   Fallback: trình duyệt cũ không hiểu clip -> dùng hidden (badge ẩn ở slide trái ngoài cùng, chấp nhận được). */
.bl-bs__swiper { overflow: hidden; overflow: clip !important; overflow-clip-margin: 18px; width: 100%; }
.bl-bs__carousel .swiper-wrapper { align-items: stretch; }
/* ô VÍ DỤ item (đang dùng item.png) — bạn thay bằng product item của bạn */
.bl-bs__ph { position: relative; background: transparent; border-radius: 0;     overflow: initial;}
.bl-bs__ph > img { object-fit: contain; }

/* arrow căn GIỮA gutter 80px (padding carousel) */
.bl-bs__nav {
  position: absolute; top: 42%; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #000;
  background: transparent; color: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease);
}
.bl-bs__nav:hover { background: #000; color: #fff; }
.bl-bs__nav--prev { left: 40px; transform: translate(-50%, -50%); }
.bl-bs__nav--next { right: 40px; transform: translate(50%, -50%); }
.bl-bs__nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

/* 1 nút "Xem thêm": mặc định KHÔNG viền; hover/active mới HIỆN viền (nền giữ nguyên) */
.bl-bs__more { display: flex; justify-content: center; margin-top: var(--bl-block-y); }
.bl-bs__btn {
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer; white-space: nowrap;
  font-family: var(--bl-font); font-weight: 400; color: #000;
  font-size: clamp(.6875rem, 0.5rem + 0.45vw, 1.25rem);     /* 11 -> 20 */
  padding: .7em 1.9em; border-radius: 1.5px; border: 1px solid transparent;
  transition: border-color var(--bl-dur-fast) var(--bl-ease);
}
.bl-bs__btn .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-bs__btn:hover, .bl-bs__btn.is-active { border-color: #000; }
.bl-bs__btn:hover .bl-arrow, .bl-bs__btn.is-active .bl-arrow { transform: translateX(4px); }

/* gạch nằm TRÊN, nút "Xem thêm" nằm DƯỚI gạch */
.bl-bestseller__divider { border: 0; border-top: 1px solid #AFAFAF; margin: var(--bl-block-y) 0 0; }

/* desktop: gutter 80px 2 bên, mũi tên căn giữa gutter */
@media (min-width: 769px) {
  .bl-bs__carousel { padding: 0 80px; }
  /* chừa đoạn line bên trái để vòng ôm "Sofa" không sát mép trái
     (cần ~chân uốn 17.62 + EXP 6 + đoạn thẳng mong muốn) */
  .bl-bs__tabs { padding-left: clamp(48px, 4vw, 72px); }
}
@media (max-width: 768px) {
  .bl-bs__nav { display: none; }
  /* tabs 1 hàng: gap thoáng hơn chút, vẫn nowrap cho "Sofa/Thảm/Giường/Bàn" cùng 1 hàng */
  .bl-bs__tabs { gap: 18px; padding-left: 12px; }
  .bl-bs__tab { padding: 8px; font-size: 15px; }
  /* active không phình padding ngang -> đủ chỗ cho cả hàng */
  .bl-bs__tab.is-active { padding-left: 8px; padding-right: 8px; }
  .bl-bs__title { display: none; }  /* mobile: ẩn tiêu đề "Best seller" */
  .bl-bs__subtitle { text-align: left;	padding-left: 20px; }
  .bl-bs__btn { padding: .6em 1.4em; font-size: .75rem; gap: .45em; }   /* nút Xem thêm 1 hàng */
	.bl-bs__head { gap: 20px; }

  /* title + price của product item: căn TRÁI + thu nhỏ (title 16/500, price 12/300) */
  .bl-bestseller .content_product_tab { text-align: left; }
  .bl-bestseller .content_product_tab > a { font-size: 16px; font-weight: 500; padding-right: 100px; line-height: 16px; margin-bottom: 2px }  /* chừa chỗ phải cho nút "Xem thêm" */
  .bl-bestseller .content_product_tab .price { font-size: 12px; font-weight: 300; margin-top: 2px; text-align: left; line-height: 16px; }
  /* chỉ slide ĐANG active của carousel mới hiện title+price; slide khác ẩn (giữ visibility -> không nhảy chiều cao khi autoplay, alignment nút "Xem thêm" ổn định) */
  .bl-bestseller .swiper-slide:not(.swiper-slide-active) .content_product_tab { visibility: hidden; }

  /* nút "Xem thêm" nhấc lên NGANG HÀNG với title item, căn phải; ẩn divider */
  .bl-bestseller__divider { display: none; }
  .bl-bs__more { justify-content: flex-end; margin-top: -58px; position: relative; z-index: 3; }
}

/* ----- ③ YEAR END SALE (Task 3) ----- */
.bl-sale { padding: 0;}
.bl-sale__row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch; }
.bl-sale__banner { display: block; height: 100%; min-height: 0; }
/* desktop: ảnh kéo full theo chiều cao cột phải (object-fit cover) */
.bl-sale__banner-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--bl-radius); }
.bl-sale__right { display: flex; flex-direction: column; min-width: 0; }
.bl-sale__title { font-weight: 500; color: #000; text-align: right; line-height: 1; margin: 0 var(--bl-block-y) 0 0; font-size: clamp(2rem, 1rem + 2.6vw, 3.75rem); } /* 32 -> 60 */
.bl-sale__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.6vw, 28px); padding: var(--bl-block-y);}
/* ảnh nền #F0EEEB(.38), sản phẩm contain + có khoảng đệm + đổ bóng (theo Figma) */
.bl-sale__card-media { position: relative; aspect-ratio: 1 / 1; background: rgba(240, 238, 235, .38); display: flex; align-items: center; justify-content: center; border-radius: var(--bl-radius); overflow: hidden; }
.bl-sale__card-media img { width: 100%; height: 100%; object-fit: contain; }
/* tag SALE đỏ góc phải trên */
.bl-sale__badge { position: absolute; top: clamp(8px, 1vw, 14px); right: 0; background: #BE1E2D; color: #fff; font-size: clamp(10px, .85vw, 11.91px); line-height: 1.26; font-weight: 400; padding: 4px 12px; display: block; letter-spacing: .02em; }
/* tên (trái) + giá (phải, giá giảm trên, giá gốc gạch dưới) */
.bl-sale__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 12px; }
.bl-sale__name { font-weight: 500; color: #000; margin: 0; line-height: 1.25; font-size: clamp(1rem, .9rem + .3vw, 1.25rem); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }      /* -> 20px/25, tối đa 2 dòng + ... */
.bl-sale__prices { text-align: right; flex: none; }
.bl-sale__price { display: block; font-weight: 300; color: #000; line-height: 1.27; font-size: clamp(.8125rem, .76rem + .18vw, .9375rem); } /* -> 15px/19 */
.bl-sale__old { display: block; font-weight: 300; color: #939598; text-decoration: line-through; line-height: 1.3; font-size: clamp(.5625rem, .52rem + .12vw, .625rem); } /* -> 10px/13 */
.bl-sale__divider { border: 0; border-top: 1px solid #AFAFAF; margin: 0; }
.bl-sale__more { display: flex; justify-content: flex-end; margin: 18px 0; }
.bl-sale__more-link { display: inline-flex; align-items: center; gap: .6em; font-weight: 400; color: #000; font-size: clamp(.875rem, .8rem + .3vw, 1.25rem); border: 1px solid transparent; border-radius: 1.5px; padding: .5em .2em; transition: border-color var(--bl-dur-fast) var(--bl-ease); }
.bl-sale__more-link .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-sale__more-link:hover .bl-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .bl-sale__row { grid-template-columns: 1fr; gap: 14px; }
  /* banner tràn full-width màn hình (thoát khỏi padding của .container) */
  .bl-sale__banner { height: auto; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
  .bl-sale__banner-img { height: auto; aspect-ratio: 430 / 200; border-radius: 0; }
  .bl-sale__title { display: none; }
  /* lưới 2×2 -> vuốt ngang (scroll-snap, không cần JS). Reset padding panel của desktop. */
  .bl-sale__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0 20px; }
  .bl-sale__grid::-webkit-scrollbar { display: none; }
  .bl-sale__card { flex: 0 0 76%; scroll-snap-align: start; }
  /* "Tìm hiểu thêm": căn giữa, KHÔNG viền, khoảng cách gọn hơn */
  .bl-sale__more { justify-content: center; margin: 8px 0 0; }
  .bl-sale__more-link { border-color: transparent; padding: .4em .6em; font-size: .8rem; }
}

/* ----- ④ DẠO QUANH THẾ GIỚI NỘI THẤT (Task 4) ----- */
.bl-explore { background: #F9F8F7; }
.bl-explore__row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 3vw, 64px); align-items: center; }
.bl-explore__intro { min-width: 0; }
.bl-explore__heading { font-weight: 500; color: #000; line-height: 1.05; margin: 0 0 .5em; font-size: clamp(1.5625rem, .93rem + 2.35vw, 3.75rem); max-width: 14ch; } /* 25 -> 60 */
.bl-explore__desc { font-weight: 300; color: #939598; line-height: 1.3; margin: 0 0 1.8em; font-size: clamp(.6875rem, .525rem + .6vw, 1.25rem); max-width: 42ch; } /* 11 -> 20 */
.bl-explore__btn { display: inline-flex; align-items: center; gap: .7em; color: #000; border: 1px solid #000; border-radius: 1.5px; padding: .7em 1.4em; font-weight: 400; white-space: nowrap; font-size: clamp(.6875rem, .5rem + .5vw, 1.3125rem); transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); } /* 11 -> 21 */
.bl-explore__btn .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-explore__btn:hover { background: #000; color: #fff; }
.bl-explore__btn:hover .bl-arrow { transform: translateX(4px); }

.bl-explore__gallery { min-width: 0; }
/* 7 panel = 7 tab, chỉ panel active hiển thị */
.bl-explore__panels [data-bl-panel] { display: none; }
.bl-explore__panels [data-bl-panel].is-active { display: block; }
.bl-explore__carousel { position: relative; }
.bl-explore__card { position: relative; display: block; aspect-ratio: 6 / 7; }
.bl-explore__card > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--bl-radius); }
.bl-explore__card-more { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: .5em; color: #fff; font-size: clamp(.6875rem, .55rem + .35vw, 1.25rem); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.bl-explore__nav { position: absolute; top: 50%; right: clamp(10px, 1.6vw, 28px); transform: translateY(-50%); z-index: 5; width: clamp(28px, 2.4vw, 35px); height: clamp(28px, 2.4vw, 35px); border-radius: 50%; border: 0; background: rgba(255,255,255,.28); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); transition: background var(--bl-dur-fast) var(--bl-ease); }
.bl-explore__nav:hover { background: rgba(255,255,255,.5); }
.bl-explore__nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

.bl-explore__tabs { position: relative; display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 34px); flex-wrap: nowrap; scrollbar-width: none; border-bottom: 3px solid #D9D9D9; margin-top: clamp(20px, 2.4vw, 40px); }
.bl-explore__tabs::-webkit-scrollbar { display: none; }
.bl-explore__tab { position: relative; background: none; border: 0; cursor: pointer; white-space: nowrap; font-family: var(--bl-font); font-weight: 400; color: #D9D9D9; padding: 0 0 14px; font-size: clamp(.6875rem, .44rem + .94vw, 1.5625rem); transition: color var(--bl-dur-fast) var(--bl-ease); } /* 11 -> 25 */
.bl-explore__tab.is-active { color: #000; }
/* icon minh họa line-art trên mỗi tab — chỉ hiện ở mobile (media query bên dưới).
   Scope theo .bl-explore__tab để specificity (0,2,0) > .bl-home img (0,1,1), nếu không icon lộ ở desktop. */
.bl-explore__tab .bl-explore__tab-icon { display: none; }
/* line màu #3D271A: dài ra theo quãng đường carousel (JS set width); đè lên border-bottom xám */
.bl-explore__progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 0; background: #3D271A; pointer-events: none; will-change: width; transition: width .45s var(--bl-ease); }

@media (max-width: 768px) {
  .bl-explore__row { grid-template-columns: 1fr; gap: 22px; }
  .bl-explore__heading { max-width: 100%; }   /* tiêu đề dùng trọn bề ngang trên mobile */
  /* tabs: icon trên - chữ dưới, gap rộng hơn (24px) + scroll ngang khi tràn (không wrap, không cắt) */
  .bl-explore__tabs { border-bottom-width: 1px; margin-top: 22px; gap: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bl-explore__tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px 12px; }
  .bl-explore__tab .bl-explore__tab-icon { display: block; height: 44px; width: auto; max-width: 96px; object-fit: contain; opacity: .35; transition: opacity var(--bl-dur-fast) var(--bl-ease); }
  .bl-explore__tab.is-active .bl-explore__tab-icon { opacity: 1; }
  /* overflow-x:auto ép overflow-y:auto -> line ở bottom âm bị cắt. Đưa vào trong (bottom:0) để không mất. */
  .bl-explore__progress { height: 2px; bottom: 0; }
}

/* ----- ⑤ TÙY CHỈNH CHẤT LIỆU (Task 5) ----- */
.bl-material { background: #F9F8F7; padding: 0 0 var(--bl-section-y); }
.bl-material__row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 3vw, 64px); align-items: center; }
.bl-material__media { aspect-ratio: 1080 / 500; min-width: 0; }
.bl-material__text { min-width: 0; }
.bl-material__title { font-weight: 500; color: #000; line-height: 1.1; margin: 0 0 .45em; font-size: clamp(1.375rem, .69rem + 2.55vw, 3.75rem); } /* 22 -> 60 */
.bl-material__desc { font-weight: 300; color: #939598; line-height: 1.3; margin: 0 0 1.7em; font-size: clamp(.6875rem, .525rem + .6vw, 1.25rem); max-width: 46ch; } /* 11 -> 20 */
.bl-material__btn { display: inline-flex; align-items: center; gap: .7em; color: #000; border: 1px solid #000; border-radius: 1.5px; padding: .7em 1.4em; font-weight: 400; white-space: nowrap; font-size: clamp(.6875rem, .5rem + .5vw, 1.3125rem); transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); } /* 11 -> 21 */
.bl-material__btn .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-material__btn:hover { background: #000; color: #fff; }
.bl-material__btn:hover .bl-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  /* mobile: ảnh + text xếp DỌC (1 cột) */
  .bl-material__row { grid-template-columns: 1fr; gap: 16px; align-items: center; }
  .bl-material__media { aspect-ratio: auto; height: 200px; }
  .bl-material__desc { margin-bottom: 1em; }
  .bl-material__btn { padding: .5em 1em; }
}

/* ----- ⑥ TRUST BAR (Task 6) ----- */
.bl-trust { border-top: 1px solid #AFAFAF; border-bottom: 1px solid #AFAFAF; background: #fff; }
.bl-trust__list { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.6vw, 36px); list-style: none; margin: 0; padding: clamp(16px, 1.4vw, 22px) 0; }
.bl-trust__item { display: flex; align-items: center; gap: 12px; color: #000; font-weight: 400; line-height: 1.25; font-size: clamp(.6875rem, .5rem + .55vw, 1.125rem); }
.bl-trust__item > span:last-child { max-width: 16ch; }   /* gói text thành ~2 hàng vừa khít icon */
.bl-trust__icon { flex: none; height: clamp(38px, 3.4vw, 50px); width: auto; color: #000; display: inline-flex; align-items: center; }
.bl-trust__icon svg, .bl-trust__icon img { height: 100%; width: auto; object-fit: contain; }

@media (max-width: 768px) {
  /* mobile: lưới 2×2, không gạch ngang */
  .bl-trust { border: 0; }
  .bl-trust__list { flex-wrap: wrap; gap: 18px 12px; padding: 18px 0; }
  .bl-trust__item { flex: 0 0 calc(50% - 6px); font-size: 11px; gap: 10px; }
  /* icon khung cố định 40×40 + căn giữa -> mọi icon rộng bằng nhau, chữ thẳng hàng (không thò thụt) */
  .bl-trust__icon { flex: none; width: 40px; height: 40px; justify-content: center; }
  .bl-trust__icon svg, .bl-trust__icon img { max-width: 100%; max-height: 100%; }
  .bl-trust__item > span:last-child { flex: 1; max-width: none; }
}

/* ----- ⑦ SOFA BED SHOWCASE (Task 7) — bento + video thumbnail ----- */
.bl-show__grid { display: grid; grid-template-columns: 1.38fr 1fr; gap: clamp(14px, 1.3vw, 20px); align-items: stretch; }
.bl-show__left { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); min-width: 0; justify-content: space-between;}
.bl-show__videos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1vw, 19px); }
.bl-show__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bl-show__title { font-weight: 500; color: #000; line-height: 1.1; margin: 0; font-size: clamp(1.875rem, 1.1rem + 2vw, 3.75rem); } /* 30 -> 60 */
.bl-show__price { display: block; font-weight: 500; color: #000; line-height: 1.2; margin: .25em 0 0; font-size: clamp(1rem, .85rem + .5vw, 1.5rem); } /* giá ngay dưới title */
.bl-show__sub { font-weight: 300; color: #939598; line-height: 1.25; margin: .35em 0 0; font-size: clamp(.6875rem, .55rem + .35vw, 1.25rem); } /* 11 -> 20 */
.bl-show__more { display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; color: #000; font-weight: 400; border: 1px solid transparent; border-radius: 1.5px; font-size: clamp(.6875rem, .5rem + .5vw, 1.3125rem); transition: color var(--bl-dur-fast) var(--bl-ease); } /* 11 -> 21 */
.bl-show__more .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-show__more:hover { color: var(--bl-accent); }
.bl-show__more:hover .bl-arrow { transform: translateX(4px); }
.bl-show__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1vw, 19px); }
.bl-show__thumb { display: block; aspect-ratio: 1 / 1; }   /* hình của item, ô vuông */

/* video card (thumbnail + nút play -> click ra YouTube iframe) */
.bl-show__video { position: relative; overflow: hidden; border-radius: var(--bl-radius); background: rgba(240,238,235,.55); }
.bl-show__videos .bl-show__video { aspect-ratio: 1 / 1; }
.bl-show__video > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-show__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.bl-show__video.is-playing .bl-show__play { display: none; }   /* đang phát -> ẩn nút play (iframe phủ lên, height giữ nguyên) */
.bl-show__feature { height: 100%; min-height: 0; }
.bl-show__mvideos { display: none; }   /* chỉ hiện ở mobile */
.bl-show__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(54px, 4.5vw, 80px); height: clamp(54px, 4.5vw, 80px); border: 0; border-radius: 50%; background: rgba(255,255,255,.5); color: var(--bl-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); transition: background var(--bl-dur-fast) var(--bl-ease), transform var(--bl-dur-fast) var(--bl-ease); }
.bl-show__play:hover { background: rgba(255,255,255,.8); transform: translate(-50%, -50%) scale(1.06); }
.bl-show__play svg { width: 38%; height: 38%; margin-left: 8%; }

@media (max-width: 768px) {
  .bl-show__grid { grid-template-columns: 1fr; gap: 16px; }
  /* Mobile: ẩn video desktop, dùng dải video vuốt ngang */
  .bl-show__feature { display: none; }
  .bl-show__videos { display: none; }
  .bl-show__mvideos { display: flex; order: -1; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -15px !important;}
  .bl-show__mvideos::-webkit-scrollbar { display: none; }
  /* banner video mobile: tỉ lệ dọc 430 x 644 (theo Figma) */
  .bl-show__mvideos .bl-show__video { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 430 / 644; }
  .bl-show__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bl-show__sub { max-width: 65%; }   /* phụ đề chỉ chiếm 65% bề ngang */
  .bl-show__more { border-color: #000; padding: .55em 1.1em; font-size: 11px; }
  /* 3 thumbnail -> vuốt ngang */
  .bl-show__thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; grid-template-columns: none; }
  .bl-show__thumbs::-webkit-scrollbar { display: none; }
  .bl-show__thumbs .bl-media { flex: 0 0 76%; scroll-snap-align: start; }
}

/* ----- ⑧ LOOKBOOK "PHÒNG KHÁCH" (Task 8) — banner trong container + slider ----- */
.bl-lookbook { position: relative; }
.bl-lookbook__inner { position: relative; overflow: hidden; border-radius: var(--bl-radius); }
.bl-lookbook__slider { position: relative; }
/* slide position relative -> caption (inset:0) bám đúng banner của slide đó */
.bl-lookbook__slider .swiper-slide { position: relative; }
.bl-lookbook__media { aspect-ratio: 1920 / 900; max-height: 86vh; }
.bl-lookbook__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* caption ở vùng DƯỚI, ngay trên cụm dots */
.bl-lookbook__caption { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: clamp(10px, 1.4vw, 18px); padding: 0 20px clamp(40px, 4.5vw, 60px); color: #fff; pointer-events: none; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.bl-lookbook__title { font-weight: 500; margin: 0; line-height: 1.1; font-size: clamp(1.875rem, 1.1rem + 2vw, 3.75rem); } /* 30 -> 60 */
.bl-lookbook__sub { font-weight: 300; margin: 0; line-height: 1.3; font-size: clamp(.6875rem, .44rem + .94vw, 1.5625rem); } /* 11 -> 25 */
.bl-lookbook__btn { pointer-events: auto; display: inline-flex; align-items: center; gap: .6em; margin-top: .4em; border: 1px solid #fff; color: #fff; border-radius: 1.5px; padding: .65em 1.5em; font-weight: 400; white-space: nowrap; font-size: clamp(.6875rem, .5rem + .5vw, 1.3125rem); transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); } /* 11 -> 21 */
.bl-lookbook__btn:hover { background: #fff; color: var(--bl-ink); }

.bl-lookbook__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: clamp(30px, 2.6vw, 40px); height: clamp(30px, 2.6vw, 40px); border: 0; border-radius: 50%; background: rgba(255,255,255,.28); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); transition: background var(--bl-dur-fast) var(--bl-ease); }
.bl-lookbook__nav:hover { background: rgba(255,255,255,.5); }
.bl-lookbook__nav--prev { left: clamp(12px, 2vw, 30px); }
.bl-lookbook__nav--next { right: clamp(12px, 2vw, 30px); }

.bl-lookbook__dots { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vw, 40px); z-index: 4; display: flex; gap: 9px; justify-content: center; }
.bl-lookbook__dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: 50%; background: #fff; opacity: .5; transition: opacity var(--bl-dur-fast) var(--bl-ease); }
.bl-lookbook__dots .swiper-pagination-bullet-active { opacity: 1; }

@media (max-width: 768px) {
  .bl-lookbook__media { aspect-ratio: 430 / 400; max-height: none; }
  /* slider tràn full-width màn hình: bù trừ đúng padding 15px của .container.
     inner không còn clip/bo góc để slider "thoát" ra được. */
  .bl-lookbook__inner { overflow: visible; border-radius: 0; }
  .bl-lookbook__slider { margin: 0 -15px !important; overflow: hidden; }
}

/* ----- ⑧b LOOKBOOK FLYOUT (port từ sbr-flyout) — click ảnh: panel ĐẨY slider (chia diện tích) ----- */
/* inner thành flex row; slider co lại nhường chỗ cho wrap (không absolute đè lên) */
.bl-lookbook__inner { display: flex; align-items: stretch; }
.bl-lookbook__slider { flex: 1 1 auto; min-width: 0; }

/* panel wrap: mặc định rộng 0 (ẩn); mở -> flex-basis 45% đẩy slider */
.sbr-flyout__wrap {
  flex: 0 0 0%; min-width: 0; overflow: hidden;   /* basis 0% -> transition cùng đơn vị với 45% */
  background: #fff; position: relative; display: flex; flex-direction: column;
  transition: flex-basis .45s cubic-bezier(.16,1,.3,1);
}
.sbr-flyout__wrap.is-active { flex-basis: 45%; padding: 40px 24px; overflow-y: auto; }

/* Nội dung: fade -> khi ĐÓNG content mờ đi ngay (tránh biến dạng khi co); khi MỞ hiện sau khi giãn */
.sbr-flyout__header, .sbr-flyout__products { opacity: 0; transition: opacity .2s ease; }
.sbr-flyout__wrap.is-active .sbr-flyout__header,
.sbr-flyout__wrap.is-active .sbr-flyout__products { opacity: 1; transition: opacity .3s ease .18s; }

@media (max-width: 767px) {
  /* mobile: block -> panel mở ra Ở DƯỚI carousel (không đè, không dính flex gây tràn width) */
  .bl-lookbook__inner { display: block; }
  .sbr-flyout__wrap { display: block; width: 100%; max-width: 100%; max-height: 0; padding: 0; overflow: hidden;
    transition: max-height .45s cubic-bezier(.16,1,.3,1), padding .45s cubic-bezier(.16,1,.3,1); }
  .sbr-flyout__wrap.is-active { max-height: 85vh; padding: 24px 0; overflow-y: auto; }
  .sbr-flyout__products { display: flex; flex: none; }   /* block wrap -> products cao theo nội dung */
  .sbr-flyout__header { padding: 0 16px; padding-right: 48px; }   /* wrap padding ngang = 0 nên header tự có lề */
  .sbr-flyout__close { top: 24px; right: 16px; }
}

.sbr-flyout__close { border: 0; background: transparent; position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; padding: 4px; cursor: pointer; color: #222; z-index: 6; }
.sbr-flyout__close svg { width: 100%; height: 100%; display: block; }
.sbr-flyout__close:hover { opacity: .7; }

.sbr-flyout__header { flex: none; text-align: left; padding: 0; margin-bottom: 16px; padding-right: 32px; }
.sbr-flyout__header h3 { font-size: clamp(20px, 1.6vw, 30px); margin: 0 0 10px; font-weight: 700; letter-spacing: .01em; color: #000; white-space: nowrap; }
.sbr-flyout__header p { margin: 0; color: #6b5a4d; font-weight: 300; line-height: 1.4; font-size: 14px; }

/* desktop: products chiếm phần còn lại của wrap (= chiều cao ảnh slider), scroll dọc trong đó */
.sbr-flyout__products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; margin-top: 12px; overflow-y: auto; flex: 1 1 0; min-height: 0; padding-right: 4px; overflow-x: hidden; }
@media (max-width: 767px) {
  /* mobile: carousel ngang ~1.2 sản phẩm/màn hình; align-items:flex-start -> box_product cao theo content (không collapse) */
  .sbr-flyout__products { display: flex; align-items: flex-start; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; gap: 0; padding: 0 0 4px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sbr-flyout__products::-webkit-scrollbar { display: none; }
  .sbr-flyout__products .box_product { flex: 0 0 80%; margin-right: 10px; scroll-snap-align: start; }
  .sbr-flyout__products .box_product:last-child { margin-right: 16px; }
}
.sbr-products-data { display: none; }   /* kho HTML sản phẩm (server render), JS copy vào panel */

/* Desktop: khi mở flyout khóa chiều cao slider để ảnh cover (không tụt chiều cao) */
@media (min-width: 768px) {
  .bl-lookbook.flyout-open .bl-lookbook__slider,
  .bl-lookbook.flyout-open .bl-lookbook__slider .swiper,
  .bl-lookbook.flyout-open .bl-lookbook__slider .swiper-wrapper,
  .bl-lookbook.flyout-open .bl-lookbook__slider .swiper-slide { height: 100%; }
  .bl-lookbook.flyout-open .bl-lookbook__media { height: 100%; max-height: none; aspect-ratio: auto; }
}

/* ảnh lookbook -> con trỏ pointer báo hiệu click được */
.bl-lookbook__slider .swiper-slide .bl-lookbook__media { cursor: pointer; }

/* ----- ⑨ REVIEW KHÁCH HÀNG (Task 9) — slider thẻ review ----- */
.bl-reviews { background: #F9F8F7; }
.bl-reviews__title { font-family: var(--bl-font); font-weight: 600; color: #232734; text-align: center; line-height: 1.2; margin: 0 0 .5em; font-size: clamp(1.375rem, .87rem + 1.88vw, 3.125rem); } /* 22 -> 50 */
/* dòng phụ nhỏ dưới tiêu đề — bề ngang ~bằng cụm tiêu đề, căn giữa, chừa khoảng cách nhẹ */
.bl-reviews__subtitle { text-align: center; color: #939598; font-weight: 300; line-height: 1.4; margin: 0 auto var(--bl-block-y); max-width: 46ch; padding: 0 clamp(12px, 3vw, 24px); font-size: clamp(.75rem, .68rem + .3vw, 1.0625rem); } /* 12 -> 17 */
/* desktop: dòng phụ dài bằng 75% bề ngang màn hình */
@media (min-width: 769px) {
  .bl-reviews__subtitle { max-width: 75vw; }
}
/* padding 2 bên = gutter cho mũi tên (không đè lên thẻ) */
.bl-reviews__wrap { position: relative; padding: 0 clamp(34px, 4vw, 64px); }
.bl-reviews__quote { position: absolute; z-index: 1; width: clamp(34px, 4vw, 60px); height: auto; pointer-events: none; user-select: none; }
/* SVG mẫu đã đúng hướng (mở/đóng), không cần lật */
.bl-reviews__quote--l { top: -.3em; left: 0; }
.bl-reviews__quote--r { bottom: -.3em; right: 0; }

.bl-reviews__slider { position: relative; z-index: 2; padding: 8px 6px 16px !important; }
/* card review LUÔN bằng nhau: slide cao đều, card fill 100% */
.bl-reviews__slider .swiper-wrapper { align-items: stretch; }
.bl-reviews__slider .swiper-slide { height: auto; display: flex; }
.bl-reviews__slider .swiper-slide > .bl-review { width: 100%; }

.bl-review { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--bl-radius); overflow: hidden; box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.15); }
/* ảnh review LUÔN vuông + cover: img absolute -> không ép chiều cao media */
.bl-review__media { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--bl-surface-2); }
.bl-review__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-review__panel { display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 1vw, 18px); flex: 1; }
.bl-review__product { font-weight: 500; color: #000; margin: 0; font-size: clamp(.75rem, .72rem + .1vw, .84rem); }   /* 12 -> 13.46 */
.bl-review__text { font-weight: 300; color: #000; line-height: 1.35; margin: 0; font-size: clamp(.625rem, .55rem + .18vw, .84rem); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } /* 10 -> 13.46; tối đa 4 dòng + ... */
.bl-review__author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.bl-review__avatar { flex: none; width: clamp(28px, 2vw, 38px); height: clamp(28px, 2vw, 38px); border-radius: 50%; background: #D8CDC7; box-shadow: inset 0 0 0 3px #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.bl-review__avatar > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bl-review__avatar-icon { width: 54%; height: 54%; }
.bl-review__name { display: block; font-weight: 400; color: #3D271A; font-size: clamp(.75rem, .66rem + .22vw, 1.01rem); } /* 12 -> 16.16 */
.bl-review__stars { color: #D8CDC7; font-size: 12px; letter-spacing: 2px; line-height: 1; }

.bl-reviews__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: clamp(25px, 2.6vw, 40px); height: clamp(25px, 2.6vw, 40px); border: 1px solid #D4C6BB; border-radius: 50%; background: #fff; color: #D4C6BB; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); }
.bl-reviews__nav:hover { background: #D4C6BB; color: #fff; }
.bl-reviews__nav--prev { left: 0; }
.bl-reviews__nav--next { right: 0; }
.bl-reviews__nav.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* ----- ⑩ ĐỐI TÁC (Task 10) — hàng logo ----- */
.bl-partners { background: #fff; }
/* label giống .bl-reviews__title */
.bl-partners__label { font-family: var(--bl-font); font-weight: 600; color: #232734; text-align: center; line-height: 1.2; margin: 0 0 var(--bl-block-y); font-size: clamp(1.17rem, .74rem + 1.6vw, 2.656rem); } /* ~19 -> 42.5 (giảm 15% so với bl-reviews__title) */
.bl-partners__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 4.6vw, 88px); }
.bl-partners__logo { display: inline-flex; }
.bl-partners__logo img { height: clamp(25px, 5vw, 90px); width: auto; object-fit: contain; opacity: .9; transition: opacity var(--bl-dur-fast) var(--bl-ease); } /* desktop TB ~75px, mobile 25px */
.bl-partners__logo:hover img { opacity: 1; }

@media (max-width: 768px) {
  .bl-partners__logos { gap: 22px 28px; }
  .bl-partners__logo img { height: 25px; }
}

/* ----- ⑪ BLOG (Task 11) — bento bài viết ----- */
.bl-blog { background: #fff; }
.bl-blog__heading { text-align: center; font-weight: 500; color: #000; line-height: 1.2; margin: 0 0 var(--bl-block-y); font-size: clamp(1.375rem, .87rem + 1.88vw, 3.125rem); } /* 22 -> 50 */
.bl-blog__grid {
  display: grid; gap: clamp(14px, 1.5vw, 30px);
  grid-template-columns: 0.85fr 1fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "a b c" "a b d";
  aspect-ratio: 1810 / 830;
}
.bl-blog__card { position: relative; display: block; overflow: hidden; border-radius: var(--bl-radius); }
.bl-blog__card--1 { grid-area: a; } .bl-blog__card--2 { grid-area: b; }
.bl-blog__card--3 { grid-area: c; } .bl-blog__card--4 { grid-area: d; }
.bl-blog__card > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bl-dur) var(--bl-ease); }
.bl-blog__card:hover > img { transform: scale(1.04); }
.bl-blog__body { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px, 1.6vw, 30px); color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.bl-blog__title { display: block; font-weight: 500; line-height: 1.25; margin: 0 0 .7em; }
.bl-blog__card--1 .bl-blog__title, .bl-blog__card--2 .bl-blog__title { font-size: clamp(1.25rem, .98rem + 1vw, 2.1875rem); }   /* 20 -> 35 */
.bl-blog__card--3 .bl-blog__title, .bl-blog__card--4 .bl-blog__title { font-size: clamp(1.125rem, .94rem + .67vw, 1.75rem); } /* 18 -> 28 */
.bl-blog__more { display: inline-flex; align-items: center; gap: .6em; color: #fff; font-weight: 400; font-size: clamp(.6875rem, .5rem + .45vw, 1.25rem); } /* 11 -> 20 */
.bl-blog__more .bl-arrow { transition: transform var(--bl-dur-fast) var(--bl-ease); }
.bl-blog__card:hover .bl-blog__more .bl-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .bl-blog__heading { text-align: left; }
  /* bento -> vuốt ngang (scroll-snap) */
  .bl-blog__grid { display: flex; aspect-ratio: auto; grid-template-columns: none; grid-template-rows: none; grid-template-areas: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .bl-blog__grid::-webkit-scrollbar { display: none; }
  .bl-blog__card { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 330 / 498; }
}

/* ----- ⑫ INSTAGRAM / FACEBOOK (Task 12) ----- */
.bl-insta { background: #F9F8F7; }
.bl-insta__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 64px); align-items: stretch; }
.bl-insta__feed-col { position: relative; min-width: 0; }   /* grid item bọc swiper -> tránh blowout */
.bl-insta__feed { position: relative; width: 100%; }
/* desktop: chừa gutter phải cho mũi tên (padding ở col, nút nằm NGOÀI swiper) */
@media (min-width: 769px) { .bl-insta__feed-col { padding-right: 56px; } }
.bl-insta__item { display: block; height: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--bl-radius); }
.bl-insta__item > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bl-dur) var(--bl-ease); }
.bl-insta__item:hover > img { transform: scale(1.05); }
/* nút tròn next của feed (giống explore) */
.bl-insta__nav { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); z-index: 5; width: clamp(34px, 2.6vw, 40px); height: clamp(34px, 2.6vw, 40px); border: 1px solid #000; border-radius: 50%; background: #fff; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); }
.bl-insta__nav:hover { background: #000; color: #fff; }
.bl-insta__nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

.bl-insta__text { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
.bl-insta__title { font-weight: 500; color: #000; line-height: 1.15; margin: 0; font-size: clamp(1.875rem, 1.51rem + 1.34vw, 3.125rem); } /* 30 -> 50 */
.bl-insta__follow-text { font-weight: 500; color: #000; line-height: 1.2; margin: 0 0 16px; font-size: clamp(1rem, .74rem + .94vw, 1.875rem); } /* 16 -> 30 */
.bl-insta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.bl-insta__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; background: #fff; border: 1px solid #000; border-radius: 1.5px; color: #000; font-weight: 500; padding: .55em 1.6em; font-size: clamp(1rem, .91rem + .33vw, 1.3125rem); transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); } /* 16 -> 21 */
.bl-insta__btn:hover { background: #000; color: #fff; }

@media (max-width: 768px) {
  .bl-insta__row { grid-template-columns: 1fr; gap: 22px; }
  .bl-insta__text { order: -1; gap: 14px; }
  .bl-insta__btn { min-width: 0; flex: 1; padding: .5em 1em; }
  .bl-insta__nav { display: none; }   /* mobile: vuốt tay, ẩn nút */
}

/* ----- ⑬ SHOWROOM + NEWSLETTER (Task 13) — dải nâu gỗ full-width, content trong container ----- */
.bl-showroom { position: relative; overflow: hidden; color: #fff; padding: clamp(36px, 4vw, 56px) 0; }
.bl-showroom__bg { position: absolute; inset: 0; z-index: 0; display: block; }
.bl-showroom__bg-img { width: 100%; height: 100%; object-fit: cover; }
.bl-showroom::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(58,39,26,.28); } /* overlay nhẹ cho chữ dễ đọc */
.bl-showroom .container { position: relative; z-index: 2; }
.bl-showroom__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 80px); align-items: stretch; }
.bl-showroom__main { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bl-showroom__heading { font-weight: 500; line-height: 1.15; margin: 0; font-size: clamp(1.875rem, 1.51rem + 1.34vw, 3.125rem); } /* 30 -> 50 */
.bl-showroom__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bl-showroom__btn { display: inline-flex; align-items: center; justify-content: center; min-width: clamp(160px, 14vw, 200px); border: 1px solid #fff; border-radius: 1px; color: #fff; font-weight: 500; padding: .5em 1.4em; text-align: center; font-size: clamp(1rem, .91rem + .33vw, 1.3125rem); transition: background var(--bl-dur-fast) var(--bl-ease), color var(--bl-dur-fast) var(--bl-ease); } /* 16 -> 21 */
.bl-showroom__btn:hover { background: #fff; color: var(--bl-ink); }

.bl-showroom__side { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2vw, 30px); min-width: 0; }
.bl-showroom__btitle { font-weight: 500; line-height: 1.2; margin: 0 0 .35em; font-size: clamp(1rem, .74rem + .94vw, 1.875rem); } /* 16 -> 30 */
.bl-showroom__desc { font-weight: 300; line-height: 1.3; margin: 0 0 .9em; color: rgba(255,255,255,.92); font-size: clamp(.6875rem, .525rem + .6vw, 1.25rem); } /* 11 -> 20 */
.bl-showroom__field { display: flex; align-items: center; gap: 8px; border: .8px solid #fff; border-radius: 1px; padding: 7px 14px; background: transparent; max-width: 420px; }
.bl-showroom__field--sm { max-width: 200px; }
.bl-showroom__field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-family: var(--bl-font); font-weight: 300; font-size: clamp(.6875rem, .62rem + .18vw, .9375rem); }
.bl-showroom__field input::placeholder { color: rgba(255,255,255,.7); }
.bl-showroom__field button { flex: none; background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; }
.bl-showroom__field--btn { cursor: pointer; }
.bl-showroom__field--btn span { font-weight: 300; font-size: clamp(.6875rem, .62rem + .18vw, .9375rem); }

@media (max-width: 768px) {
  .bl-showroom__grid { grid-template-columns: 1fr; gap: 26px; }
  .bl-showroom__main { gap: 18px; }
  /* nút & ô nhập KHÔNG full-width -> kích thước vừa phải */
  .bl-showroom__btns { flex-direction: column; align-items: flex-start; }
  .bl-showroom__btn { width: auto; min-width: 180px; }
  .bl-showroom__side { justify-content: flex-start; }
  .bl-showroom__field { max-width: 340px; }
  .bl-showroom__field--sm { max-width: 200px; }
}

/* ============================================================
   RESPONSIVE chung (mỗi task bổ sung media query riêng nếu cần)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bl-home *, .bl-reveal { transition: none !important; animation: none !important; }
  .bl-reveal { opacity: 1; transform: none; }
}