/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================
   PHASE 1 — DESIGN TOKENS
   Nguồn: sieuthigachdep.vn design system
   ============================================ */
:root {
  /* Brand colors */
  --tp-primary: #dfa41a;
  --tp-primary-fg: #FFFFFF;
  --tp-background: #FFFFFF;
  --tp-foreground: #010517;
  --tp-secondary: #F0F4F9;
  --tp-muted-fg: #61738D;
  --tp-border: #E1E8F0;
  --tp-destructive: #E7000A;
  --tp-footer-bg: #1B2021;

  /* Override Flatsome internal vars */
  --fs-color-primary: #F83918;
  --primary-color: #F83918;

  /* Shape */
  --tp-radius: 0.625rem;
  --tp-radius-full: 9999px;

  /* Shadows */
  --tp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --tp-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --tp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --tp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);

  /* Transitions */
  --tp-transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

/* ============================================
   PHASE 1 — TYPOGRAPHY: Poppins
   ============================================ */
body,
.nav>li>a,
button,
.button,
input,
select,
textarea {
  font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.product-title,
.entry-title {
  font-family: 'Poppins', sans-serif;
}

body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tp-foreground);
}

/* ============================================
   PHASE 2 — HEADER 2 TẦNG
   ============================================ */

/* --- Tầng 1: Header Main (logo + search, 80px) --- */
#masthead,
#masthead.header-main {
  height: 110px !important;
  border-bottom: 1px solid var(--tp-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgb(255, 255, 255) !important;
}

/* --- Search bar: Hiện đại & Cao cấp --- */
#masthead .searchform-wrapper {
  width: 100%;
  max-width: 500px;
}

#masthead .search-form {
  position: relative;
  display: flex !important;
  align-items: center;
}

/* Thêm icon search phụ bên trái ô input */
#masthead .search-form::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

#masthead .search-form input[type="search"],
#masthead .search-form input.search-field {
  height: 48px !important;
  border-radius: 99px !important;
  background-color: #F3F4F6 !important;
  border: 1.5px solid #E5E7EB !important;
  padding: 0 56px 0 48px !important;
  /* Tăng padding trái để chứa icon search phụ */
  font-size: 15px !important;
  font-weight: 400;
  color: #111827 !important;
  transition: all .25s ease-in-out;
  box-shadow: none !important;
}

#masthead .search-form input:focus {
  background-color: #fff !important;
  border-color: var(--tp-primary) !important;
  box-shadow: 0 0 0 4px rgba(248, 57, 24, .1) !important;
  outline: none;
}

/* Placeholder style */
#masthead .search-form input::placeholder {
  color: #9CA3AF;
  font-size: 14px;
}

/* Nút tìm kiếm tròn nằm bên trong (bên phải) */
#masthead .search-form button[type="submit"],
#masthead .search-form .search-submit {
  position: absolute !important;
  right: -10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  /* Căn giữa theo chiều dọc */
  width: 32px !important;
  /* Nhỏ lại */
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background-color: var(--tp-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .2s ease;
  margin: 0 !important;
  z-index: 2;
}

#masthead .search-form button[type="submit"]:hover {
  background-color: #EF4444 !important;
  transform: translateY(-50%) scale(1.1);
  /* Giữ căn giữa và scale */
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#masthead .search-form button[type="submit"] i {
  font-size: 14px !important;
  /* Icon bên trong nhỏ lại */
  margin: 0 !important;
}

@media (max-width: 1024px) {
  #masthead .search-form::after {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  #masthead .search-form input[type="search"],
  #masthead .search-form input.search-field {
    height: 42px !important;
    padding: 0 50px 0 42px !important;
    font-size: 14px !important;
  }

  #masthead .search-form button[type="submit"],
  #masthead .search-form .search-submit {
    right: -20px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

@media (max-width: 767px) {
  #masthead .search-form::after {
    left: 14px;
    width: 14px;
    height: 14px;
  }

  #masthead .search-form input[type="search"],
  #masthead .search-form input.search-field {
    height: 38px !important;
    padding: 0 16px 0 38px !important;
    font-size: 13px !important;
  }

  #masthead .search-form input::placeholder {
    font-size: 13px;
  }

  #masthead .search-form button[type="submit"],
  #masthead .search-form .search-submit {
    display: none !important;
  }

  #masthead .search-form button[type="submit"] i {
    font-size: 10px !important;
  }
}

/* --- Các icon bên phải Header (Wishlist, Social) --- */

/* Wishlist icon box */
.header-nav .wishlist-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #F3F4F6 !important;
  border-radius: 12px !important;
  margin-right: 15px;
  position: relative;
  transition: all .3s ease;
}

.header-nav .wishlist-icon:hover {
  background-color: #E5E7EB !important;
}

.header-nav .wishlist-icon i {
  color: #EF4444 !important;
  font-size: 20px !important;
}

/* Badge số trên wishlist */
.header-nav .wishlist-icon .wishlist-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Social Icons box */
.header-main .social-icons a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #F3F4F6 !important;
  border-radius: 12px !important;
  margin-left: 8px !important;
  transition: all .3s ease;
  border: none !important;
}

.header-main .social-icons a:hover {
  transform: translateY(-3px);
  background-color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-main .social-icons a.facebook i {
  color: #1877F2;
}

.header-main .social-icons a.instagram i {
  color: #E4405F;
}

.header-main .social-icons a.youtube i {
  color: #FF0000;
}

.header-main .social-icons a.tiktok i {
  color: #000000;
}

.header-main .social-icons a i {
  font-size: 18px !important;
  margin: 0 !important;
}

/* --- Tầng 2: Header Bottom — Sticky Nav (56px) --- */
#wide-nav,
.header-bottom {
  background-color: #fff !important;
  border-bottom: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow-sm);
  min-height: 56px;
}

/* Sticky state của tầng 2 */
.stuck #wide-nav,
.stuck .header-bottom,
#wide-nav.is-sticky {
  box-shadow: var(--tp-shadow);
}

/* --- Navigation links: Uppercase, Quicksand --- */
.nav>li>a,
.nav-uppercase>li>a,
.header-bottom-nav>li>a,
.header-nav>li>a,
#wide-nav .nav>li>a {
  text-transform: uppercase !important;
  font-family: "Quicksand", sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px;
  color: var(--tp-foreground) !important;
  transition: var(--tp-transition);
  padding: 10px 5px;
  margin: 0 0px;
  border-radius: 12px;
  text-align: left;
}

.top-bar-nav>li>a {
  font-size: 14px;
  color: #ffffff !important;
}

.top-bar-nav>li>a:hover {
  font-size: 14px;
  color: #ffffff !important;
}

.nav>li>a:hover,
.header-bottom-nav>li>a:hover,
.header-nav>li>a:hover,
#wide-nav .nav>li>a:hover,
.nav>li.active>a,
.nav>li.current-menu-item>a {
  color: var(--tp-primary) !important;
  /* background-color: rgba(248, 57, 24, .06) !important; */
}

/* Thêm icon mũi tên sổ xuống cho menu có menu con */
.nav>li.menu-item-has-children>a::after,
.nav>li.has-dropdown>a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 6px;
  margin-bottom: 2px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Xoay mũi tên khi hover */
.nav>li.menu-item-has-children:hover>a::after,
.nav>li.has-dropdown:hover>a::after {
  transform: rotate(180deg);
}

/* ============================================
   MEGA MENU — MODERN STYLE
   ============================================ */

/* Dropdown container */
.nav-dropdown {
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .06) !important;
  border: 1px solid #EEF2F7 !important;
  padding: 0 !important;
  overflow: hidden !important;
  animation: tp-slideDown .2s ease forwards;
}

/* Mỗi column */
.nav-dropdown>li.nav-dropdown-col {
  padding: 24px 20px !important;
  border-right: 1px solid #F3F6FA !important;
  min-width: 220px !important;
}

