/*!
 * Theme Style Name: SOIF Luxury Kleo Edition
 * Version: 2.6.0
 * Reference: Kleo Ceramics Online Store (Warm Minimalist Editorial Luxury)
 * Scope: Pure CSS visual refinement — zero HTML/Elementor/UX Builder structural changes
 */

:root {
  --soif-bg-canvas: #faf8f5;
  --soif-bg-surface: #ffffff;
  --soif-bg-stone: #f3efe9;
  --soif-bg-dark: #1f1c18;
  --soif-ink-primary: #1f1c18;
  --soif-ink-muted: #6b635b;
  --soif-accent: #8c6a4a;
  --soif-accent-hover: #6e5136;
  --soif-sage: #3f624d;
  --soif-sage-bg: #eef4f0;
  --soif-terracotta: #b4532a;
  --soif-terracotta-bg: #fdf2ed;
  --soif-border: #e8e2d9;
  --soif-border-strong: #d5cbbd;
  --soif-radius-sm: 4px;
  --soif-radius-md: 8px;
  --soif-shadow-soft: 0 10px 30px -12px rgba(31, 28, 24, 0.08);
  --soif-shadow-hover: 0 18px 40px -14px rgba(31, 28, 24, 0.14);
  --soif-font-serif: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --soif-font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --soif-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   1. Base Canvas & Editorial Typography
   ========================================================================== */
html,
body {
  background-color: var(--soif-bg-canvas);
  color: var(--soif-ink-primary);
  font-family: var(--soif-font-sans);
  -webkit-font-smoothing: antialiased;
}

#wrapper,
#main {
  background-color: var(--soif-bg-canvas);
}

h1, h2, h3, h4,
.section-title-main,
.product-title,
.entry-title {
  font-family: var(--soif-font-serif);
  color: var(--soif-ink-primary);
  letter-spacing: -0.01em;
}

.section-title-container {
  margin-top: 2.25rem;
  margin-bottom: 1.5rem;
}

.section-title {
  border-bottom: 1px solid var(--soif-border);
  padding-bottom: 0.65rem;
}

.section-title b {
  background-color: var(--soif-border) !important;
  height: 1px !important;
  opacity: 0.7;
}

.section-title-main {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  letter-spacing: 0.02em;
}

/* Buttons */
.button.primary,
.button.secondary,
button.button.primary,
a.button.primary {
  background-color: var(--soif-ink-primary);
  border-color: var(--soif-ink-primary);
  color: #faf8f5;
  border-radius: var(--soif-radius-sm);
  font-family: var(--soif-font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s var(--soif-ease), transform 0.25s var(--soif-ease), box-shadow 0.25s var(--soif-ease);
}

.button.primary:hover,
.button.secondary:hover,
button.button.primary:hover,
a.button.primary:hover {
  background-color: var(--soif-accent);
  border-color: var(--soif-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--soif-shadow-soft);
}

.button.is-outline {
  border-color: var(--soif-border-strong);
  color: var(--soif-ink-primary);
  border-radius: var(--soif-radius-sm);
}

.button.is-outline:hover {
  background-color: var(--soif-ink-primary);
  border-color: var(--soif-ink-primary);
  color: #faf8f5;
}

/* ==========================================================================
   2. Header, Topbar & Search
   ========================================================================== */
.header-top {
  background-color: var(--soif-bg-dark) !important;
  color: #e8e2d9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.header-top a,
.header-top .html {
  color: #e8e2d9 !important;
}

.header-main,
.header-bottom {
  background-color: rgba(250, 248, 245, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--soif-border);
}

.header-nav-main > li > a {
  font-family: var(--soif-font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soif-ink-primary) !important;
  transition: color 0.2s var(--soif-ease);
}

.header-nav-main > li > a:hover,
.header-nav-main > li.current-menu-item > a {
  color: var(--soif-accent) !important;
}

.searchform .search-field {
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border-strong);
  border-radius: var(--soif-radius-sm) 0 0 var(--soif-radius-sm);
  color: var(--soif-ink-primary);
  font-size: 0.88rem;
  box-shadow: none;
}

.searchform .search-field:focus {
  border-color: var(--soif-accent);
  box-shadow: 0 0 0 2px rgba(140, 106, 74, 0.14);
}

.searchform .ux-search-submit {
  background-color: var(--soif-ink-primary) !important;
  border-color: var(--soif-ink-primary) !important;
  border-radius: 0 var(--soif-radius-sm) var(--soif-radius-sm) 0;
}

.autocomplete-suggestions {
  background: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  box-shadow: var(--soif-shadow-hover);
}

.autocomplete-suggestion {
  border-bottom: 1px solid var(--soif-bg-stone);
  padding: 10px 14px;
}

.autocomplete-suggestion:hover,
.autocomplete-selected {
  background-color: var(--soif-bg-stone) !important;
}

/* ==========================================================================
   3. Homepage Editorial Polish
   ========================================================================== */
.home .slider-wrapper .banner .text-box h1,
.home .slider-wrapper .banner .text-box h2,
.home .slider-wrapper .banner .text-box h3 {
  font-family: var(--soif-font-serif);
  letter-spacing: 0.01em;
}

.home .ux-image-box .box-image,
.home .image-zoom img {
  border-radius: var(--soif-radius-sm);
  transition: transform 0.7s var(--soif-ease);
}

.home .ux-image-box:hover .box-image img,
.home .image-zoom:hover img {
  transform: scale(1.035);
}

/* ==========================================================================
   4. Category & Shop Archive Page (.archive.woocommerce)
   ========================================================================== */
.archive.woocommerce div.shop-page-title {
  background-color: var(--soif-bg-stone);
  border-bottom: 1px solid var(--soif-border);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.archive.woocommerce .shop-page-title .woocommerce-breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soif-ink-muted);
  margin-bottom: 0.4rem;
}

