/* ==========================================================================
   THƯ WIBU SHOP - CHUẨN GIAO DIỆN TOYXINH.COM (FLATSOME) & NAM18.VN (HARAVAN)
   Font: Quicksand | Tone: Hồng (#e1668d) - Trắng (#ffffff) - Tím Than (#3c225f)
   100% Vector SVG & Hình Ảnh Sản Phẩm Thực Tế (Không dùng icon text/emoji)
   ========================================================================== */

:root {
  --primary-pink: #e1668d;
  --primary-pink-hover: #c94b74;
  --soft-pink-bg: #fdf4f7;
  --soft-pink-border: #f5dce5;
  --pastel-pink: #fec6d3;
  --plum-dark: #3c225f;
  --text-main: #3c225f;
  --text-muted: #7a688d;
  --white: #ffffff;
  --border-light: #ece4ea;
  --sale-bg: #e1668d;
  --font-main: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

a:hover {
  color: var(--primary-pink);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: var(--font-main);
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt-20 {
  margin-top: 20px;
}

.w-100 {
  width: 100%;
}

.relative-z {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   LUXURY BOUTIQUE HEADER (CHUẨN TOYXINH.COM + NAM18.VN — TỐI ƯU SCROLL & MOBILE)
   - Không lạm dụng border cứng
   - Tự động ẩn Top Bar mượt mà khi cuộn xuống (.header-wrapper.is-scrolled)
   - Mobile 2 tầng gọn đẹp + Off-canvas Drawer trượt từ trái
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 950;
  background: #ffffff;
  box-shadow: 0 6px 26px rgba(60, 34, 95, 0.05);
  transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.header-wrapper.is-scrolled {
  box-shadow: 0 10px 32px rgba(60, 34, 95, 0.08);
}

.header-wrapper.menu-is-open {
  z-index: 9999;
}

/* --- TẦNG 1: TOP PROMO BAR (TỰ ĐỘNG ẨN KHI SCROLL) --- */
.header-top {
  background: linear-gradient(90deg, #3c225f 0%, #562c7a 50%, #3c225f 100%);
  color: rgba(255, 255, 255, 0.94);
  max-height: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 0.74rem;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}

.header-wrapper.is-scrolled .header-top {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 500;
}

.top-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff85ad;
  box-shadow: 0 0 0 3px rgba(255, 133, 173, 0.22);
}

.top-bar-left strong {
  color: #ff9ebc;
  font-weight: 700;
}

.top-bar-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}

.top-bar-sep {
  opacity: 0.45;
}

.top-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.18s ease;
}

.top-bar-right a:hover {
  color: #ff9ebc;
}

/* --- TẦNG 2: MAIN HEADER UPPER (LOGO + SEARCH + MINIMAL ACTIONS) --- */
.header-main {
  padding: 15px 0;
  transition: padding 0.25s ease;
}

.header-wrapper.is-scrolled .header-main {
  padding: 9px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(300px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  color: var(--plum-dark);
  border-radius: 10px;
  background-color: #f8f2f5;
  border: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background-color: #f3e4ec;
  color: var(--primary-pink);
}

/* Pure Editorial Wordmark Logo (Chuẩn Toyxinh.) */
.header-logo-col {
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.brand-dot {
  color: var(--plum-dark);
}

.brand-heart-accent {
  color: var(--primary-pink);
  margin-left: 2px;
  transform: translateY(-10px) rotate(12deg);
  opacity: 0.9;
}

.brand-sub {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--plum-dark);
  letter-spacing: 0.06em;
  margin-top: 4px;
  opacity: 0.82;
}

/* Center Search Col (Tối giản, không viền cứng) */
.header-search-col {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.searchform {
  display: flex;
  align-items: center;
  height: 44px;
  background-color: #f7f1f4;
  border: 1.5px solid transparent;
  border-radius: 99px;
  padding: 4px 5px 4px 16px;
  transition: all 0.22s ease;
}

.searchform:hover {
  background-color: #f4ebf0;
}

.searchform:focus-within {
  border-color: rgba(225, 102, 141, 0.45);
  background-color: var(--white);
  box-shadow: 0 8px 24px rgba(225, 102, 141, 0.12);
}

.search-leading-icon {
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-field {
  flex: 1;
  width: 100%;
  height: 100%;
  padding-right: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--plum-dark);
}

.search-field::placeholder {
  color: #9687a6;
  font-weight: 500;
}

.ux-search-submit {
  height: 34px;
  padding: 0 18px;
  border-radius: 99px;
  background-color: var(--primary-pink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ux-search-submit:hover {
  background-color: var(--primary-pink-hover);
}

/* Live Search Dropdown */
.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(60, 34, 95, 0.14);
  max-height: 360px;
  overflow-y: auto;
  z-index: 980;
  padding: 6px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.search-suggestion-item:hover {
  background-color: var(--soft-pink-bg);
}

.search-suggestion-item img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.search-suggestion-info h5 {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.3;
  margin-bottom: 2px;
}

.search-suggestion-info span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-pink);
}

/* Right Actions: Minimalist Consult + Wishlist + Cart (Không dùng viền cứng) */
.header-right-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-hotline-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 99px;
  transition: opacity 0.2s ease;
}

.header-hotline-widget:hover {
  opacity: 0.85;
}

.hotline-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fdf0f5;
  color: var(--primary-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotline-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hotline-text-col small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hotline-text-col strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 99px;
  background-color: #f8f2f5;
  border: none;
  color: var(--plum-dark);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background-color: #f2e4ec;
  color: var(--primary-pink);
}

.header-action-btn.cart-pill-btn {
  background-color: var(--plum-dark);
  color: var(--white);
  padding: 0 16px;
}

.header-action-btn.cart-pill-btn:hover {
  background-color: var(--primary-pink);
  color: var(--white);
}

.action-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background-color: var(--primary-pink);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--white);
}

/* --- TẦNG 3: DESKTOP NAVIGATION BAR (THANH MẢNH, KHÔNG VIỀN CỨNG) --- */
.mobile-quick-cats,
.mobile-menu-backdrop,
.mobile-drawer-header,
.mobile-drawer-showcase,
.mobile-drawer-footer {
  display: none;
}

.header-bottom-nav {
  height: 44px;
  border-top: 1px solid rgba(60, 34, 95, 0.05);
}

.header-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 24px;
}

/* Nút Danh mục sản phẩm (Mega Dropdown bên trái) */
.nav-cat-mega-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cat-mega-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background-color: #fdf0f5;
  color: var(--plum-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-cat-mega-btn svg:first-child {
  color: var(--primary-pink);
}

.nav-cat-mega-btn:hover {
  background-color: var(--primary-pink);
  color: var(--white);
}

.nav-cat-mega-btn:hover svg:first-child {
  color: var(--white);
}

.nav-cat-mega-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 290px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(60, 34, 95, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 960;
}

.nav-cat-mega-wrap:hover .nav-cat-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cat-mega-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--plum-dark);
  transition: all 0.18s ease;
}

