/* ==========================================================================
   Nội Thất Mộc Tâm - Custom Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --moho-primary: #ef683a;
  --moho-primary-dark: #d55327;
  --moho-text: #333333;
  --moho-text-muted: #666666;
  --moho-border: #ededed;
  --moho-bg-light: #f9f9f9;
  --moho-red: #e70505;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--moho-text);
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================= Sticky Header & Navigation ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ================= Desktop Navigation (Exact moho.com.vn) ================= */
.menuList-main {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuList-main > li {
  position: relative;
  list-style: none;
  margin: 0;
}

.menuList-main > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 24px 14px;
  font-weight: 600;
  font-size: 14px;
  color: #333333;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.menuList-main > li > a:hover,
.menuList-main > li.active > a {
  color: var(--moho-primary);
}

.menuList-main > li > a i {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.menuList-main > li:hover > a i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--moho-primary);
}

/* Submenu Level 1 */
.menuList-main li.has-submenu .menuList-submain {
  background: #ffffff;
  min-width: 220px;
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-top: 2px solid var(--moho-primary);
  border-radius: 0 0 4px 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
  list-style: none;
  margin: 0;
}

.menuList-main li.has-submenu:hover > .menuList-submain {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.menuList-submain li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuList-submain li:not(:first-child) {
  border-top: 1px solid #f2f2f2;
}

.menuList-submain li a {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #444444;
  white-space: nowrap;
  background: #ffffff;
  transition: all 0.2s ease;
}

.menuList-submain li a:hover {
  background: #fdf5f2;
  color: var(--moho-primary);
  padding-left: 22px;
}

.menuList-submain li a i {
  font-size: 9px;
  color: #999999;
  transition: transform 0.2s ease;
}

.menuList-submain li:hover > a i {
  color: var(--moho-primary);
  transform: translateX(3px);
}

/* Submenu Level 2 (Flies out to the right) */
.menuList-submain li.has-submenu .menuList-submain.level-2 {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  max-height: 450px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-top: none;
  border-left: 2px solid var(--moho-primary);
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  transition: all 0.2s ease;
  padding: 4px 0;
}

.menuList-submain li.has-submenu:hover > .menuList-submain.level-2 {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.menuList-submain.level-2::-webkit-scrollbar {
  width: 4px;
}

.menuList-submain.level-2::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* ================= Hero Slider ================= */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.hero-slide {
  display: none;
  width: 100%;
  position: relative;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slider-nav-btn,
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
}

.slider-nav-btn:hover,
.slider-arrow:hover {
  background: var(--moho-primary);
  color: #ffffff;
  border-color: var(--moho-primary);
}

.slider-nav-btn.prev,
.slider-arrow.prev {
  left: 20px;
}

.slider-nav-btn.next,
.slider-arrow.next {
  right: 20px;
}

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

.slider-dot,
.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.slider-dot.active,
.slider-dots .dot.active {
  background: var(--moho-primary);
  width: 28px;
  border-radius: 6px;
}

/* ================= Section Headers ================= */
.section-title-wrap {
  text-align: center;
  position: relative;
  margin-bottom: 32px;
}

.section-main-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222222;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--moho-primary);
  border-radius: 2px;
}

/* ================= Product Card ================= */
.product-card {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f2f2f2;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: #ebebeb;
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #fafafa;
}

.product-img-wrapper > a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.product-img-wrapper .img-primary {
  opacity: 1;
  z-index: 1;
}

.product-img-wrapper .img-secondary {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.product-card:hover .product-img-wrapper .img-primary {
  opacity: 1 !important;
  transform: scale(1.04);
}

.product-card.has-secondary-img:hover .product-img-wrapper .img-secondary,
.product-card:hover .product-img-wrapper:has(.img-secondary) .img-secondary {
  opacity: 1;
  transform: scale(1.04);
}

/* Product Badges */
.badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--moho-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 5;
}