.archive.woocommerce .shop-page-title .woocommerce-breadcrumb a {
  color: var(--soif-ink-muted);
}

.archive.woocommerce .shop-page-title h1,
.archive.woocommerce .shop-page-title .page-title {
  font-family: var(--soif-font-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--soif-ink-primary);
  margin-bottom: 0;
}

.archive.woocommerce .woocommerce-result-count {
  color: var(--soif-ink-muted);
  font-size: 0.85rem;
}

.archive.woocommerce .woocommerce-ordering select.orderby {
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border-strong);
  border-radius: var(--soif-radius-sm);
  color: var(--soif-ink-primary);
  font-size: 0.85rem;
  padding: 6px 28px 6px 12px;
  box-shadow: none;
}

/* Sticky Minimalist Filter Sidebar */
@media (min-width: 850px) {
  .archive.woocommerce #shop-sidebar {
    position: sticky;
    top: 90px;
  }
}

#shop-sidebar .widget {
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px -10px rgba(31, 28, 24, 0.06);
}

#shop-sidebar .widget-title.shop-sidebar {
  font-family: var(--soif-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  letter-spacing: 0.02em;
  display: block;
}

#shop-sidebar .is-divider.small {
  background-color: var(--soif-accent);
  height: 1px;
  width: 32px;
  margin: 0.55rem 0 0.9rem;
  opacity: 0.7;
}

/* YITH Color Swatches */
#shop-sidebar .yith-wcan-color {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#shop-sidebar .yith-wcan-color li {
  margin: 0 !important;
  padding: 0 !important;
}

#shop-sidebar .yith-wcan-color li a {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid var(--soif-border-strong) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.2s var(--soif-ease), box-shadow 0.2s var(--soif-ease);
}

#shop-sidebar .yith-wcan-color li a:hover {
  transform: scale(1.1);
}

#shop-sidebar .yith-wcan-color li.chosen a,
#shop-sidebar .yith-wcan-color li a.active {
  border-color: var(--soif-ink-primary) !important;
  box-shadow: 0 0 0 2px var(--soif-bg-surface), 0 0 0 4px var(--soif-ink-primary) !important;
}

/* YITH Texture Labels */
#shop-sidebar .yith-wcan-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

#shop-sidebar .yith-wcan-label li {
  margin: 0 !important;
  width: auto !important;
}

#shop-sidebar .yith-wcan-label li a {
  display: inline-block;
  padding: 5px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  color: var(--soif-ink-primary) !important;
  background-color: var(--soif-bg-canvas) !important;
  border: 1px solid var(--soif-border) !important;
  border-radius: var(--soif-radius-sm) !important;
  transition: all 0.2s var(--soif-ease);
}

#shop-sidebar .yith-wcan-label li a:hover {
  border-color: var(--soif-accent) !important;
  background-color: var(--soif-bg-stone) !important;
}

#shop-sidebar .yith-wcan-label li.chosen a,
#shop-sidebar .yith-wcan-label li a.active {
  background-color: var(--soif-ink-primary) !important;
  border-color: var(--soif-ink-primary) !important;
  color: #faf8f5 !important;
}

/* Active Filter Chips */
#static-active-filters .button.is-outline {
  background-color: var(--soif-bg-surface);
  border-color: var(--soif-border-strong);
  color: var(--soif-ink-primary);
  font-size: 0.78rem;
}

#static-active-filters .button.secondary {
  background-color: var(--soif-accent);
  border-color: var(--soif-accent);
  color: #ffffff;
}

/* Editorial Product Cards */
.products.row {
  row-gap: 1.5rem;
}

.products .product-small .col-inner {
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  overflow: hidden;
  height: 100%;
  transition: transform 0.35s var(--soif-ease), box-shadow 0.35s var(--soif-ease), border-color 0.35s var(--soif-ease);
}

.products .product-small:hover .col-inner {
  transform: translateY(-4px);
  box-shadow: var(--soif-shadow-hover);
  border-color: var(--soif-border-strong);
}

.products .product-small .box-image {
  background-color: var(--soif-bg-stone);
  overflow: hidden;
}

.products .product-small .box-image img {
  transition: transform 0.65s var(--soif-ease);
}

.products .product-small:hover .box-image img {
  transform: scale(1.045);
}

.products .product-small .box-text-products {
  padding: 0.95rem 0.85rem 1.1rem;
  background-color: var(--soif-bg-surface);
}

.products .product-small .product-title a {
  font-family: var(--soif-font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  line-height: 1.3;
}

.products .product-small:hover .product-title a {
  color: var(--soif-accent);
}

/* Muted Luxury Stock Badges */
.film-stock-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--soif-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.film-badge-running {
  background-color: var(--soif-sage-bg) !important;
  color: var(--soif-sage) !important;
  border: 1px solid rgba(63, 98, 77, 0.25) !important;
}

.film-badge-dropped-stock {
  background-color: var(--soif-terracotta-bg) !important;
  color: var(--soif-terracotta) !important;
  border: 1px solid rgba(180, 83, 42, 0.25) !important;
}

.film-badge-preorder {
  background-color: var(--soif-bg-stone) !important;
  color: var(--soif-ink-muted) !important;
  border: 1px solid var(--soif-border-strong) !important;
}

/* Pagination */
.nav-pagination > li > a,
.nav-pagination > li > span {
  border: 1px solid var(--soif-border);
  background-color: var(--soif-bg-surface);
  color: var(--soif-ink-primary);
  border-radius: var(--soif-radius-sm);
  font-size: 0.85rem;
  transition: all 0.2s var(--soif-ease);
}

.nav-pagination > li > span.current,
.nav-pagination > li > a:hover {
  background-color: var(--soif-ink-primary) !important;
  border-color: var(--soif-ink-primary) !important;
  color: #faf8f5 !important;
}

/* ==========================================================================
   5. Product Detail Page (.single-product)
   ========================================================================== */
.single-product .product-main {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.single-product .product-gallery {
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  padding: 0.75rem;
  box-shadow: var(--soif-shadow-soft);
}

.single-product .product-thumbnails {
  margin-top: 0.75rem;
}

.single-product .product-thumbnails .col a {
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-sm);
  overflow: hidden;
}

.single-product .product-thumbnails .is-nav-selected a {
  border-color: var(--soif-accent);
  box-shadow: 0 0 0 1px var(--soif-accent);
}

.single-product .product-info {
  padding-left: 1.5rem;
}

@media (max-width: 849px) {
  .single-product .product-info {
    padding-left: 0;
    margin-top: 1.5rem;
  }
}

.single-product .product-info .woocommerce-breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soif-ink-muted);
  margin-bottom: 0.75rem;
}