.nav-cat-mega-dropdown li a:hover {
  background-color: var(--soft-pink-bg);
  color: var(--primary-pink);
  padding-left: 18px;
}

.cat-count-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background-color: #fdf0f5;
  color: var(--primary-pink);
  white-space: nowrap;
}

/* Menu ngang chính chuẩn Flatsome nav-line-grow */
.header-nav-menu {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-wrap: nowrap;
}

.menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-top-link {
  height: 100%;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--plum-dark);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-top-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background-color: var(--primary-pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-top-link:hover,
.nav-top-link.active {
  color: var(--primary-pink);
}

.nav-top-link:hover::after,
.nav-top-link.active::after {
  transform: scaleX(1);
}

.nav-hot-pill {
  font-size: 0.62rem;
  font-weight: 700;
  background-color: #fde8f0;
  color: var(--primary-pink);
  padding: 1px 7px;
  border-radius: 99px;
  line-height: 1.35;
}

.icon-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.menu-item:hover .icon-chevron,
.nav-cat-mega-wrap:hover .icon-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Submenu Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(60, 34, 95, 0.13);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 950;
}

.menu-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--plum-dark);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-dropdown li a:hover {
  background-color: var(--soft-pink-bg);
  color: var(--primary-pink);
  padding-left: 18px;
}

/* ==========================================================================
   SECTION COMMON & FLATSOME SECTION TITLES
   ========================================================================== */
.section {
  padding: 36px 0;
}

.section-title-container {
  margin-bottom: 26px;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-pink);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.section-title b {
  flex: 1;
  height: 1.5px;
  background-color: rgba(225, 102, 141, 0.22);
  max-width: 180px;
}

.section-title.title-white {
  color: var(--white);
}

.section-title.title-white b {
  background-color: rgba(255, 255, 255, 0.35);
}

.section-subtitle {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--plum-dark);
  text-align: center;
}

.section-subtitle.text-white {
  color: var(--white);
}

/* ==========================================================================
   SECTION 1: HERO BANNER PACKERY GRID (KHÔNG VIỀN CỨNG - BÓNG ĐỔ MỀM)
   ========================================================================== */
.hero-banner-section {
  padding-top: 20px;
  padding-bottom: 18px;
}

.banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.banner-col-main {
  display: flex;
  min-width: 0;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--soft-pink-bg);
  box-shadow: 0 12px 32px rgba(60, 34, 95, 0.08);
}

.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hero-banner-slide.active {
  display: block;
  animation: fadeBanner 0.45s ease;
}

@keyframes fadeBanner {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-banner-slide:hover img {
  transform: scale(1.02);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--plum-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 4;
}

.slider-nav-btn:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.slider-nav-btn.prev { left: 16px; }
.slider-nav-btn.next { right: 16px; }

.slider-page-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: none;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: var(--primary-pink);
  width: 24px;
  border-radius: 99px;
}

.banner-col-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}

.side-promo-item {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--soft-pink-bg);
  box-shadow: 0 10px 28px rgba(60, 34, 95, 0.07);
}

.side-promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.side-promo-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   SECTION 2: RUNNING MARQUEE STRIP (CHUẨN NAM18.VN)
   ========================================================================== */
.home-marquee-wrapper {
  background-color: #fdf2f6;
  padding: 10px 0;
  overflow: hidden;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.home-marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.marquee-item {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--plum-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  display: inline-block;
}

/* ==========================================================================
   SECTION 3: 3 Ô CAM KẾT DỊCH VỤ (KHÔNG VIỀN CỨNG)
   ========================================================================== */
.service-features-section {
  padding: 22px 0 10px;
}

.service-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: 18px;
  padding: 22px 0;
  box-shadow: 0 10px 30px rgba(60, 34, 95, 0.05);
}

.service-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 20px;
  border-right: 1px solid rgba(60, 34, 95, 0.06);
}

.service-col:last-child {
  border-right: none;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  border-radius: 50%;
  background-color: #fdf0f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.service-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.35;
}

/* ==========================================================================
   PRODUCT CARD SYSTEM (KHÔNG VIỀN CỨNG - ĐỔ BÓNG BOUTIQUE MỀM MẠI)
   ========================================================================== */
.products-grid {
  display: grid;
  gap: 20px;
}

.products-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bestseller-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.bestseller-left-col {
  display: flex;
  min-width: 0;
}

.bestseller-left-col .product-card {
  width: 100%;
  height: 100%;
}

.bestseller-right-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: none;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 22px rgba(60, 34, 95, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(225, 102, 141, 0.14);
}

.box-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--soft-pink-bg);
  cursor: pointer;
}

.box-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card.hero-large-card .box-image {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 360px;
}

.product-card.hero-large-card .box-image .box-image-link {
  position: absolute;
  inset: 0;
}

.product-card.hero-large-card .box-image .front-image,
.product-card.hero-large-card .box-image .back-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.38s ease, transform 0.5s ease;
}

.box-image .back-image {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .box-image .back-image {
  opacity: 1;
  transform: scale(1.04);
}

.product-card:hover .box-image .front-image {
  transform: scale(1.04);
}

.badge-sale,
.badge-top-one {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background-color: var(--primary-pink);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 3px 8px rgba(225, 102, 141, 0.28);
}

.badge-top-one {
  background: linear-gradient(135deg, #3c225f 0%, #e1668d 100%);
  letter-spacing: 0.03em;
}

.image-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.22s ease;
}

.product-card:hover .image-tools {
  opacity: 1;
  transform: translateX(0);
}

.tool-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--plum-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.tool-icon-btn:hover,
.tool-icon-btn.liked {
  background: var(--primary-pink);
  color: var(--white);
}

.box-text {
  padding: 10px 4px 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card.hero-large-card .box-text {
  flex: 0 0 auto;
  padding: 14px 6px 6px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.38;
  min-height: 2.76em;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.product-card.hero-large-card .product-title {
  font-size: 1.14rem;
  min-height: auto;
  margin-bottom: 6px;
}

.hero-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-card-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--plum-dark);
  background: #fdf0f5;
  padding: 4px 10px;
  border-radius: 99px;
}

.product-title a {
  color: inherit;
}

.product-title:hover,
.product-title a:hover {
  color: var(--primary-pink);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-meta-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.btn-circle-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #fdf0f5;
  border: none;
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-circle-plus:hover {
  background-color: var(--primary-pink);
  color: var(--white);
  transform: rotate(90deg);
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.price-current {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.product-card.hero-large-card .price-current {
  font-size: 1.28rem;
}

.price-old {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.rate-sold-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hearts-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--primary-pink);
  flex-shrink: 0;
}

.hearts-rating svg {
  width: 11px;
  height: 11px;
  fill: var(--primary-pink);
}

.catalog-loadmore-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-loadmore-group .button {
  padding: 12px 26px;
  border-radius: 99px;
}

/* ==========================================================================
   SECTION 6: FLATSOME TABS & FILTER BAR (KHÔNG VIỀN CỨNG)
   ========================================================================== */
.flatsome-tabs-wrap {
  margin-bottom: 24px;
}

.flatsome-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-pill {
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--plum-dark);
  background-color: #f7f0f4;
  border: none;
  transition: all 0.2s ease;
}

.tab-pill:hover,
.tab-pill.active {
  background-color: var(--primary-pink);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(225, 102, 141, 0.24);
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background-color: #f9f3f6;
  border-radius: 14px;
}

.filter-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum-dark);
}

