/*
Theme Name: Quà Tặng Đại Hội
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ==========================================================================
   Quà Tặng Đại Hội — Site-wide styles (loaded on every page via Flatsome's
   automatic get_stylesheet_uri() enqueue of the active theme's style.css)
   qd- prefixed classes to avoid collisions with Flatsome theme classes
   (.btn, .section, .container, etc.)
   ========================================================================== */

/* ---------- Fonts (self-hosted, Vietnamese-safe) ---------- */
/* Saira — matches the font already used across the rest of the site */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/saira-var-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/saira-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — body/UI text. h1/h2/h3 use Saira, every other element uses Inter. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-var-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Site-wide fixes & overrides (admin bar, buy-now popup, header nav, quote
   popup form). Dead rules tied to the old "Minh Gia Phát" homepage content
   (.page-id-530 .mgp-*) and to Flatsome's default back-to-top button
   (removed in functions.php) were dropped.
   ========================================================================== */

/* WordPress admin bar dashicons fix — scoped to the actual icon glyphs
   only. The old selector also included `#wpadminbar` and `#wpadminbar *`,
   which forced the dashicons glyph font onto every element inside the bar
   — including the text labels ("Quà Tặng Đại Hội", "Đang bán", "Flatsome"…)
   — not just the icons. Since this stylesheet only loads on the frontend
   (not inside wp-admin), that made the admin bar's TEXT render in the icon
   font specifically when shown over the live site, while the same bar
   inside wp-admin (no theme CSS there) looked normal — the font mismatch
   between frontend and admin. */
#wpadminbar .ab-icon,
#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
.dashicons,
.dashicons-before::before {
  font-family: dashicons !important;
}

/* WooCommerce "Buy now" popup (devvn) — follows the theme's --primary-color */
.devvn-popup-title,
.devvn-order-btn {
  background: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
}

.devvn_buy_now.devvn_buy_now_style {
  max-width: 100%;
  width: 100%;
}

/* h1, h2, h3 use Saira — every other element uses Inter (see block below) */
h1,
h2,
h3,
.icon-box-text h2,
.icon-box-text h3,
.text-center h2,
.text-center h3,
.col-inner h2,
.col-inner h3,
h1.entry-title,
h3.product-section-title,
h3.comment-reply-title {
  font-family: 'Saira', sans-serif !important;
}

/* Inter for everything else — body text, UI chrome, widgets, WooCommerce
   elements, buttons — anything that isn't an h1/h2/h3 */
body,
html,
.section-title-main,
h4,
h5,
h6,
strong,
p,
span,
a,
div,
.icon-box-text,
.icon-box-text h4,
.icon-box-text h5,
.sidebar-menu .nav-sidebar li a,
.col-inner,
.text-center,
.text-center h4,
.text-center h5,
.col-inner strong,
.col-inner h4,
.header-nav>li.menu-item,
.header-nav>li.menu-item a,
.header-nav li.menu-item,
.header-nav li a,
.widget-title,
.col-inner h5,
.col-inner h6,
.top-bar-nav li.menu-item a,
.account-item span,
#header-contact li a span,
.woocommerce-breadcrumb.breadcrumbs,
ul.product-tabs>li>a,
.widget,
.product-short-description,
.product_meta span,
.html.custom,
span.header-cart-title,
.footer-secondary.pull-right,
.utm-avo,
.tab a span,
.searchform .search-field,
.searchform .search-field::placeholder,
.header-top li a>span,
table tr th,
table tr td,
label,
.form-row input,
.form-row select,
.form-row textarea,
.mini_cart_item a,
.mini_cart_item span,
.woocommerce-mini-cart__total span,
.tab-panels .panel.entry-content,
.tab-panels .panel.entry-content p,
.woocommerce-MyAccount-navigation-link a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.btn,
.devvn-order-btn,
button.button,
.button span {
  font-family: 'Inter', sans-serif !important;
}

/* ---------- Header: main nav row ---------- */
.header-main {
  background-color: #f9f5f1 !important;
  border-bottom: none !important;
}

.header-main .header-nav li:after,
.header-main .header-nav li:before {
  display: none;
}

.header-main .header-nav li {
  margin: 0;
  position: relative;
}

.header-main .header-nav li a {
  font-size: 16px;
  color: #990000 !important;
  font-weight: 400;
  line-height: 50px !important;
  height: 50px;
  padding: 0 16px;
  display: inline-block;
  position: relative;
}

.header-main .header-nav li a:hover,
.header-main .header-nav .current-menu-item a {
  color: #990000 !important;
}

.header-main .header-nav li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  left: 0;
  bottom: -2px;
  background-color: #990000;
  transition: width .3s ease-in-out;
}

.header-main .header-nav li:hover>a:after {
  width: calc(100% - 2px);
  background-color: #990000;
}

.header-main .search-field {
  border-radius: 40px !important;
  border: 1px solid #fec70a !important;
  height: 40px !important;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  background: #fff !important;
  line-height: 40px !important;
}

/* ---------- Header: bottom category nav row ---------- */
.header-bottom {
  background: #990000 !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  margin-top: -1px !important;
}

#wide-nav .nav {
  border: none !important;
}

#wide-nav .nav>li {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

#wide-nav .nav>li>a {
  line-height: 50px !important;
  height: 50px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: #F5EBDD !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  white-space: nowrap !important;
}

#wide-nav .nav>li>a i {
  font-size: 13px !important;
  width: 14px !important;
  text-align: center;
  line-height: 1 !important;
  display: inline-block;
}

.header-bottom .nav>li>a:hover,
.header-bottom .nav>.current-menu-item>a {
  color: #F5EBDD !important;
}

.header-bottom .nav>li>a:hover i {
  color: #F5EBDD !important;
}

/* Header bottom dropdown — sentence case, single column while <=6 items */
.header-bottom .nav-dropdown {
  top: 50px !important;
  left: 0 !important;
  position: absolute !important;
  min-width: 260px;
  background: #fff;
  border-radius: 8px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  padding: 10px 0 !important;
  pointer-events: auto !important;
  display: block !important;
  max-height: none !important;
  width: auto !important;
}

.header-bottom li:hover>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-bottom .nav-dropdown li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