.nav-dropdown>li.nav-dropdown-col:last-child {
  border-right: none !important;
}

/* Section header trên cùng: "THEO XUẤT XỨ", "THEO THIẾT KẾ"... */
#masthead .header-nav-main>li>.sub-menu>li.nav-dropdown-col>a,
.nav-dropdown>li.nav-dropdown-col>a {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.8px !important;
  color: var(--tp-primary) !important;
  padding: 0 0 14px 0 !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--tp-border) !important;
  border-left: none !important;
  background: none !important;
  display: block !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* Bỏ thanh đỏ cũ bên trái heading */
#masthead .header-nav-main>li>.sub-menu>li.nav-dropdown-col>a::before,
.nav-dropdown>li.nav-dropdown-col>a::before,
.nav-dropdown>li.nav-dropdown-col>a::after {
  display: none !important;
}

/* Item đầu tiên trong cột (sub-heading): "GẠCH Ý-ITALY", "GẠCH VĂN ĐÁ"...
   → Giữ là link bình thường nhưng bold hơn, có accent primary */


.nav-dropdown>li.nav-dropdown-col>ul>li:first-child>a:hover {
  color: var(--tp-primary) !important;
  background: #FEF2F2 !important;
  border-bottom-color: var(--tp-primary) !important;
}

.nav-dropdown>li.nav-dropdown-col>ul>li:first-child>a::after {
  display: none !important;
}

/* Menu items */
.nav-column li>a,
.nav-dropdown-default .nav-column li>a {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #374151 !important;
  padding: 7px 10px 7px 10px !important;
  border-radius: 7px !important;
  border-left: none !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  transition: all .18s ease !important;
  position: relative;
}

/* Arrow icon trượt vào khi hover */
.nav-column li>a::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
  color: var(--tp-primary);
  opacity: 0;
  margin-left: -4px;
  transition: opacity .18s ease, margin-left .18s ease;
}

.nav-column li>a:hover {
  color: var(--tp-primary) !important;
  background: #FEF2F2 !important;
  border-left: none !important;
  font-weight: 500 !important;
  padding-left: 14px !important;
}

/*.nav-column li > a:hover::after {*/
/*  opacity: 1;*/
/*  margin-left: 4px;*/
/*}*/

/* Simple dropdown (không phải mega menu) */
.sub-menu {
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1) !important;
  border: 1px solid #EEF2F7 !important;
  overflow: hidden !important;
  padding: 6px !important;
}

.sub-menu a {
  font-size: 13px;
  font-weight: 400;
  color: #374151 !important;
  border-radius: 6px !important;
  transition: all .15s ease;
}

.sub-menu a:hover {
  color: var(--tp-primary) !important;
  background-color: #FEF2F2 !important;
}

/* --- Hotline / Header Button --- */
.header-nav .button,
.header-button .button,
header .button.primary {
  border-radius: var(--tp-radius-full) !important;
  background-color: var(--tp-primary) !important;
  border-color: var(--tp-primary) !important;
}

body {
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 0px 20px !important;
  transition: var(--tp-transition);
}

.header-nav .button:hover,
.header-button .button:hover {
  opacity: .9;
  box-shadow: var(--tp-shadow-lg);
}

/* ============================================
   PHASE 3 — PRODUCT CARD
   ============================================ */

/* col-inner: bỏ padding + thêm position:relative để badge absolute hoạt động */
ul.products li.product .col-inner {
  padding: 0 !important;
  position: relative;
}

/* Ẩn category text — dùng .product-small.box để match cả slider lẫn grid */
.product-small.box p.product-cat,
.product-small.box .category.product-cat,
.product-small p.category {
  display: none !important;
}

/* Card box: border + border-radius bao toàn bộ card */
.product-small.box {
  position: relative !important;
  border-radius: 16px !important;
  /* Bo góc mềm mại, hiện đại */
  overflow: hidden !important;
  border: none !important;
  /* Bỏ border thật để không bị lỗi overflow clip */
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  /* Bóng đổ cực nhẹ */
  /* transition mượt mà cho cảm giác cao cấp */
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Viền xám tĩnh (hiển thị đè lên trên cả ảnh) */
.product-small.box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid #e2e0ac;
  /* Viền xám tĩnh */
  z-index: 9;
  pointer-events: none;
  /* Không chặn click vào ảnh */
  transition: opacity 0.3s ease;
}

/* Hiệu ứng viền vàng chạy từ trên xuống (Liquid Ring) */
.product-small.box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  /* Độ dày viền vàng chạy */
  background: linear-gradient(to bottom, #c5a059 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: 0 100%;
  /* Bắt đầu ẩn ở dưới */

  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  z-index: 10;
  pointer-events: none;
  /* Tránh chặn click vào ảnh/link */
  transition: background-position 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Khi hover: Ẩn viền tĩnh, nổi thẻ lên và chạy viền vàng */
.product-small.box:hover,
ul.products li.product:hover .product-small.box {
  box-shadow: inset 0 0 0 1px transparent, 0 15px 35px rgba(197, 160, 89, 0.12) !important;
  transform: translateY(-6px);
  /* Nổi bồng bềnh sang trọng */
}

/* Trigger viền vàng chạy */
.product-small.box:hover::after,
ul.products li.product:hover .product-small.box::after {
  background-position: 0 0;
}

/* Ẩn viền xám tĩnh khi hover */
.product-small.box:hover::before,
ul.products li.product:hover .product-small.box::before {
  opacity: 0;
}

/* Image area */
.product-small.box .box-image {
  position: relative !important;
  overflow: hidden !important;
}

/* Ảnh: aspect-ratio 1:1, object-fit cover — nhất quán kích thước */
.product-small.box .box-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
}

/* Brand badge: góc trên trái của ảnh */
.tp-brand-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, .96);
  color: var(--tp-foreground);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  pointer-events: none;
  line-height: 1.6;
}

/* Text area: compact padding */
.product-small.box .box-text {
  padding: 10px 10px 12px !important;
}

/* Tên sản phẩm: 2 dòng, compact */
.woocommerce-loop-product__title,
ul.products li.product .product-title,
ul.products li.product h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  /* Giảm độ đậm để thanh lịch hơn */
  line-height: 1.45 !important;
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  color: #1a1a1a !important;
  /* Đen nhám sang trọng */
  margin-bottom: 6px !important;
  transition: color 0.3s ease;
}

/* Đổi màu tiêu đề sang Vàng Gold khi hover */
ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover .product-title,
ul.products li.product:hover h3 {
  color: #c5a059 !important;
}

/* "Đã bán X ★★★★★" — cùng 1 dòng */
.price-wrapper .tp-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.tp-sold-count {
  font-size: 11px;
  color: var(--tp-muted-fg);
  white-space: nowrap;
}

/* Star rating trong product card: override Flatsome's 16px hardcode */
.product-small.box .star-rating {
  font-size: 12px !important;
  width: 5.06em !important;
  height: 1em !important;
  line-height: 1em !important;
  display: inline-block !important;
  float: none !important;
  margin: 0 0 0 5px !important;
  vertical-align: middle;
}

/* Star rating: vàng */
.product-small.box .star-rating::before,
.product-small.box .star-rating span::before {
  color: #F59E0B !important;
}

