/* --- HOME PAGE CONTENT (hero, shop-by-room, featured, materials) --- */
/* Trang dùng template "Trang chủ (Home)": bỏ padding-top của #content-wrap để hero full-width */
body.page-template-templates-home_template #content-wrap {
  padding-top: 0;
}

body.page-template-templates-home_template .site-main {
  padding: 0 !important;
  background-color: #FDFAF4 !important;
}

/* --- HERO BANNER --- */
.hero {
  position: relative;
  padding: 0 2rem;
  color: var(--text-light);
  overflow-x: clip;
  overflow-y: visible;
}

.hero-track {
  position: relative;
  height: 88vh;
  background-color: #FDFAF4;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #2f2418 0%, #4a3726 48%, #70543c 100%);
  /* căn giữa dọc nội dung */
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

.hero-slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      rgba(33, 23, 17, 0.72) 0%,
      rgba(33, 23, 17, 0.52) 36%,
      rgba(33, 23, 17, 0.14) 62%,
      rgba(33, 23, 17, 0) 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 50px 64px;
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 243, 232, 0.85);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero h1 span {
  font-style: italic;
}

.hero p {
  font-size: 17px;
  color: rgba(249, 243, 232, 0.85);
  margin-bottom: 30px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.5);
  color: #3B3529;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  font-size: 20px;
  /* icon lớn hơn */
  font-weight: 700;
  /* icon đậm hơn */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-arrow:hover {
  background: #ffffff;
  color: #2A241A;
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.8);
}

.hero-arrow-prev {
  left: 0.2rem;
}

.hero-arrow-next {
  right: 0.2rem;
}

.hero .btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero .btn-primary {
  background-color: var(--text-light);
  color: #2f291f;
}

.hero .btn-primary:hover {
  background-color: #ffffff;
}

.hero .btn-secondary {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(249, 243, 232, 0.85);
}

.hero .btn-secondary:hover {
  background: rgba(249, 243, 232, 0.12);
}

/* --- SHOP BY ROOM --- */
.shop-by-room {
  padding: 1rem 2rem;
  background-color: var(--bg-cream);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b7a66;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.room-card {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  gap: 14px;
  border-radius: 8px;
  background-color: #FBF7F0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.room-name {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.room-meta {
  font-size: 13px;
  opacity: 0.85;
}

.room-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: #ECE3D6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.room-info {
  display: flex;
  flex-direction: column;
}

/* --- Slider danh mục (tự chạy phải → trái, dừng khi hover, click vào trang sản phẩm) --- */
.room-slider-wrap {
  overflow: hidden;
  padding: 0.5rem 0;
  cursor: grab;
  user-select: none;
}

.room-slider-wrap.is-dragging {
  cursor: grabbing;
}

.room-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.75);
  color: #3B3529;
  display: none; /* chỉ hiện desktop */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.room-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.22);
}

.room-arrow-prev { left: 10px; }
.room-arrow-next { right: 10px; }

@media (min-width: 1024px) {
  .room-arrow { display: inline-flex; }
}

.room-slider-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: room-slide 50s linear infinite;
}

.room-slider-wrap:hover .room-slider-track {
  animation-play-state: paused;
}

@keyframes room-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.shop-by-room .room-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background-color: #FBF7F0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.shop-by-room .room-card:hover {
  background-color: #F5EEE5;
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.shop-by-room .room-icon-shared {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background-color: #ECE3D6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a06a4b;
}

.shop-by-room .room-icon-star {
  font-size: 24px;
  line-height: 1;
  color: #b55239;
}

.shop-by-room .room-card .room-name {
  margin-bottom: 0;
  font-size: 16px;
}

/* --- FEATURED PRODUCTS --- */
.featured-products {
  padding: 1rem 2rem;
  background-color: #FDFAF4;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.featured-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b55239;
}

.featured-kicker .kicker-star {
  font-size: 14px;
  color: #b55239;
}