.single-product .product-info .woocommerce-breadcrumb a {
  color: var(--soif-ink-muted);
}

.single-product h1.product-title {
  font-family: var(--soif-font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--soif-ink-primary);
  margin-bottom: 0.65rem;
}

.single-product .product-info .is-divider.small {
  background-color: var(--soif-accent);
  height: 1px;
  width: 48px;
  margin: 0.75rem 0 1.25rem;
}

/* Material Sample Spec Card */
.single-product .film-single-stock-box {
  background-color: var(--soif-bg-stone) !important;
  border: 1px solid var(--soif-border) !important;
  border-left: 3px solid var(--soif-accent) !important;
  border-radius: var(--soif-radius-sm) !important;
  padding: 14px 18px !important;
  margin: 0 0 1.35rem !important;
}

.single-product .film-single-stock-box .film-single-sku {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soif-ink-muted);
}

.single-product .film-single-stock-box .film-single-sku strong {
  color: var(--soif-ink-primary);
  font-weight: 600;
}

.single-product .film-single-stock-box .film-single-qty {
  font-size: 0.92rem;
  color: var(--soif-ink-primary);
}

.single-product .product-short-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3d3832;
}

.single-product .product-short-description p {
  margin-bottom: 0.85rem;
}

.single-product .product_meta {
  border-top: 1px solid var(--soif-border);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--soif-ink-muted);
}

.single-product .product_meta > span {
  display: block;
  padding: 4px 0;
  border-bottom: 1px dashed var(--soif-border);
}

.single-product .product_meta a {
  color: var(--soif-ink-primary);
  font-weight: 500;
}

.single-product .product-footer .woocommerce-tabs {
  border-top: 1px solid var(--soif-border);
  padding-top: 1.75rem;
}

.single-product .related-products-wrapper h3.product-section-title {
  font-family: var(--soif-font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.footer-wrapper {
  background-color: var(--soif-bg-dark);
  color: #dcd5cb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrapper .widget-title,
.footer-wrapper h3,
.footer-wrapper h4 {
  font-family: var(--soif-font-serif);
  color: #faf8f5;
}

.footer-wrapper a {
  color: #cfc6ba;
}

.footer-wrapper a:hover {
  color: #e6cbb1;
}

.absolute-footer {
  background-color: #161411 !important;
  color: #a39a8e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   7. v2.1.0 Homepage Editorial Fixes & Mobile 1-Per-Row Large Swatch Grid
   ========================================================================== */

/* Kill legacy theme line-1.webp pseudo-element & flex squeeze on titles */
.section-title-center span::after,
.section-title-center span:after {
  display: none !important;
  content: none !important;
  background: none !important;
  height: 0 !important;
}

.section-title-container {
  margin-top: 2.25rem;
  margin-bottom: 1.4rem;
}

.section-title.section-title-center {
  display: block !important;
  text-align: center !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.section-title-center b {
  display: none !important;
}

.section-title-center .section-title-main {
  margin: 0 !important;
  padding: 0 0 10px !important;
  border: none !important;
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-align: center;
  color: var(--soif-ink-primary) !important;
  line-height: 1.25 !important;
}

.section-title.section-title-center::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--soif-accent);
  margin: 6px auto 0;
}

h2.section-title .section-title-main {
  font-size: clamp(1.25rem, 2.35vw, 1.85rem) !important;
  letter-spacing: 0.03em;
}

h4.section-title .section-title-main {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem) !important;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.dark .section-title-center .section-title-main {
  color: #faf8f5 !important;
}

.dark .section-title.section-title-center::after {
  background-color: #d4b896;
}

.loi-keu-goi h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem) !important;
  line-height: 1.4 !important;
  color: #faf8f5 !important;
}

.loi-keu-goi h3 span {
  font-size: inherit !important;
}

/* Hero Slider Polish & Mobile Visibility */
.home .slider-wrapper .banner .overlay {
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.18) 0%, rgba(20, 17, 14, 0.5) 55%, rgba(20, 17, 14, 0.32) 100%) !important;
}

.home .slider-wrapper .banner .text-box h4 {
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.14em;
}

.home .slider-wrapper .banner .button.is-outline {
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #ffffff !important;
  background: rgba(20, 17, 14, 0.25);
  backdrop-filter: blur(6px);
  padding: 0 1.6rem;
}

.home .slider-wrapper .banner .button.is-outline:hover {
  background: #ffffff !important;
  color: var(--soif-ink-primary) !important;
}

@media (max-width: 549px) {
  .home .slider-wrapper.hide-for-small {
    display: block !important;
  }
  .home .slider-wrapper .banner {
    min-height: 360px !important;
    padding-top: 360px !important;
  }
  .home .slider-wrapper .banner .text-box {
    width: 88% !important;
  }
  .home .slider-wrapper .banner .text-box h4 span {
    font-size: 160% !important;
  }
}

/* Dark Architectural Sections & Showcase/Catalog Cards */
.cam-ket-section .section-bg-overlay,
.loi-keu-goi .section-bg-overlay {
  background-color: rgba(26, 22, 18, 0.9) !important;
}