/* Meta row: flex để sold + stars cùng hàng */
.tp-meta-row {
  display: flex !important;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

/* Giá: primary */
ul.products li.product .price,
ul.products li.product .woocommerce-Price-amount {
  color: #c5a059 !important;
  /* Đổi giá sang màu Vàng Gold */
  font-weight: 600;
  font-size: 15px;
}

/* Giá gốc gạch ngang */
ul.products li.product .price del,
ul.products li.product .price del .woocommerce-Price-amount {
  color: var(--tp-muted-fg) !important;
  font-weight: 400;
  font-size: 13px;
}

/* -------------------------------------------------------
   Sale Badge: Flatsome đặt badge NGOÀI .product-small.box,
   bên trong .col-inner — phải target đúng cấp DOM
   HTML thực tế: .col-inner > span.onsale | .col-inner > .badge
   ------------------------------------------------------- */

/* WooCommerce native <span class="onsale"> */
.col-inner>span.onsale {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
  /* Reset Flatsome/WC default circle */
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 100px !important;
  padding: 3px 9px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  background-color: var(--tp-primary) !important;
  color: #fff !important;
  margin: 0 !important;
}

/* Flatsome custom badge - Sửa lại selector để khớp với badge-container */
.col-inner .badge-container .badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  border-radius: 100px !important;
  margin: 0 !important;
}

/* Ưu tiên đè bẹp class .secondary của Flatsome */
.col-inner .badge-container .badge-inner.secondary {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 100px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  background-color: #da3442 !important;
  /* Màu xanh bạn muốn */
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}


/* Ẩn toàn bộ image overlay: cart icon, quick view, bottom tools */
.product-small.box .image-tools.grid-tools,
.product-small.box .image-tools.bottom,
.product-small.box .box-image .quick-view-button,
.product-small.box .box-image .flatsome-quick-view {
  display: none !important;
}

/* Button "Liên hệ" tự render — xanh dương, full-width, compact */
.tp-lien-he-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #3B82F6;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  text-decoration: none !important;
  transition: background-color .2s ease, box-shadow .2s ease;
  margin-top: 8px;
  cursor: pointer;
  line-height: 1.5;
}

.tp-lien-he-btn:hover {
  background-color: #2563EB;
  color: #fff !important;
  box-shadow: var(--tp-shadow-lg);
}

/* ============================================
   PHASE 4 — SINGLE PRODUCT PAGE
   ============================================ */

/* --- Attributes table --- */
.product-attributes {
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: #fff;
}

/* Heading "Thông số kỹ thuật" */
.tp-attr-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-foreground);
  padding: 14px 16px;
  border-bottom: 1.5px solid #F3F4F6;
}

.tp-attr-icon {
  color: #EF4444;
  /* Màu đỏ cho icon như mẫu */
  flex-shrink: 0;
}

.product-attributes table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

/* Tên thuộc tính: nhạt hơn, font thường */
.product-attributes table.shop_attributes th,
.th-style-font-weight {
  font-weight: 400 !important;
  text-align: left !important;
  padding: 12px 16px !important;
  text-transform: none !important;
  background-color: transparent !important;
  color: #6B7280;
  border-bottom: 1px solid #F3F4F6;
  width: 40%;
  font-size: 14px;
  vertical-align: middle;
}

/* Giá trị: đậm + căn phải */
.product-attributes table.shop_attributes td,
.td-style-value {
  text-align: right !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #F3F4F6;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
}

/* Hàng cuối: bỏ border */
.product-attributes table.shop_attributes tr:last-child th,
.product-attributes table.shop_attributes tr:last-child td {
  border-bottom: none;
}

/* Hover hàng: hiệu ứng nhẹ */
.product-attributes table.shop_attributes tr:hover {
  background-color: #F9FAFB;
}

/* --- Top meta row: Brand + SKU --- */
.tp-top-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tp-brand-pill {
  background-color: #3B82F6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-sku-top {
  font-size: 13px;
  color: #6B7280;
}

.tp-sku-val {
  color: #374151;
  font-weight: 700;
  margin-left: 4px;
}

/* --- Product Title --- */
.single-product .product-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
}

/* --- Rating row refinements --- */
.tp-single-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

.tp-single-meta .star-rating {
  font-size: 15px !important;
}

.tp-meta-sep {
  color: #E5E7EB;
  font-size: 14px;
}

.tp-single-sold {
  font-size: 14px;
  color: #4B5563;
}

.tp-meta-action {
  font-size: 14px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color .2s ease;
}

.tp-meta-action i {
  font-size: 16px;
}

.tp-meta-action:hover {
  color: var(--tp-primary);
}

/* --- Brand badge trên single product page --- */
.single-product .product_meta .posted_in a,
.single-product .product_meta .tagged_as a {
  display: inline-block;
  background-color: #EFF6FF;
  color: #3B82F6;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--tp-radius-full);
  text-decoration: none;
}

/* ============================================
   PRODUCT GALLERY (Single Product)
   ============================================ */

/* Bo góc cho toàn bộ khối gallery */
.single-product .product-gallery {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Fix cứng kích thước ảnh chính 608x728 */
.single-product .product-gallery .woocommerce-product-gallery__image img,
.single-product .product-gallery .main-images img {
  width: 608px !important;
  height: 500px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  max-width: 100% !important;
  /* Đảm bảo không bị vỡ trên mobile */
}

/* Bo góc cho các ảnh thumbnail bên dưới */
.product-thumbnails .col-inner img {
  border-radius: 8px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.product-thumbnails .col-inner.is-nav-selected img {
  border-color: var(--tp-primary) !important;
}

/* SKU badge */
.single-product .product_meta .sku_wrapper {
  font-size: 13px;
  color: var(--tp-muted-fg);
}

.single-product .product_meta .sku {
  background: var(--tp-secondary);
  color: var(--tp-foreground);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--tp-border);
}

/* ============================================
   PHASE 5 — FOOTER
   ============================================ */

/* Nền footer dark */
#footer,
.footer-wrapper,
.footer-1,
footer.footer {
  background-color: var(--tp-footer-bg) !important;
}

.footer-1 {
  padding-top: 48px !important;
  padding-bottom: 32px !important;
}

/* Footer 2 (copyright bar) */
.footer-2 {
  background-color: rgba(0, 0, 0, .25) !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
}

.footer-2,
.footer-2 p,
.footer-2 a {
  color: rgba(255, 255, 255, .5) !important;
  font-size: 12px;
}

/* --- Text & links --- */
#footer,
#footer p,
.footer-1,
.footer-1 p {
  color: rgba(255, 255, 255, .75);
}

#footer a,
.footer-1 a {
  color: rgb(255 255 255) !important;
  transition: color .2s ease;
}

#footer a:hover,
.footer-1 a:hover {
  color: var(--tp-primary) !important;
}

/* Footer menu hover: thêm gạch ngang phía trước + gạch dưới */
#footer ul li>a,
.footer-1 ul li>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none !important;
  transition: color .2s ease, gap .2s ease;
}

#footer ul li>a::before,
.footer-1 ul li>a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  opacity: 0;
  transition: width .2s ease, opacity .2s ease;
  flex: 0 0 auto;
}

#footer ul li>a::after,
.footer-1 ul li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

#footer ul li>a:hover,
#footer ul li.current-menu-item>a,
#footer ul li.current_page_item>a,
.footer-1 ul li>a:hover,
.footer-1 ul li.current-menu-item>a,
.footer-1 ul li.current_page_item>a {
  gap: 10px;
}

#footer ul li>a:hover::before,
#footer ul li.current-menu-item>a::before,
#footer ul li.current_page_item>a::before,
.footer-1 ul li>a:hover::before,
.footer-1 ul li.current-menu-item>a::before,
.footer-1 ul li.current_page_item>a::before {
  width: 12px;
  opacity: 1;
}

#footer ul li>a:hover::after,
#footer ul li.current-menu-item>a::after,
#footer ul li.current_page_item>a::after,
.footer-1 ul li>a:hover::after,
.footer-1 ul li.current-menu-item>a::after,
.footer-1 ul li.current_page_item>a::after {
  transform: scaleX(1);
}

/* Widget title */
#footer .widget-title,
.footer-1 .widget-title,
#footer h3,
#footer h4 {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tp-primary);
  display: inline-block;
}

/* Widget list items */
#footer ul li,
.footer-1 ul li {
  color: rgba(255, 255, 255, .7);
  padding: 3px 0;
  border-bottom: none !important;
  font-size: 14px;
}