.featured-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.featured-view-all {
  display: block;
  align-items: center;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #465739;
  border-radius: 999px;
  border: 1px solid rgba(155, 137, 118, 0.5);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.featured-view-all:hover {
  background-color: #465739;
  color: #fdfaf3;
  border-color: transparent;
  transform: translateX(2px);
}

.featured-view-all:hover .featured-arrow {
  transform: translateX(4px);
}

.featured-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
}

/* --- Thanh lọc sản phẩm nổi bật --- */
.product-filters-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.product-filters-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #D9D9D9;
  background-color: #FCFCF9;
  color: #5C5144;
  cursor: pointer;
  display: none; /* chỉ hiện desktop */
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.product-filters-nav:hover {
  background-color: #F5F5F0;
  border-color: #c9c9c4;
}

.product-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* chừa chỗ cho scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge cũ */
}

.product-filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.product-filters::-webkit-scrollbar-track {
  background: transparent;
}

.product-filters::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .product-filters-nav {
    display: inline-flex;
  }
}

.filter-btn {
  flex: 0 0 auto;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid #D9D9D9;
  background-color: #FCFCF9;
  color: #6b6053;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background-color: #F5F5F0;
  border-color: #c9c9c4;
  color: #5C5144;
}

.filter-btn.is-active {
  background-color: #2B2B2B;
  border-color: #2B2B2B;
  color: #ffffff;
}

.filter-btn.is-active:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.filter-icon {
  font-size: 16px;
  line-height: 1;
}

.filter-btn.is-active .filter-icon {
  opacity: 0.95;
}

/* --- SẢN PHẨM MỚI (Mới về hôm nay) --- */
.new-arrivals {
  padding: 2rem;
  background-color: #FDFAF4;
}

.new-arrivals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.new-arrivals-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #465739;
  border-radius: 999px;
  border: 1px solid rgba(155, 137, 118, 0.5);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.new-arrivals-view-all:hover {
  background-color: #465739;
  color: #fdfaf3;
  border-color: transparent;
  transform: translateX(2px);
}

.new-arrivals-view-all:hover .new-arrivals-arrow {
  transform: translateX(4px);
}

.new-arrivals-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.new-arrivals-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b55239;
}

.new-arrivals-star {
  font-size: 14px;
  color: #b55239;
}

.new-arrivals-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.new-arrivals-title .title-part1 {
  color: #1a1a1a;
}

.new-arrivals-title .title-part2 {
  font-style: italic;
}