.home .banner-section .img-inner {
  border-radius: var(--soif-radius-md);
  box-shadow: var(--soif-shadow-soft);
}

.khach-hang-section .img-inner {
  border-radius: var(--soif-radius-md);
  overflow: hidden;
  box-shadow: var(--soif-shadow-soft);
  aspect-ratio: 4 / 5;
}

.khach-hang-section .img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--soif-ease);
}

.khach-hang-section .img-inner:hover img {
  transform: scale(1.03);
}

/* Mobile 1 Product Per Row + Large Crisp Swatch Card (inspired by lginterior) */
@media (max-width: 640px) {
  .products.row,
  .row.row-masonry {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    row-gap: 1.25rem !important;
  }

  .products.row > .col,
  .products.row > .product-small,
  .row.small-columns-2 > .product-small,
  .row.small-columns-2 > .col.product-small,
  .row.row-masonry > .product-small {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 0 !important;
  }

  .product-small .col-inner {
    border-radius: var(--soif-radius-md);
    box-shadow: var(--soif-shadow-soft);
  }

  .product-small .box-image {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .product-small .box-image .image-zoom,
  .product-small .box-image a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .product-small .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  .product-small .box-text-products {
    padding: 1rem 1.15rem 1.25rem !important;
    text-align: left !important;
  }

  .product-small .product-title {
    margin-bottom: 0.35rem !important;
  }

  .product-small .product-title a {
    font-size: 1.22rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em;
  }

  .product-small .film-stock-badge {
    font-size: 11.5px !important;
    padding: 4px 11px !important;
    margin-top: 4px !important;
  }
}

/* ==========================================================================
   8. v2.2.0 Page Transition Loader, Contact CTA Upgrade, Clean Titles & Editorial Product Detail
   ========================================================================== */

/* 8.1 Remove remaining underline dash under section titles */
.section-title,
.section-title.section-title-center,
.section-title.section-title-normal {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.section-title.section-title-center::after,
.section-title.section-title-center::before,
.section-title-center span::after,
.section-title-center span:after,
.section-title b {
  display: none !important;
  content: none !important;
  background: none !important;
  height: 0 !important;
  border: none !important;
}

.section-title-center .section-title-main {
  padding-bottom: 0 !important;
}

/* 8.2 Smooth Page Transition Loading Bar & Glassmorphic Indicator */
@keyframes soifPageFadeIn {
  from { opacity: 0.92; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soifBarShimmer {
  0% { background-position: 0% 50%; transform: scaleX(0.18); }
  50% { background-position: 100% 50%; transform: scaleX(0.72); }
  100% { background-position: 200% 50%; transform: scaleX(0.95); }
}

@keyframes soifSpin {
  to { transform: rotate(360deg); }
}

#main {
  animation: soifPageFadeIn 0.28s var(--soif-ease);
}

#soif-page-loader {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
}

#soif-page-loader .soif-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8c6a4a 0%, #d4b896 50%, #8c6a4a 100%);
  background-size: 200% 100%;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#soif-page-loader .soif-loader-pill {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(31, 28, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #faf8f5;
  border: 1px solid rgba(212, 184, 150, 0.35);
  border-radius: 999px;
  font-family: var(--soif-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.25s var(--soif-ease);
}

#soif-page-loader .soif-loader-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(212, 184, 150, 0.3);
  border-top-color: #d4b896;
  animation: soifSpin 0.7s linear infinite;
}

#soif-page-loader.is-loading .soif-loader-bar {
  opacity: 1;
  animation: soifBarShimmer 1.4s var(--soif-ease) forwards;
}

#soif-page-loader.is-loading .soif-loader-pill {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.soif-navigating body {
  cursor: progress;
}

/* 8.3 Luxury Upgrade for Contact Buttons (Chat Zalo & Hotline Call), .thong-bao & Header Hotline */
.thong-bao {
  background: #f5f1ea !important;
  border: 1px solid var(--soif-border) !important;
  border-left: 3px solid var(--soif-accent) !important;
  border-radius: var(--soif-radius-sm) !important;
  padding: 14px 18px !important;
  margin: 0 0 1.25rem !important;
  color: var(--soif-ink-primary) !important;
}

.thong-bao ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.thong-bao ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #3d3832;
}

.thong-bao ul li:last-child {
  margin-bottom: 0;
}

.thong-bao ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--soif-accent);
}

.contact-button {
  margin-top: 0.25rem !important;
  margin-bottom: 0.75rem !important;
}

.contact-button .chat-zalo,
.contact-button .mua-le {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: var(--soif-radius-sm) !important;
  font-family: var(--soif-font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  box-shadow: none !important;
  transition: all 0.25s var(--soif-ease) !important;
}

.contact-button .chat-zalo {
  background: var(--soif-ink-primary) !important;
  border: 1.5px solid var(--soif-ink-primary) !important;
  color: #faf8f5 !important;
}

.contact-button .chat-zalo::before {
  content: "";
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23faf8f5' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contact-button .chat-zalo:hover {
  background: var(--soif-accent) !important;
  border-color: var(--soif-accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--soif-shadow-soft) !important;
}

.contact-button .mua-le {
  background: #ffffff !important;
  border: 1.5px solid var(--soif-accent) !important;
  color: var(--soif-ink-primary) !important;
}

.contact-button .mua-le::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238c6a4a' stroke-width='1.9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: filter 0.25s var(--soif-ease);
}

.contact-button .mua-le:hover {
  background: var(--soif-accent) !important;
  border-color: var(--soif-accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--soif-shadow-soft) !important;
}

.contact-button .mua-le:hover::before {
  filter: brightness(0) invert(1);
}

/* Header Hotline Card */
.block-header1 .icon-box {
  background: var(--soif-bg-surface) !important;
  border: 1px solid var(--soif-border-strong) !important;
  border-radius: var(--soif-radius-sm) !important;
  padding: 6px 14px !important;
  box-shadow: none !important;
}