#footer ul li::before {
  display: none;
}

/* --- Social icons --- */
#footer .follow-icons a,
.footer-1 .follow-icons a {
  color: rgba(255, 255, 255, .7) !important;
  border-color: rgba(255, 255, 255, .2) !important;
  background-color: transparent !important;
  transition: all .2s ease;
}

#footer .follow-icons a:hover,
.footer-1 .follow-icons a:hover {
  color: #ffffff !important;
  background-color: var(--tp-primary) !important;
  border-color: var(--tp-primary) !important;
}

/* --- Input trong footer (newsletter) --- */
#footer input[type="email"],
#footer input[type="text"],
.footer-1 input {
  background-color: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .2) !important;
  color: #fff !important;
  border-radius: var(--tp-radius) !important;
}

#footer input::placeholder,
.footer-1 input::placeholder {
  color: rgba(255, 255, 255, .4) !important;
}

/* Footer dividers */
#footer hr,
.footer-1 hr {
  border-color: rgba(255, 255, 255, .1) !important;
}

/* ============================================
   PHASE 6 — GLOBAL UI + ANIMATIONS
   ============================================ */

/* --- Buttons --- */
.button,
button[type="submit"],
input[type="submit"] {
  border-radius: var(--tp-radius) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: var(--tp-transition), box-shadow .2s ease, transform .15s ease;
}

/* Primary button */
.button.primary,
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--tp-primary) !important;
  border-color: var(--tp-primary) !important;
  color: #fff !important;
}

.button.primary:hover,
.woocommerce .button.alt:hover {
  opacity: .88;
  box-shadow: 0 4px 12px rgba(248, 57, 24, .35);
}

/* Add to cart (single product) */
.single_add_to_cart_button.button {
  border-radius: var(--tp-radius) !important;
  font-weight: 600 !important;
  letter-spacing: .3px;
}

/* --- Forms & Inputs --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
  border-radius: var(--tp-radius) !important;
  border-color: var(--tp-border) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--tp-primary) !important;
  box-shadow: 0 0 0 2px rgba(248, 57, 24, .12) !important;
  outline: none !important;
}

/* --- Dropdown nav animation --- */
.nav-dropdown,
.sub-menu {
  animation: tp-slideDown .2s ease forwards;
}

@keyframes tp-slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Breadcrumbs --- */
.breadcrumbs,
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--tp-muted-fg) !important;
}

.breadcrumbs a,
.woocommerce-breadcrumb a {
  color: var(--tp-muted-fg) !important;
  transition: color .2s ease;
}

.breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
  color: var(--tp-primary) !important;
}

/* Breadcrumb current item */
.breadcrumbs>span:last-child,
.woocommerce-breadcrumb>span:last-child {
  color: var(--tp-primary) !important;
}

/* --- Pagination --- */
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.pagination .page-numbers {
  border-radius: var(--tp-radius) !important;
  border-color: var(--tp-border) !important;
  color: var(--tp-foreground);
  font-size: 13px;
  transition: var(--tp-transition);
}

.woocommerce-pagination .page-numbers li .current,
.woocommerce-pagination .page-numbers li a:hover {
  background-color: var(--tp-primary) !important;
  border-color: var(--tp-primary) !important;
  color: #fff !important;
}

/* --- Notices (WooCommerce) --- */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--tp-primary) !important;
  border-radius: var(--tp-radius) !important;
}

.woocommerce-error {
  border-top-color: var(--tp-destructive) !important;
  border-radius: var(--tp-radius) !important;
}

/* ============================================
   PRODUCT DESCRIPTION TABS
   ============================================ */

/* Container tabs — dạng Box bo góc */
.woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs {
  margin-top: 40px;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Tab list: Bỏ border cũ, dùng border bottom toàn chiều ngang */
.woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 30px !important;
  border-bottom: 1.5px solid #F3F4F6 !important;
  padding: 0 24px !important;
  margin-bottom: 0 !important;
  background: #fff !important;
}

.woocommerce-tabs ul.tabs::before {
  display: none !important;
}

/* Tab item */
.woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Tab link */
.woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 16px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #4B5563 !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1.5px;
  background: none !important;
  transition: all .2s ease;
  text-transform: none !important;
}

/* Ẩn thanh ngang mặc định của Flatsome (tránh bị dính ở top khi hover) */
.woocommerce-tabs ul.tabs li a::before,
.woocommerce-tabs ul.tabs li a::after {
  display: none !important;
}

/* Tab active: Chữ đỏ + Gạch chân đỏ */
.woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #EF4444 !important;
  border-bottom-color: #EF4444 !important;
}

/* Tab content panel */
.woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel {
  border: none !important;
  padding: 24px 24px !important;
  background: transparent !important;
  margin: 0 !important;
}

/* Description typography */
.woocommerce-tabs .panel p,
.woocommerce-tabs .entry-content p {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: var(--tp-foreground) !important;
  margin-bottom: 14px !important;
}

.woocommerce-tabs .panel p:last-child {
  margin-bottom: 0 !important;
}

/* Heading trong description */
.woocommerce-tabs .panel h1,
.woocommerce-tabs .panel h2,
.woocommerce-tabs .panel h3,
.woocommerce-tabs .panel h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--tp-foreground) !important;
  margin-bottom: 12px !important;
  text-transform: none !important;
}

/* --- List trong description --- */
.woocommerce-tabs .panel ul,
.woocommerce-tabs .panel ol {
  padding-left: 20px !important;
  margin-bottom: 14px !important;
}

.woocommerce-tabs .panel li {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--tp-foreground) !important;
  margin-bottom: 4px !important;
}

/* ============================================
   PRODUCT REVIEWS (Đánh giá)
   ============================================ */

/* Container danh sách bình luận */
.commentlist {
  padding: 0 !important;
  list-style: none !important;
}

/* Từng item bình luận đơn lẻ */
.commentlist li.comment {
  margin-bottom: 20px !important;
  padding: 20px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: all .25s ease;
  position: relative;
}

.commentlist li.comment:hover {
  border-color: var(--tp-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Avatar người dùng */
.commentlist li.comment img.avatar {
  border-radius: 50% !important;
  border: 2px solid #F3F4F6 !important;
  padding: 2px;
  background: #fff;
  width: 48px !important;
  height: 48px !important;
  position: absolute;
  top: 20px;
  left: 20px;
}

/* Khối nội dung text */
.comment-text {
  padding: 0 !important;
  margin-left: 64px !important;
  /* Tạo khoảng trống cho avatar */
  border: none !important;
}

.comment-text .meta {
  font-size: 14px !important;
  color: #6B7280 !important;
  margin-bottom: 8px !important;
}

.comment-text .meta strong {
  color: #111827 !important;
  font-size: 15px;
  font-weight: 700;
}

.comment-text .description p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  margin: 10px 0 0 !important;
}

/* Star rating trong bình luận */
.commentlist .star-rating {
  margin: 5px 0 10px !important;
  font-size: 13px !important;
}

/* Form viết đánh giá */
#review_form_wrapper {
  margin-top: 40px !important;
  padding-top: 30px !important;
  border-top: 1px dashed #E5E7EB !important;
}

/* Hộp form có viền bo góc */
.review-form-inner.has-border {
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  padding: 28px !important;
  background: #F9FAFB !important;
  box-shadow: none !important;
}

#reply-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 24px !important;
  text-transform: none !important;
}

/* Các trường input trong form */
.comment-form p {
  margin-bottom: 18px !important;
}

.comment-form label {
  display: block;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  margin-bottom: 8px !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  background: #fff !important;
  border: 1px solid #D1D5DB !important;
  padding: 12px 16px !important;
}

/* Nút gửi đánh giá */
.comment-form .submit {
  padding: 12px 32px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--tp-secondary);
}