.badge-gift {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--moho-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  z-index: 5;
}

/* Product Quick Actions */
.product-actions {
  position: absolute;
  bottom: -45px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
  padding: 0 10px 10px;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.action-btn {
  background: #ffffff;
  color: #333333;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--moho-primary);
  color: #ffffff;
}

.action-btn.btn-buy-now {
  width: auto;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--moho-primary);
  color: #ffffff;
}

.action-btn.btn-buy-now:hover {
  background: var(--moho-primary-dark);
}

.product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #222222;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  transition: color 0.2s ease;
}

.product-title:hover {
  color: var(--moho-primary);
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 15px;
  font-weight: 700;
  color: #e53935;
}

.price-old {
  font-size: 12.5px;
  color: #888888;
  text-decoration: line-through;
}

/* Rating & Sold Row */
.product-rating-sold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 4px;
}

.product-rating-sold .rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ea580c;
  font-size: 11px;
}

.product-rating-sold .rating-count {
  color: #888888;
  font-size: 11px;
  margin-left: 3px;
  font-weight: 500;
}

.product-rating-sold .sold-count {
  color: #555555;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* Color Swatches Row */
.product-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  min-height: 24px;
}

.swatch-item {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  padding: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.swatch-item:hover {
  border-color: #cbd5e1;
  transform: scale(1.08);
}

.swatch-item.active {
  border-color: #6b7280;
}

.swatch-color-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
}