.block-header1 .icon-box h3,
.block-header1 .icon-box strong {
  color: var(--soif-accent) !important;
  font-family: var(--soif-font-serif) !important;
  font-size: 1.25rem !important;
  line-height: 1.1 !important;
}

/* 8.4 Full-Width Product Detail Editorial Description & Applications (.soif-product-editorial) */
.single-product .product-main {
  padding-bottom: 1.5rem;
}

.soif-product-editorial {
  margin-top: 2.25rem;
  margin-bottom: 2.5rem;
}

.soif-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2.5rem;
}

.soif-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  padding: 14px 16px;
}

.soif-trust-num {
  font-family: var(--soif-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--soif-accent);
  line-height: 1;
  flex-shrink: 0;
}

.soif-trust-item strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  line-height: 1.25;
}

.soif-trust-item span {
  display: block;
  font-size: 0.77rem;
  color: var(--soif-ink-muted);
  margin-top: 2px;
}

.soif-ed-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.soif-ed-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soif-accent);
  margin-bottom: 0.55rem;
}

.soif-ed-narrative h2 {
  font-family: var(--soif-font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--soif-ink-primary);
  margin-bottom: 1rem;
}

.soif-ed-narrative p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3d3832;
  margin-bottom: 0.95rem;
}

.soif-ed-highlights {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.soif-ed-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--soif-ink-primary);
}

.soif-ed-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soif-accent);
}

.soif-ed-specs-card {
  background: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--soif-shadow-soft);
}

.soif-ed-specs-card h3 {
  font-family: var(--soif-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--soif-border);
}

.soif-specs-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.soif-specs-table th,
.soif-specs-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--soif-bg-stone);
  font-size: 0.86rem;
  line-height: 1.45;
  vertical-align: top;
}

.soif-specs-table tr:last-child th,
.soif-specs-table tr:last-child td {
  border-bottom: none;
}

.soif-specs-table th {
  width: 38%;
  font-weight: 500;
  color: var(--soif-ink-muted);
  text-transform: none;
  letter-spacing: 0;
  padding-right: 12px;
}

.soif-specs-table td {
  color: var(--soif-ink-primary);
}

.soif-ed-apps {
  margin-bottom: 2.5rem;
}

.soif-ed-section-head {
  margin-bottom: 1.35rem;
}

.soif-ed-section-head h3 {
  font-family: var(--soif-font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: var(--soif-ink-primary);
  margin: 0;
}

.soif-ed-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.soif-app-card {
  background: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  overflow: hidden;
  box-shadow: var(--soif-shadow-soft);
  transition: transform 0.3s var(--soif-ease), box-shadow 0.3s var(--soif-ease);
}

.soif-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soif-shadow-hover);
}

.soif-app-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soif-bg-stone);
}

.soif-app-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--soif-ease);
}

.soif-app-card:hover .soif-app-img img {
  transform: scale(1.04);
}

.soif-app-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.soif-app-body h4 {
  font-family: var(--soif-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.soif-app-body p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--soif-ink-muted);
  margin: 0;
}

.soif-ed-bottom-band {
  background: var(--soif-bg-stone);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
  padding: 1.5rem 1.75rem;
}

.soif-ed-certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--soif-border);
  font-size: 0.84rem;
  color: var(--soif-ink-muted);
}

.soif-ed-certs b {
  background: var(--soif-bg-surface);
  border: 1px solid var(--soif-border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soif-ink-primary);
}

.soif-ed-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.soif-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.soif-step-no {
  font-family: var(--soif-font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--soif-accent);
  line-height: 1;
}

.soif-step-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--soif-ink-primary);
  margin-bottom: 3px;
}

.soif-step-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--soif-ink-muted);
  margin: 0;
}

@media (max-width: 960px) {
  .soif-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .soif-ed-overview-grid {
    grid-template-columns: 1fr;
  }
  .soif-ed-apps-grid,
  .soif-ed-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 549px) {
  .soif-trust-strip {
    grid-template-columns: 1fr;
  }
  .soif-ed-specs-card,
  .soif-ed-bottom-band {
    padding: 1.15rem;
  }
  #soif-page-loader .soif-loader-pill {
    top: 12px;
    right: 12px;
    padding: 7px 13px;
    font-size: 12px;
  }
}

/* ==========================================================================
   9. v2.3.0 Symmetrical Product Detail Spacing, 1-Row Compact Mobile CTA & Square App Cards
   ========================================================================== */