::-webkit-scrollbar-thumb {
  background: #C5D0DC;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tp-muted-fg);
}

/* ============================================
   CATEGORY STATS BAR
   ============================================ */

.tp-category-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 16px 24px;
  margin: 16px 0 24px;
  background: #fff;
}

.tp-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.tp-stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-primary);
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.tp-stat-label {
  font-size: 13px;
  color: var(--tp-muted-fg);
  font-weight: 400;
}

.tp-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--tp-border);
  flex-shrink: 0;
  margin: 0 8px;
}

@media (max-width: 48em) {
  .tp-category-stats {
    padding: 12px 16px;
  }

  .tp-stat-number {
    font-size: 16px;
  }

  .tp-stat-label {
    font-size: 11px;
  }
}

/* ============================================
   BLOG POST CARD
   ============================================ */

/* col-inner chứa blog post: bo góc + overflow:hidden
   để ảnh top không chìa ra ngoài border-radius của card */
.blog-posts .col-inner {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.row-box-shadow-2-hover .col-inner:hover {
  box-shadow: none !important;
}

.row-box-shadow-2 .col-inner {
  box-shadow: none !important;
}

/* Card container */
.box.box-blog-post {
  height: 286px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 2px solid #cfcfcf !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06) !important;
  transition: box-shadow .3s ease, transform .3s ease !important;
}

.box.box-blog-post:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1) !important;
  transform: translateY(-3px);
  border: 2px solid #95c7ff !important;
}

/* Image */
.box.box-blog-post .box-image {
  overflow: hidden !important;
  border-radius: 0 !important;
}

.box.box-blog-post .box-image img {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .5s ease !important;
}

.box.box-blog-post:hover .box-image img {
  transform: scale(1.05) !important;
}

/* Ẩn date badge trên ảnh — hiện date dạng text phía dưới */
.box.box-blog-post .badge.post-date {
  display: none !important;
}

/* Ẩn category label */
.box.box-blog-post .cat-label {
  display: none !important;
}

/* Ẩn divider */
.box.box-blog-post .is-divider {
  display: none !important;
}

/* Text area */
.box.box-blog-post .box-text {
  padding: 16px 18px 18px !important;
  background: #fff !important;
}

/* Date dạng text */
.box.box-blog-post .post-meta {
  font-size: 12px !important;
  color: #94A3B8 !important;
  font-weight: 400 !important;
  margin: 0 0 8px !important;
  opacity: 1 !important;
}

/* Title: bold, dark, tối đa 3 dòng */
.box.box-blog-post .post-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

.box.box-blog-post .post-title a {
  color: #0F172A !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.box.box-blog-post .post-title a:hover {
  color: var(--tp-primary) !important;
}

/* Excerpt: xám nhạt, 2 dòng */
.box.box-blog-post .from_the_blog_excerpt {
  font-size: 13px !important;
  color: #94A3B8 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ============================================
   HOT SALE SECTION — "Sản Phẩm Đang Khuyến Mãi Hot"
   ============================================ */

/* Section title row */
.tp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tp-foreground);
  margin: 0;
}

.tp-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--tp-primary);
  border-radius: 8px;
  font-size: 18px;
  flex-shrink: 0;
}

/* Nút "Xem tất cả >" */
.tp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tp-primary);
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--tp-radius-full);
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.tp-view-all:hover {
  opacity: .88;
  transform: translateX(2px);
  color: #fff !important;
}

/* Slider arrows: circle với primary border */
.tp-hot-section .slider-nav,
.tp-hot-section .flickity-prev-next-button,
.tp-hot-section .is-nav-outside .flickity-prev-next-button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid var(--tp-primary) !important;
  background: #fff !important;
  color: var(--tp-primary) !important;
  box-shadow: var(--tp-shadow) !important;
  transition: all .2s ease !important;
}

.tp-hot-section .flickity-prev-next-button:hover {
  background: var(--tp-primary) !important;
  color: #fff !important;
}

.tp-hot-section .flickity-prev-next-button svg path {
  fill: var(--tp-primary) !important;
}

.tp-hot-section .flickity-prev-next-button:hover svg path {
  fill: #fff !important;
}

/* ============================================
   CATEGORY CARD — HOVER ANIMATION
   Target: .box.box-category (Flatsome UX Builder)
   Ref: sieuthigachdep.vn
   ============================================ */

/* Card: border-radius + overflow:hidden phải cùng 1 element mới clip được */
.box.box-category {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  /* match UX Builder setting */
}

/* Reset border-radius khỏi .box-image — parent đã lo việc này */
.box.box-category .box-image {
  border-radius: 0 !important;
}

/* Image: GIỮ TRONG FLOW để define card height, chỉ thêm transition */
.box.box-category .box-image img {
  transition: transform .7s ease, filter .7s ease !important;
  display: block !important;
  width: 100% !important;
}

/* Hover: ảnh zoom + blur + tối */
.box.box-category:hover .box-image img {
  transform: scale(1.1) !important;
  filter: blur(2px) brightness(50%) !important;
}

/* Gradient overlay qua pseudo-element */
.box.box-category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .2) 50%, transparent 100%);
  transition: background .5s ease;
  z-index: 1;
  pointer-events: none;
}

.box.box-category:hover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .38) 50%, transparent 100%);
}

/* Text: OVERLAY lên ảnh, mặc định ở DƯỚI CÙNG */
.box.box-category .box-text {
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  background: transparent !important;
  padding: 16px !important;
  z-index: 2;
  transform: translateY(0) !important;
  transition: bottom .5s cubic-bezier(.25, .46, .45, .94),
    transform .5s cubic-bezier(.25, .46, .45, .94) !important;
}

/* Hover: text trượt lên GIỮA card */
.box.box-category:hover .box-text {
  bottom: 50% !important;
  transform: translateY(50%) !important;
}

/* Text màu trắng */
.box.box-category .box-text .header-title,
.box.box-category .box-text h5 {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: capitalize !important;
  margin: 0 0 4px !important;
  transition: font-size .3s ease;
}

.box.box-category:hover .box-text .header-title,
.box.box-category:hover .box-text h5 {
  font-size: 20px !important;
}