/* Only split into 2 columns once a dropdown actually has more than 6 items (a real 7th item exists) */
.header-bottom .nav-dropdown:has(> li:nth-child(7)) {
  column-count: 2 !important;
  column-gap: 8px !important;
  column-fill: auto !important;
}

.header-bottom .nav-dropdown:has(> li:nth-child(7))>li {
  break-inside: avoid-column;
}

.header-bottom .nav-dropdown:has(> li:nth-child(7))>li:nth-child(6) {
  break-after: column;
}

/* Last nav item's dropdown would overflow past the right edge once actually widened to 2 columns */
.header-bottom li:last-child>.nav-dropdown:has(> li:nth-child(7)) {
  left: auto !important;
  right: 0 !important;
}

.header-bottom .nav-dropdown li a {
  padding: 12px 20px !important;
  display: block;
  white-space: nowrap;
  font-size: 15px;
  color: #333 !important;
  text-decoration: none !important;
  transition: all .2s ease;
}

.header-bottom .nav-dropdown li a:hover {
  background-color: #f8f8f8;
  color: #c30005 !important;
}

.header-bottom .nav-dropdown ul.sub-menu {
  left: 100% !important;
  top: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all .25s ease;
  display: block !important;
  position: absolute !important;
  background: #fff;
  border-radius: 8px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .15);
  padding: 10px 0 !important;
  min-width: 260px;
  pointer-events: auto !important;
}

.header-bottom .nav-dropdown li:hover>ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ---------- "Nhận báo giá" popup form (mqd-*) ---------- */
.mfp-content {
  vertical-align: middle;
}

.popup-dai-hoi-full.mfp-content {
  /* Scoped to this specific quote-request popup only — a broader
     `.mfp-inline-holder .mfp-content` selector used to sit here too, but
     Flatsome's off-canvas mobile menu drawer is ALSO a `.mfp-content`
     (same Magnific Popup library), so that rule's `background: none` +
     forced full width was stripping the mobile menu's background and
     stretching it edge-to-edge, causing page content to show through it. */
  max-width: 950px !important;
  width: 100% !important;
  margin: 20px auto !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.mqd-full-wrapper {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif !important;
}

.mqd-container {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  min-height: 600px;
}

.mqd-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 38px;
  height: 38px;
  background: #8e1310;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  border: 3px solid #fff;
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.mqd-close-btn:hover {
  transform: rotate(180deg) scale(1.15);
  background: #b30f12;
  box-shadow: 0 0 20px rgba(179, 15, 18, .4);
}

.mqd-sidebar {
  flex: 0 0 340px;
  background: #fffbf6;
  padding: 40px 30px;
  border-right: 1px solid #eee;
}

.mqd-badge {
  background: #8e1310;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

.mqd-sidebar-title {
  color: #8e1310;
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 25px;
  font-weight: bold;
}

.mqd-sidebar-title span {
  font-size: 22px;
  font-weight: 900;
  color: #222;
}

.mqd-f-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
}

.mqd-f-icon {
  font-size: 20px;
}

.mqd-f-text strong {
  display: block;
  color: #8e1310;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.mqd-f-text p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.mqd-sidebar-hotline {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #dcb;
  text-align: center;
  font-size: 14px;
  color: #444;
}

.mqd-sidebar-hotline strong {
  color: #8e1310;
  font-size: 26px;
  display: block;
  margin-top: 5px;
  font-weight: 800;
}

.mqd-main {
  flex: 1;
  padding: 40px 45px;
  max-height: 85vh;
  overflow-y: auto;
}

.mqd-main-title {
  text-align: center;
  color: #222;
  font-weight: 800;
  margin-bottom: 30px;
  font-size: 22px;
  text-transform: uppercase;
}

.mqd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mqd-input-wrap label,
.mqd-input-full label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
  display: block;
}

.mqd-main input:not([type="submit"]),
.mqd-main select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  font-family: 'Inter', sans-serif !important;
}

.mqd-checkbox-pills {
  margin-top: 25px !important;
  padding: 0;
}

.mqd-checkbox-pills .wpcf7-list-item {
  display: inline-block !important;
  margin: 4px 6px 4px 0 !important;
}

.mqd-checkbox-pills label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.mqd-checkbox-pills input[type="checkbox"] {
  display: none !important;
}

.mqd-checkbox-pills .wpcf7-list-item-label {
  display: inline-block;
  padding: 7px 18px;
  background: #f1f1f1;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 13px;
  color: #666;
  transition: all .3s ease;
}

.mqd-checkbox-pills input:checked+.wpcf7-list-item-label {
  background: #8e1310 !important;
  color: #fff !important;
  border-color: #8e1310;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(142, 13, 16, .25);
}

.mqd-submit-area {
  margin-top: 35px;
  text-align: center;
}

.mqd-submit-area input {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #b30f12 0%, #8e1310 100%);
  color: #fff;
  border: none;
  padding: 16px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 10px 20px rgba(142, 13, 16, .2);
  transition: all .3s;
}

.mqd-submit-area input:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(142, 13, 16, .35);
}

@media (max-width: 768px) {
  .mqd-container {
    flex-direction: column;
  }

  .mqd-sidebar {
    flex: none;
    width: 100%;
    padding: 30px 20px;
  }

  .mqd-main {
    padding: 30px 20px;
  }

  .mqd-grid {
    grid-template-columns: 1fr;
  }

  .mqd-close-btn {
    top: 10px;
    right: 10px;
  }
}

/* ---------- Tokens (global — content lives in separate native Flatsome
   [section] blocks with no single common wrapper, so these are on :root) ---------- */