.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Large desktop: show up to 6 products per row */
@media (min-width: 1600px) {
  .product-grid,
  .new-arrivals-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.product-card {
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: none;
}

.product-thumb {
  position: relative;
  margin: -2px -2px 16px;
  overflow: hidden;
  border-radius: 6px;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-title-link {
  text-decoration: none;
  color: inherit;
}

.product-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #5f7052;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.product-meta {
  padding: 0 6px 0;
}

.product-category {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5b4a;
  margin-bottom: 6px;
}

/* Keep category contrast AA on light cards in Lighthouse */
.new-arrivals-grid .product-category,
.featured-products .product-category {
  color: #6b5b4a !important;
}

.product-name {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 6px;
  font-weight: 400;
}

.product-prices {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.product-price {
  font-weight: 500;
  font-size: 16px;
  color: #8f4f30;
}

.product-price.is-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1.5px solid #d08a67;
  border-radius: 8px;
  background: #fff3ec;
  color: #a8502e !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* Keep price contrast AA on light cards in Lighthouse */
.new-arrivals-grid .product-price,
.featured-products .product-price {
  color: #8f4f30 !important;
}

.product-price-old {
  font-size: 13px;
  color: #6b5b4a;
  text-decoration: line-through;
}

/* Keep old-price contrast AA on light cards in Lighthouse */
.new-arrivals-grid .product-price-old,
.featured-products .product-price-old {
  color: #6b5b4a !important;
}

/* --- MATERIALS SECTION --- */
.materials {
  padding: 80px 2rem 100px;
}

.materials-header {
  text-align: center;
  margin-bottom: 40px;
}

.materials-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b7a66;
  margin-bottom: 10px;
}

.materials-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 38px;
  font-weight: 500;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.material-card {
  background-color: #FBF7F0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 32px 26px 30px;
  text-align: center;
}

.material-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.material-name {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.material-desc {
  font-size: 14px;
  color: #6e6256;
}

/* --- BLOG & CẢM HỨNG --- */
.blog-section {
  padding: 1rem 2rem;
  background-color: var(--bg-cream);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.blog-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b55239;
}

.blog-kicker .kicker-star {
  font-size: 14px;
  color: #b55239;
}

.blog-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 28px;
  font-weight: 500;
}

.blog-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #465739;
  border-radius: 999px;
  border: 1px solid rgba(155, 137, 118, 0.5);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-view-all:hover {
  background-color: #465739;
  color: #fdfaf3;
  border-color: transparent;
  transform: translateX(2px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #FBF7F0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-thumb {
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.03);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 0;
}

.blog-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #465739;
  background: rgba(123, 139, 111, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.blog-date {
  font-size: 13px;
  color: #465739;
}

.blog-card-title {
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  padding: 10px 20px 0;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 14px;
  color: #465739;
  line-height: 1.5;
  padding: 0 20px;
  margin-bottom: 14px;
}

.blog-read-more {
  display: inline-block;
  font-size: 13px;
  color: #465739;
  padding: 0 20px 20px;
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

/* --- NEWSLETTER --- */
.newsletter-section {
  background-color: #fcf7f0;
  padding: 1rem;
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 1rem auto;
}

.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1612;
  margin: 0 0 16px;
}

.newsletter-title-line1 {
  display: block;
}

.newsletter-title-line2 {
  display: block;
  color: #b55239;
  font-style: italic;
  margin-top: 4px;
}

.newsletter-desc {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #465739;
  margin: 0 0 28px;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  color: #1a1612;
  background: #fff;
  border: 1px solid rgba(155, 137, 118, 0.4);
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.newsletter-input::placeholder {
  color: #a89b8a;
}

.newsletter-input:focus {
  outline: none;
  border-color: #b55239;
}

.newsletter-submit {
  flex-shrink: 0;
  padding: 0 24px;
  height: 48px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background-color: #b55239;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-submit:hover {
  background-color: #9a4630;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- HOME CONTENT RESPONSIVE --- */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 1rem 1rem;
    background-color: #FDFAF4 !important;
    margin: 0;
  }

  .hero-track {
    height: 32vh;
  }

  .hero-slide {
    height: 34vh;
    align-items: flex-end;
    background-color: #FDFAF4;
  }

  .hero-content {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(180deg,
        rgba(33, 23, 17, 0.15) 0%,
        rgba(33, 23, 17, 0.9) 70%);
  }

  .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .shop-by-room .room-card {
    gap: 5px;
    padding: 0.5rem;
  }

  .shop-by-room {
    padding: 1rem;
  }

  .section-title {
    font-size: 30px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .room-card img {
    height: 240px;
  }

  .featured-products {
    padding: 1rem;
    margin-bottom: 0;
  }

  /* Mobile: ẩn "Bán chạy nhất", tiêu đề và nút Xem tất cả cùng hàng, nút bên phải */
  .featured-header .featured-kicker {
    display: none;
  }

  .featured-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .featured-header>div {
    flex: 1;
    min-width: 0;
  }

  /* Nút Xem tất cả chỉ hiển thị mũi tên, nằm bên phải */
  .featured-view-all-text {
    display: none;
  }

  .featured-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
  }

  .featured-view-all .featured-arrow {
    margin: 0;
    font-size: 18px;
  }

  /* New arrivals: mobile giống Sản phẩm nổi bật */
  .new-arrivals {
    padding: 0.35rem 1rem 1rem;
    margin-top: 0;
  }

  .new-arrivals-header .new-arrivals-kicker {
    display: none;
  }

  .new-arrivals-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5rem;
  }

  .new-arrivals-header>div {
    flex: 1;
    min-width: 0;
  }

  .new-arrivals-view-all-text {
    display: none;
  }

  .new-arrivals-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
  }

  .new-arrivals-view-all .new-arrivals-arrow {
    margin: 0;
    font-size: 18px;
  }

  .product-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0;
    margin-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-filters-wrap {
    align-items: center;
    margin-bottom: 12px;
  }

  .product-filters-nav {
    align-self: center;
    margin: 0;
    position: relative;
    top: 0;
  }

  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 11px;
  }

  .filter-icon {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-filters-wrap{
    margin-bottom: 12px;
  }

  .new-arrivals {
    padding: 1rem;
  }

  .new-arrivals-title {
    font-size: 28px;
  }

  .materials {
    padding: 1rem;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .blog-section {
    padding: 1rem;
  }

  .newsletter-section {
    padding: 0 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    border-radius: 6px;
    overflow: visible;
  }

  .newsletter-input {
    width: 100%;
    height: 62px;
    padding: 15px;
    font-size: 18px;
    border-radius: 999px;
  }

  .newsletter-submit {
    width: fit-content;
    height: 44px;
    margin-top: 1rem;
    padding: 0 22px;
    border-radius: 999px;
    align-self: center;
  }

  /* Mobile: ẩn "Kiến thức", tiêu đề và nút cùng hàng, nút bên phải, chỉ hiện mũi tên */
  .blog-header .blog-kicker {
    display: none;
  }

  .blog-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .blog-header>div {
    flex: 1;
    min-width: 0;
  }

  .blog-view-all-text {
    display: none;
  }

  .blog-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
  }

  .blog-view-all .blog-view-all-arrow {
    margin: 0;
    font-size: 18px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .btn {
    width: auto;
    min-width: 180px;
    text-align: center;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
  }

  /* Nút "Xem tất cả" ở sản phẩm nổi bật: ngắn và gọn trên mobile */
  .featured-view-all {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  /* KHÔNG GIAN SỐNG: hiển thị 4 icon trên 1 hàng, cho phép scroll ngang */
  .shop-by-room {
    padding: 1rem 0;
  }

  .shop-by-room .section-header {
    /* Ẩn tiêu đề ở mobile, chỉ giữ dãy icon */
    display: none;
  }

  .grid-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    /* ẩn scrollbar Firefox */
  }

  .grid-container::-webkit-scrollbar {
    display: none;
    /* ẩn scrollbar WebKit */
  }

  #explore .room-card {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
  }

  #explore .room-icon {
    margin-bottom: 0;
  }

  #explore .room-info {
    align-items: flex-start;
    text-align: left;
  }

  /* Ẩn số lượng sản phẩm ở mobile */
  .room-meta {
    display: none;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  /* Sản phẩm hiển thị kiểu masonry 2 cột, so le nhau */
  .product-grid {
    display: block;
    column-count: 2;
    column-gap: 8px;
  }

  .product-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 8px;
  }

  .product-thumb img {
    width: 100%;
    height: auto;
    /* co theo tỉ lệ ảnh, tạo độ so le */
  }

  .featured-view-all {
    align-self: stretch;
    justify-content: center;
    width: fit-content;
  }

  .materials-header {
    text-align: left;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Safari iOS: fix large white gap between Featured and New Arrivals */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    .featured-products {
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    .featured-products .product-grid {
      margin-bottom: 0 !important;
    }

    .new-arrivals {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }

    .new-arrivals-header {
      margin-top: 0 !important;
      margin-bottom: 0.6rem !important;
    }
  }
}