.box.box-category .box-text .count {
  color: rgba(255, 255, 255, .8) !important;
  font-size: 12px !important;
  margin: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* ============================================
   PHASE 6 — MOBILE RESPONSIVE
   ============================================ */
@media only screen and (max-width: 48em) {

  /* Header */
  #masthead,
  #masthead.header-main {
    height: 60px !important;
  }

  /* Product card */
  .product-small.box .box-text {
    padding: 8px 8px 10px !important;
  }

  .woocommerce-loop-product__title,
  ul.products li.product .product-title {
    font-size: 12px !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
  }

  .tp-lien-he-btn {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }

  /* Footer */
  .footer-1 {
    padding-top: 32px !important;
    padding-bottom: 20px !important;
  }

  /* Mobile nav */
  .mobile-nav>li>a {
    text-transform: capitalize !important;
  }

  .mobile-nav .nav-icon>a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    background: #fff4f1;
    border: 1px solid rgba(248, 57, 24, 0.16);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .mobile-nav .nav-icon>a i,
  .mobile-nav .nav-icon>a .icon-menu {
    color: #f83918 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .mobile-nav .nav-icon>a:hover,
  .mobile-nav .nav-icon>a:focus {
    background: #f83918;
    border-color: #f83918;
    box-shadow: 0 10px 20px rgba(248, 57, 24, 0.22);
    transform: translateY(-1px);
  }

  .mobile-nav .nav-icon>a:hover i,
  .mobile-nav .nav-icon>a:hover .icon-menu,
  .mobile-nav .nav-icon>a:focus i,
  .mobile-nav .nav-icon>a:focus .icon-menu {
    color: #fff !important;
  }

  /* --- Single Product Mobile Fixes --- */
  .single-product .product-title {
    font-size: 22px !important;
  }

  .tp-top-meta-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .single-product .product-gallery .woocommerce-product-gallery__image img,
  .single-product .product-gallery .main-images img {
    height: auto !important;
    min-height: 300px;
  }

  .product-attributes table.shop_attributes th,
  .product-attributes table.shop_attributes td {
    padding: 10px !important;
    font-size: 12px;
  }

  .tp-single-meta {
    gap: 10px;
    margin-bottom: 16px;
  }

  .tp-meta-action {
    font-size: 13px;
  }

  .woocommerce-tabs ul.tabs {
    gap: 15px !important;
    padding: 0 15px !important;
  }

  .woocommerce-tabs ul.tabs li a {
    font-size: 14px !important;
  }

  /* ===== MEGA MENU MOBILE ===== */

  /* Dropdown: bỏ rounded + shadow nặng, full-width */
  .nav-dropdown {
    border-radius: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08) !important;
    border: none !important;
    border-top: 1px solid var(--tp-border) !important;
  }

  /* Các cột stack dọc thay vì ngang */
  .nav-dropdown>li.nav-dropdown-col {
    padding: 12px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid #F3F6FA !important;
    min-width: unset !important;
    width: 100% !important;
  }

  .nav-dropdown>li.nav-dropdown-col:last-child {
    border-bottom: none !important;
  }

  /* Section header mobile: nhỏ gọn hơn */
  #masthead .header-nav-main>li>.sub-menu>li.nav-dropdown-col>a,
  .nav-dropdown>li.nav-dropdown-col>a {
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
    padding: 0 0 8px 0 !important;
    margin-bottom: 6px !important;
  }

  /* Sub-heading item đầu cột mobile */
  .nav-dropdown>li.nav-dropdown-col>ul>li:first-child>a {
    font-size: 12px !important;
    padding: 4px 8px 8px 8px !important;
  }

  /* Items mobile: padding nhỏ hơn */
  .nav-column li>a,
  .nav-dropdown-default .nav-column li>a {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }

  /* Mega menu "Sản phẩm" trên mobile: về 1 cột. Mobile không có hover nên
     submenu con phải hiện tĩnh (xổ dọc ngay dưới item cha) thay vì flyout */
  #masthead #menu-item-1992>ul.nav-dropdown {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 16px !important;
  }

  #masthead #menu-item-1992>ul.nav-dropdown::before {
    font-size: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px !important;
  }

  #masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col>ul.nav-column {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 16px !important;
    margin: 2px 0 6px !important;
  }

  /* Category stats bar mobile: stack dọc */
  .tp-category-stats {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .tp-stat-divider {
    width: 40px !important;
    height: 1px !important;
    margin: 0 auto !important;
  }

  /* Section title block mobile */
  .tp-section-title {
    font-size: 16px !important;
  }

  .tp-view-all {
    font-size: 12px !important;
    padding: 7px 14px !important;
  }

  /* Blog post card mobile */
  .box.box-blog-post .post-title {
    font-size: 14px !important;
  }

  /* Category card mobile */
  .box.box-category .box-text .header-title,
  .box.box-category .box-text h5 {
    font-size: 14px !important;
  }

  .box.box-category:hover .box-text .header-title,
  .box.box-category:hover .box-text h5 {
    font-size: 16px !important;
  }
}

/* ============================================
   PHASE 7 — HOT SALE SECTION
   ============================================ */

/* Khu vực bao ngoài section Khuyến Mãi */
.hot-sale-section {
  background-color: #FFF8F6 !important;
  /* Màu nền hồng nhạt */
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: 0;
}

/* Header của Hot Sale */
.hot-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Tiêu đề bên trái */
.hot-sale-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon ngọn lửa */
.hot-sale-icon {
  background-color: #EF4444;
  /* Màu đỏ */
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  /* Bo góc nhẹ */
  font-size: 16px;
}

/* Chữ tiêu đề */
.hot-sale-title-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  /* Màu đen đậm */
  margin: 0;
  line-height: 1.2;
}

/* Nút Xem tất cả */
.hot-sale-btn {
  background-color: #EF4444 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 16px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none !important;
  min-height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.hot-sale-btn:hover {
  background-color: #DC2626 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Nút chuyển Slider (Mũi tên) trong section này */
.hot-sale-section .flickity-prev-next-button {
  width: 40px !important;
  height: 40px !important;
  background: #fff !important;
  border: 1px solid #EF4444 !important;
  /* Viền đỏ cam */
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
}

/* Hover mũi tên */
.hot-sale-section .flickity-prev-next-button:hover {
  background: #EF4444 !important;
}

/* Đổi màu icon mũi tên */
.hot-sale-section .flickity-prev-next-button svg {
  fill: #EF4444 !important;
  width: 14px !important;
  height: 14px !important;
  left: 30% !important;
  top: 30% !important;
}

/* Khi hover thì mũi tên màu trắng */
.hot-sale-section .flickity-prev-next-button:hover svg {
  fill: #fff !important;
}

/* Vị trí mũi tên đẩy ra ngoài chút giống mẫu */
.hot-sale-section .flickity-prev-next-button.previous {
  left: -20px !important;
}

.hot-sale-section .flickity-prev-next-button.next {
  right: -20px !important;
}

/* Nút thả tim (Wishlist) góc dưới trái ảnh */
.hot-sale-section .product-small.box .box-image {
  position: relative;
}

.hot-sale-section .yith-wcwl-add-to-wishlist {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  margin: 0 !important;
}

.hot-sale-section .yith-wcwl-add-to-wishlist a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #6B7280;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hot-sale-section .yith-wcwl-add-to-wishlist a:hover {
  color: #EF4444;
  background: #fff;
  transform: scale(1.1);
}

/* Hỗ trợ thêm cho Flatsome Native Wishlist */
.hot-sale-section .wishlist-icon {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  margin: 0 !important;
}

.hot-sale-section .wishlist-icon button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  color: #6B7280 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  padding: 0 !important;
}

.hot-sale-section .wishlist-icon button:hover,
.hot-sale-section .wishlist-icon .is-active {
  color: #EF4444 !important;
  background: #fff !important;
  transform: scale(1.1) !important;
}

/* Product category filter: Filter Everything + sidebar widgets */
body.tax-product_cat #shop-sidebar,
body.post-type-archive-product #shop-sidebar {
  position: sticky;
  top: 110px;
}

body.tax-product_cat #shop-sidebar .widget,
body.post-type-archive-product #shop-sidebar .widget {
  margin-bottom: 18px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

body.tax-product_cat #shop-sidebar .widget:last-child,
body.post-type-archive-product #shop-sidebar .widget:last-child {
  margin-bottom: 0;
}

body.tax-product_cat #shop-sidebar .widget-title.shop-sidebar,
body.post-type-archive-product #shop-sidebar .widget-title.shop-sidebar,
body.tax-product_cat #shop-sidebar .wpc-filter-title,
body.post-type-archive-product #shop-sidebar .wpc-filter-title {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.tax-product_cat #shop-sidebar .is-divider.small,
body.post-type-archive-product #shop-sidebar .is-divider.small {
  max-width: 44px;
  height: 3px;
  margin: 10px 0 0;
  background-color: #2563eb;
}

body.tax-product_cat #shop-sidebar .wpc-filters-main-wrap,
body.post-type-archive-product #shop-sidebar .wpc-filters-main-wrap {
  width: 100%;
}

body.tax-product_cat #shop-sidebar .wpc-filters-widget-content,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-content,
body.tax-product_cat #shop-sidebar .wpc-filters-widget-containers-wrapper,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-containers-wrapper {
  background: transparent;
  padding: 0;
  border: 0;
}

body.tax-product_cat #shop-sidebar .wpc-filter-set-widget-title,
body.post-type-archive-product #shop-sidebar .wpc-filter-set-widget-title {
  margin-bottom: 14px;
}