/* 9.1 Flush 2-column contact buttons inside Product Summary (Desktop + Mobile) */
.single-product .product-main .contact-button {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0.25rem 0 0.85rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .product-main .contact-button > .col {
  max-width: 100% !important;
  width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 9.2 Symmetrical left/right padding on Product Detail Mobile & Tablet */
@media (max-width: 849px) {
  .single-product .product-main > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .single-product .product-main > .row > .col,
  .single-product .product-info {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .single-product .product-gallery {
    width: 100% !important;
    margin: 0 !important;
  }

  .single-product .product-footer .row,
  .single-product .related-products-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* 9.3 Compact 1-Row Mobile Buttons (Chat Zalo & Hotline) */
@media (max-width: 640px) {
  .single-product .product-main .contact-button {
    gap: 10px !important;
    margin: 0.25rem 0 0.9rem !important;
  }

  .contact-button .chat-zalo,
  .contact-button .mua-le {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.03em !important;
    padding: 0 8px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  .contact-button .chat-zalo::before,
  .contact-button .mua-le::before {
    width: 14px !important;
    height: 14px !important;
  }
}

/* 9.4 Square framing & 1/2/3-col layouts for Product's Own Editorial Images */
.soif-app-img {
  aspect-ratio: 1 / 1 !important;
}

.soif-ed-apps-grid.soif-apps-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.soif-ed-apps-grid.soif-apps-cols-1 {
  grid-template-columns: minmax(0, 520px);
}

@media (max-width: 960px) {
  .soif-ed-apps-grid.soif-apps-cols-2,
  .soif-ed-apps-grid.soif-apps-cols-1 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   10. v2.4.0 Database-Driven #tab-description Seamless Editorial Framing
   ========================================================================== */
.single-product .product-footer .woocommerce-tabs.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
  max-width: 100% !important;
}

.single-product .product-footer .woocommerce-tabs > ul.wc-tabs:has(> li:only-child) {
  display: none !important;
}

.single-product .product-footer .woocommerce-tabs .tab-panels,
.single-product .product-footer .woocommerce-Tabs-panel--description {
  padding-top: 0 !important;
  border: none !important;
}

.single-product .product-footer .woocommerce-Tabs-panel--description > p:empty {
  display: none !important;
}

.single-product .product-footer .soif-product-editorial {
  margin-top: 1.75rem;
}

/* ==========================================================================
   11. v2.5.0 Architectural Luxury Homepage Upgrade (Inspired by samsungfilm.co.kr)
   ========================================================================== */

/* 11.1 Larger, More Prominent Section Titles + Editorial Eyebrows */
.home h2.section-title .section-title-main {
  font-size: clamp(1.38rem, 2.85vw, 2.55rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  color: var(--soif-ink-primary) !important;
  line-height: 1.2 !important;
}

.home .dark h2.section-title .section-title-main {
  color: #faf8f5 !important;
}

.home .section-title-container {
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

.soif-sec-kicker {
  font-family: var(--soif-font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soif-accent);
  text-align: center;
  margin: 0 0 0.55rem;
}

.dark .soif-sec-kicker {
  color: #d4b896;
}

.soif-sec-sub {
  font-family: var(--soif-font-sans);
  font-size: 0.94rem;
  color: var(--soif-ink-muted);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  text-align: center;
  line-height: 1.65;
}

/* 11.2 Signature Collection 5-Card Showcase (.soif-collection-section) */
.soif-collection-section {
  background-color: #f5f2ec !important;
  padding: 76px 0 80px !important;
  border-top: 1px solid var(--soif-border);
  border-bottom: 1px solid var(--soif-border);
}

.soif-col-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 38px;
}

.soif-col-head-left {
  text-align: left;
}

.soif-col-kicker {
  font-family: var(--soif-font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soif-accent);
  margin: 0 0 10px;
}

.soif-col-title {
  font-family: var(--soif-font-serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--soif-ink-primary);
  margin: 0 0 10px;
}

.soif-col-desc {
  font-family: var(--soif-font-sans);
  font-size: 0.95rem;
  color: var(--soif-ink-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.soif-col-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background-color: #1f1c18;
  color: #faf8f5 !important;
  border-radius: 4px;
  font-family: var(--soif-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.25s var(--soif-ease), transform 0.25s var(--soif-ease), box-shadow 0.25s var(--soif-ease);
}

.soif-col-cta:hover {
  background-color: var(--soif-accent);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(31, 28, 24, 0.35);
}

.soif-col-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.soif-col-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 370px;
  padding: 22px 20px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  background-color: #2b2620;
  box-shadow: 0 12px 28px -12px rgba(31, 28, 24, 0.14);
  transition: transform 0.4s var(--soif-ease), box-shadow 0.4s var(--soif-ease);
}

.soif-col-card img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s var(--soif-ease);
}

.soif-col-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.06) 18%, rgba(16, 14, 12, 0.48) 58%, rgba(16, 14, 12, 0.88) 100%);
}

.soif-col-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 44px -14px rgba(31, 28, 24, 0.28);
}

.soif-col-card:hover img {
  transform: scale(1.08);
}

.soif-col-card-body {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #ffffff;
}

.soif-col-num {
  display: block;
  font-family: var(--soif-font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 224, 206, 0.92);
  margin-bottom: 6px;
}

.soif-col-name {
  font-family: var(--soif-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 6px;
  line-height: 1.18;
}

.soif-col-sub {
  font-family: var(--soif-font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

@media (max-width: 1024px) {
  .soif-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .soif-col-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .soif-collection-section {
    padding: 52px 0 56px !important;
  }
  .soif-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .soif-col-card {
    height: 235px;
    padding: 16px 14px;
  }
  .soif-col-card:nth-child(5) {
    grid-column: span 2;
    height: 200px;
  }
  .soif-col-name {
    font-size: 1.25rem;
  }
}

/* 11.3 Luxury Architectural Filter Tab Bar */
.home .san-pham-section {
  padding: 68px 0 64px !important;
}

.home .san-pham-section.sp-section2 {
  background-color: #f4f1eb !important;
  border-top: 1px solid var(--soif-border);
  border-bottom: 1px solid var(--soif-border);
}

.home .san-pham-section .tabbed-content {
  text-align: center;
}

.home .san-pham-section .tabbed-content ul.nav {
  display: inline-flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 6px;
  padding: 6px !important;
  background-color: var(--soif-bg-surface) !important;
  border: 1px solid var(--soif-border) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px -14px rgba(31, 28, 24, 0.12);
  margin: 1.2rem auto 2.4rem !important;
  width: auto !important;
  max-width: 100%;
}

.home .san-pham-section .tabbed-content ul.nav > li {
  margin: 0 !important;
}

.home .san-pham-section .tabbed-content ul.nav > li > a {
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-family: var(--soif-font-sans) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--soif-ink-muted) !important;
  background: transparent !important;
  border: none !important;
  line-height: 1.2 !important;
  transition: all 0.25s var(--soif-ease) !important;
}

.home .san-pham-section .tabbed-content ul.nav > li > a::before,
.home .san-pham-section .tabbed-content ul.nav > li > a::after {
  display: none !important;
  content: none !important;
}

.home .san-pham-section .tabbed-content ul.nav > li > a:hover {
  background-color: var(--soif-bg-stone) !important;
  color: var(--soif-ink-primary) !important;
}

.home .san-pham-section .tabbed-content ul.nav > li.active > a {
  background-color: var(--soif-ink-primary) !important;
  color: #faf8f5 !important;
  box-shadow: 0 6px 16px -6px rgba(31, 28, 24, 0.35) !important;
}

@media (max-width: 640px) {
  .home .san-pham-section .tabbed-content ul.nav {
    border-radius: 14px !important;
    padding: 8px !important;
    gap: 6px;
  }
  .home .san-pham-section .tabbed-content ul.nav > li > a {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
  }
}

/* 11.4 Refined Architectural Product Cards (Inspired by samsungfilm.co.kr/en/goods_list.html) */
.home .san-pham-section .products.row {
  row-gap: 1.75rem !important;
}

.home .san-pham-section .products .product-small .col-inner {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.home .san-pham-section .products .product-small:hover .col-inner {
  transform: translateY(-4px);
  box-shadow: none !important;
}

.home .san-pham-section .products .product-small .box-image {
  aspect-ratio: 1 / 1;
  width: 100% !important;
  border-radius: 6px !important;
  overflow: hidden;
  background-color: #ede8df !important;
  border: 1px solid rgba(31, 28, 24, 0.09);
  box-shadow: 0 6px 18px -12px rgba(31, 28, 24, 0.12);
  transition: box-shadow 0.35s var(--soif-ease), border-color 0.35s var(--soif-ease);
}

.home .san-pham-section .products .product-small:hover .box-image {
  box-shadow: 0 18px 34px -14px rgba(31, 28, 24, 0.22);
  border-color: var(--soif-border-strong);
}

.home .san-pham-section .products .product-small .box-image .image-zoom,
.home .san-pham-section .products .product-small .box-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.home .san-pham-section .products .product-small .box-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.55s var(--soif-ease);
}

.home .san-pham-section .products .product-small .box-text-products {
  padding: 12px 2px 4px !important;
  background: transparent !important;
  text-align: left !important;
}

.home .san-pham-section .products .product-small .product-title {
  margin-bottom: 4px !important;
}

body.home .san-pham-section .products .product-small .box-text-products .product-title a {
  font-family: var(--soif-font-sans) !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  color: #1f1c18 !important;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

body.home .san-pham-section .products .product-small:hover .box-text-products .product-title a {
  color: var(--soif-accent) !important;
}

.home .san-pham-section .products .product-small .film-stock-badge {
  margin-top: 4px;
  font-size: 10.5px;
  padding: 3px 9px;
}

.home .san-pham-section .tab-panels a.button.is-outline,
.home .san-pham-section .tab-panels .button.primary.is-outline {
  margin-top: 2.25rem;
  padding: 4px 32px;
  border-radius: 999px !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: transparent !important;
  border: 1.5px solid var(--soif-ink-primary) !important;
  color: var(--soif-ink-primary) !important;
}

.home .san-pham-section .tab-panels a.button.is-outline span,
.home .san-pham-section .tab-panels .button.primary.is-outline span {
  color: inherit !important;
}

.home .san-pham-section .tab-panels a.button.is-outline:hover,
.home .san-pham-section .tab-panels .button.primary.is-outline:hover {
  background-color: var(--soif-ink-primary) !important;
  border-color: var(--soif-ink-primary) !important;
  color: #faf8f5 !important;
}

/* ==========================================================================
   12. v2.6.0 Category / Shop SOIF Global Filter Toolbar & Extra-Line Fix
   ========================================================================== */

/* Fix extra border-bottom line on h1.shop-page-title above breadcrumbs */
.archive.woocommerce h1.shop-page-title,
.archive.woocommerce h1.shop-page-title.is-xlarge {
  border-bottom: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0.45rem !important;
  background: transparent !important;
}

/* Always hide Flatsome mobile drawer "LỌC" trigger so filters are 100% visible inline */
.archive.woocommerce .category-filtering,
.archive.woocommerce .category-filter-row {
  display: none !important;
}

.archive.woocommerce .shop-page-title .woocommerce-ordering {
  display: none !important;
}

/* ==========================================================================
   DESKTOP TOP-FILTER & SIDEBAR SHOW/HIDE TOGGLE (Comment out to re-enable)
   ========================================================================== */
@media (min-width: 850px) {
  /* Hide top Color Swatch bar on desktop (shown in left #shop-sidebar instead) */
  #soif-catalog-toolbar .soif-color-bar {
    display: none !important;
  }
  /* Hide redundant Sub-Series select on desktop (Series pills shown above) */
  #soif-catalog-toolbar #soif-subseries-select {
    display: none !important;
  }
  /* Hide left "Họa Tiết" widget on desktop (Series pills above replace it) */
  #shop-sidebar #yith-woo-ajax-navigation-3 {
    display: none !important;
  }
}

/* ==========================================================================
   13. Left Sidebar Stock Status Checkbox Widget (#soif-sidebar-stock-widget)
   ========================================================================== */
#soif-sidebar-stock-widget .soif-stock-checkbox-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#soif-sidebar-stock-widget .soif-stock-checkbox-list li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#soif-sidebar-stock-widget .soif-stock-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  margin: 0 !important;
  border-radius: var(--soif-radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--soif-ink-primary);
  cursor: pointer;
  transition: background-color 0.18s var(--soif-ease);
}

#soif-sidebar-stock-widget .soif-stock-checkbox-label:hover {
  background-color: var(--soif-bg-stone);
}