.flatsome-select {
  background-color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--plum-dark);
  box-shadow: 0 2px 10px rgba(60, 34, 95, 0.05);
  cursor: pointer;
}

/* ==========================================================================
   SECTION 7: FULL-WIDTH PROMO BANNER
   ========================================================================== */
.mid-promo-section {
  padding: 12px 0;
}

.mid-promo-banner {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(225, 102, 141, 0.14);
}

.mid-promo-banner img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mid-promo-banner:hover img {
  transform: scale(1.015);
}

/* ==========================================================================
   SECTION 8: DANH MỤC TOYS NỔI BẬT + HỆ THỐNG CATALOG THƯ WIBU SHOP
   ========================================================================== */
.featured-cats-section {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  background-color: #3c225f;
}

.featured-cats-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.featured-cats-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.featured-cats-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.featured-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  padding: 8px 2px 14px;
}

.featured-cats-grid.is-carousel {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 66px) / 4);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-cats-grid.is-carousel::-webkit-scrollbar {
  display: none;
}

.featured-cat-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 14px 32px rgba(18, 8, 36, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

.featured-cat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(18, 8, 36, 0.52);
}

.featured-cat-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.feat-cat-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(60, 34, 95, 0.86);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 22px rgba(14, 5, 28, 0.42);
  backdrop-filter: blur(6px);
  transition: all 0.22s ease;
}

.feat-cat-nav-btn:hover {
  background: var(--primary-pink);
  border-color: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.feat-cat-nav-btn.prev {
  left: -18px;
}

.feat-cat-nav-btn.next {
  right: -18px;
}

.featured-cats-carousel-wrap.grid-expanded .feat-cat-nav-btn {
  display: none;
}

.featured-cats-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.feat-cats-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feat-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: all 0.25s ease;
}

.feat-dot.active {
  width: 28px;
  background: var(--white);
}

.feat-toggle-layout-btn {
  padding: 9px 22px;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.22s ease;
}

.feat-toggle-layout-btn:hover {
  background: var(--white);
  color: var(--plum-dark);
  border-color: var(--white);
}

@media (max-width: 991px) {
  .featured-cats-grid.is-carousel {
    grid-auto-columns: calc((100% - 16px) / 2.2);
    gap: 16px;
  }
  .feat-cat-nav-btn.prev { left: 6px; }
  .feat-cat-nav-btn.next { right: 6px; }
}

/* ==========================================================================
   SECTION 9: BIẾT THÊM MỖI NGÀY (BLOG GRID - CHUẨN TOYXINH.COM)
   ========================================================================== */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-post-card {
  background: var(--white);
  border: 1px solid #f2e8ef;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(60, 34, 95, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: #ebd2df;
  box-shadow: 0 14px 30px rgba(60, 34, 95, 0.08);
}

.blog-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--soft-pink-bg);
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-thumb-wrap img {
  transform: scale(1.04);
}

.blog-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--plum-dark);
  border-radius: 10px;
  padding: 5px 9px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(60, 34, 95, 0.1);
}

.blog-date-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-pink);
}

.blog-date-badge small {
  font-size: 0.66rem;
  font-weight: 700;
}

.blog-box-text {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-box-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.42;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-box-text h4 {
  color: var(--primary-pink);
}

.blog-box-text p {
  font-size: 0.85rem;
  color: #5e4b75;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SECTION 10: BRAND STORY (2 CỘT CHUẨN TOYXINH.COM)
   ========================================================================== */
.brand-story-section {
  background-color: #fbf4f8;
}

.brand-story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.brand-story-col p {
  font-size: 0.95rem;
  color: var(--plum-dark);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER (CHUẨN TOYXINH.COM: NỀN HỒNG #E1668D + CHỮ TRẮNG)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-pink);
  color: var(--white);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-wordmark .brand-main {
  color: var(--white);
  font-size: 2.2rem;
}

.footer-wordmark .brand-dot {
  color: var(--plum-dark);
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 12px 0 16px;
  color: var(--white);
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-newsletter input {
  flex: 1;
  background: var(--white);
  color: var(--plum-dark);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-newsletter button {
  background-color: var(--plum-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.footer-newsletter button:hover {
  opacity: 0.9;
}

.footer-guarantee-note {
  font-size: 0.8rem;
  opacity: 0.92;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-menu li,
.footer-contact li {
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.footer-menu a,
.footer-contact a {
  color: var(--white);
  opacity: 0.92;
}

.footer-menu a:hover,
.footer-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background: var(--plum-dark);
  color: var(--white);
}

.absolute-footer {
  background-color: var(--plum-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   OFF-CANVAS CART & LIGHTBOX MODALS (CHUẨN FLATSOME)
   ========================================================================== */
.mfp-bg,
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(60, 34, 95, 0.55);
  backdrop-filter: blur(4px);
}

.off-canvas-cart {
  position: fixed;
  top: 0;
  right: -390px;
  width: 100%;
  max-width: 370px;
  height: 100vh;
  z-index: 9600;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: right 0.3s ease;
}

.off-canvas-cart.open {
  right: 0;
}

.cart-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-popup-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-pink);
  letter-spacing: 0.5px;
}

.cart-close-btn {
  color: var(--plum-dark);
  padding: 4px;
}

.is-divider {
  height: 3px;
  width: 36px;
  background-color: var(--soft-pink-border);
  margin: 10px 0 14px;
}

.cart-freeship-notice {
  background-color: var(--soft-pink-bg);
  border: 1px solid var(--soft-pink-border);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--plum-dark);
  margin-bottom: 14px;
}

.cart-widget-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.mini-cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--soft-pink-border);
}

.mini-cart-info {
  flex: 1;
}

.mini-cart-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.mini-cart-price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 6px;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--soft-pink-border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--soft-pink-bg);
  font-weight: 700;
  color: var(--plum-dark);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-widget-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.cart-privacy-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--plum-dark);
  background: var(--soft-pink-bg);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 14px;
}

.cart-subtotal-row strong {
  color: var(--primary-pink);
  font-size: 1.12rem;
}

.cart-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.button.primary {
  background-color: var(--primary-pink);
  color: var(--white);
}

.button.primary:hover {
  background-color: var(--primary-pink-hover);
  color: var(--white);
}

.button.secondary {
  background-color: var(--plum-dark);
  color: var(--white);
}

.button.secondary:hover {
  opacity: 0.92;
  color: var(--white);
}

/* Lightbox Modal */
.lightbox-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-card {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(60, 34, 95, 0.25);
}

.blog-lightbox-card,
.checkout-lightbox-card {
  max-width: 640px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft-pink-bg);
  color: var(--plum-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.qv-gallery-main {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--soft-pink-border);
  margin-bottom: 10px;
}

.qv-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.qv-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.qv-thumb.active {
  border-color: var(--primary-pink);
}

.qv-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-pink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.qv-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.qv-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.qv-specs-list {
  margin: 14px 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 0.9rem;
}

.qv-specs-list li {
  margin-bottom: 5px;
}

/* Checkout Form */
.checkout-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 6px;
}

.checkout-sub {
  font-size: 0.88rem;
  color: var(--plum-dark);
  margin-bottom: 18px;
}

.flatsome-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--soft-pink-border);
  background: var(--soft-pink-bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum-dark);
}