body.tax-product_cat #shop-sidebar .wpc-filters-widget-top-container,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-top-container {
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

body.tax-product_cat #shop-sidebar .wpc-inner-widget-chips-wrapper,
body.post-type-archive-product #shop-sidebar .wpc-inner-widget-chips-wrapper {
  padding: 0;
}

body.tax-product_cat #shop-sidebar .wpc-filter-chips-list,
body.post-type-archive-product #shop-sidebar .wpc-filter-chips-list,
body.tax-product_cat .wpc-custom-selected-terms .wpc-filter-chips-list,
body.post-type-archive-product .wpc-custom-selected-terms .wpc-filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tax-product_cat #shop-sidebar .wpc-filter-chip,
body.post-type-archive-product #shop-sidebar .wpc-filter-chip,
body.tax-product_cat .wpc-custom-selected-terms .wpc-filter-chip,
body.post-type-archive-product .wpc-custom-selected-terms .wpc-filter-chip {
  margin: 0;
}

body.tax-product_cat #shop-sidebar .wpc-chip-content,
body.post-type-archive-product #shop-sidebar .wpc-chip-content,
body.tax-product_cat .wpc-custom-selected-terms .wpc-chip-content,
body.post-type-archive-product .wpc-custom-selected-terms .wpc-chip-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

body.tax-product_cat #shop-sidebar .wpc-filter-chip a,
body.post-type-archive-product #shop-sidebar .wpc-filter-chip a,
body.tax-product_cat .wpc-custom-selected-terms .wpc-filter-chip a,
body.post-type-archive-product .wpc-custom-selected-terms .wpc-filter-chip a {
  color: inherit;
}

body.tax-product_cat .wpc-custom-selected-terms,
body.post-type-archive-product .wpc-custom-selected-terms,
body.tax-product_cat #shop-sidebar .wpc-filters-widget-top-container,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-top-container {
  display: none;
}

body.tax-product_cat .wpc-custom-selected-terms,
body.post-type-archive-product .wpc-custom-selected-terms {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.tax-product_cat #shop-sidebar .wpc-filters-widget-wrapper,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.tax-product_cat #shop-sidebar .wpc-posts-found,
body.post-type-archive-product #shop-sidebar .wpc-posts-found {
  display: none;
}

body.tax-product_cat #shop-sidebar .wpc-filters-section,
body.post-type-archive-product #shop-sidebar .wpc-filters-section {
  margin: 0;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f4;
  border-radius: 16px;
}

body.tax-product_cat #shop-sidebar .wpc-filter-header,
body.post-type-archive-product #shop-sidebar .wpc-filter-header {
  margin-bottom: 10px;
}

body.tax-product_cat #shop-sidebar .wpc-filters-widget-select,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-select {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.tax-product_cat #shop-sidebar .wpc-filters-widget-select:hover,
body.tax-product_cat #shop-sidebar .wpc-filters-widget-select:focus,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-select:hover,
body.post-type-archive-product #shop-sidebar .wpc-filters-widget-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: 0;
}

body.tax-product_cat #shop-sidebar .price_slider_wrapper,
body.post-type-archive-product #shop-sidebar .price_slider_wrapper {
  padding-top: 4px;
}

body.tax-product_cat #shop-sidebar .price_slider_amount,
body.post-type-archive-product #shop-sidebar .price_slider_amount {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body.tax-product_cat #shop-sidebar .price_slider_amount .price_label,
body.post-type-archive-product #shop-sidebar .price_slider_amount .price_label {
  order: -1;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

body.tax-product_cat #shop-sidebar .price_slider_amount .button,
body.post-type-archive-product #shop-sidebar .price_slider_amount .button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

body.tax-product_cat #shop-sidebar .price_slider_amount .button:hover,
body.post-type-archive-product #shop-sidebar .price_slider_amount .button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

body.tax-product_cat #shop-sidebar .ui-widget-content,
body.post-type-archive-product #shop-sidebar .ui-widget-content {
  background: #dbeafe;
  border: 0;
  border-radius: 999px;
}

body.tax-product_cat #shop-sidebar .ui-slider .ui-slider-range,
body.post-type-archive-product #shop-sidebar .ui-slider .ui-slider-range {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

body.tax-product_cat #shop-sidebar .ui-slider .ui-slider-handle,
body.post-type-archive-product #shop-sidebar .ui-slider .ui-slider-handle {
  top: -5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #2563eb;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

body.tax-product_cat #shop-sidebar .product-categories,
body.post-type-archive-product #shop-sidebar .product-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tax-product_cat #shop-sidebar .product-categories li,
body.post-type-archive-product #shop-sidebar .product-categories li {
  margin: 0;
  border-top: 1px solid #eef2f7;
}

body.tax-product_cat #shop-sidebar .product-categories li:first-child,
body.post-type-archive-product #shop-sidebar .product-categories li:first-child {
  border-top: 0;
}

body.tax-product_cat #shop-sidebar .product-categories a,
body.post-type-archive-product #shop-sidebar .product-categories a {
  display: block;
  padding: 11px 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

body.tax-product_cat #shop-sidebar .product-categories a:hover,
body.post-type-archive-product #shop-sidebar .product-categories a:hover,
body.tax-product_cat #shop-sidebar .product-categories .current-cat>a,
body.post-type-archive-product #shop-sidebar .product-categories .current-cat>a {
  color: #2563eb;
}

body.tax-product_cat .category-filtering .filter-button,
body.post-type-archive-product .category-filtering .filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-transform: none;
}

body.tax-product_cat .category-filtering .filter-button strong,
body.post-type-archive-product .category-filtering .filter-button strong {
  font-size: 14px;
  font-weight: 700;
}

body.tax-product_cat .category-filtering .filter-button i,
body.post-type-archive-product .category-filtering .filter-button i {
  color: #2563eb;
  font-size: 16px;
}

@media screen and (max-width: 1024px) {

  body.tax-product_cat #shop-sidebar,
  body.post-type-archive-product #shop-sidebar {
    position: static;
  }

  body.tax-product_cat #shop-sidebar .widget,
  body.post-type-archive-product #shop-sidebar .widget {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body.tax-product_cat .wpc-custom-selected-terms,
  body.post-type-archive-product .wpc-custom-selected-terms {
    padding: 14px 16px;
    border-radius: 16px;
  }
}

@media screen and (max-width: 767px) {

  body.tax-product_cat #shop-sidebar .widget,
  body.post-type-archive-product #shop-sidebar .widget {
    padding: 16px 14px;
    border-radius: 16px;
  }

  body.tax-product_cat #shop-sidebar .wpc-filters-section,
  body.post-type-archive-product #shop-sidebar .wpc-filters-section {
    padding: 12px;
    border-radius: 14px;
  }

  body.tax-product_cat #shop-sidebar .wpc-filters-widget-select,
  body.post-type-archive-product #shop-sidebar .wpc-filters-widget-select {
    height: 42px;
    font-size: 13px;
  }

  body.tax-product_cat .category-filtering .filter-button,
  body.post-type-archive-product .category-filtering .filter-button {
    width: 100%;
    justify-content: center;
  }

  body.tax-product_cat .wpc-custom-selected-terms,
  body.post-type-archive-product .wpc-custom-selected-terms {
    padding: 12px 14px;
    border-radius: 14px;
  }
}

/* ============================================
   MODERN LUXURY SECTION HEADER
   Target: .tp-section-header
   ============================================ */

.tp-section-header {
  max-width: 1380px;
  margin: 0 auto 24px;
  padding: 0 16px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  /* Căn dưới để chữ và nút cân đối */
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Đường line vàng mảnh trang trí ở dưới đáy, chạy một đoạn */
.tp-section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  width: 60px;
  height: 2px;
  background: #c5a059;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp-section-header:hover::after {
  width: 120px;
  /* Line dài ra khi hover khu vực header */
}