#soif-sidebar-stock-widget .soif-stock-checkbox-label.is-checked {
  background-color: var(--soif-bg-stone);
  font-weight: 600;
}

#soif-sidebar-stock-widget input.soif-stock-checkbox {
  width: 15px;
  height: 15px;
  margin: 0 !important;
  accent-color: var(--soif-ink-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   14. Mobile Menu: Direct Parent Link Click + Large Submenu Arrow Tap Target
   ========================================================================== */
#main-menu .nav-sidebar li.menu-item-has-children {
  position: relative;
}

#main-menu .nav-sidebar li.menu-item-has-children > a {
  padding-right: 64px !important;
}

#main-menu .nav-sidebar li.menu-item-has-children > button.toggle {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 100% !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 1px solid rgba(31, 28, 24, 0.08) !important;
  opacity: 0.9 !important;
}

#main-menu .nav-sidebar li.menu-item-has-children > button.toggle i {
  font-size: 1.25rem !important;
}

/* SOIF Global Architectural Top Filter Bar */
#soif-catalog-toolbar {
  width: 100%;
  margin: 0 0 1.75rem;
  font-family: var(--soif-font-sans);
}

.soif-cat-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--soif-border);
  padding-bottom: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.soif-cat-tab {
  position: relative;
  display: inline-block;
  padding: 10px 2px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soif-ink-muted) !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.2s var(--soif-ease);
}