.checkout-summary-box {
  background: var(--soft-pink-bg);
  border: 1px solid var(--soft-pink-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
}

/* ==========================================================================
   FLOATING CONTACT BAR & TOAST
   ========================================================================== */
.floating-contact-bar {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 880;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(60, 34, 95, 0.22);
  transition: transform 0.2s ease;
}

.float-action-btn:hover {
  transform: scale(1.08);
  color: var(--white);
}

.float-action-btn span {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.zalo-float {
  background-color: var(--primary-pink);
}

.phone-float {
  background-color: var(--plum-dark);
}

.top-float {
  width: 40px;
  height: 40px;
  align-self: center;
  background-color: var(--white);
  color: var(--plum-dark);
  border: 1px solid var(--soft-pink-border);
}

.toast-box {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background-color: var(--plum-dark);
  color: var(--white);
  border-left: 4px solid var(--primary-pink);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE — 2-ROW HEADER + OFF-CANVAS DRAWER)
   ========================================================================== */
@media (max-width: 1180px) {
  .header-hotline-widget {
    display: none;
  }
  .nav-top-link {
    padding: 0 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 991px) {
  .hide-mobile {
    display: none !important;
  }

  .top-bar-row {
    justify-content: center;
  }

  .header-main {
    padding: 10px 0 11px;
  }

  .header-wrapper.is-scrolled .header-main {
    padding: 8px 0;
  }

  /* 2-Row Mobile Header:
     Row 1: [Menu Button]  --- [Centered Brand Logo] --- [Wishlist + Cart]
     Row 2: [Full-Width Search Bar] */
  .header-inner {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    align-items: center;
    row-gap: 10px;
    column-gap: 8px;
  }

  .mobile-nav-toggle {
    grid-area: menu;
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .header-logo-col {
    grid-area: logo;
    justify-self: center;
    text-align: center;
  }

  .brand-wordmark {
    align-items: center;
  }

  .brand-main {
    font-size: 1.85rem;
  }

  .brand-sub {
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .header-right-col {
    grid-area: actions;
    gap: 6px;
  }

  .header-action-btn,
  .header-action-btn.cart-pill-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .header-search-col {
    grid-area: search;
    max-width: none;
    width: 100%;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
  }

  .searchform {
    height: 40px;
    padding: 3px 4px 3px 14px;
  }

  /* Slide-Out Off-Canvas Mobile Menu Drawer */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(28, 12, 50, 0.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
    z-index: 9990;
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .header-bottom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    background: #ffffff;
    border-top: none;
    box-shadow: none;
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9995;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-bottom-nav.mobile-open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f3ecf0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
  }

  .mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7f1f5;
    color: var(--plum-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .header-nav-bar-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 20px 24px;
    height: auto;
    flex: 1;
    gap: 16px;
    max-width: 100%;
    background: #ffffff;
  }

  .nav-cat-mega-wrap,
  .header-nav-menu {
    display: none;
  }

  .mobile-drawer-showcase {
    display: flex;
    flex-direction: column;
  }

  .md-clean-nav {
    display: flex;
    flex-direction: column;
  }

  .md-clean-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    border-bottom: 1px solid #f5eef2;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--plum-dark);
    transition: color 0.18s ease;
  }

  .md-clean-link:last-child {
    border-bottom: none;
  }

  .md-clean-link:active,
  .md-clean-link.active {
    color: var(--primary-pink);
  }

  .md-clean-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
  }

  .md-clean-hot {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 99px;
    background: #fde8f0;
    color: var(--primary-pink);
  }

  .md-clean-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 99px;
    background: #f7f0f4;
    color: var(--plum-dark);
  }

  .mobile-drawer-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3ecf0;
    background: #ffffff;
  }

  .mobile-drawer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .drawer-zalo-btn,
  .drawer-tiktok-btn {
    height: 44px;
    padding: 0 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-zalo-btn {
    background: var(--primary-pink);
    color: var(--white);
  }

  .drawer-tiktok-btn {
    background: var(--plum-dark);
    color: var(--white);
  }

  /* Thanh trượt danh mục nhanh trên Mobile (Horizontal Quick Category Strip) */
  .mobile-quick-cats {
    display: block;
    margin-top: 8px;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
  }

  .header-wrapper.is-scrolled .mobile-quick-cats {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
  }

  .mobile-quick-cats-track {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .mobile-quick-cats-track::-webkit-scrollbar {
    display: none;
  }

  .m-quick-pill {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 99px;
    background: #f8f1f5;
    color: var(--plum-dark);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .m-quick-pill.active,
  .m-quick-pill:active {
    background: var(--primary-pink);
    color: var(--white);
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .banner-col-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 12px;
  }

  .side-promo-item {
    aspect-ratio: 16 / 9;
  }

  .bestseller-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card.hero-large-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
  }

  .product-card.hero-large-card .box-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .products-grid.cols-4,
  .featured-cats-grid,
  .blog-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hiển thị nút Tim trực tiếp trên Mobile (vì Mobile không có hover) */
  .image-tools {
    opacity: 1;
    transform: none;
    top: 8px;
    right: 8px;
  }

  .image-tools .btn-qv-tool {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .section {
    padding: 22px 0;
  }

  .mt-20 {
    margin-top: 12px;
  }

  .brand-main {
    font-size: 1.62rem;
  }

  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  /* Khi cuộn sâu trên màn hình điện thoại nhỏ, thu gọn luôn ô tìm kiếm để nhường chỗ cho sản phẩm */
  .header-wrapper.is-scrolled .header-search-col:not(:focus-within) {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .header-wrapper.is-scrolled .header-inner {
    row-gap: 0;
  }

  /* Section Titles gọn sang trên Mobile */
  .section-title-container {
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 1.16rem;
    gap: 10px;
    letter-spacing: 0.2px;
  }

  .section-title b {
    max-width: 34px;
  }

  .section-subtitle {
    font-size: 0.82rem;
    margin-top: 4px;
    padding: 0 8px;
  }

  /* Section 1: Hero Banner + 2 Side Banners nằm song song 2 cột gọn đẹp */
  .hero-banner-section {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .banner-grid {
    gap: 10px;
  }

  .hero-slider-wrapper {
    border-radius: 14px;
  }

  .slider-nav-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.82);
  }

  .slider-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .slider-nav-btn.prev { left: 8px; }
  .slider-nav-btn.next { right: 8px; }

  .slider-page-dots {
    bottom: 8px;
    gap: 6px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  .slider-dot.active {
    width: 18px;
  }

  .banner-col-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .side-promo-item {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }

  /* Section 2: Marquee gọn gàng */
  .home-marquee-wrapper {
    padding: 8px 0;
  }

  .marquee-item {
    font-size: 0.74rem;
  }

  /* Section 3: 3 Ô Cam kết dịch vụ nằm trên 1 hàng ngang 3 cột tinh tế */
  .service-features-section {
    padding: 12px 0 6px;
  }

  .service-features-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 4px;
    border-radius: 14px;
    gap: 0;
  }

  .service-col {
    padding: 2px 6px;
    border-right: 1px solid rgba(60, 34, 95, 0.06);
    border-bottom: none;
  }

  .service-col:last-child {
    border-right: none;
  }

  .service-icon-wrap {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }

  .service-icon-wrap img {
    width: 22px;
    height: 22px;
  }

  .service-text {
    font-size: 0.7rem;
    line-height: 1.28;
  }

  /* Section 4 & 5 & 6: Thẻ sản phẩm trên Mobile (Chuẩn Shopee Mall / Boutique App) */
  .products-grid,
  .bestseller-right-subgrid {
    gap: 10px;
  }

  .product-card {
    padding: 8px;
    border-radius: 14px;
  }

  /* Thẻ #1 Bestseller trên Mobile thiết kế dạng Spotlight ngang nổi bật */
  .product-card.hero-large-card {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fef6f9 100%);
    box-shadow: 0 10px 26px rgba(225, 102, 141, 0.12);
  }

  .product-card.hero-large-card .box-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .product-card.hero-large-card .box-text {
    padding: 2px 2px 2px 0;
  }

  .product-card.hero-large-card .product-title {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    margin-bottom: 4px;
  }

  .hero-card-desc {
    font-size: 0.74rem;
    -webkit-line-clamp: 1;
    margin-bottom: 6px;
  }

  .hero-card-tags {
    gap: 4px;
    margin-bottom: 6px;
  }

  .hero-card-tags span {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .product-card.hero-large-card .price-current {
    font-size: 1.04rem;
  }

  .box-image {
    border-radius: 10px;
  }

  .badge-sale,
  .badge-top-one {
    top: 7px;
    left: 7px;
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .tool-icon-btn {
    width: 28px;
    height: 28px;
  }

  .tool-icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .box-text {
    padding: 9px 2px 2px;
  }

  .product-title {
    font-size: 0.82rem;
    line-height: 1.34;
    min-height: 2.68em;
    margin-bottom: 6px;
  }

  .price-wrapper {
    gap: 4px;
    margin-bottom: 2px;
  }

  .price-current {
    font-size: 0.94rem;
  }

  .price-old {
    font-size: 0.72rem;
  }

  .rate-sold-row {
    font-size: 0.67rem;
    gap: 4px;
  }

  .hearts-rating svg {
    width: 9px;
    height: 9px;
  }

  .btn-circle-plus {
    width: 30px;
    height: 30px;
  }

  .btn-circle-plus svg {
    width: 14px;
    height: 14px;
  }

  /* Section 6: Category Tabs trượt ngang 1 dòng mượt mà trên Mobile */
  .flatsome-tabs-wrap {
    margin-bottom: 14px;
  }

  .flatsome-nav-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 7px;
    margin: 0 -12px 12px;
    padding: 2px 12px 6px;
  }

  .flatsome-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .catalog-filter-bar {
    flex-wrap: nowrap;
    padding: 8px 10px;
    border-radius: 12px;
    gap: 8px;
  }

  .filter-status {
    font-size: 0.74rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .flatsome-select {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 148px;
  }

  .catalog-loadmore-group {
    gap: 8px;
  }

  .catalog-loadmore-group .button {
    padding: 10px 16px;
    font-size: 0.76rem;
    flex: 1;
    min-width: 140px;
  }

  /* Section 7: Mid Promo Banner */
  .mid-promo-section {
    padding: 6px 0;
  }

  .mid-promo-banner {
    border-radius: 14px;
  }

  /* Section 8: 8 Poster Danh Mục Nổi Bật trên Mobile */
  .featured-cats-section {
    padding: 30px 0;
  }

  .featured-cats-grid {
    gap: 10px;
  }

  .featured-cats-grid.is-carousel {
    grid-auto-columns: calc((100% - 10px) / 2.15);
    gap: 10px;
  }

  .featured-cat-card {
    border-radius: 12px;
  }

  .feat-cat-nav-btn {
    width: 32px;
    height: 32px;
  }

  .feat-cat-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .feat-toggle-layout-btn {
    padding: 8px 18px;
    font-size: 0.78rem;
  }

  /* Section 9: Blog Biết Thêm Mỗi Ngày — Trượt ngang thẻ lớn chuẩn tạp chí trên Mobile */
  .blog-posts-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -12px;
    padding: 4px 12px 12px;
  }

  .blog-posts-grid::-webkit-scrollbar {
    display: none;
  }

  .blog-post-card {
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .blog-box-text {
    padding: 12px;
  }

  .blog-box-text h4 {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-box-text p {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  /* Section 10: Brand Story đóng khung thẻ mềm gọn gàng */
  .brand-story-row {
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(60, 34, 95, 0.04);
  }

  .brand-story-col p {
    font-size: 0.83rem;
    line-height: 1.58;
    margin-bottom: 10px;
  }

  .brand-story-col:last-child p:last-child {
    margin-bottom: 0;
  }

  /* Footer thông minh 2 cột trên Mobile */
  .site-footer {
    padding-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    padding-bottom: 28px;
  }

  .footer-col-brand,
  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-wordmark .brand-main {
    font-size: 1.85rem;
  }

  .footer-col h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .footer-menu li,
  .footer-contact li {
    font-size: 0.82rem;
    margin-bottom: 7px;
  }

  /* Lightbox Modals dạng Native iOS Bottom Sheet trên Mobile */
  .lightbox-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .lightbox-card {
    border-radius: 22px 22px 0 0;
    max-height: 88dvh;
    padding: 18px 16px 24px;
  }

  .qv-layout,
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .qv-gallery-main {
    max-height: 240px;
  }

  .qv-gallery-main img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: var(--soft-pink-bg);
  }

  .qv-title {
    font-size: 1.08rem;
  }

  .qv-price {
    font-size: 1.22rem;
  }

  /* Floating Contact Bar thu gọn không che nút sản phẩm */
  .floating-contact-bar {
    right: 10px;
    bottom: 14px;
    gap: 8px;
  }

  .float-action-btn {
    width: 42px;
    height: 42px;
  }

  .float-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .float-action-btn span {
    font-size: 0.56rem;
  }

  .top-float {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   TRANG DANH MỤC SẢN PHẨM & PHÂN TRANG (CATEGORY.HTML)
   Thiết kế đồng bộ Borderless Luxury Boutique
   ========================================================================== */
.products-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--primary-pink);
}

.bc-sep {
  opacity: 0.5;
}

.bc-current {
  color: var(--plum-dark);
  font-weight: 700;
}

.cat-page-hero {
  padding-top: 16px;
  padding-bottom: 6px;
}

/* Banner hình ảnh đầu trang Danh mục chuẩn Nam18.vn */
.cat-top-banner-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fde8f1;
  box-shadow: 0 12px 34px rgba(60, 34, 95, 0.08);
}

.cat-top-banner-wrap img {
  width: 100%;
  aspect-ratio: 2.85 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Tiêu đề danh mục tối giản, sang trọng */
.cat-clean-head-row {
  margin-bottom: 14px;
}

.blog-clean-head-row {
  margin-bottom: 4px;
}

.cat-clean-title-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-clean-title {
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.25;
}

.cat-clean-count-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cat-clean-count-badge strong {
  color: var(--primary-pink);
  font-weight: 700;
}

.cat-clean-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Bố cục 2 cột Trang Danh Mục */
.cat-shop-section {
  padding-top: 20px;
}

.cat-shop-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cat-filter-backdrop,
.cat-sidebar-mobile-head,
.btn-open-mobile-filter {
  display: none;
}

.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 118px;
}

.sidebar-widget {
  background: #fbf6f9;
  border-radius: 18px;
  padding: 18px;
}

.widget-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--plum-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(60, 34, 95, 0.06);
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--plum-dark);
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-cat-btn:hover {
  background: var(--white);
  color: var(--primary-pink);
}

.sidebar-cat-btn.active {
  background: var(--primary-pink);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(225, 102, 141, 0.24);
}

.sidebar-cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(60, 34, 95, 0.07);
  color: inherit;
}

.sidebar-cat-btn.active .sidebar-cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.sidebar-price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-radio-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum-dark);
  cursor: pointer;
  padding: 4px 2px;
}

.price-radio-item input[type="radio"] {
  accent-color: var(--primary-pink);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sidebar-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feat-filter-chip {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--white);
  color: var(--plum-dark);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(60, 34, 95, 0.04);
  transition: all 0.18s ease;
}

.feat-filter-chip:hover,
.feat-filter-chip.active {
  background: var(--primary-pink);
  color: var(--white);
}

.sidebar-mini-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  transition: transform 0.2s ease;
}