:root {
  --qd-paper: #FBF7F1;
  --qd-paper-raised: #FFFFFF;
  --qd-ink: #2A1B14;
  --qd-slate: #000000;
  --qd-slate-soft: #9C8A7A;
  --qd-stone: #F2ECE1;
  --qd-stone-deep: #EAE2D2;
  --qd-line: #E6DCC8;
  --qd-red: #B5121B;
  --qd-red-deep: #7E0D14;
  --qd-red-tint: #F8EAE7;
  --qd-gold: #D4AF37;
  --qd-gold-deep: #A87F1E;
  --qd-gold-tint: #F4EACE;
  --qd-on-red: #FBF3E8;
  --qd-shadow-sm: 0 2px 10px -4px rgba(42, 27, 20, .16);
  --qd-shadow-md: 0 18px 40px -22px rgba(42, 27, 20, .30);
  --qd-shadow-lg: 0 30px 70px -30px rgba(42, 27, 20, .38);
  --qd-radius: 16px;
  --qd-font-display: 'Saira', -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --qd-font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --qd-container: 1400px;
  --qd-section-pad: clamp(64px, 8vw, 116px);
}

@media (prefers-reduced-motion: reduce) {

  .qd-hero-side *,
  .qd-card,
  .qd-faq-q i {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
  }
}

/* ---------- Shared section header / helpers ---------- */
.qd-section-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 4.5vw, 56px)
}

.qd-text-center {
  text-align: center
}

.qd-eyebrow,
.qd-eyebrow-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qd-font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--qd-red-deep)
}

.qd-eyebrow-center {
  display: flex;
  justify-content: center
}

.qd-eyebrow::before,
.qd-eyebrow-center::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--qd-gold-deep)
}

.qd-eyebrow-icon {
  font-size: .92em;
  color: var(--qd-gold-deep)
}

.qd-title {
  font-family: var(--qd-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1;
  margin-top: 12px;
  color: var(--qd-ink)
}

.qd-section-desc {
  color: var(--qd-slate);
  font-size: 1.02rem;
  margin-top: 12px
}

.qd-card-sub {
  display: block;
  font-size: .82rem;
  color: var(--qd-slate);
  margin-top: 4px
}

/* Native Flatsome buttons — force qd- brand colors regardless of theme color map */
.qd-hero-copy .button,
.qd-hero-side .button,
.qd-cta-end .button {
  font-family: var(--qd-font-body);
  border-radius: 999px;
  font-weight: 700
}

.qd-hero-copy .button.button-alert,
.qd-cta-end .button.button-alert {
  background-color: var(--qd-red) !important;
  border-color: var(--qd-red) !important
}

.qd-hero-copy .button.button-alert:hover,
.qd-cta-end .button.button-alert:hover {
  background-color: var(--qd-red-deep) !important;
  border-color: var(--qd-red-deep) !important
}

.qd-hero-copy .button.is-outline {
  color: var(--qd-ink) !important;
  border-color: var(--qd-line) !important
}

.qd-hero-side .button {
  border-radius: 999px;
  font-weight: 700
}

/* ---------- Hero ---------- */
.qd-hero-copy .qd-eyebrow {
  margin-bottom: 10px
}

.qd-hero-title {
  font-family: var(--qd-font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  color: var(--qd-ink);
  margin: 0 0 14px
}

.qd-hero-title .qd-accent {
  display: block;
  color: var(--qd-red-deep);
  margin-top: 4px
}

.qd-hero-copy .qd-hero-desc {
  color: var(--qd-slate);
  font-size: 1.02rem;
  max-width: 44ch;
  margin-bottom: 18px
}

.qd-hero-copy .qd-hero-desc strong {
  color: var(--qd-ink)
}

.qd-check-clean {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px
}

.qd-check-clean li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--qd-ink)
}

.qd-check-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--qd-red-tint);
  box-shadow: inset 0 0 0 1.5px var(--qd-red)
}

.qd-check-clean li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: .42em;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--qd-red-deep);
  border-bottom: 1.6px solid var(--qd-red-deep);
  transform: rotate(-45deg)
}

.qd-hero-side .ux-slider,
.qd-hero-side .slider {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--qd-shadow-lg)
}

.qd-hero-side .banner {
  border-radius: 24px;
  overflow: hidden
}

.qd-hero-side .qd-slide-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff
}

.qd-hero-side .banner h3 {
  font-family: var(--qd-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 10px
}

.qd-hero-side .banner p {
  color: rgba(255, 255, 255, .92);
  font-size: .98rem;
  max-width: 36ch;
  margin: 0 0 18px
}

.qd-hero-side .banner .button {
  background: var(--qd-gold) !important;
  border-color: var(--qd-gold) !important;
  color: #2A1B14 !important
}

.qd-hero-side .banner .button:hover {
  background: var(--qd-gold-deep) !important;
  border-color: var(--qd-gold-deep) !important
}

.qd-hero-side .flickity-page-dots .dot {
  background: #fff
}

@media (max-width:900px) {
  .qd-hero-side {
    margin-top: 26px
  }
}

/* ---------- Price range filter (pill row) ---------- */
.qd-price-filter-title {
  font-family: var(--qd-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--qd-ink);
  margin: 8px 0 4px
}

.qd-price-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px
}

.qd-price-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--qd-shadow-sm)
}

.qd-price-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--qd-shadow-md)
}

.qd-price-pill.qd-tier-1 {
  background: var(--qd-paper-raised);
  color: var(--qd-slate);
  border: 1px solid var(--qd-line)
}

.qd-price-pill.qd-tier-2 {
  background: var(--qd-gold-tint);
  color: var(--qd-gold-deep)
}

.qd-price-pill.qd-tier-3 {
  background: #F0D9A0;
  color: #7A5A10
}

.qd-price-pill.qd-tier-4 {
  background: var(--qd-red);
  color: var(--qd-on-red)
}

@media (max-width:600px) {
  .qd-price-pill {
    padding: 9px 18px;
    font-size: .84rem
  }
}

/* ---------- Product / occasion / project / article cards (shared) ---------- */
.qd-card {
  transition: transform .22s ease, box-shadow .22s ease
}

.qd-card:hover {
  transform: translateY(-5px)
}

.qd-product-card .box-image {
  border-radius: var(--qd-radius) var(--qd-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-product-card .box-text {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-top: 0;
  border-radius: 0 0 var(--qd-radius) var(--qd-radius);
  box-shadow: var(--qd-shadow-sm)
}

.qd-product-card h3 {
  font-family: var(--qd-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--qd-ink)
}

.qd-occ-card .icon-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  padding: 16px 18px;
  box-shadow: var(--qd-shadow-sm)
}

.qd-occ-card:hover .icon-box {
  border-color: var(--qd-gold-deep)
}

.qd-occ-card .icon-box-img {
  flex-shrink: 0;
  display: flex
}

.qd-occ-card .icon-box-img img {
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain
}

.qd-occ-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--qd-gold-tint);
  color: var(--qd-gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0
}