.tp-section-header__lead {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

/* Icon box: Squircle mờ ảo hiện đại */
.tp-section-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  /* Squircle mềm mại */
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.02));
  border: 1px solid rgba(197, 160, 89, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c5a059;
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.08);
  transition: transform 0.4s ease;
}

.tp-section-header:hover .tp-section-header__icon {
  transform: translateY(-3px) scale(1.05);
  /* Icon nảy nhẹ lên */
}

.tp-section-header__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  /* Nét thanh mảnh cao cấp */
}

.tp-section-header__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Tiêu đề chính */
.tp-section-header__title {
  margin: 0;
  font-size: 28px;
  /* To hơn chút để thêm phần bề thế */
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.02em;
  /* Trendy editorial look */
}

.tp-section-header__subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #888888;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tp-section-header__subtitle svg {
  color: #c5a059;
  width: 14px;
  height: 14px;
}

/* Nút CTA: Tối giản, quyền lực (Dark Mode Button) */
.tp-section-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #111111;
  color: #c39a29 !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp-section-header__cta svg {
  stroke: #ffffff;
  transition: transform 0.4s ease;
}

.tp-section-header__cta:hover {
  background: #c5a059;
  box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

.tp-section-header__cta:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  .tp-section-header {
    padding: 0 16px 16px;
    gap: 16px;
  }

  .tp-section-header__title {
    font-size: 24px;
  }

  .tp-section-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .tp-section-header__icon svg {
    width: 22px;
    height: 22px;
  }

  .tp-section-header__cta {
    padding: 8px 20px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .tp-section-header {
    padding: 0 12px 14px;
    align-items: center;
  }

  .tp-section-header__lead {
    gap: 12px;
  }

  .tp-section-header__title {
    font-size: 20px;
  }

  .tp-section-header__subtitle {
    display: none;
  }

  .tp-section-header__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .tp-section-header__icon svg {
    width: 20px;
    height: 20px;
  }

  .tp-section-header__cta {
    padding: 8px 16px;
    font-size: 11px;
    gap: 6px;
  }

  .tp-section-header::after {
    left: 12px;
    width: 40px;
  }
}

/* ============================================
   MEGA MENU "SẢN PHẨM" (#masthead #menu-item-1992)
   ============================================ */
/* Ghi chú: class "menu-3-cols" trong bản trước KHÔNG tồn tại trong menu thật
   (đã kiểm tra HTML sống), nên các bản CSS trước không có tác dụng.
   Cấu trúc thật là Flatsome native:
     ul.nav-dropdown.nav-dropdown-default
       > 7 li thường (Vòi Xịt, Sen Tắm Âm Tường, ...)
       > li.nav-dropdown-col  (Hilux Phụ Kiện Series, có submenu con)
           > ul.nav-column > li (Test)

   Yêu cầu: chia toàn bộ danh sách thành LƯỚI 3 CỘT, item nào có submenu
   (nav-dropdown-col) thì submenu chỉ hiện ra khi hover vào item đó (flyout),
   không còn chiếm chỗ cố định như 1 cột riêng nữa. */

/* overflow:hidden mặc định của .nav-dropdown (xem phần "MEGA MENU — MODERN
   STYLE" phía trên) sẽ cắt mất flyout nếu nó tràn ra ngoài khung — phải mở
   lại overflow:visible cho riêng dropdown này */
#masthead #menu-item-1992>ul.nav-dropdown {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  column-gap: 44px !important;
  row-gap: 2px !important;
  width: 720px !important;
  padding: 30px 34px 26px !important;
  overflow: visible !important;
  transform-origin: top center;

  /* Đặt trạng thái ban đầu để chuẩn bị transition (đóng mượt) */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(15px) scale(0.97) !important;
  animation: none !important;
  /* Tắt animation mặc định của Flatsome để tránh xung đột */
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Khi hover: hiện menu mượt mà */
#masthead #menu-item-1992:hover>ul.nav-dropdown,
.header-nav>#menu-item-1992:hover>ul.nav-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

/* Nhãn tiêu đề panel — cho khối menu có cấu trúc rõ ràng, cảm giác được
   "thiết kế" chứ không phải một list trần trụi */
#masthead #menu-item-1992>ul.nav-dropdown::before {
  /* content: "Danh Mục Sản Phẩm" !important; */
  display: block !important;
  grid-column: 1 / -1 !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
  color: #c5a059 !important;
  padding-bottom: 16px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--tp-border) !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li {
  position: relative !important;
  display: block !important;
  width: auto !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li:hover,
#masthead #menu-item-1992>ul.nav-dropdown>li.is-hover-active {
  z-index: 100 !important;
}

/* Style chung cho mọi item — item to thoáng hơn, vạch vàng bên trái chạy ra khi hover */
#masthead #menu-item-1992>ul.nav-dropdown>li>a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #1F2937 !important;
  padding: 12px 14px 12px 20px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: color .2s ease, background-color .2s ease, padding-left .2s ease !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li>a::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 50% !important;
  width: 3px !important;
  height: 0 !important;
  background: #c5a059 !important;
  border-radius: 3px !important;
  transform: translateY(-50%) !important;
  transition: height .2s ease !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li>a:hover,
#masthead #menu-item-1992>ul.nav-dropdown>li.is-hover-active>a {
  color: #9a7837 !important;
  background: #FBF7EF !important;
  padding-left: 24px !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li>a:hover::before,
#masthead #menu-item-1992>ul.nav-dropdown>li.is-hover-active>a::before {
  height: 18px !important;
}

/* Item có submenu con (nav-dropdown-col / menu-item-has-children): mũi tên › bên phải */
#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children {
  min-width: unset !important;
  width: auto !important;
  border: none !important;
  padding: 0 !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col>a,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children>a {
  justify-content: space-between !important;
  gap: 8px !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col>a::after,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children>a::after {
  content: '›' !important;
  display: inline-block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #c5a059 !important;
  flex-shrink: 0 !important;
}

/* Submenu con flyout sang phải */
#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col>ul,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children>ul,
#masthead #menu-item-1992>ul.nav-dropdown>li>ul.nav-column,
#masthead #menu-item-1992>ul.nav-dropdown>li>ul.sub-menu {
  position: absolute !important;
  left: calc(100% + 10px) !important;
  top: -10px !important;
  margin: 0 !important;
  width: 230px !important;
  min-width: 230px !important;
  background: #fff !important;
  border: 1px solid #EEF2F7 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .06) !important;
  padding: 8px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .25s ease, visibility .25s ease !important;
  z-index: 101 !important;
}

/* Cầu nối ẩn phủ kín rộng vùng di chuột giữa nút cha và submenu */
#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col>ul::before,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children>ul::before,
#masthead #menu-item-1992>ul.nav-dropdown>li>ul.nav-column::before,
#masthead #menu-item-1992>ul.nav-dropdown>li>ul.sub-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -40px !important;
  bottom: -40px !important;
  left: -50px !important;
  width: 60px !important;
  background: transparent !important;
  z-index: 9999 !important;
}

/* Khi hover hoặc .is-hover-active: hiện submenu mượt mà */
#masthead #menu-item-1992>ul.nav-dropdown>li.nav-dropdown-col:hover>ul,
#masthead #menu-item-1992>ul.nav-dropdown>li.menu-item-has-children:hover>ul,
#masthead #menu-item-1992>ul.nav-dropdown>li.is-hover-active>ul,
#masthead #menu-item-1992>ul.nav-dropdown>li:hover>ul.nav-column,
#masthead #menu-item-1992>ul.nav-dropdown>li:hover>ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity .15s ease, visibility 0s 0s !important;
}

#masthead #menu-item-1992>ul.nav-dropdown>li>ul li>a {
  font-size: 13.5px !important;
  padding: 10px 12px 10px 18px !important;
}