.mini-prod-row:hover {
  transform: translateX(3px);
}

.mini-prod-row img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-prod-meta {
  min-width: 0;
  flex: 1;
}

.mini-prod-meta h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-prod-meta span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.sidebar-visual-promo {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(60, 34, 95, 0.08);
  transition: transform 0.25s ease;
}

.sidebar-visual-promo:hover {
  transform: translateY(-2px);
}

.sidebar-visual-promo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Cột phải Trang Danh Mục: Toolbar + Active Chips + Pagination */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #fbf6f9;
  border-radius: 16px;
  margin-bottom: 16px;
}

.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-result-summary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum-dark);
}

.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cat-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #fdf0f5;
  color: var(--primary-pink);
  font-size: 0.78rem;
  font-weight: 700;
}

.active-filter-clear-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum-dark);
  text-decoration: underline;
  padding: 4px 8px;
}

/* Thanh Phân Trang (Numbered Pagination) */
.cat-pagination-wrap {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  background: #f8f1f5;
  color: var(--plum-dark);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #f2dfe8;
  color: var(--primary-pink);
}

.page-btn.active {
  background: var(--primary-pink);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(225, 102, 141, 0.28);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-dots {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 4px;
}

.pagination-meta-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   TRANG CHI TIẾT SẢN PHẨM ĐẦY ĐỦ THÔNG TIN (PRODUCT.HTML)
   ========================================================================== */
.pdp-breadcrumb-section {
  padding-top: 18px;
}

.pdp-hero-section {
  padding-top: 6px;
  padding-bottom: 24px;
}

.pdp-main-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 38px rgba(60, 34, 95, 0.06);
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 36px;
  align-items: start;
}