.qd-occ-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--qd-ink);
  margin: 0
}

/* ---------- Why us ---------- */
.qd-why-img-col img {
  box-shadow: var(--qd-shadow-lg)
}

.qd-why-content .icon-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px
}

.qd-why-content .icon-box-img {
  display: none
}

.qd-why-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--qd-red-tint);
  color: var(--qd-red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0
}

.qd-why-content h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--qd-ink);
  margin: 0 0 3px
}

.qd-why-content .icon-box-text p {
  font-size: .85rem;
  color: var(--qd-slate);
  margin: 0
}

.qd-project-card .box-image {
  border-radius: var(--qd-radius) var(--qd-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-project-card .box-text {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-top: 0;
  border-radius: 0 0 var(--qd-radius) var(--qd-radius);
  box-shadow: var(--qd-shadow-sm)
}

.qd-project-card h4 {
  font-family: var(--qd-font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--qd-ink);
  margin: 0
}

/* ---------- Process ---------- */
.qd-process-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  position: relative;
  margin-top: 8px
}

.qd-process-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--qd-gold-deep) 0 8px, transparent 8px 16px)
}

.qd-process-step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.qd-process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--qd-paper-raised);
  border: 1.5px solid var(--qd-gold-deep);
  color: var(--qd-red-deep);
  display: grid;
  place-items: center;
  font-family: var(--qd-font-body);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--qd-shadow-sm)
}

.qd-process-step h3 {
  font-family: var(--qd-font-body) !important;
  font-size: .88rem;
  font-weight: 700;
  margin: 0;
  color: var(--qd-ink)
}

.qd-process-step p {
  font-size: .76rem;
  color: var(--qd-slate);
  margin: 0
}

@media (max-width:980px) {
  .qd-process-track {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 28px
  }

  .qd-process-track::before {
    display: none
  }
}

@media (max-width:560px) {
  .qd-process-track {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* ---------- Commitment ---------- */
.qd-commit {
  background: linear-gradient(120deg, var(--qd-red-deep), var(--qd-red) 60%, #8c1119);
  color: var(--qd-on-red);
  border-radius: 28px;
  position: relative;
  overflow: hidden
}

.qd-commit::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1px);
  background-size: 22px 22px
}

.qd-commit-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px)
}

.qd-commit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px
}

.qd-commit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem
}

.qd-commit-list .qd-icon {
  width: 19px;
  height: 19px;
  color: var(--qd-gold);
  flex-shrink: 0;
  margin-top: 2px
}

.qd-seal {
  width: clamp(140px, 16vw, 190px);
  height: clamp(140px, 16vw, 190px);
  color: var(--qd-gold);
  flex-shrink: 0
}

.qd-commit-copy {
  margin-bottom: 22px
}

.qd-commit-copy .qd-eyebrow {
  color: var(--qd-gold)
}

.qd-commit-copy .qd-eyebrow::before {
  background: var(--qd-gold)
}

.qd-commit-copy h2 {
  font-family: var(--qd-font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-top: 12px;
  text-wrap: balance
}

@media (max-width:820px) {
  .qd-commit-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .qd-commit-grid .qd-seal {
    margin-inline: auto
  }

  .qd-commit-list {
    grid-template-columns: 1fr;
    text-align: left
  }
}

/* ---------- Clients row ---------- */
.qd-clients-row img {
  opacity: .72;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease
}

.qd-clients-row img:hover {
  opacity: 1;
  filter: grayscale(0)
}

/* ---------- Testimonials ---------- */
.qd-reviews .icon-box {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  padding: 26px;
  box-shadow: var(--qd-shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%
}

.qd-reviews .icon-box-img img {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  object-fit: cover
}

.qd-reviews .testimonial-text {
  font-size: .96rem;
  color: var(--qd-ink);
  line-height: 1.6;
  font-style: normal !important
}

.qd-reviews .testimonial-meta {
  margin-top: 14px
}

.qd-reviews .testimonial-name {
  color: var(--qd-red-deep);
  font-weight: 700;
  display: block
}

.qd-reviews .testimonial-company {
  font-size: .8rem;
  color: var(--qd-slate)
}

.qd-reviews .testimonial-name-divider {
  display: none
}

/* ---------- FAQ ---------- */
.qd-faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.qd-faq-item {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-radius: 14px;
  overflow: hidden
}

.qd-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  font-size: .98rem;
  color: var(--qd-ink)
}

.qd-faq-q i {
  color: var(--qd-red-deep);
  flex-shrink: 0;
  transition: transform .25s ease
}

.qd-faq-item.qd-is-open .qd-faq-q i {
  transform: rotate(45deg)
}

.qd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.qd-faq-a-in {
  padding: 0 22px 20px;
  color: var(--qd-slate);
  font-size: .92rem;
  line-height: 1.65;
  max-width: 70ch
}

.qd-faq-item.qd-is-open .qd-faq-a {
  max-height: 240px
}

/* ---------- Articles ---------- */
.qd-article-card .box-image {
  border-radius: var(--qd-radius) var(--qd-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-article-card .box-text {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-top: 0;
  border-radius: 0 0 var(--qd-radius) var(--qd-radius);
  box-shadow: var(--qd-shadow-sm)
}

.qd-art-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--qd-gold-deep)
}

.qd-article-card h4 {
  font-family: var(--qd-font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--qd-ink);
  margin: 6px 0 0
}

/* ---------- CTA end ---------- */
.qd-cta-title {
  font-family: var(--qd-font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin: 0
}

.qd-cta-sub {
  color: rgba(255, 255, 255, .9);
  margin-top: 10px;
  max-width: 56ch;
  margin-inline: auto
}

.qd-cta-end .button {
  margin-top: 8px
}

/* ==========================================================================
   Redesign pass 2 — dense B2B layout (categories w/ price, 3-col combo,
   why-us+stats+photos, 6-step process, partner+review / faq+articles combos,
   split CTA). Reuses tokens/fonts from above.
   ========================================================================== */

.qd-title2 {
  font-family: var(--qd-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.2;
  color: var(--qd-ink);
  margin: 10px 0 0
}

.qd-combo-title {
  font-family: var(--qd-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--qd-ink);
  margin: 0 0 8px
}

.qd-combo-title.qd-light {
  color: #fff
}

.qd-combo-desc {
  color: var(--qd-slate);
  font-size: .88rem;
  margin: 0 0 16px
}

.qd-combo-desc.qd-light {
  color: rgba(255, 255, 255, .85)
}

.qd-combo-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--qd-red-deep)
}

.qd-combo-more:hover {
  color: var(--qd-red)
}

/* Categories (with price) */
.qd-categories2 .qd-p2-card {
  padding: 0 6px !important
}

.qd-categories2 .qd-p2-card .box-image {
  border-radius: var(--qd-radius) var(--qd-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-categories2 .qd-p2-card .box-text {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-top: 0;
  border-radius: 0 0 var(--qd-radius) var(--qd-radius);
  box-shadow: var(--qd-shadow-sm)
}

.qd-categories2 .qd-p2-card h3 {
  font-family: var(--qd-font-body) !important;
  font-weight: 700;
  font-size: .92rem;
  color: var(--qd-ink);
  margin: 0
}

.qd-p2-price {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--qd-red-deep);
  margin-top: 3px
}

/* 3-col combo: budget / occasions / logo service */
.qd-combo3 .qd-combo-card {
  background: var(--qd-paper-raised);
  border-radius: var(--qd-radius);
  padding: 26px 24px;
  box-shadow: var(--qd-shadow-sm);
  height: 100%
}

.qd-combo3 .qd-combo-logo {
  background: linear-gradient(150deg, var(--qd-red-deep), var(--qd-red));
  box-shadow: var(--qd-shadow-md)
}

.qd-budget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.qd-budget-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--qd-stone);
  color: var(--qd-ink);
  font-size: .88rem;
  font-weight: 600;
  transition: background .18s ease
}