.soif-cat-tab:hover {
  color: var(--soif-ink-primary) !important;
}

.soif-cat-tab.is-active {
  color: var(--soif-ink-primary) !important;
  font-weight: 700;
}

.soif-cat-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--soif-ink-primary);
}

/* Row 2: SERIES: Sub-Category Pills */
.soif-series-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--soif-border);
  margin-bottom: 16px;
}

.soif-series-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soif-ink-muted);
  margin-right: 6px;
  white-space: nowrap;
}

.soif-series-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px !important;
  border-radius: 999px;
  border: 1px solid var(--soif-border);
  background-color: var(--soif-bg-surface);
  color: var(--soif-ink-primary);
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
  transition: all 0.2s var(--soif-ease);
}

.soif-series-pill:hover {
  border-color: var(--soif-ink-primary);
  background-color: var(--soif-bg-stone);
}

.soif-series-pill.is-active {
  background-color: var(--soif-ink-primary);
  border-color: var(--soif-ink-primary);
  color: #faf8f5;
  font-weight: 600 !important;
}

@media (max-width: 640px) {
  .soif-series-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .soif-series-bar::-webkit-scrollbar {
    display: none;
  }
}

/* Row 3: Count + Sub-Series Select + Sort Select + Inline Search-by-Code */
.soif-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.soif-toolbar-count {
  font-size: 0.88rem;
  color: var(--soif-ink-muted);
  white-space: nowrap;
}

.soif-toolbar-count strong {
  color: var(--soif-ink-primary);
  font-weight: 700;
}

.soif-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.soif-toolbar-select {
  height: 38px !important;
  min-width: 170px;
  max-width: 220px;
  margin: 0 !important;
  padding: 0 28px 0 12px !important;
  font-size: 0.82rem !important;
  font-weight: 500;
  color: var(--soif-ink-primary) !important;
  background-color: var(--soif-bg-surface) !important;
  border: 1px solid var(--soif-border-strong) !important;
  border-radius: var(--soif-radius-sm) !important;
  box-shadow: none !important;
}

.soif-code-search-form {
  display: flex;
  align-items: stretch;
  margin: 0 !important;
  position: relative;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 240px;
}

.soif-code-search-input {
  width: 100%;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 34px 0 12px !important;
  font-size: 0.82rem !important;
  color: var(--soif-ink-primary) !important;
  background-color: var(--soif-bg-surface) !important;
  border: 1px solid var(--soif-border-strong) !important;
  border-right: none !important;
  border-radius: var(--soif-radius-sm) 0 0 var(--soif-radius-sm) !important;
  box-shadow: none !important;
}

.soif-code-search-input:focus {
  border-color: var(--soif-ink-primary) !important;
  outline: none;
}

.soif-code-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--soif-ink-primary) !important;
  border: 1px solid var(--soif-ink-primary) !important;
  border-radius: 0 var(--soif-radius-sm) var(--soif-radius-sm) 0 !important;
  color: #ffffff !important;
  cursor: pointer;
}

.soif-code-search-btn:hover {
  background-color: var(--soif-accent) !important;
  border-color: var(--soif-accent) !important;
}

@media (max-width: 849px) {
  .soif-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .soif-toolbar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .soif-toolbar-select {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .soif-toolbar-right > select:only-of-type {
    grid-column: span 2;
  }
  .soif-code-search-form {
    grid-column: span 2;
    max-width: 100%;
    width: 100%;
  }
}

/* Row 4: Always-Visible Color Swatches Strip */
.soif-color-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background-color: var(--soif-bg-surface);
  border: 1px solid var(--soif-border);
  border-radius: var(--soif-radius-md);
}

.soif-color-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--soif-border);
  background-color: var(--soif-bg-canvas);
  color: var(--soif-ink-primary);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  line-height: 1.2;
  transition: all 0.2s var(--soif-ease);
}

.soif-color-dot:hover {
  border-color: var(--soif-ink-primary);
  background-color: var(--soif-bg-stone);
}

.soif-color-dot.is-active {
  background-color: var(--soif-ink-primary);
  border-color: var(--soif-ink-primary);
  color: #faf8f5;
  font-weight: 600;
}

.soif-color-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(31, 28, 24, 0.2);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .soif-color-bar {
    padding: 10px 12px;
    gap: 6px;
  }
}

/* Zero-CLS hero slider lock before & after Flickity init */
.slider-wrapper .banner.is-full-height {
  height: 100vh;
  min-height: 100vh;
  padding-top: 0 !important;
}
.slider-wrapper > .slider:not(.flickity-enabled) {
  max-height: 100vh;
  overflow: hidden;
}
.slider-wrapper > .slider:not(.flickity-enabled) > .banner:not(:first-child) {
  display: none;
}