/* Cột Trái: Gallery Nhiều Góc Chụp */
.pdp-gallery-col {
  position: sticky;
  top: 112px;
  min-width: 0;
  max-width: 100%;
}

.pdp-info-col {
  min-width: 0;
  max-width: 100%;
}

.pdp-main-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft-pink-bg);
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(60, 34, 95, 0.06);
}

.pdp-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pdp-main-img-wrap:hover img {
  transform: scale(1.03);
}

.pdp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--plum-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.pdp-gallery-nav:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.pdp-gallery-nav.prev { left: 12px; }
.pdp-gallery-nav.next { right: 12px; }

.pdp-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pdp-thumbs-row::-webkit-scrollbar {
  display: none;
}

.pdp-thumb-item {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pdp-thumb-item.active,
.pdp-thumb-item:hover {
  opacity: 1;
  border-color: var(--primary-pink);
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cột Phải: Thông Tin Sản Phẩm & Mua Hàng */
.pdp-info-top-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pdp-cat-tag {
  padding: 4px 12px;
  border-radius: 99px;
  background: #fdf0f5;
  color: var(--primary-pink);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pdp-sku-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pdp-stock-tag {
  padding: 4px 10px;
  border-radius: 99px;
  background: #e8f8f0;
  color: #16804a;
  font-size: 0.74rem;
  font-weight: 700;
}

.pdp-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.pdp-rating-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pdp-rating-bar strong {
  color: var(--plum-dark);
}

.pdp-price-box {
  background: linear-gradient(135deg, #fdf2f6 0%, #f9eef6 100%);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.pdp-price-current {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-pink);
  line-height: 1;
}

.pdp-price-old {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-save-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--primary-pink);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
}

.pdp-short-desc {
  font-size: 0.94rem;
  color: var(--plum-dark);
  line-height: 1.65;
  margin-bottom: 16px;
}

.pdp-highlights-box {
  background: #fbf7f9;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.pdp-highlights-box h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--plum-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pdp-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.pdp-highlights-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum-dark);
}

.pdp-highlights-list li svg {
  color: var(--primary-pink);
  flex-shrink: 0;
}

/* Khu vực chọn số lượng + Nút Mua */
.pdp-purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.pdp-qty-and-cart-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.pdp-qty-control {
  display: inline-flex;
  align-items: center;
  background: #f7eff4;
  border-radius: 14px;
  padding: 4px;
}

.pdp-qty-btn {
  width: 38px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.pdp-qty-btn:hover {
  background: var(--white);
  color: var(--primary-pink);
}

.pdp-qty-input {
  width: 44px;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.pdp-btn-addcart {
  flex: 1;
  border-radius: 14px;
  padding: 0 22px;
  height: 48px;
  background: #fdf0f5;
  color: var(--primary-pink);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.pdp-btn-addcart:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.pdp-btn-wishlist {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f7eff4;
  color: var(--plum-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pdp-btn-wishlist.liked,
.pdp-btn-wishlist:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.pdp-buy-now-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.pdp-btn-buynow {
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e1668d 0%, #c94b74 100%);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(225, 102, 141, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pdp-btn-buynow:hover {
  opacity: 0.95;
  color: var(--white);
}

.pdp-btn-zalo {
  height: 50px;
  border-radius: 14px;
  background: var(--plum-dark);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pdp-btn-zalo:hover {
  opacity: 0.92;
  color: var(--white);
}

/* 3 Ô Cam kết bên dưới nút mua */
.pdp-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pdp-guarantee-item {
  background: #fbf6f9;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-guarantee-item strong {
  font-size: 0.8rem;
  color: var(--plum-dark);
}

.pdp-guarantee-item span {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Khối Tabs Chi Tiết Sản Phẩm */
.pdp-tabs-box {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 32px rgba(60, 34, 95, 0.05);
}

.pdp-tab-headers {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(60, 34, 95, 0.08);
  padding-bottom: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.pdp-tab-btn {
  padding: 10px 20px;
  border-radius: 99px;
  background: #f8f1f5;
  color: var(--plum-dark);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pdp-tab-btn.active,
.pdp-tab-btn:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.pdp-tab-panel {
  display: none;
}

.pdp-tab-panel.active {
  display: block;
}

.pdp-rich-content h3 {
  font-size: 1.2rem;
  color: var(--plum-dark);
  margin: 16px 0 8px;
}

.pdp-rich-content p {
  font-size: 0.94rem;
  color: var(--plum-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.pdp-rich-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.pdp-rich-content li {
  font-size: 0.92rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.pdp-specs-table tr:nth-child(odd) {
  background: #fbf6f9;
}

.pdp-specs-table th,
.pdp-specs-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.pdp-specs-table th {
  width: 34%;
  color: var(--text-muted);
  font-weight: 700;
}

.pdp-specs-table td {
  color: var(--plum-dark);
  font-weight: 600;
}

/* Đánh giá khách hàng */
.pdp-reviews-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.pdp-review-card {
  background: #fbf6f9;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.pdp-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pdp-review-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.pdp-review-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #16804a;
  background: #e8f8f0;
  padding: 2px 8px;
  border-radius: 99px;
}

.pdp-review-text {
  font-size: 0.88rem;
  color: var(--plum-dark);
  line-height: 1.55;
}

.pdp-review-form-box {
  background: #fdf3f7;
  border-radius: 18px;
  padding: 20px;
}

.pdp-review-form-box h4 {
  font-size: 1.02rem;
  color: var(--plum-dark);
  margin-bottom: 12px;
}

/* Responsive cho Category Page & Product Detail Page */
@media (max-width: 991px) {
  .cat-top-banner-wrap {
    border-radius: 18px;
  }

  .cat-top-banner-wrap img {
    aspect-ratio: 2.4 / 1;
  }

  .cat-shop-layout {
    grid-template-columns: 1fr;
  }

  .btn-open-mobile-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .cat-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(28, 12, 50, 0.5);
    backdrop-filter: blur(4px);
    z-index: 992;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .cat-filter-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .cat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 86vw;
    height: 100dvh;
    background: var(--white);
    z-index: 996;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 40px rgba(28, 12, 50, 0.22);
  }

  .cat-sidebar.open {
    transform: translateX(0);
  }

  .cat-sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(60, 34, 95, 0.08);
  }

  .cat-sidebar-mobile-head h3 {
    font-size: 1.05rem;
    color: var(--plum-dark);
  }

  .cat-sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7eff4;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .products-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-main-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 22px;
  }

  .pdp-gallery-col {
    position: static;
  }

  .pdp-reviews-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cat-top-banner-wrap {
    border-radius: 14px;
  }

  .cat-top-banner-wrap img {
    aspect-ratio: 2.1 / 1;
  }

  .cat-clean-title {
    font-size: 1.2rem;
  }

  .cat-clean-subtitle {
    font-size: 0.78rem;
  }

  .cat-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .cat-result-summary {
    font-size: 0.76rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .pdp-main-card {
    padding: 12px;
    border-radius: 18px;
    gap: 14px;
  }

  .pdp-breadcrumb-section {
    padding-top: 10px;
  }

  .breadcrumb-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.75rem;
    gap: 6px;
    margin-bottom: 8px;
  }

  .breadcrumb-nav .bc-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }

  .pdp-hero-section {
    padding-top: 2px;
    padding-bottom: 14px;
  }

  .pdp-main-img-wrap {
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .pdp-gallery-nav {
    width: 32px;
    height: 32px;
  }

  .pdp-gallery-nav.prev { left: 8px; }
  .pdp-gallery-nav.next { right: 8px; }

  .pdp-thumbs-row {
    gap: 8px;
    padding-bottom: 2px;
  }

  .pdp-thumb-item {
    width: 58px;
    height: 58px;
    border-radius: 10px;
  }

  .pdp-info-top-badges {
    gap: 6px;
    margin-bottom: 8px;
  }

  .pdp-cat-tag,
  .pdp-stock-tag {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .pdp-sku-tag {
    font-size: 0.68rem;
  }

  .pdp-title {
    font-size: 1.18rem;
    line-height: 1.28;
    margin-bottom: 8px;
  }

  .pdp-rating-bar {
    gap: 6px;
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  .pdp-price-box {
    padding: 11px 14px;
    border-radius: 13px;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }

  .pdp-price-current {
    font-size: 1.38rem;
  }

  .pdp-price-old {
    font-size: 0.86rem;
  }

  .pdp-save-pill {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .pdp-short-desc {
    font-size: 0.84rem;
    line-height: 1.52;
    margin-bottom: 12px;
  }

  .pdp-highlights-box {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .pdp-highlights-box h4 {
    font-size: 0.76rem;
    margin-bottom: 6px;
  }

  .pdp-highlights-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pdp-highlights-list li {
    font-size: 0.79rem;
    align-items: flex-start;
    line-height: 1.38;
  }

  .pdp-highlights-list li svg {
    margin-top: 2px;
  }

  .pdp-purchase-actions {
    gap: 8px;
    margin-bottom: 14px;
  }

  .pdp-qty-and-cart-row {
    gap: 8px;
  }

  .pdp-qty-control {
    border-radius: 12px;
    padding: 3px;
  }

  .pdp-qty-btn {
    width: 30px;
    height: 38px;
    border-radius: 9px;
    font-size: 1rem;
  }

  .pdp-qty-input {
    width: 32px;
    font-size: 0.88rem;
  }

  .pdp-btn-addcart {
    height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.79rem;
    white-space: nowrap;
    gap: 5px;
  }

  .pdp-btn-wishlist {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .pdp-buy-now-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pdp-btn-buynow,
  .pdp-btn-zalo {
    height: 44px;
    border-radius: 12px;
    font-size: 0.8rem;
    padding: 0 8px;
    white-space: nowrap;
  }

  .pdp-guarantees-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pdp-guarantee-item {
    padding: 8px 6px;
    border-radius: 11px;
    text-align: center;
    gap: 2px;
  }

  .pdp-guarantee-item strong {
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .pdp-guarantee-item span {
    font-size: 0.64rem;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pdp-tabs-box {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .pdp-tab-headers {
    gap: 7px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pdp-tab-headers::-webkit-scrollbar {
    display: none;
  }

  .pdp-tab-btn {
    padding: 8px 13px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .pdp-rich-content h3 {
    font-size: 1.02rem;
    margin: 12px 0 6px;
  }

  .pdp-rich-content p,
  .pdp-rich-content li {
    font-size: 0.84rem;
    line-height: 1.56;
  }

  .pdp-specs-table th,
  .pdp-specs-table td {
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .pdp-specs-table th {
    width: 38%;
  }

  .pdp-reviews-layout {
    gap: 16px;
  }

  .pdp-review-card {
    padding: 12px;
    border-radius: 13px;
    margin-bottom: 10px;
  }

  .pdp-review-head {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pdp-review-author {
    font-size: 0.82rem;
  }

  .pdp-review-verified {
    font-size: 0.66rem;
    padding: 2px 7px;
  }

  .pdp-review-text {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .pdp-review-form-box {
    padding: 14px;
    border-radius: 14px;
  }

  .pdp-review-form-box h4 {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   TRANG BLOG & TRANG CHI TIẾT BÀI VIẾT (BLOG.HTML & BLOG-DETAIL.HTML)
   Thiết kế tinh gọn, hiện đại, dễ đọc (Minimalist Editorial)
   ========================================================================== */
.blog-listing-section {
  padding-top: 8px;
}

.blog-featured-wrap {
  margin-bottom: 28px;
}

.blog-spotlight-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid #f0e4ec;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(60, 34, 95, 0.04);
}

.blog-spot-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 310px;
  display: block;
}

.blog-spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-spotlight-card:hover .blog-spot-media img {
  transform: scale(1.03);
}

.blog-spot-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(60, 34, 95, 0.88);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 99px;
}

.blog-spot-body {
  padding: 4px 8px 4px 0;
}

.blog-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-cat-pill {
  padding: 4px 12px;
  border-radius: 99px;
  background: #fdf0f5;
  color: var(--primary-pink);
  font-size: 0.74rem;
  font-weight: 700;
}

.blog-spot-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.38;
  margin-bottom: 10px;
}

.blog-spot-title a {
  color: inherit;
}

.blog-spot-title a:hover {
  color: var(--primary-pink);
}

.blog-spot-excerpt {
  font-size: 0.92rem;
  color: #5a4670;
  line-height: 1.62;
  margin-bottom: 16px;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 99px;
  background: var(--primary-pink);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.blog-read-btn:hover {
  background: var(--primary-pink-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Thanh lọc Blog & Lưới 3 cột tinh gọn */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: #fcf8fa;
  border: 1px solid #f2e8ef;
  padding: 10px 14px;
  border-radius: 16px;
}

.blog-cat-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-search-inline input {
  background: var(--white);
  border: 1px solid #eedfe8;
  border-radius: 99px;
  padding: 8px 16px;
  width: 220px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--plum-dark);
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-readmore {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-pink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   TRANG CHI TIẾT BÀI VIẾT (BLOG-DETAIL.HTML) — BỐ CỤC TẠP CHÍ SẠCH SẼ
   ========================================================================== */
.blog-detail-section {
  padding-top: 6px;
}

.blog-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.blog-article-card {
  background: var(--white);
  border: 1px solid #f0e4ec;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 8px 28px rgba(60, 34, 95, 0.04);
}

.article-header {
  margin-bottom: 20px;
}

.article-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.35;
  margin: 8px 0 0;
}

.article-cover-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #faf4f7;
}

.article-cover-wrap img {
  width: 100%;
  max-height: 370px;
  object-fit: cover;
  display: block;
}

.article-body-content {
  font-size: 0.98rem;
  color: #3b2854;
  line-height: 1.78;
}

.article-body-content .article-lead {
  font-size: 1.04rem;
  font-weight: 500;
  color: #4c3669;
  line-height: 1.75;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3eaf0;
}

.article-body-content h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--plum-dark);
  margin: 26px 0 10px;
  scroll-margin-top: 100px;
}

.article-body-content p {
  margin-bottom: 14px;
}

.article-body-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-body-content li {
  margin-bottom: 8px;
}

.article-tip-box {
  background: #fdf6f9;
  border-left: 3px solid var(--primary-pink);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--plum-dark);
}

.article-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  margin-top: 26px;
  border-top: 1px solid #f2e8ef;
}

.article-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum-dark);
}

.article-tag-chip {
  padding: 5px 12px;
  border-radius: 99px;
  background: #f9f2f6;
  color: #5a4573;
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-tag-chip:hover {
  background: #f4e2ec;
  color: var(--primary-pink);
}

.article-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.prev-next-card {
  background: #fcf8fa;
  border: 1px solid #f2e8ef;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prev-next-card.next {
  text-align: right;
}

.prev-next-card:hover {
  border-color: #e8c8d8;
  background: #fdf4f8;
}

.prev-next-card small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.prev-next-card strong {
  font-size: 0.86rem;
  color: var(--plum-dark);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cột phải trang chi tiết Blog */
.blog-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 108px;
}

.blog-sidebar-col .sidebar-widget {
  background: var(--white);
  border: 1px solid #f0e4ec;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 22px rgba(60, 34, 95, 0.03);
}

.blog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.blog-popular-item:hover {
  background: #fcf6f9;
}

.blog-popular-item img {
  width: 68px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-popular-info h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum-dark);
  line-height: 1.36;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular-item:hover .blog-popular-info h5 {
  color: var(--primary-pink);
}

.blog-popular-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .blog-spotlight-card,
  .blog-editorial-layout {
    grid-template-columns: 1fr;
  }

  .blog-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-sidebar-col {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-spotlight-card {
    padding: 14px;
    gap: 14px;
    border-radius: 16px;
  }

  .blog-spot-title {
    font-size: 1.14rem;
  }

  .blog-spot-excerpt {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .blog-filter-bar {
    padding: 10px 12px;
  }

  .blog-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .blog-cat-tabs::-webkit-scrollbar {
    display: none;
  }

  .blog-search-inline,
  .blog-search-inline input {
    width: 100%;
  }

  .blog-archive-grid,
  .article-prev-next {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-article-card {
    padding: 18px 15px;
    border-radius: 16px;
  }

  .article-title {
    font-size: 1.26rem;
  }

  .article-body-content {
    font-size: 0.92rem;
  }
}