.qd-budget-list a:hover {
  background: var(--qd-gold-tint)
}

.qd-budget-list i:first-child {
  color: var(--qd-gold-deep);
  font-size: .85rem
}

.qd-budget-list .qd-chev {
  margin-left: auto;
  font-size: .7rem;
  color: var(--qd-slate-soft)
}

.qd-occ2-grid .col-inner {
  padding: 0
}

.qd-occ2-grid .icon-box {
  text-align: center
}

.qd-occ2-grid .icon-box-img {
  margin-inline: auto
}

.qd-occ2-grid .icon-box-img img {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.qd-occ2-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--qd-ink);
  margin-top: 6px;
  line-height: 1.3
}

.qd-logo-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.qd-logo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: #fff;
  font-weight: 600
}

.qd-logo-list i {
  width: 26px;
  text-align: center;
  color: var(--qd-gold)
}

.qd-combo-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px
}

.qd-combo-logo .button {
  margin-top: 4px
}

/* Why us 2 — description + feature grid + divider + stat row */
.qd-why2-stats .col-inner {
  padding: 36px 34px;
  background: var(--qd-stone);
  border-radius: 20px;
  text-align: left;
  box-shadow: var(--qd-shadow-sm)
}

.qd-why2-desc {
  color: var(--qd-slate);
  font-size: .92rem;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 52ch
}

.qd-why2-features {
  margin-top: 24px
}

.qd-why2-features .col {
  margin-bottom: 18px
}

.qd-why2-features .icon-box-text {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px
}

.qd-why2-feature-icon {
  grid-row: span 2;
  font-size: 1.25rem;
  color: var(--qd-red-deep);
  margin-top: 2px
}

.qd-why2-features h4 {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--qd-ink);
  line-height: 1.3
}

.qd-why2-features .icon-box-text p {
  margin: 0;
  font-size: .78rem;
  color: var(--qd-slate);
  line-height: 1.4
}

.qd-why2-divider {
  border: 0;
  border-top: 1.5px dashed var(--qd-line);
  margin: 8px 0 22px
}

.qd-why2-stats-row .icon-box-text {
  display: flex;
  align-items: center;
  gap: 12px
}

.qd-why2-stat-icon {
  font-size: 1.4rem;
  color: var(--qd-red-deep);
  flex-shrink: 0
}

.qd-stat2 {
  display: flex;
  flex-direction: column;
  gap: 1px
}

.qd-stat2-num {
  font-family: var(--qd-font-body);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--qd-red-deep);
  font-variant-numeric: tabular-nums
}

.qd-stat2-text {
  font-size: .74rem;
  color: var(--qd-slate)
}

@media (max-width:900px) {
  .qd-why2-stats {
    margin-top: 24px
  }
}

@media (max-width:560px) {
  .qd-why2-features .col {
    width: 100%
  }
}

.qd-check-clean2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px
}

@media (max-width:560px) {
  .qd-check-clean2 {
    grid-template-columns: 1fr
  }
}

/* Client type badges (replaces named partner logos) */
.qd-client-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.qd-client-types li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--qd-stone);
  font-size: .85rem;
  font-weight: 600;
  color: var(--qd-ink)
}

.qd-client-types i {
  color: var(--qd-red-deep);
  font-size: .85rem
}

/* Process 6-step variant */
.qd-process-track6 {
  grid-template-columns: repeat(6, 1fr)
}

@media (max-width:980px) {
  .qd-process-track6 {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:560px) {
  .qd-process-track6 {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* 2-col combos: partners+reviews / faq+articles */
.qd-combo2 .qd-combo-card {
  background: var(--qd-paper-raised);
  border-radius: var(--qd-radius);
  padding: 28px 26px;
  box-shadow: var(--qd-shadow-sm);
  height: 100%
}

.qd-partners2-grid img {
  opacity: .75;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease
}

.qd-partners2-grid img:hover {
  opacity: 1;
  filter: grayscale(0)
}

.qd-reviews2 .icon-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--qd-stone);
  border-radius: 12px;
  padding: 16px;
  height: 100%
}

.qd-reviews2 .icon-box-img img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover
}