/* Color definitions */
.color-mau-tu-nhien { background-color: #d2af84 !important; }
.color-nau { background-color: #644335 !important; }
.color-mix { background-color: #f1e2c2 !important; }
.color-go-phoi-trang { background-color: #f1e2c2 !important; }
.color-trang { background-color: #ffffff !important; }
.color-den { background-color: #1a1a1a !important; }
.color-be { background-color: #ece3dd !important; }
.color-beige { background-color: #f0e5ce !important; }
.color-xam { background-color: #d3d0d3 !important; }
.color-xam-dam { background-color: #635656 !important; }
.color-xam-da { background-color: #b4babe !important; }
.color-olive, .color-olive-v2 { background-color: #6b7a52 !important; }
.color-cam-dat { background-color: #9f6033 !important; }
.color-da-dam { background-color: #d1b292 !important; }
.color-xanh-dam { background-color: #0a00cc !important; }
.color-xanh-reu { background-color: #20b820 !important; }
.color-xanh-navy { background-color: #000080 !important; }
.color-xanh-duong { background-color: #209af5 !important; }
.color-hong-phan { background-color: #ecd3d8 !important; }
.color-dau-cobe { background-color: #b2b6a4 !important; }
.color-go-phoi-den { background-color: #eee5b2 !important; }


/* ================= View More Button ================= */
.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--moho-primary);
  border: 1.5px solid var(--moho-primary);
  padding: 10px 28px;
  border-radius: 24px;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-view-more:hover {
  background: var(--moho-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 104, 58, 0.3);
}

/* ================= Policy / Service Banner ================= */
.policy-banner {
  background: #fbfbfb;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  padding: 32px 0;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  transition: transform 0.25s ease;
}

.policy-item:hover {
  transform: translateY(-3px);
}

.policy-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.policy-text-title {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 2px;
}

.policy-text-desc {
  font-size: 13px;
  color: #777777;
}

/* ================= Reviews Track Carousel ================= */
.reviews-slider-wrapper {
  position: relative;
  width: 100%;
}

.reviews-track-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.reviews-track {
  display: flex;
  will-change: transform;
}

.review-item-col {
  flex-shrink: 0;
  box-sizing: border-box;
}

.review-nav-btn {
  position: absolute;
  top: 130px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-nav-btn:hover {
  background: var(--moho-primary);
  border-color: var(--moho-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(239, 104, 58, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.review-nav-btn.prev {
  left: -20px;
}

.review-nav-btn.next {
  right: -20px;
}

@media (max-width: 1024px) {
  .review-nav-btn.prev {
    left: -12px;
  }
  .review-nav-btn.next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .review-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.92);
  }
  .review-nav-btn.prev {
    left: 4px;
  }
  .review-nav-btn.next {
    right: 4px;
  }
}

.review-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Square */
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.review-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.4s ease;
}

.review-card:hover .review-card-img-wrap img {
  transform: scale(1.03);
}

.review-card-body {
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
}

.review-author {
  font-weight: 600;
  font-size: 15px;
  color: #222222;
  margin-bottom: 3px;
  line-height: 1.3;
}

.review-author a {
  color: inherit;
  transition: color 0.2s;
}

.review-author a:hover {
  color: var(--moho-primary);
}

.review-stars {
  color: #ef683a;
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  gap: 2px;
}

.review-comment {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 58px;
}

/* ================= Press / Media Cards ================= */
.press-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.press-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.press-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.press-badge {
  display: inline-block;
  background: #fdf2ee;
  color: var(--moho-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.press-title {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-title:hover {
  color: var(--moho-primary);
}

.press-desc {
  font-size: 12px;
  color: #666666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= Partner Logos Centered ================= */
.logos-track-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 0;
}

.logos-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-logo-item {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

.partner-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

.partner-logo-item img {
  max-height: 48px;
  max-width: 130px;
  object-fit: contain;
}

/* ================= Footer Styling ================= */
.main-footer {
  background: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  color: #444444;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #222222;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--moho-primary);
}

.footer-link {
  color: #555555;
  display: block;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--moho-primary);
  padding-left: 4px;
}

/* ================= Floating Action Buttons (FAB) ================= */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fab-hotline {
  background: #e70505;
}

.fab-zalo {
  background: #0068ff;
}

.fab-messenger {
  background: #0084ff;
}

.fab-top {
  background: var(--moho-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.fab-top.show {
  opacity: 1;
  visibility: visible;
}

/* ================= Drawers & Modals ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  z-index: 100;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  z-index: 100;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 24px 0 32px;
}

.search-modal.active {
  transform: translateY(0);
}


/* ==========================================================================
   Comprehensive Responsive Optimization (Mobile, Tablet, Touch screens)
   ========================================================================== */

/* Universal Mobile Optimizations */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Touch devices (Mobile & Tablet): Make card actions accessible */
@media (hover: none), (max-width: 767px) {
  .product-actions {
    position: static;
    bottom: auto;
    opacity: 1;
    padding: 6px 8px 10px;
    justify-content: stretch;
  }

  .product-actions .action-btn:not(.btn-buy-now) {
    display: none;
  }

  .product-actions .action-btn.btn-buy-now {
    width: 100%;
    font-size: 11px;
    padding: 6px 10px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  .product-card:hover .product-img-wrapper .img-secondary {
    opacity: 0; /* Keep primary image stable on touch scroll */
  }
}

/* Mobile Screen (< 768px) */
@media (max-width: 767px) {
  .section-main-title {
    font-size: 18px !important;
    letter-spacing: 0.2px;
    padding-bottom: 6px;
  }

  .section-main-title::after {
    width: 40px;
    height: 2px;
  }

  .section-title-wrap {
    margin-bottom: 20px;
  }

  /* Product Card on Mobile */
  .product-info {
    padding: 10px 8px;
  }

  .product-title {
    font-size: 12px;
    line-height: 1.35;
    height: 32px;
    margin-bottom: 4px;
  }

  .price-current {
    font-size: 13px;
  }

  .price-old {
    font-size: 10px;
  }

  .badge-sale {
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 2px 5px;
  }

  .badge-gift {
    top: 6px;
    left: 6px;
    font-size: 8.5px;
    padding: 2px 4px;
  }

  /* Slider Controls */
  .slider-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

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

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

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

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

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

  /* Policy Banner */
  .policy-banner {
    padding: 18px 0;
  }

  .policy-item {
    gap: 10px;
    padding: 8px 4px;
  }

  .policy-icon {
    width: 36px;
    height: 36px;
  }

  .policy-text-title {
    font-size: 12px;
  }

  .policy-text-desc {
    font-size: 11px;
  }

  /* Floating Action Buttons (FAB) on Mobile */
  .fab-container {
    right: 12px;
    bottom: 16px;
    gap: 8px;
  }

  .fab-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  /* Reviews & Press */
  .review-card-img {
    height: 170px;
  }

  .review-card-body {
    padding: 12px;
  }

  .review-author {
    font-size: 13px;
  }

  .review-comment {
    font-size: 12px;
  }

  .btn-view-more {
    font-size: 12px;
    padding: 8px 22px;
  }

  /* Drawers */
  .cart-drawer,
  .mobile-menu-drawer {
    max-width: 86vw;
  }
}

/* Tablet Screen (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .section-main-title {
    font-size: 22px;
  }

  .product-title {
    font-size: 12.5px;
  }

  .price-current {
    font-size: 14px;
  }

  .cart-drawer {
    max-width: 380px;
  }
}

/* ================= Product Detail Page Styles (Exact moho.com.vn) ================= */
.prod-thumb {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
}

.prod-thumb:hover {
  border-color: #f97316;
}

.prod-thumb.active {
  border-color: var(--moho-primary) !important;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.swatch-btn:hover {
  border-color: var(--moho-primary);
  color: var(--moho-primary);
}

.swatch-btn.active {
  border-color: var(--moho-primary);
  color: var(--moho-primary);
  background: #fff7ed;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(239, 104, 58, 0.2);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}

.size-btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.size-btn:hover {
  border-color: var(--moho-primary);
  color: var(--moho-primary);
}

.size-btn.active {
  border-color: var(--moho-primary);
  color: var(--moho-primary);
  background: #fff7ed;
  font-weight: 700;
}

/* infor_promotion Box */
.infor_promotion {
  background: #fff9f6;
  border: 1px dashed #f97316;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 18px;
}

.infor_promotion p {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 8px;
  line-height: 1.6;
}

.infor_promotion p:last-child {
  margin-bottom: 0;
}

.infor_promotion p i.fa-check {
  color: #16a34a;
  margin-right: 6px;
  font-weight: bold;
}

/* Tabs */
.product-tabs-header {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.product-tab-btn {
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.product-tab-btn:hover {
  color: var(--moho-primary);
}

.product-tab-btn.active {
  color: var(--moho-primary);
  border-bottom-color: var(--moho-primary);
}

.product-tab-pane {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.product-tab-pane.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.specs-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.specs-table td.spec-title {
  font-weight: 600;
  width: 32%;
  color: #111827;
}

/* Image Zoom Lightbox */
.zoom-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.zoom-lightbox.active {
  display: flex;
}

.zoom-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

/* ==========================================================================
   CMS Content Pages Typography & Styling
   ========================================================================== */
.cms-page-content {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4 {
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
}

.cms-page-content h1 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.cms-page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.cms-page-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  color: #1f2937;
}

.cms-page-content h4 {
  font-size: 1.0625rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.cms-page-content p {
  margin-bottom: 1rem;
}

.cms-page-content a {
  color: #ef683a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cms-page-content a:hover {
  color: #d55327;
}

.cms-page-content ul {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.cms-page-content ol {
  list-style-type: decimal !important;
  padding-left: 1.5rem !important;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.cms-page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.cms-page-content li strong {
  color: #111827;
}

.cms-page-content strong,
.cms-page-content b {
  font-weight: 700;
  color: #1f2937;
}

.cms-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cms-page-content blockquote {
  border-left: 4px solid #ef683a;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #4b5563;
  font-style: italic;
  background: #fdfaf8;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.cms-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.cms-page-content table th,
.cms-page-content table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}

.cms-page-content table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.cms-page-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