.qd-reviews2 .testimonial-text {
  font-size: .82rem;
  color: var(--qd-ink);
  line-height: 1.55;
  font-style: normal !important
}

.qd-reviews2 .testimonial-meta {
  margin-top: 2px
}

.qd-reviews2 .testimonial-name {
  display: block;
  font-size: .82rem;
  color: var(--qd-red-deep);
  font-weight: 700
}

.qd-reviews2 .testimonial-company {
  font-size: .72rem;
  color: var(--qd-slate)
}

.qd-reviews2 .testimonial-name-divider {
  display: none
}

.qd-reviews2 .icon-box .testimonial-text {
  order: 2
}

.qd-reviews2 .icon-box .icon-box-img {
  order: 1
}

.qd-reviews2 .icon-box .testimonial-meta {
  order: 1
}

.qd-faq-list2 {
  margin-inline: 0;
  max-width: none
}

.qd-faq-list2 .qd-faq-q {
  padding: 14px 16px;
  font-size: .9rem
}

.qd-faq-list2 .qd-faq-a-in {
  padding: 0 16px 16px;
  font-size: .86rem
}

.qd-article2-card .box-image {
  border-radius: var(--qd-radius) var(--qd-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-article2-card .box-text {
  background: var(--qd-stone);
  border-radius: 0 0 var(--qd-radius) var(--qd-radius)
}

.qd-article2-card h4 {
  font-family: var(--qd-font-body);
  font-weight: 700;
  font-size: .86rem;
  color: var(--qd-ink);
  margin: 4px 0 0;
  line-height: 1.35
}

/* CTA 2 — split layout */
.qd-cta-sub-left {
  margin-inline: 0;
  text-align: left
}

.qd-cta2 .button {
  margin: 6px 10px 0 0
}

.qd-cta-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px
}

.qd-cta-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 600
}

.qd-cta-trust i {
  color: var(--qd-gold)
}

.qd-cta2-img img {
  box-shadow: var(--qd-shadow-lg)
}

@media (max-width:900px) {
  .qd-cta2-img {
    margin-top: 24px
  }
}

/* banner boder */
.banner-right {
  border: 2px solid #a80000;
  /* Đường viền màu đỏ đô hợp với tone màu chung */
  border-radius: 12px;
  /* Bo góc */
  overflow: hidden;
}

.box-sk {
  border: 2px solid #a80000;
  /* Đường viền màu đỏ đô hợp với tone màu chung */
  border-radius: 12px;
  /* Bo góc */
  overflow: hidden;
}

.banner-white {
  border-radius: 12px;
  /* Bo góc */
  border: 5px solid #FFFFFF;
  /* Đường viền màu trắng */
  overflow: hidden;
}

/* ---------- Single product: sticky sidebar next to description tabs ---------- */
.qd-product-desc-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start
}

.qd-product-desc-main {
  flex: 1 1 0;
  min-width: 0
}

.qd-product-desc-sidebar {
  flex: 0 0 300px;
  width: 300px;
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 9
}

.qd-product-desc-sidebar .widget {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--qd-paper-raised, #fff);
  border: 1px solid var(--qd-line, #e6dcc8);
  border-radius: var(--qd-radius, 16px);
  box-shadow: var(--qd-shadow-sm, 0 2px 10px -4px rgba(42, 27, 20, .16))
}

.qd-product-desc-sidebar .widget:last-child {
  margin-bottom: 0
}

@media (max-width:849px) {
  .qd-product-desc-layout.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important
  }

  .qd-product-desc-main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important
  }

  .qd-product-desc-sidebar {
    display: block !important;
    position: static !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    top: auto !important;
    margin-top: 24px
  }

  .woocommerce-tabs,
  .tab-panels,
  .panel {
    width: 100% !important
  }
}

/* Bonus fixes bundled with the sidebar snippet */
.product-title a:hover,
.name.product-title a:hover {
  color: #9C2C26 !important
}

/* ---------- Product card: centered/bold title, "reference price" line,
   thin divider before the qd-card-meta specs row ---------- */
/* Titles vary a lot in length (1-3 lines) — clamp to 2 lines and reserve
   that height on every card so the price line/divider/specs row start at
   the same y-position across a row, regardless of how long the title is. */
.product-small .box-text-products {
  display: flex;
  flex-direction: column
}

.product-small .title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;
  text-align: center
}

.product-small .product-title {
  width: 100%
}

.product-small .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-weight: 700;
  color: #000 !important
}

.product-small .price-wrapper {
  text-align: center
}

.qd-price-inquiry {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--qd-red-deep)
}

#absolute-footer {
  display: none !important
}

/* ---------- Single product mobile: gallery image + info column stay
   side-by-side (squeezed) instead of stacking — Flatsome's .row.content-row
   doesn't collapse this on its own on this theme/template combo. Force it. ---------- */
@media (max-width: 767px) {
  .product-main .row.content-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .product-main .row.content-row > .product-gallery,
  .product-main .row.content-row > .product-info {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 10px !important;
  }

  .product-main .row.content-row > .product-gallery {
    margin-bottom: 20px !important;
  }

  .product-main .row.content-row > .product-info {
    text-align: left !important;
  }
}

/* Hide the breadcrumb + result-count/ordering bar on product category
   archives only (.shop-page-title also appears on the main shop page,
   which is left untouched). */
.shop-page-title.category-page-title {
  display: none !important
}

/* Category banner (qd_render_category_banner) — sits above the category
   description text on product category archive pages. Full-bleed: breaks
   out of the shop container to span the full viewport width, edge to edge,
   like the reference site's category hero banner. */
.qd-category-banner {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* .category-page-row has padding-top:30px (Flatsome) — cancel it here so
     the banner sits flush under the header instead of leaving a gap. */
  margin-top: -30px;
  margin-bottom: 32px
}

/* ---------- Category page grid on mobile: the row/columns don't collapse
   to full width on their own — same root cause as the product-gallery fix
   above (Flatsome's .row here doesn't get a mobile width override from
   this theme). Force the row + product-grid columns to fill the viewport. ---------- */
@media (max-width: 767px) {
  .row.category-page-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .row.category-page-row > .col.large-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .row.category-page-row .products.row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
  }

  .row.category-page-row .products.row > .col.product-small {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 4px !important;
  }
}

/* ---------- Blog mobile: stack article and sidebar into one column ---------- */
@media (max-width: 767px) {
  #content.blog-wrapper > .row.row-large {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #content.blog-wrapper > .row.row-large > .large-9.col,
  #content.blog-wrapper > .row.row-large > .post-sidebar.large-3.col {
    float: none !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  #content.blog-wrapper > .row.row-large > .large-9.col {
    order: 1;
  }

  #content.blog-wrapper > .row.row-large > .post-sidebar.large-3.col {
    order: 2;
    margin-top: 28px;
  }

  #content.blog-wrapper > .row.row-large.row-divided > .post-sidebar {
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

.qd-category-banner-img {
  display: block;
  width: 100%;
  height: auto
}

/* ---------- Product spec card ("Thông số kỹ thuật") in the desc sidebar ---------- */
.qd-spec-card {
  background: var(--qd-paper-raised);
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  overflow: hidden;
  box-shadow: var(--qd-shadow-sm)
}

.qd-spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: linear-gradient(120deg, var(--qd-red) 0%, var(--qd-red-deep) 100%);
  color: var(--qd-on-red)
}

.qd-spec-head-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qd-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap
}

.qd-spec-head-label i {
  font-size: .95em
}

.qd-spec-head-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--qd-gold-tint);
  text-align: right;
  opacity: .92
}

.qd-spec-group {
  border-top: 1px solid var(--qd-line)
}

.qd-spec-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 6px;
  font-family: var(--qd-font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--qd-gold-deep)
}

.qd-spec-group-title i {
  font-size: .95em;
  color: var(--qd-gold-deep)
}

.qd-spec-rows {
  display: flex;
  flex-wrap: wrap;
  padding: 2px 10px 12px
}

.qd-spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 8px 8px;
  box-sizing: border-box
}

.qd-spec-row-full {
  flex: 0 0 100%;
  max-width: 100%
}

.qd-spec-row-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--qd-stone);
  color: var(--qd-red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem
}

.qd-spec-row-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 5px;
  min-width: 0
}

.qd-spec-row-label {
  font-size: .88rem;
  font-weight: 700;
  color: #000000
}

.qd-spec-row-label::after {
  content: ":"
}

.qd-spec-row-value {
  font-size: .88rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.5;
  word-break: break-word
}

.qd-spec-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--qd-paper-raised);
  border: 1.5px solid #990000;
  border-radius: 0 0 calc(var(--qd-radius) - 1px) calc(var(--qd-radius) - 1px);
  color: #990000;
  font-size: .82rem;
  line-height: 1.5
}

.qd-spec-foot i {
  color: #990000;
  font-size: 1rem;
  flex-shrink: 0
}

.qd-spec-foot strong {
  color: #990000
}

@media (max-width:480px) {
  .qd-spec-row {
    flex: 0 0 100%;
    max-width: 100%
  }

  .qd-spec-head {
    padding: 14px 16px
  }

  .qd-spec-head-name {
    text-align: left;
    width: 100%
  }

  .qd-spec-group-title {
    padding: 12px 16px 6px
  }

  .qd-spec-rows {
    padding: 2px 8px 10px
  }

  .qd-spec-foot {
    padding: 12px 16px
  }
}

/* ---------- Product card meta (qd_render_product_card_meta) — compact
   icon+text rows shown under the price on shop/category/related cards ---------- */
.qd-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin: 6px 0 4px;
  padding-top: 8px;
  border-top: 1px solid var(--qd-line);
  text-align: left
}

.qd-card-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%
}

.qd-card-meta-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--qd-stone);
  color: var(--qd-red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem
}

.qd-card-meta-text {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--qd-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

/* ---------- Long-form content typography: product description tab +
   blog posts (both render into .entry-content) ---------- */
.entry-content h2 {
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--qd-ink);
  margin: 1.8em 0 .7em;
  padding-left: 16px;
  border-left: 4px solid var(--qd-red);
}

.entry-content>h2:first-child,
.entry-content h2:first-child {
  margin-top: 0
}

.entry-content h3 {
  font-weight: 700;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.35;
  color: var(--qd-red-deep);
  margin: 1.6em 0 .5em;
}

.entry-content h4 {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--qd-ink);
  margin: 1.4em 0 .4em
}

.entry-content p {
  color: #000000;
  line-height: 1.75;
  margin: 0 0 1.1em
}

.entry-content ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px
}

.entry-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--qd-slate);
  line-height: 1.65
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qd-gold-deep);
}

.entry-content ul ul {
  margin: 8px 0 0
}

/* Don't let the boxed/dot bullet styling above touch Easy Table of Contents' own list */
.entry-content #ez-toc-container ul {
  list-style: revert;
  display: revert;
  flex-direction: revert;
  gap: revert;
  padding: revert;
  margin: revert
}

.entry-content #ez-toc-container ul li {
  position: static;
  padding-left: 0;
  color: inherit;
  line-height: inherit
}

.entry-content #ez-toc-container ul li::before {
  content: none
}

.entry-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--qd-slate);
  line-height: 1.7
}

.entry-content ol li {
  padding-left: 4px;
  margin-bottom: 6px
}

.entry-content ol li::marker {
  color: var(--qd-red-deep);
  font-weight: 700
}

.entry-content strong {
  color: var(--qd-ink)
}

.entry-content a:not(.button) {
  color: var(--qd-red-deep);
  text-decoration: underline;
  text-underline-offset: 2px
}

.entry-content a:not(.button):hover {
  color: var(--qd-red)
}


/* Ẩn hoàn toàn nút Xem nhanh trên giao diện Quà Tặng Đại Hội */
.quick-view,
a.quick-view,
.box-image .quick-view {
  display: none !important;
}

.commit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  .commit-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
  }

  .commit-item:hover {
    border-color: #990000;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .commit-icon {
    font-size: 28px;
    color: #990000;
    margin-right: 20px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
  }

  .commit-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #990000;
    line-height: 1.3;
  }

  .commit-content p {
    margin: 0;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
  }

  /* Nút "lên đầu trang" — chuyển từ <style> inline trong functions.php
     (fn_backtotop) vào đây để trình duyệt cache được và WP Rocket minify
     được. JS đi kèm: themes/gsst/js/qd-backtotop.js */
.progress-wrap {
            position: fixed;
            right: 30px;
            bottom: 30px;
            height: 46px;
            width: 46px;
            cursor: pointer;
            display: block;
            border-radius: 50px;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: all 200ms linear;
            /* Đổ bóng nhẹ cho nút nổi bật */
            box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
        }
        .progress-wrap.active-progress {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        /* Hình mũi tên và Nền nút */
        .progress-wrap::after {
            position: absolute;
            font-family: "fl-icons" !important;
            content: ""; /* Mã icon Flatsome */
            text-align: center;
            font-size: 24px;
            color: #fff !important; /* Mũi tên màu trắng */
            left: 0;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            margin: auto;
            background-color: #9C2C26; /* Nền nút màu đỏ */
            border-radius: 50%;
            height: 38px;
            width: 38px;
            line-height: 38px;
            z-index: 1;
            transition: all 200ms linear;
        }
        /* Hiệu ứng khi hover */
        .progress-wrap:hover::after {
            background-color: #333; /* Chuyển sang xám đen khi hover */
        }
        .progress-wrap svg path { 
            fill: none; 
        }
        /* Vòng tròn chạy tiến trình */
        .progress-wrap svg.progress-circle path {
            stroke: #9C2C26; /* Màu đỏ cho vòng tiến trình */
            stroke-width: 4;
            box-sizing: border-box;
            transition: all 200ms linear;
        }

        /* --- THÊM ĐOẠN NÀY ĐỂ ẨN TRÊN MOBILE --- */
        @media (max-width: 768px) {
            .progress-wrap, 
            .progress-wrap.active-progress {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
            }
        }

  /* Dancing Script tự host (font "alt" của Flatsome).
     Trước đây font này do Kirki/Google Fonts nạp kèm, kéo theo Inter và Saira
     bị nạp LẶP LẠI (theme đã tự host bản variable ở phần trên file này).
     Sau khi tắt Flatsome > Styles > Type > Disable Google Fonts thì khai báo
     lại ở đây. File woff2 đã có sẵn trong wp-content/fonts/dancing-script/. */
  @font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Rep8ltA.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }

  @font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3ROp8ltA.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }

  @font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup8.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  /* Responsive cho điện thoại */
  @media (max-width: 600px) {
    .commit-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .commit-item {
      padding: 16px;
    }
  }


/* ==========================================================================
   CSS CHO KHỐI CTA CUỐI MÔ TẢ SẢN PHẨM - QUÀ TẶNG ĐẠI HỘI
   ========================================================================== */
.cta-daihoi-outline {
    display: flex;
    align-items: center;
    background: #fffdf9;
    border: 2px dashed #c59b27; /* Viền nét đứt màu vàng đồng sang trọng */
    border-radius: 10px;
    padding: 22px 26px;
    margin: 40px 0 20px 0;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.1);
}
.cta-dh-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #fdf6e2;
    border: 1px solid #c59b27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.cta-dh-content {
    flex-grow: 1;
}
.cta-dh-title {
    color: #990000; /* Đỏ đặc trưng của quà tặng đại hội */
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.cta-dh-sub {
    color: #555555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.cta-dh-action {
    flex-shrink: 0;
}

/* Nút CTA hiệu ứng nổi bật (Pulse & Gradient Đỏ/Vàng) */
.cta-dh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #990000 0%, #b81414 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.25);
    transition: all 0.3s ease;
    animation: ctaDhPulse 2s infinite;
}
.cta-dh-btn:hover {
    background: linear-gradient(135deg, #7a0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(153, 0, 0, 0.35);
    color: #ffffff !important;
}

@keyframes ctaDhPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(153, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(153, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(153, 0, 0, 0);
    }
}

/* Responsive trên Mobile cho gọn gàng */
@media (max-width: 768px) {
    .cta-daihoi-outline {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px;
        gap: 15px;
    }
    .cta-dh-icon {
        margin: 0 auto;
    }
    .cta-dh-action {
        width: 100%;
    }
    .cta-dh-btn {
        width: 100%;
    }
}


/* =========================================
   BOX MÔ TẢ DANH MỤC - QUÀ TẶNG ĐẠI HỘI
   ========================================= */

.tax-product_cat .term-description {
    max-width: 1380px;
    margin: 28px auto 35px;
    padding: 28px 38px 24px;

    background: #fff8f6;

    border: 1px solid #f0c7c1;
    border-top: 3px solid #b40000;
    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(180, 0, 0, 0.06);

    color: #333;
    line-height: 1.75;
}


/* H1/H2 tiêu đề trong phần mô tả */
.tax-product_cat .term-description h1,
.tax-product_cat .term-description h2 {
    color: #8f0000;
    text-align: center;

    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;

    margin: 0 0 14px;
}


/* Nội dung */
.tax-product_cat .term-description p {
    margin: 0 0 15px;
}


/* Bỏ khoảng trắng đoạn cuối */
.tax-product_cat .term-description p:last-child {
    margin-bottom: 0;
}


/* Chữ đậm */
.tax-product_cat .term-description strong {
    color: #8f0000;
    font-weight: 700;
}


/* Link */
.tax-product_cat .term-description a {
    color: #b40000;
    font-weight: 600;
    text-decoration: none;
}

.tax-product_cat .term-description a:hover {
    color: #7d0000;
    text-decoration: underline;
}


/* MOBILE */
@media (max-width: 849px) {

    .tax-product_cat .term-description {
        margin: 18px 15px 25px;
        padding: 22px 20px;

        border-radius: 12px;
    }

    .tax-product_cat .term-description h1,
    .tax-product_cat .term-description h2 {
        font-size: 24px;
    }

}


/* MOBILE NHỎ */
@media (max-width: 549px) {

    .tax-product_cat .term-description {
        padding: 18px 16px;
    }

    .tax-product_cat .term-description h1,
    .tax-product_cat .term-description h2 {
        font-size: 21px;
    }

}
