[class^="icon"], [class*=" icon"] {
    font-family: 'ega-iconfont' !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
}


.icon-arrow-left, .icon-arrow-login, .icon-arrow-right, .icon-arrow-swap, .icon-calendar, .icon-call, .icon-calling-phone, .icon-carret-down, .icon-carret-left, .icon-carret-right, .icon-carret-up, .icon-cart, .icon-close-circle, .icon-cross, .icon-danger, .icon-dollar-circle, .icon-edit, .icon-external, .icon-eye, .icon-gift, .icon-instagram, .icon-like, .icon-location, .icon-lock, .icon-minus, .icon-notification, .icon-play, .icon-plus, .icon-receipt, .icon-refresh, .icon-search-history, .icon-search, .icon-settings, .icon-shopping-bag, .icon-shopping-cart, .icon-sms, .icon-stickynote, .icon-store, .icon-tick, .icon-ticket-discount, .icon-ticket, .icon-time, .icon-trash, .icon-truck-fast, .icon-user {
    font-family: 'ega-iconfont';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
}



.icon-arrow-left::before {
    content: "\ea01";
}

.icon-arrow-login::before {
    content: "\ea02";
}

.icon-arrow-right::before {
    content: "\ea03";
}

.icon-arrow-swap::before {
    content: "\ea04";
}

.icon-calendar::before {
    content: "\ea05";
}

.icon-call::before {
    content: "\ea06";
}

.icon-calling-phone::before {
    content: "\ea07";
}

.icon-carret-down::before {
    content: "\ea08";
}

.icon-carret-left::before {
    content: "\ea09";
}

.icon-carret-right::before {
    content: "\ea0a";
}

.icon-carret-up::before {
    content: "\ea0b";
}

.icon-cart::before {
    content: "\ea0c";
}

.icon-close-circle::before {
    content: "\ea0d";
}

.icon-cross::before {
    content: "\ea0e";
}

.icon-danger::before {
    content: "\ea0f";
}

.icon-dollar-circle::before {
    content: "\ea10";
}

.icon-edit::before {
    content: "\ea11";
}

.icon-external::before {
    content: "\ea12";
}

.icon-eye::before {
    content: "\ea13";
}

.icon-gift::before {
    content: "\ea14";
}

.icon-instagram::before {
    content: "\ea15";
}

.icon-like::before {
    content: "\ea16";
}

.icon-location::before {
    content: "\ea17";
}

.icon-lock::before {
    content: "\ea18";
}

.icon-minus::before {
    content: "\ea19";
}

.icon-notification::before {
    content: "\ea1a";
}

.icon-play::before {
    content: "\ea1b";
}

.icon-plus::before {
    content: "\ea1c";
}

.icon-receipt::before {
    content: "\ea1d";
}

.icon-refresh::before {
    content: "\ea1e";
}

.icon-search-history::before {
    content: "\ea1f";
}

.icon-search::before {
    content: "\ea20";
}

.icon-settings::before {
    content: "\ea21";
}

.icon-shopping-bag::before {
    content: "\ea22";
}

.icon-shopping-cart::before {
    content: "\ea23";
}

.icon-sms::before {
    content: "\ea24";
}

.icon-stickynote::before {
    content: "\ea25";
}

.icon-store::before {
    content: "\ea26";
}

.icon-tick::before {
    content: "\ea27";
}

.icon-ticket-discount::before {
    content: "\ea28";
}

.icon-ticket::before {
    content: "\ea29";
}

.icon-time::before {
    content: "\ea2a";
}

.icon-trash::before {
    content: "\ea2b";
}

.icon-truck-fast::before {
    content: "\ea2c";
}

.icon-user::before {
    content: "\ea2d";
}

/* Custom elements default to inline - force block for correct layout */
media-gallery,
product-form,
tabs-section,
page-content,
frequently-bundle,
carousel-slider {
  display: block;
}

:root {
  --color-gold-text: var(--color-highlight);
  --color-gold-soft: var(--color-accent-soft);
  --color-line-warm: var(--color-neutral-50);
}

.text-neutral-200 {
  color: var(--color-neutral-300);
}

.text-secondary {
  color: var(--color-gold-text);
}

.text-warning {
  color: var(--color-gold-text);
}

.blog-sidebar > .bg-background {
  background: transparent;
}

.blog-sidebar .aside-item {
  background: var(--color-background);
  border: 1px solid var(--color-neutral-50);
  border-radius: var(--rounded-lg);
  padding: 1.8rem 2rem;
}

.blog-sidebar .blog-aside:has(.blog-tag-list) .aside-title .title-head {
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-neutral-50);
}

.blog-tag-list a {
  padding: 0.4rem 1.2rem;
  border-color: var(--color-neutral-50);
  border-radius: 999px;
  background: var(--color-background);
  color: var(--color-foreground);
}

.blog-tag-list a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-button-primary-text);
}

.filter-count {
  background-color: var(--color-error);
}

.z-999 {
  z-index: 999;
}

.btn {
  border-radius: var(--rounded-button);
  font-size: var(--font-size-14);
  font-weight: 600;
  letter-spacing: 0.04em;
}

select {
  padding: 4px;
}

select option {
  padding: 4px;
  /* Add padding around each option */
}

/* ============================================
   PRODUCT DETAILS ACCORDION - CLEAN & MODERN
   ============================================ */

/* Base details/summary reset */
details>summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

details>summary::-webkit-details-marker {
  display: none;
}

/* Product details accordion container */
.product-form-wrapper details.group\/details {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-neutral-50);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.product-form-wrapper details.group\/details:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-form-wrapper details.group\/details[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Summary (header) styling */
.product-form-wrapper details.group\/details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: var(--font-size-body);
  color: var(--color-foreground);
  background: var(--color-background);
  position: relative;
}

.product-form-wrapper details.group\/details summary:hover {
  background: #f8f8f8;
}

.product-form-wrapper details.group\/details[open] summary {
  background: #f8f8f8;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-neutral-50);
}

/* Summary title */
.product-form-wrapper details.group\/details summary h3 {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: 600;
}

/* Icon styling - no animation */
.product-form-wrapper details.group\/details summary .icon-carret-down {
  color: var(--color-neutral-100);
  font-size: 1.8rem;
}

.product-form-wrapper details.group\/details[open] summary .icon-carret-down {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.product-form-wrapper details.group\/details summary:hover .icon-carret-down {
  color: var(--color-primary);
}

/* Content area - instant display */
.product-form-wrapper details.group\/details .content {
  display: none;
  padding: 20px;
}

.product-form-wrapper details.group\/details[open] .content {
  display: block;
}

/* Content typography */
.product-form-wrapper details.group\/details .content.prose {
  line-height: 1.7;
  color: var(--color-foreground);
}

.product-form-wrapper details.group\/details .content.prose p {
  margin-bottom: 12px;
}

.product-form-wrapper details.group\/details .content.prose ul,
.product-form-wrapper details.group\/details .content.prose ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.product-form-wrapper details.group\/details .content.prose li {
  margin-bottom: 8px;
}

/* First accordion item special styling */
.product-form-wrapper details.group\/details:first-of-type {
  margin-top: 0;
}

/* Active state indicator */




/* Mobile optimizations */
@media (max-width: 767px) {
  .product-form-wrapper details.group\/details {
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .product-form-wrapper details.group\/details summary {
    padding: 14px 16px;
    font-size: var(--font-size-16);
  }

  .product-form-wrapper details.group\/details summary h3 {
    font-size: var(--font-size-16);
  }

  .product-form-wrapper details.group\/details[open] .content {
    padding: 16px;
  }

  .product-form-wrapper details.group\/details summary .icon-carret-down {
    font-size: 1.6rem;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-form-wrapper details.group\/details summary {
    padding: 15px 18px;
  }
}

/* Enhanced content styling (image sizing handled by the universal .content img rule) */
.product-form-wrapper details.group\/details .content.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.product-form-wrapper details.group\/details .content.prose table td,
.product-form-wrapper details.group\/details .content.prose table th {
  padding: 10px;
  border: 1px solid var(--color-neutral-50);
}

.product-form-wrapper details.group\/details .content.prose table th {
  background: var(--color-neutral-50);
  font-weight: 600;
}

/* Smooth scroll behavior when opening */
.product-details-accordion {
  scroll-margin-top: 100px;
}

/* Tab nội dung sản phẩm: đồng nhất khoảng cách tab-bar → nội dung giữa các tab.
   Tab mô tả bơm thẳng {{ content }} vào .prose nên phần tử đầu đã được reset
   margin-top (Tailwind .prose > :first-child). Tab dùng page-content lồng nội
   dung 2 lớp (page-content > .content > tiêu đề) nên reset đó không với tới,
   tiêu đề giữ nguyên margin-top → tab 2/3/4 hụt xuống. Class .content có ở cả
   wrapper prose ngoài lẫn .content bơm trong, nên reset phần tử đầu ở mọi tab. */
.product-details-tabs-accordions .tab-content .content > *:first-child,
.product-tabs-bottom .tab-content .content > *:first-child {
  margin-top: 0;
}

.product-tabs-bottom {
  border: 1px solid var(--color-line-warm);
  border-radius: var(--rounded-lg);
  background: var(--color-background);
  padding: 2.8rem 4rem 3.2rem;
}

.product-tabs-bottom .tabs-header-area {
  padding: 0;
}

.product-tabs-bottom .tabs-content-group {
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 767px) {
  .product-tabs-bottom {
    padding: 1.8rem 1.4rem 2.2rem;
  }

  .product-tabs-bottom .tabs-header-area,
  .product-tabs-bottom .tabs-content-group {
    padding: 0;
  }

  .product-tabs-bottom .tabs-content-group {
    padding-top: 2.4rem;
  }
}

.section-campaign-faq .heading-bar .heading {
  font-size: var(--font-size-40);
  line-height: 1.15;
}

@media (max-width: 768px) {
  .section-campaign-faq .heading-bar .heading {
    font-size: var(--font-size-h4);
  }
}

.product-tabs-bottom .tab-content .content,
.product-details-tabs-accordions .tab-content .content {
  font-size: var(--font-size-16);
  line-height: 1.75;
  color: var(--color-foreground);
}

.product-tabs-bottom .tab-content .content h2,
.product-tabs-bottom .tab-content .content h3,
.product-details-tabs-accordions .tab-content .content h2,
.product-details-tabs-accordions .tab-content .content h3 {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--font-headings-family);
  font-weight: var(--font-headings-weight);
  line-height: 1.3;
}

.product-tabs-bottom .tab-content .content h2,
.product-details-tabs-accordions .tab-content .content h2 {
  font-size: var(--font-size-28);
}

.product-tabs-bottom .tab-content .content h3,
.product-details-tabs-accordions .tab-content .content h3 {
  font-size: var(--font-size-24);
}

.product-tabs-bottom .tab-content .content h4,
.product-tabs-bottom .tab-content .content h5,
.product-details-tabs-accordions .tab-content .content h4,
.product-details-tabs-accordions .tab-content .content h5 {
  margin: 1.8rem 0 0.6rem;
  font-size: var(--font-size-18);
  font-weight: 600;
  line-height: 1.4;
}

.product-tabs-bottom .tab-content .content p,
.product-details-tabs-accordions .tab-content .content p {
  margin: 0 0 1.2rem;
  color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}

.product-tabs-bottom .tab-content .content img,
.product-details-tabs-accordions .tab-content .content img {
  margin: 0.8rem 0 0.6rem;
  border-radius: var(--rounded-lg);
}

.product-tabs-bottom .tab-content .content p:has(> em:only-child),
.product-details-tabs-accordions .tab-content .content p:has(> em:only-child) {
  margin-bottom: 1.2rem;
  font-size: var(--font-size-14);
  text-align: center;
  color: var(--color-price-compare);
}

.product-tabs-bottom .tab-content .content ul,
.product-details-tabs-accordions .tab-content .content ul {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.product-tabs-bottom .tab-content .content ul li,
.product-details-tabs-accordions .tab-content .content ul li {
  position: relative;
  margin: 0;
  padding-left: 2.2rem;
}

.product-tabs-bottom .tab-content .content p:has(> img:only-child) {
  margin-bottom: 0.6rem;
}

.product-tabs-bottom .tab-content .content ul li::before,
.product-details-tabs-accordions .tab-content .content ul li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
}

.product-tabs-bottom .tab-content .content ol,
.product-details-tabs-accordions .tab-content .content ol {
  margin: 0 0 1.4rem;
  padding-left: 2.2rem;
}

.product-tabs-bottom .tab-content .content table,
.product-details-tabs-accordions .tab-content .content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-line-warm);
  border-radius: var(--rounded-md);
  overflow: hidden;
  font-size: var(--font-size-14);
}

.product-tabs-bottom .tab-content .content td,
.product-tabs-bottom .tab-content .content th,
.product-details-tabs-accordions .tab-content .content td,
.product-details-tabs-accordions .tab-content .content th {
  padding: 1rem 1.4rem;
  border: 0;
  border-bottom: 1px solid var(--color-line-warm);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.product-tabs-bottom .tab-content .content tr:last-child td,
.product-details-tabs-accordions .tab-content .content tr:last-child td {
  border-bottom: 0;
}

.product-tabs-bottom .tab-content .content tr:nth-child(odd) td,
.product-details-tabs-accordions .tab-content .content tr:nth-child(odd) td {
  background: var(--color-accent-soft);
}

.product-tabs-bottom .tab-content .content td:first-child,
.product-details-tabs-accordions .tab-content .content td:first-child {
  width: 38%;
  color: var(--color-price-compare);
}

.product-tabs-bottom .tab-content page-content h3,
.product-details-tabs-accordions .tab-content page-content h3 {
  margin: 1.6rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-line-warm);
  font-family: var(--font-body-family);
  font-size: var(--font-size-18);
  font-weight: 600;
}

.product-tabs-bottom .tab-content page-content .content > h3:first-child,
.product-details-tabs-accordions .tab-content page-content .content > h3:first-child {
  padding-top: 0;
  border-top: 0;
}

.main-product .container,
.main-product .product-gallery-wrapper,
.main-product .product-form-wrapper > div {
  background-color: transparent;
}

.main-product.product-shortcode .product-info-wrapper {
  display: flex;
  flex-direction: column;
}

.main-product > .container > .w-full {
  display: flex;
  flex-direction: column;
}

.main-product > .container > .w-full > .section-frequently-bought {
  order: 1;
  width: 100%;
  margin-top: 4.4rem;
}

.main-product > .container > .w-full > .product-tabs-bottom {
  width: 100%;
}



/* Legacy support for icon-carret-right */
details[open]>summary>.icon-carret-right {
  transform: rotate(90deg);
}

.h-inherit {
  height: inherit !important;
}

.break-word {
  word-break: break-word;
}

.addtocart-btn {
  --color-button-primary: var(--color-addtocart-bg);
  --color-button-primary-text: var(--color-addtocart);
}

.card-product .addtocart-btn {
  --color-button-primary: var(--color-secondary);
  --color-button-primary-text: var(--color-foreground);
  padding: 7px;
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .card-product .addtocart-btn {
    padding: 11px 8px;
    width: 100%;
    height: auto;
    border-radius: var(--rounded-button);
    position: relative;
  }

  /* card dọc: nút quick-add luôn là icon tròn cố định, không nở full-width như card ngang */
  .card-product .addtocart-btn.addtocart-btn--icon {
    width: 3.2rem;
    height: 3.2rem;
    padding: 7px;
    border-radius: 9999px;
    min-height: 0;
  }
}

/* nút quick-add icon tròn (card dọc): nổi bật khỏi nền card bằng shadow, mọi breakpoint */
.card-product .addtocart-btn.addtocart-btn--icon {
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.5;
}

.collection-item-thumb-bg::after {
  display: block;
  content: "";
  background: #ebebeb;
  width: 50% !important;
  height: 50% !important;
  border-radius: 100%;
  position: absolute;
  margin: auto;
  z-index: -1 !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all .3s ease;
}

.collection-item-thumb-bg:hover::after {
  transform: scale(1.1) translateZ(0);
}

@media (min-width: 768px) {
  .collection-item span {
    font-size: var(--font-size-18);
  }
}

.collection-item-thumb-bg:hover::after {
  background: var(--coll-bg-hover);
  background: linear-gradient(to top,
      color-mix(in oklab, var(--coll-bg-hover), white 14%) 0%, var(--coll-bg-hover) 55%,
      color-mix(in oklab, var(--coll-bg-hover), black 12%) 100%);
  /* transform: translate(-50%, -50%) scale(1.04); */
}

.section-flashsale:after {
  z-index: -1;
}

.overflow-item {
  display: none;
}

.aside-item {
  background: var(--color-background);
}

.filter-container {
  gap: 1px;
}

/* ── Bộ lọc collection dạng thẻ (card) ──
   Mỗi nhóm lọc (danh mục/thương hiệu/giá...) tách thành 1 thẻ trắng bo góc,
   thay cho kiểu list liền khối chia hairline cũ. */
.collection-filter .filter-container {
  background: transparent;
  gap: 0;
}

.collection-filter .aside-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-neutral-50);
  border-radius: 0;
  padding: 1.4rem 0;
}

.collection-filter .aside-title .title-head {
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.collection-filter .filter-item {
  padding-left: 0;
}

.collection-filter .filter-item--check-box label {
  font-size: var(--font-size-14);
  color: var(--color-neutral-300);
}

.collection-filter .form-checkbox,
.collection-filter .form-radio {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--color-primary);
  border-color: var(--color-neutral-200);
}

.collection-filter .filter-item-toggle {
  font-size: var(--font-size-14);
  padding-left: 0;
}

.collection-filter .facet-form {
  display: block;
}

@media (max-width: 1269px) {
  .collection-filter {
    position: fixed;
    top: 0 !important;
    right: 0;
    width: 100%;
    z-index: 9999;
    max-height: 100vh;
    overflow: auto;
    border-radius: 0px;
  }
}

.is-empty .cart-form {
  display: none;
}

.portal--modal .portal-inner {
  height: auto;
  max-width: 100.24rem;
  width: 100%;
}

@media(max-width: 1024px) {
  .portal--modal .portal-inner {
    max-width: 72.4rem
  }
}

.portal--modal.portal--modal-sm .portal-inner {
  height: auto;
  max-width: 50rem;
}

.loading-icon {
  height: 2rem;
}

.loading>span:not(.loading-icon) {
  display: none;
}

.map iframe {
  width: 100%;
}

/** compare qv **/

#quick-view-compare .portal-inner {
  width: calc(100% - var(--container-padding) * 2);
  max-width: calc(1520px - var(--container-padding) * 2);
  height: auto;
  bottom: var(--container-padding) !important;
  top: auto !important;
  overflow: initial;
  box-shadow: var(--shadow-l);
  position: absolute;
}

#PortalClose-quick-view {
  top: -5rem;
}

.compare-product__qv-show {
  grid-column: 4;
}

@media (max-width: 767px) {
  .compare-product__qv-show {
    grid-column: 1 / -1;
  }
}

.color-spot {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: var(--rounded-full);
  overflow: hidden;
  border: #fff;
  display: block;
}

.color-swatch {
  width: 40px;
  height: 40px;
  padding: 0;
  box-shadow: 0 0 0 1px var(--color-neutral-50),
    inset 0 0 0 2px var(--color-background);
  overflow: hidden;
}

.product-gallery {
  --thumbs-size: 8rem;
}

/* Mobile - Force bottom layout */
@media (max-width: 767px) {
  .product-gallery.layout-left .gallery-container {
    display: block !important;
  }

  .product-gallery.layout-left .embla-thumbs,
  .product-gallery.layout-left .gallery-main {
    order: initial !important;
    width: auto !important;
    flex: none !important;
  }

  .product-gallery.layout-left .gallery-thumbnails {
    margin-top: 0.75rem !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
  }

  .product-gallery.layout-left .gallery-thumbnails .embla__container {
    flex-direction: row !important;
    height: auto !important;
  }

  .product-gallery.layout-left .gallery-thumbnails .embla__slide {
    width: calc((100% - 3rem) / 4) !important;
  }
}

/* Desktop only - Left layout */
@media (min-width: 768px) {
  .product-gallery.layout-left .gallery-container {
    display: flex !important;
  }

  .product-gallery.layout-left .embla-thumbs {
    order: 1 !important;
    width: 8rem !important;
    flex-shrink: 0 !important;
    align-self: stretch;
    position: relative;
  }

  .product-gallery.layout-left .gallery-thumbnails .embla__viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: hidden;
  }

  .product-gallery.layout-left .gallery-main {
    order: 2 !important;
    flex: 1 !important;
  }

  .product-gallery.layout-left .gallery-thumbnails .embla__container {
    flex-direction: column !important;
    height: 100% !important;
  }

  .product-gallery.layout-left .gallery-thumbnails .embla__slide {
    width: 100% !important;
  }
}

/* Thumbnail styling improvements */
.gallery-thumbnails .embla__slide {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails .embla__slide:hover {
  opacity: 0.8;
}

.gallery-thumbnails .embla__slide.embla-thumbs__slide--selected {
  opacity: 1;
}

.gallery-thumbnails .embla__slide>div {
  border: 2px solid transparent;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.product-gallery--vertical .embla-thumbs .embla__container {
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-gallery--vertical .embla-thumbs .embla__container {
    touch-action: pan-x pinch-zoom;
    flex-direction: column;
  }

  .product-gallery--vertical .gallery-container {
    padding-left: calc(var(--thumbs-size) + var(--spacing-3));
  }

  #quick-view-product .gallery-container {
    padding-left: 0;
  }

  .product-gallery--vertical .embla-thumbs {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 2;
    width: max-content;
  }

  .product-gallery--vertical .embla-thumbs .embla__slide {
    margin: 0;
  }
}

.ega-badge-ctd__item {
  color: var(--color-flashsale-timer);
  background-color: var(--color-flashsale-timer-bg);
}

.stock-percent {
  background: var(--color-flashsale-process);
}

.flashsale-heading {
  font-weight: var(--font-headings-weight);
  font-family: var(--font-headings-family);
}

.product-flashsale-item {
  color: var(--color-flashsale);
  background: var(--color-flashsale-bg);
}

.flashsale-nav {
  border-radius: 12px;
}

.flashsale-background {
  --side-width: 120px;
  width: calc(1440px - var(--spacing-3) - 2 * var(--side-width));
}

.flashsale-heading:hover a {
  color: var(--color-flashsale-title-hover);
}

/* Dots của carousel Flash Sale nằm trên nền tối (--color-flashsale-bg) nên dot
   active (--color-primary) bị chìm. Dùng màu sáng để tách nền: dot mờ trắng,
   dot active theo màu chữ flashsale (mặc định #fff). */
.section-flashsale .embla__dot {
  background-color: rgba(255, 255, 255, 0.45);
}

.section-flashsale .embla__dot--selected {
  background-color: var(--color-flashsale-title, #fff);
}

@media (max-width: 976px) {
  .flashsale-background {
    --side-width: 120px;
    width: 100%;
  }

  .flashsale-nav {
    border-radius: 0;
    padding: 12px 12px;
    /* margin: 0 -12px; */
  }
}

@media (max-width: 767px) {
  .flashsale-nav {
    border-radius: 0;
    /* padding: 0;
    margin: 0 -12px; */
  }

  .flashsale-nav>ul {
    grid-template-columns: repeat(3, auto);
    white-space: nowrap;
    gap: var(--spacing-1);
  }
}

.product-detail .flashsale__countdown-label {
  display: none !important;
}

.product-flashsale-item .stock-countdown {
  width: 50%;
}

.product-flashsale-item .ega-badge-ctd__item {
  width: 3.2rem;
}

.product-flashsale-item .ega-badge-ctd__h {
  font-size: var(--font-size-h6);
  font-weight: 700;
}

.product-flashsale-item .ega-badge-ctd__item span {
  display: none;
}

.product-flashsale-item {
  margin-top: 1.2rem;
}

.product-flashsale-item .stock-label {
  font-size: var(--font-size-14);
  color: var(--color-neutral-300);
}

.product-flashsale-item .ega-badge-dot {
  display: block;
}

/* ============================================
   COUPON CARDS - MODERN DESIGN
   ============================================ */

.coupon-list {
  display: flex;
  flex-direction: column;
  grid-gap: 2rem;
  padding: 2rem;
  border-radius: 4px;
  max-height: 100%;
  overflow: auto;
  padding-bottom: calc(2rem + constant(safe-area-inset-bottom)) !important;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom)) !important;
}

.coupon-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  min-height: 16.8rem;
  position: relative;
  overflow: hidden;
  background: var(--coupon-active-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.coupon-ticket:hover {
  border-color: var(--color-foreground);
}

.coupon-item:focus-visible {
  outline: 2px solid var(--color-foreground);
  outline-offset: 2px;
}

.coupon-ticket--icon {
  grid-template-columns: 7.2rem minmax(0, 1fr);
}

.coupon-ticket__top {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
}

.coupon-ticket:not(.coupon-ticket--icon) .coupon-ticket__top {
  display: contents;
}

.coupon-ticket:not(.coupon-ticket--icon) .coupon-ticket__icon {
  display: none;
}

.coupon-ticket__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--coupon-badge-color);
}

.coupon-ticket__icon-img,
.coupon-ticket__icon-svg {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.coupon-ticket__info {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--coupon-active-bg);
  color: var(--coupon-active-desc);
}

.coupon-ticket__info svg {
  width: 1.4rem;
  height: 1.4rem;
}

.coupon-ticket__body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 2rem 0;
  min-width: 0;
}

.coupon-ticket--icon .coupon-ticket__body,
.coupon-ticket--icon .coupon-ticket__footer {
  grid-column: 2;
}

.coupon-ticket__title {
  margin: 0;
  padding-right: 3.4rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-28);
  font-weight: 500;
  line-height: 1.15;
  color: var(--coupon-active-title);
}

.coupon-ticket__desc {
  margin: 0;
  font-size: var(--font-size-14);
  line-height: 1.5;
  color: var(--coupon-active-desc);
}

.coupon-ticket__meta {
  margin: 0.2rem 0 0;
  font-size: var(--font-size-12);
  line-height: 1.6;
  color: var(--coupon-active-desc);
}

.coupon-ticket__meta:empty {
  display: none;
}

.coupon-ticket__meta .coupon-expiry:not(:empty) {
  display: block;
  margin-top: 0.2rem;
}

.coupon-ticket__footer {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  padding: 1.8rem 2rem 1.6rem;
}

.coupon-ticket__code {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 3.8rem;
  padding: 0 1.2rem;
  border: 1px solid var(--color-border);
  border-right: 0;
  background: var(--color-background-body);
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--color-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-ticket__code svg {
  display: none;
}

.coupon-ticket copy-button {
  display: flex;
}

.coupon-ticket .coupon-ticket__copy-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.8rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 0;
  background: var(--coupon-active-button-bg);
  color: var(--coupon-active-button-text);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: filter 0.2s ease;
  gap: 0.6rem;
  min-height: 0;
}

.coupon-ticket .coupon-ticket__copy-btn:hover {
  filter: brightness(0.9);
}

/* ── Expired state ── */
.coupon-ticket.expired {
  opacity: 0.6;
}

.coupon-ticket.expired .coupon-ticket__copy-btn,
.copy-button.coupon-expired {
  background: var(--coupon-active-desc);
  color: var(--coupon-active-bg);
  cursor: not-allowed;
}

.coupon-ticket.expired .coupon-ticket__copy-btn:hover {
  filter: none;
  transform: none;
}

/* Hạn sử dụng trong modal chi tiết mã */
.coupon-modal-expiry {
  font-size: var(--font-size-14);
  color: var(--coupon-active-desc, #666666);
  opacity: 0.85;
  /* kéo sát khối điều kiện phía trên (khối đó có margin-bottom riêng) */
  margin-top: -1.6rem;
}

/* ── Dải mã giảm giá ở trang chi tiết sản phẩm ── */
/* Layout viết bằng CSS thật (theme dùng CSS prebuilt, không compile Tailwind mới) */
.coupon-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.coupon-group-header {
  flex: 0 0 auto;
  color: var(--color-neutral-300);
}

.coupon-group-strip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Danh sách mã cuộn ngang khi thiếu chỗ - thay vì cắt cụt mã thành "EG…" */
.coupon-group-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Chừa chỗ cho mã phóng to 5% khi rê chuột: dải đã cắt phần thò ra ngoài (overflow-x kéo theo overflow-y).
     Lề âm bù lại để dải không lệch so với nhãn và nút xem thêm. */
  padding: 0.6rem 0.8rem;
  margin: -0.6rem -0.8rem;
  scroll-padding-inline: 0.8rem;
}

.coupon-group-list::-webkit-scrollbar {
  display: none;
}

.coupon-group-item-wrap {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Chip co theo độ dài mã, luôn hiện trọn mã */
.coupon-group-item {
  white-space: nowrap;
  transition: transform 0.2s ease;
  gap: 0;
  font-weight: 600;
  font-size: var(--font-size-12);
  line-height: 1.6;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border: 1px dashed var(--color-primary);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary);
}

.coupon-group-item .icon {
  display: none;
}

.coupon-group-item::before {
  content: none;
}

.coupon-group-item__code {
  font-weight: 600;
}

.coupon-group-more {
  flex: 0 0 auto;
}

.coupon-group-more>div {
  transition: transform 0.2s ease;
  padding: 0.3rem 0.8rem;
}

@media (hover: hover) {

  .coupon-group-item:hover,
  .coupon-group-more>div:hover {
    transform: scale(1.05);
  }
}

/* Mobile: nhãn xuống dòng riêng để dải mã được trọn chiều ngang.
   Hiện ĐỦ mã và cho cuộn ngang (mã cuối thò ra làm tín hiệu còn nội dung bên phải)
   thay vì ẩn từ mã thứ 3 - ẩn bớt khiến dải không còn gì tràn nên mất luôn cuộn. */
@media (max-width: 767px) {
  .coupon-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
}

/* Mã hết hạn ở dải mã trang chi tiết sản phẩm */
.coupon-group-item.expired {
  opacity: 0.6;
  text-decoration: line-through;
}

/* ── Carousel - equal height slides ── */
.section-coupons .embla {
  overflow: visible;
}

.section-coupons .embla__viewport {
  overflow-x: clip;
  overflow-y: visible;
}

.section-coupons .embla__container {
  display: flex;
  align-items: stretch;
  max-width: none;
  margin-inline: -0.8rem;
  padding-block: 0;
}

.section-coupons .embla__slide {
  display: flex;
  height: auto;
  width: 86.7%;
  flex: 0 0 86.7%;
  max-width: 86.7%;
  padding-inline: 0.8rem;
}

@media (min-width: 768px) {
  .section-coupons .embla__slide {
    width: 50%;
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .section-coupons .embla__slide {
    width: 40%;
    flex-basis: 40%;
    max-width: 40%;
  }
}

@media (min-width: 1280px) {
  .section-coupons .embla__slide {
    /* --coupon-items-per-row đặt từ settings (coupon_items_per_row), fallback 3 nếu section cũ chưa render inline var */
    width: calc(100% / var(--coupon-items-per-row, 3));
    flex-basis: calc(100% / var(--coupon-items-per-row, 3));
    max-width: calc(100% / var(--coupon-items-per-row, 3));
  }
}

.section-coupons .embla__slide coupon-item {
  display: flex;
  width: 100%;
  flex: 1;
}

.section-coupons .coupon-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.section-coupons .coupon-ticket {
  height: 100%;
}

@media (max-width: 767px) {
  .coupon-ticket__title {
    font-size: var(--font-size-24);
  }
}

/* ============================================
   COUPON MODAL - MODERN UI
   ============================================ */

.coupon-modal-inner {
  max-width: 500px;
  width: 100%;
}

.coupon-modal-content {
  position: relative;
}

/* Modal Badge */
.coupon-modal-badge {
  background: var(--coupon-badge-color);
  font-size: var(--font-size-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
}

/* Modal Title */
.coupon-modal-title {
  color: var(--color-foreground);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.coupon-modal-subtitle {
  color: var(--color-neutral-300);
  line-height: 1.5;
}

/* Code Display Box */
.coupon-modal-code-box {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  border: 2px dashed var(--coupon-badge-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coupon-modal-code-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.coupon-code-display {
  position: relative;
  z-index: 1;
}

.coupon-code-text {
  font-size: var(--font-size-h4);
  font-weight: 700;
  color: var(--coupon-badge-color);
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

/* Modal Description */
.coupon-desc {
  color: var(--color-foreground);
  line-height: 1.7;
  font-size: var(--font-size-14);
}

.coupon-desc ul,
.coupon-desc ol {
  margin-left: 18px;
  margin-bottom: 0;
  /* reset của theme bỏ list-style nên phải khai báo lại để có gạch đầu dòng */
  list-style: disc outside;
}

.coupon-desc li {
  margin-bottom: 4px;
  padding-left: 2px;
}

.coupon-desc li::marker {
  color: var(--coupon-badge-color);
}

/* Tiêu đề khối điều kiện trong modal */
.coupon-desc-title {
  font-size: var(--font-size-14);
  font-weight: 700;
  color: var(--coupon-active-title, #1a1a1a);
  margin-bottom: 0.6rem;
}

/* Modal Actions */
.coupon-modal-actions {
  gap: 12px;
}

.coupon-modal-actions .btn {
  font-size: var(--font-size-16);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.coupon-modal-actions .btn--secondary:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-200);
  transform: translateY(-1px);
}

.coupon-modal-actions .btn--primary {
  background: var(--coupon-active-button-bg, #1A1A1A);
  color: var(--coupon-active-button-text, #FFFFFF);
  border: none;
}

.coupon-modal-actions .btn--primary:hover {
  transform: translateY(-2px);
}

.coupon-modal-actions .icon-copy {
  font-size: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .coupon-modal-inner {
    max-width: 100%;
  }

  .coupon-modal-content {
    padding: 24px !important;
  }

  .coupon-modal-title {
    font-size: var(--font-size-h5) !important;
  }

  .coupon-code-text {
    font-size: var(--font-size-24);
    letter-spacing: 1px;
  }

  .coupon-modal-code-box {
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .product-flashsale-item .stock-countdown {
    width: auto;
    flex: 1 1 20rem;
    min-width: 0;
  }
}

.cart-drawer-related-products {
  max-width: calc(1440px - var(--dialog-max-width) - 1.6rem);
  padding-left: 0.8rem;
  margin: auto;
  width: calc(100% - var(--dialog-max-width) - 1.6rem);
}

.cart-drawer-related-products .card-product--vertical .item_product_main {
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background);
}

.cart-drawer-related-products .card-product--vertical .item_product_main > form {
  background: var(--color-background);
}

.cart-drawer-related-products .card-product--vertical .card-product__body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.cart-releated-products .card-product--horizontal .card-product__cta {
  display: block;
}

.card-product__option.selected .card-product__option-dot {
  box-shadow: none;
}

.card-product__option-dot-lg {
  width: 3.2rem;
  height: 3.2rem;
}

.card-product__option-dot-md {
  width: 2.6rem;
  height: 2.6rem;
}

.card-product__option-dot-sm {
  width: 1.4rem;
  height: 1.4rem;
}

.card-product__option-dot-sm {
  border-radius: 100%;
}

@media (max-width: 1024px) {
  .card-product__option-dot-lg {
    width: 2.4rem;
    height: 2.4rem;
  }

  .card-product__option-dot-md {
    width: 2rem;
    height: 2rem;
  }

  .card-product__option-dot-sm {
    width: 1.4rem;
    height: 1.4rem;
  }
}

.card-product--horizontal form {
  padding-inline: 0;
}

@media (max-width: 767px) {
  .card-product--horizontal form {
    padding-inline: 0;
  }

  .card-product--horizontal form {
    grid-template-columns: 8rem 1fr;
  }
}

.card-product .stock-countdown-inner {
  margin-bottom: 0;
}

.card-product .stock-countdown-inner .stock-label {
  margin-bottom: 0;
  color: var(--color-neutral-300);
}

.card-product .stock-progressbar,
.card-product .stock-percent {
  height: 0.5rem;
  border-radius: 0.3rem;
}

.card-product .stock-progressbar {
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .card-product .stock-countdown-inner {
    margin-bottom: 0;
  }
}

.slide-in-left {
  -webkit-animation: slide-in-left 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: slide-in-left 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
    transform: translateX(-1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
    transform: translateX(-1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  -webkit-animation: slide-in-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-in-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
    transform: translateX(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
    transform: translateX(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-bottom {
  -webkit-animation: slide-in-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-in-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

.scale-in-hor-left {
  -webkit-animation: scale-in-hor-left 0.4s ease-out both;
  animation: scale-in-hor-left 0.4s ease-out both;
}

@-webkit-keyframes scale-in-hor-left {
  0% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 1;
  }

  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 1;
  }
}

@keyframes scale-in-hor-left {
  0% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 0;
  }

  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 1;
  }
}

animating:not(.fade-in),
.animating:not(.fade-in)>* {
  opacity: 0;
}

.fade-in {
  -webkit-animation: fade-in 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.animation-reverse {
  animation-direction: reverse !important;
}

.cro-btn-item .cart-count {
  margin-right: -1.6rem;
  top: -0.4rem;
}

.cro-btns .cart-limit-note,
.cro-btns .cart-vat-note {
  display: none;
}

.cro-btns .cart-total {
  padding: 0;
  flex-direction: column;
}

.cro-btns .cart-submit button {
  padding: 0.8rem;
}

cart-form,
productform {
  transition: opacity 0.3s ease-out;
}

product-form.loading .product-cta {
  pointer-events: none;
  opacity: 0.5;
}

cart-form.loading,
product-form.loading .product-cta {
  pointer-events: none;
}

.cart-item.loading .cart-total-col .price,
cart-form.loading .cart-total .price {
  display: none;
}

cart-form.loading .cart-total .loading-icon,
.cart-item.loading .cart-total-col .loading-icon {
  display: inline-flex;
  color: var(--color-neutral-50);
  height: 1.6rem;
}

product-form.loading .product-cta .btn .loading-icon {
  display: none;
}

.variant-picker__input input.disabled~label {
  opacity: 0.5;
  position: relative;
  overflow: hidden;
}

.variant-picker__input input.disabled~label:after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--color-neutral-100);
  position: absolute;
  transform: rotate(200deg) scale(1.1);
  left: 0;
}

.variant-picker__input input.disabled~label.color-swatch:after {
  transform: rotate(220deg) scale(1.1);
}

.portal--modal .portal-close-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 999;
}

@media (max-width: 767px) {
  .portal--modal .portal-close-button {
    right: 0.8rem;
    top: 0.8rem;
  }
}

/* Add-to-cart success popup: close button sits INSIDE the modal's
   top-right corner (all viewports) so it never overlaps the page
   content behind the overlay. */
#add-to-cart-popup .portal-close-button {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rounded-full);
  background: transparent;
  color: var(--color-neutral-300);
  z-index: 10;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#add-to-cart-popup .portal-close-button:hover {
  color: var(--color-foreground);
  background: var(--color-neutral-50);
}

#add-to-cart-popup .portal-close-button:active {
  transform: scale(0.92);
}

/* keep the success title clear of the close button */
#add-to-cart-popup .popup-header {
  padding-right: 3.6rem;
}

/* Breadcrumbs: subtle full-width background strip.
   Override the color via --breadcrumb-bg if a different tone is wanted. */
.breadcrumbs {
  background-color: var(--breadcrumb-bg, var(--color-accent-soft));
  margin-bottom: var(--spacing-6);
}

.breadcrumbs .breadcrumb {
  padding-block: 1rem;
}

.sapo-product-reviews-badge .sapo-product-reviews-star i {
  font-size: var(--font-size-body) !important;
}

.bpr-success-popup .icon-checked {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 975px) {
  #product-review {
    display: block;
  }
}

@media (max-width: 767px) {
  .gallery-main {
    position: relative;
  }
}

.card-product__badges:has(.product-promo-tag) {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-product__badges .product-promo-tag {
  width: auto;
}

.card-product__title {
  font-size: var(--font-size-16);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .card-product__title {
    font-size: var(--font-size-14);
  }
}

.card-product--vertical .card-product__title {
  margin-top: 0.4rem;
}

.cro-btns {
  display: none;
}

@media (max-width: 767px) {
  .cro-btns:has(.cro-btn-item) {
    display: block;
  }
}

.promo-box__body p {
  margin: 0;
}

.promo-box__body ol,
.promo-box__body ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--spacing-2);
}

@media (max-width: 992px) {

  .promo-box__body ol,
  .promo-box__body ul {
    grid-template-columns: 1fr;
  }
}

/* ===== Hộp ưu đãi trang sản phẩm: tiêu đề chữ hoa nhỏ, danh sách không khung ===== */
/* Selector element+class để thắng specificity của .promo-box-group trong components.css */
promo-box.promo-box-group {
  display: block;
  position: relative;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.promo-box-group .promo-box__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 1.8rem;
  padding: 0;
  margin-bottom: 0.8rem;
  background: transparent;
  color: var(--color-neutral-300);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-box-group .promo-box__header .icon,
.promo-box-group .promo-box__header svg {
  color: var(--color-neutral-300);
}

.promo-box-group .promo-box__body {
  display: grid;
  gap: 0;
  padding: 0;
  background: transparent;
}

.promo-box-group .promo-box__body-item {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.8rem;
  font-size: var(--font-size-14);
  line-height: 1.6;
}

.promo-box-group .promo-box__body-item::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* Link "Sao chép" đỏ inline sinh từ shortcode [coupon="..."] */
.copy-button--inline {
  display: inline;
}

.copy-button--inline .copy-button {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.copy-button--inline .copy-button:hover {
  text-decoration: underline;
}

/* Trạng thái đã copy (class 'copied' do <copy-button> trong main.js thêm vào) */
.copy-button--inline.copied .copy-button {
  color: var(--color-neutral-400);
  text-decoration: none;
}

.btn.coupon-expired {
  color: var(--color-neutral-400);
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-50);
  filter: none;
  opacity: 1;
}

.flashsale-ended .tab-content {
  display: none;
}

.flashsale-ended .flashsale-end-message {
  display: block;
  padding: var(--spacing-6) var(--spacing-2);
}

.flashsale-ended .flashsale-nav {
  display: none;
}

.heading-bar {
  position: relative;
}

.heading-bar a:hover {
  opacity: var(--color-link);
}

.heading {
  font-size: var(--font-size-section-title);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  width: auto;
  display: inline-block;
  font-weight: var(--font-headings-weight);
  font-family: var(--font-headings-family);
}

.heading-bar .heading {
  text-wrap: wrap;
}

.heading-bar .heading .heading-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.section-flashsale--single .flashsale__countdown-timer {
  flex-direction: row;
}

.heading:not([class*="mb"]) {
  margin-bottom: 2.8rem;
}

.heading span {
  color: var(--color-highlight);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.nw {
  white-space: nowrap;
}

.top-banner__link span:not(.top-banner__message),
.hero-banner__heading span,
.coll-label span,
.coll-label small {
  white-space: nowrap;
}

@media (min-width: 769px) {
  .campaign-hero__title span {
    white-space: nowrap;
  }
}

/* Chủ shop nhập chữ thường (không cần bọc span): trình duyệt tự cân độ dài các dòng để tránh một chữ lẻ ở dòng cuối */
.top-banner__link,
.coll-label {
  text-wrap: balance;
}

/* Sub-headline dùng chung cho mọi section (qua snippet 'heading' param `subtitle`,
   hoặc gắn thủ công ở section không dùng snippet chung như flashsale) - không
   gạch chân, đồng nhất 1 kiểu cho toàn site. */
.heading-subtitle {
  margin: 0.6rem 0 2.8rem;
  font-size: var(--font-size-16);
  line-height: 1.55;
  color: var(--color-neutral-300);
  text-decoration: none;
}

.heading:has(+ .heading-subtitle) {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .heading-subtitle {
    font-size: var(--font-size-14);
    margin-bottom: 1.8rem;
  }

  .heading:not([class*="mb"]) {
    margin-bottom: 1.8rem;
  }

  .section-flashsale--single .flashsale__countdown-timer {
    flex-direction: column;
  }

  .section-flashsale .flashsale-heading {
    font-size: var(--font-size-36);
  }
}

.heading:has(.heading-icon) {
  padding-right: 45px;
}



@media (max-width: 767px) {
  .heading {
    margin-bottom: 1.2rem;
  }
}



.card-article__title {
  min-height: calc(var(--font-size-body) * 1.5 * 2);
}

.section-main-cart .cart-summary-info {
  position: relative;
}

.section-main-cart .cart-summary-info:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0.8rem 2.4rem 0px color-mix(in srgb, var(--color-primary) 15%, transparent);
  top: 0;
  left: 0;
  opacity: 0.1;
  z-index: -1;
}

@media (max-width: 976px) {
  .header-search {
    display: none;
  }

  .search-opener {
    display: block;
  }
}

.landing-page-section.section-flashsale:before,
.landing-page-section.section-flashsale:after {
  content: none;
}

.product-flashsale-item:has(.not-started),
.product-flashsale-item:has(.ended) {
  display: none;
}

.product-flashsale-item:has(.active.ongoing)~.product-flashsale-item {
  display: none;
}

.compare-opener {
  position: fixed;
  bottom: 60px;
  display: block;
  top: auto !important;
  left: 25px;
  transform: translateY(-50%) scale(1);
  z-index: 999;
}

/* Nút "So sánh" nổi (bottom-left): markup là <div class="btn btn--secondary">, không phải
   <button> - rule cũ nhắm `button` nên không áp, khiến nút mất nền + đổ bóng, bị chìm vào
   ảnh SP khi cuộn. Nhắm đúng .btn, ép nền đặc + viền + bóng để luôn nổi trên nội dung. */
.compare-opener button,
.compare-opener .btn {
  background: var(--color-background);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.2);
}

.compare-opener.hidden {
  transform: translateY(-50%) scale(0);
  display: none;
}

/* Thanh CRO mobile - nút thêm vào giỏ: giảm padding trái/phải để
   nhường chỗ cho chữ, tránh bị cắt (…). */
.cro-btns .cro-btn-item--addtocart .btn {
  padding-inline: 1rem;
}

#error-modal {
  --dialog-index: 4000;
}

#error-modal .portal-inner {
  max-width: 30rem;
}

.content {
  word-break: break-word;
}

.section-products:has(.no-products) {
  display: none !important;
}

.section-brand__container {
  /* Không đệm trên dưới: khoảng cách tới khối kề đã do thiết lập khoảng cách của khối lo, đệm thêm làm dải logo
     cách hai khối bên cạnh xa hơn nhịp chung */
  padding: 0;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-brand .section-card {
  border-block: 1px solid var(--color-neutral-50);
  padding-block: 2.6rem;
}

/* Slot cố định cho logo thương hiệu: giữ chỗ trước khi ảnh tải xong (chống layout shift).
   Ảnh không còn thuộc tính width/height vì mỗi logo có tỉ lệ khác nhau. */
.section-brand .scrolling-promotion__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 48px;
}

.section-brand .scrolling-promotion__item img {
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .section-brand .scrolling-promotion__item a {
    width: 110px;
    height: 36px;
  }

  .section-brand .scrolling-promotion__item img {
    max-height: 36px;
    max-width: 110px;
  }
}

footer .btn {
  color: var(--color-footer-text);
}

.footer-copyright {
  text-wrap: balance;
}

.card-product--vertical:after {
  opacity: 0.7;
}

.ega-badge-ctd__h {
  position: relative;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.ega-badge-ctd--transition::before {
  transition: all 1s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.ega-badge-ctd--animate:before {
  position: relative;
  content: "00\a 01\a 02\a 03\a 04\a 05\a 06\a 07\a 08\a 09\a 10\a 11\a 12\a 13\a 14\a 15\a 16\a 17\a 18\a 19\a 20\a 21\a 22\a 23\a 24\a 25\a 26\a 27\a 28\a 29\a 30\a 31\a 32\a 33\a 34\a 35\a 36\a 37\a 38\a 39\a 40\a 41\a 42\a 43\a 44\a 45\a 46\a 47\a 48\a 49\a 50\a 51\a 52\a 53\a 54\a 55\a 56\a 57\a 58\a 59\a";
  white-space: pre;
  top: calc(var(--value) * -1em);
  text-align: center;
}

.spl-pane iframe {
  width: 90%;
  height: 90%;
}

#contact_map iframe {
  height: 32rem;
}

.ae-lang-selected a {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

img.ae-icon-left {
  object-fit: contain;
  width: 16px;
}

.ae-type-dropdown {
  display: flex;
  align-items: center;
}

.ae-lang-selected a .ae-caret {
  width: auto;
}

.ae-lang-selected a span {
  display: none;
}

.ae-box-lang a span {
  display: inline;
}

#desktop-lang {
  min-width: 50px;
}

.prose :where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
  display: inline-block;
}

.no-products {
  display: none;
}

.no-products-content .embla__buttons,
.no-products-content .embla__dots {
  display: none;
}

.sapo-product-reviews-badge:empty {
  display: none;
}

.product-cta .btn {
  min-height: 5rem;
  border-radius: var(--rounded-full);
}

.btn-live {
  border-radius: 99.9rem;
  padding: 0.3rem 1rem;
  color: var(--header-live-color);
  border: 1.5px solid var(--header-live-color);
  background: transparent;
  outline: none;
  position: relative;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
  max-width: 130px;
  cursor: pointer !important;
  overflow: hidden;
  font-size: var(--font-size-14);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-live:after {
  content: " ";
  background: var(--header-live-color);
  width: 0.7rem;
  height: 0.7rem;
  position: static;
  border-radius: 50%;
  animation: pulse-red 1.65s linear infinite;
  order: -1;
  flex: none;
}

@media (max-width: 767px) {
  .addThis_listSharing .btn-live {
    padding: 0;
    width: 40px;
    font-size: var(--font-size-12);
    height: 40px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: none;
  }

  .btn-live:after {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
  }
}

@keyframes pulselive {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.3;
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 var(--header-live-color);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
  }

  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

/** end naviagtion **/

.modal-live {
  position: fixed;
  overflow: hidden;
  max-width: 45%;
  max-height: 75%;
  bottom: 5px;
  top: auto !important;
  left: 50%;
  z-index: 9999;
  transform: translateY(calc(100% + 5px)) translateX(-50%);
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

@media (max-width: 767px) {
  .modal-live {
    display: none !important;
  }
}

.modal-live.opened {
  transform: translateY(0) translateX(-50%);
}

/* Nút đóng phải NẰM TRONG hộp video và luôn hiện:
   - đặt ở ngoài (right: -40px) thì trên màn hình thấp/hẹp nút bị đẩy khỏi vùng nhìn thấy;
   - opacity: 0 chờ :hover thì trên thiết bị cảm ứng không bao giờ hiện được. */
.modal-live .btn-close--live {
  position: absolute;
  right: 6px;
  top: 6px;
  cursor: pointer;
  opacity: 1;
  z-index: 2;
  line-height: 0;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.modal-live iframe {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: 100%;
}

.modal-live .modal-live--inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn--soldout:not(.hidden) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.price {
  font-family: var(--font-body-family);
}

.compare-price {
  font-family: var(--font-body-family);
}

.aspect-custom {
  aspect-ratio: var(--aspect-ratio);
}

cart-form .product-list>div {
  min-width: 270px;
}

.link-underline {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 300ms, color 300ms, width 300ms;
  padding-block-end: 3px;
}

.link-underline:hover {
  background-size: 100% 1px;
}

.main-product {
  --header-offset: 1.2rem;
  background-color: var(--color-background-body);
  /* Guard against horizontal overflow leaking extra empty space on the right
     of the product detail. `clip` (with the default overflow-y:visible) does
     NOT create a scroll container, so the sticky gallery/info still work. */
  overflow-x: clip;
}

/* Layout "Thu gọn" trang sản phẩm (product_main_layout == 'box').
   Phải HẸP HƠN lòng .container (max 1440px, padding 6rem 2 bên → ~1320px ở ≥1440px)
   thì mới thấy khác "Full width"; để 140rem (1400px) như cũ luôn >= lòng container
   nên 2 kiểu render y hệt. 120rem (1200px) canh giữa (mx-auto) tạo khác biệt rõ. */
.product-detail-info-box-width {
  max-width: 120rem;
  width: 100%;
}

/* Tu 768px tro len: bo padding ngang cua gallery de mep noi dung khoi chi tiet
   san pham thang hang voi banner + breadcrumb ben tren.
   Nguong 768px khop dung voi noi `md:px-3` bat dau ap; duoi 768px class do
   khong ap nen padding von da bang 0, khong can dung toi.
   Scope toi .main-product (trang san pham chinh) vi class .product-detail con
   duoc dung boi featured-product -> quickview va shortcode-egaproduct; nhung
   noi do nam trong modal/shortcode co padding rieng, khong duoc dinh toi. */
@media (min-width: 768px) {
  .main-product .product-detail .product-gallery {
    padding-left: 0;
    padding-right: 0;
  }
}

.social-share-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.product-form-wrapper .social-share-group {
  margin-top: 3.8rem;
  padding: 0;
}

.product-form-wrapper .social-share-group .uppercase {
  font-size: var(--font-size-14);
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  color: var(--color-neutral-300);
}

.product-form-wrapper .social-share-group .share-group__list {
  gap: 1rem;
}

.header-pinned .main-product {
  --header-offset: calc(var(--header-height) - 1.2rem);
}

.peer:checked~.peer-checked\:bg-\[var\(--color-button-primary\)\] {
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

.card-product .price {
  font-size: var(--font-size-16);
  font-weight: 600;
  line-height: 1.6;
}

.card-product .compare-price {
  font-size: var(--font-size-14);
}

@media (max-width: 767px) {
  .card-product .price {
    font-size: var(--font-size-14);
  }

  .card-product .compare-price {
    font-size: var(--font-size-12);
  }
}

/* ===== Ảnh gắn sản phẩm ===== */
.section-bundle {
  --bundle-muted: color-mix(in srgb, var(--bundle-color) 70%, var(--bundle-bg));
  --bundle-line: color-mix(in srgb, var(--bundle-color) 18%, var(--bundle-bg));
  background: var(--bundle-bg);
  color: var(--bundle-color);
}

.section-bundle .bundle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1280px) {
  .section-bundle .bundle-grid {
    grid-template-columns: minmax(0, 1fr) 50rem;
    gap: 4rem;
  }
}

@media (min-width: 1440px) {
  .section-bundle .bundle-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.section-bundle .bundle-image picture img {
  display: block;
  width: 100%;
  aspect-ratio: var(--bundle-aspect, 807 / 576);
  object-fit: cover;
}

.section-bundle product-bundle:not([data-design-mode]) .hot-spot-item {
  left: calc(50% + (var(--posx-des) - 50%) / var(--bundle-crop, 1));
}

@media (min-width: 1280px) and (max-width: 1359px) {
  .section-bundle {
    --bundle-aspect: 117 / 100;
    --bundle-crop: 0.8351;
  }
}

@media (min-width: 1360px) and (max-width: 1439px) {
  .section-bundle {
    --bundle-aspect: 130 / 100;
    --bundle-crop: 0.9279;
  }
}

.section-bundle .bundle-aside .heading-bar {
  text-align: left;
}

.section-bundle .bundle-aside .heading-eyebrow {
  color: var(--color-secondary);
}

.section-bundle .bundle-aside .heading {
  margin-bottom: 1.2rem;
  font-size: var(--font-size-h2);
  line-height: 1.15;
  color: var(--bundle-color);
}

.section-bundle .bundle-aside .heading span {
  color: var(--color-secondary);
}

.section-bundle .bundle-aside .heading-subtitle {
  margin: 0 0 1.8rem;
  font-size: var(--font-size-16);
  color: var(--bundle-muted);
}

.section-bundle .hot-spot-summary > span {
  width: 3rem;
  height: 3rem;
}

.section-bundle .hot-spot-summary .animate-ping {
  pointer-events: none;
}

.section-bundle .hot-spot-summary::after {
  content: "";
  position: absolute;
  inset: -0.7rem;
}

.section-bundle .hot-spot-summary > span > span:last-child {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-14);
  font-weight: 700;
  color: var(--color-foreground);
  box-shadow: 0 0 0 0.6rem rgba(255, 255, 255, 0.3);
}

.section-bundle product-bundle:not([data-design-mode]) .hot-spot-item {
  margin: -1.5rem 0 0 -1.5rem;
}

.bundle-pop {
  display: none;
  position: absolute;
  z-index: 20;
  left: calc(var(--pop-x) + 2.4rem);
  top: calc(var(--pop-y) - 3.4rem);
  width: 25rem;
  background: #fff;
  color: var(--color-foreground);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.2);
  font-size: var(--font-size-14);
}

.bundle-pop--flip {
  left: auto;
  right: calc(100% - var(--pop-x) + 2.4rem);
}

.bundle-pop.is-open {
  display: block;
}

.bundle-pop__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem 0.8rem 0.8rem;
}

.bundle-pop__link img {
  flex: none;
  width: 5.2rem;
  height: 5.2rem;
  object-fit: contain;
  background: var(--color-neutral-50);
}

.bundle-pop__text {
  flex: 1;
  min-width: 0;
}

.bundle-pop__text b {
  display: block;
  font-weight: 600;
}

.bundle-pop__link .icon {
  flex: none;
}

@media (max-width: 767px) {
  .section-bundle .bundle-image {
    overflow: visible;
  }

  .bundle-pop,
  .bundle-pop--flip {
    left: 0;
    right: 0;
    top: calc(100% + 0.8rem);
    width: auto;
  }
}

.product-bundle-grid-wrapper {
  width: 100%;
  max-width: 100%;
}

.product-bundle-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-bundle-card {
  border-bottom: 1px solid var(--bundle-line);
  transition: opacity 0.3s ease;
}

@media (min-width: 1025px) {
  .product-bundle-grid:has(.active) .product-bundle-card:not(.active) {
    opacity: 0.45;
  }
}

.card-product-bundle .item_product_main {
  border: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
}

.card-product-bundle .item_product_main > form {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 8rem 4.4rem;
  align-items: center;
  column-gap: 1.4rem;
  padding: 1.2rem 0;
  border-radius: 0;
  overflow: visible;
}

.card-product-bundle .card-product__image,
.card-product-bundle .card-product__vendor {
  display: none;
}

.card-product-bundle .card-product__body {
  display: contents;
}

.bundle-row__num {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--color-secondary);
  border-radius: 50%;
  font-size: var(--font-size-12);
  font-weight: 700;
  line-height: 1;
  color: var(--color-secondary);
}

.card-product-bundle .card-product__body > a {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.card-product-bundle .card-product__title {
  font-size: var(--font-size-16);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bundle-color);
}

.card-product-bundle .card-product__price {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}

.card-product-bundle .card-product__price .flex {
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.card-product-bundle .card-product__price .price {
  font-size: var(--font-size-14);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bundle-muted);
}

.card-product-bundle .card-product__price .compare-price {
  font-size: var(--font-size-12);
  line-height: 1.6;
  color: var(--bundle-muted);
}

.card-product-bundle .card-product__body > .mt-auto {
  grid-column: 2;
  grid-row: 2;
}

.card-product-bundle .card-product__body > .mt-auto:has(select) {
  margin-top: 0.6rem;
}

.card-product-bundle .product-selected {
  width: 9rem;
  padding: 0.4rem 2.4rem 0.4rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--bundle-color) 30%, transparent);
  border-radius: var(--radius-btn, 0);
  background-color: transparent;
  font-size: var(--font-size-12);
  text-overflow: ellipsis;
  color: var(--bundle-color);
}

.card-product-bundle .product-selected option {
  background: var(--bundle-bg);
  color: var(--bundle-color);
}

@media (max-width: 768px) {
  .card-product-bundle .product-selected {
    width: 16rem;
    min-height: 4.4rem;
    font-size: var(--font-size-14);
  }
}

.card-product-bundle .card-product__body > div:last-child:not(.mt-auto):not(.card-product__price) {
  grid-column: 2 / span 2;
  grid-row: 2;
  margin: 0.4rem 0 0;
  background: none;
  padding: 0;
  font-size: var(--font-size-12);
  text-align: left;
  color: var(--bundle-muted);
}

.card-product-bundle .product-selected {
  max-width: 100%;
}

@media (min-width: 1280px) {
  .card-product-bundle .item_product_main > form {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto 8rem 4.4rem;
  }

  .card-product-bundle .card-product__body > .mt-auto {
    grid-column: 3;
    grid-row: 1;
  }

  .card-product-bundle .card-product__body > .mt-auto:has(select) {
    margin-top: 0;
  }

  .card-product-bundle .card-product__price {
    grid-column: 4;
  }

  .card-product-bundle .bundle-row__add {
    grid-column: 5;
  }

  .card-product-bundle .card-product__body > div:last-child:not(.mt-auto):not(.card-product__price) {
    grid-column: 2 / span 3;
  }
}

.bundle-row__add {
  position: relative;
  grid-row: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  grid-column: 4;
  width: 4.4rem;
  height: 4.4rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  color: var(--bundle-color);
}

.bundle-row__add::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--bundle-color) 30%, transparent);
  border-radius: 50%;
  transition: border-color 0.15s;
}

.bundle-row__add:hover:not([disabled]),
.bundle-row__add:focus-visible {
  color: var(--color-secondary);
}

.bundle-row__add:hover:not([disabled])::before,
.bundle-row__add:focus-visible::before {
  border-color: var(--color-secondary);
}

.bundle-row__add[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.bundle-row__add.loading {
  opacity: 0.6;
  pointer-events: none;
}

.section-bundle .bundle-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
  margin-top: 2.2rem;
}

.section-bundle .bundle-sum__total {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.35;
  color: var(--bundle-muted);
}

.section-bundle .bundle-sum__amount {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h4);
  font-weight: 500;
  line-height: 1.1;
  color: var(--bundle-color);
}

.section-bundle .add-products-bundle {
  gap: 0.8rem;
  height: 4.8rem;
  padding: 0 2.8rem;
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-foreground);
  font-size: var(--font-size-14);
  letter-spacing: 0.04em;
}

.section-bundle .add-products-bundle[disabled] {
  opacity: 0.5;
}

.section-bundle .bundle-sum__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--bundle-color);
}

.tab-btn {
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--color-primary);
  font-weight: 700;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Pill/Segmented Control Tabs */
.tabs-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

/* Pill/Segmented Control Tabs V2 - Premium Minimalist */
.pill-style-v2 {
  background: transparent;
  padding: 0;
  gap: 6px;
  display: inline-flex;
}

.tab-btn-v2 {
  padding: 8px 16px;
  border: 1px solid var(--color-line-warm);
  border-radius: var(--rounded-full);
  background: var(--color-background);
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-price-compare);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.tab-btn-v2.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-button-primary-text);
}

.tab-btn-v2:not(.active):hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Readmore Ghost - Less Intrusive */
.readmore-btn-ghost {
  background: #fff;
  color: var(--color-foreground);
  border: 1px solid #e9ecef;
  padding: 10px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--font-size-14);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.readmore-btn-ghost:hover {
  background: #f8f9fa;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-readmore.is-expanded .readmore-btn-ghost {
  color: var(--color-foreground);
}

.product-readmore.is-expanded .readmore-btn-ghost:hover {
  color: var(--color-primary);
}


.heading-tabs.pill-style {
  display: inline-flex;
  background: #f1f3f5;
  padding: 6px;
  border-radius: 14px;
  gap: 4px;
}

@media (min-width: 768px) {
  .tabs-wrapper {
    overflow-x: visible;
  }
  .heading-tabs.pill-style {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
}

.pill-style .tab-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: var(--font-size-14);
  font-weight: 700;
  color: #495057;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  opacity: 1;
}

.pill-style .tab-btn::after {
  display: none;
  /* Remove underline */
}

.pill-style .tab-btn:hover {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.03);
}

.pill-style .tab-btn.active {
  background: #ffffff !important;
  color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Product Readmore Styling - Floating Pill */
.product-readmore {
  position: relative;
  transition: all 0.3s ease;
}

.product-readmore .content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clamp + fade ONLY when JS detects overflow (.is-clamped). Default = full content, no fade. */
.product-readmore.is-clamped .content {
  overflow: hidden;
  max-height: var(--rm-height, 800px);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.product-readmore.is-clamped.is-expanded .content {
  max-height: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.readmore-btn-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  justify-content: center;
  padding-bottom: 0;
  z-index: 10;
  background: linear-gradient(transparent, #fff 80%);
  height: 80px;
  align-items: flex-end;
  pointer-events: none;
  /* display managed by JS via Tailwind flex/hidden classes */
}

/* When expanded, the button wrapper shouldn't cover content with gradient */
.product-readmore.is-expanded .readmore-btn-wrapper {
  position: relative;
  height: auto;
  background: none;
  padding-top: 20px;
  pointer-events: auto;
}

.readmore-btn {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--font-size-14);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--color-primary) 30%, transparent);
  border: none;
  display: flex !important;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
}

.readmore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 40%, transparent);
  filter: brightness(1.1);
}

.product-readmore.is-expanded .readmore-btn {
  background: #f8fafc;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  box-shadow: none;
}


.tab-content {
  animation: tabSlideUp 0.4s ease;
}

/* Inline guide images (chi tiết thành phần / hướng dẫn giặt sấy / chọn size) - always responsive,
   since an unstyled <img> in the product description would break layout at native pixel size.
   Scope: exclude images inside .not-prose wrappers (egacate/egaproduct/featured-product
   shortcode carousels) so embedded product-card images keep their own aspect/positioning
   instead of being forced full-width with a 20px vertical margin (empty band bug). */
.content img:not(.not-prose *) {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
}

@keyframes tabSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Mobile optimizations for tabs */
@media (max-width: 767px) {
  .tabs-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.scrolling-promotion {
  display: flex;
  overflow: hidden;
}

.scrolling-promotion__container {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  align-items: center;
}

.scrolling-promotion__container:hover .scrolling-promotion--animated {
  animation-play-state: paused;
}

.scrolling-promotion__item {
  position: relative;
  padding: 0 32px;
}

@media (max-width: 767px) {
  .scrolling-promotion__item {
    padding: 0 20px;
  }
}

@media (min-width: 768px) {

  .scrolling-promotion__item img,
  .scrolling-promotion__item svg {
    height: var(--image-height, 100%);
  }
}

.scrolling-promotion--animated {
  animation: scroll var(--animate-duration, 12s) linear infinite;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-duration: var(--animate-duration, 12s);
  animation-play-state: running;
  will-change: transform;
}

.scrolling-promotion--ltr.scrolling-promotion--animated {
  animation-direction: reverse;
}

.scrolling-promotion--paused.scrolling-promotion--animated,
.scrolling-promotion--hover-pause:hover .scrolling-promotion--animated {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.card-product,
.product-gallery {
  --aspect-ratio: var(--product-aspect-ratio, 1 / 1);
}

.card-article .aspect-custom,
.card-article__image .aspect-custom {
  --aspect-ratio: var(--blogs-aspect-ratio, 1 / 1);
}

@media (max-width: 767px) {
  .section-hot-spots .hot-spot-item {
    left: var(--posx-mb);
    top: var(--posy-mb);
  }

  .hot-spot-item[open] {
    z-index: 9000;
  }

  .hot-spot-overlay {
    top: 0 !important;
  }

  .hot-spot-content.fixed {
    top: auto !important;
    left: 0 !important;
  }
}



.btn.loading .btn-label {
  display: none
}

.embla__container.product-list {
  margin-left: -2rem !important;
}

.embla__container.product-list>div {
  padding-left: 2rem !important;
}

@media (max-width: 767px) {
  .embla__container.product-list {
    margin-left: -0.8rem !important;
  }

  .embla__container.product-list>div {
    padding-left: 0.8rem !important;
  }
}

.section-flashsale .flashsale-heading {
  font-size: var(--font-size-36);
  line-height: 1.1;
  font-weight: 600;
  font-style: normal;
}

/* Size Chart Modal Custom Styles */
.size-chart-modal {
  max-width: 800px !important;
}

#size-chart-modal .measurement-input-group input[type="number"] {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#size-chart-modal .measurement-input-group input[type="number"]:focus {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#size-chart-modal .size-chart-table-wrapper table {
  min-width: 100%;
  border: 1px solid var(--color-neutral-50);
  border-bottom: none;
}

#size-chart-modal .size-chart-table-wrapper table th {
  font-weight: 600;
  white-space: nowrap;
}

#size-chart-modal .size-chart-table-wrapper table td:first-child {
  border-left: none;
}

#size-chart-modal .size-chart-table-wrapper table td {
  white-space: nowrap;
  border-left: 1px solid var(--color-neutral-50);
  border-bottom: 1px solid var(--color-neutral-50);
}

#size-chart-modal #size-recommendation {
  animation: slideDown 0.3s ease-out;
}

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

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

#size-chart-modal .btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-neutral-30, #d1d5db);
  color: var(--color-text, #1f2937);
}

#size-chart-modal .btn-outline:hover {
  background-color: var(--color-neutral-5, #f9fafb);
}

#size-chart-modal select#product-type-selector,
#product-type-selector-calculator {
  cursor: pointer;
  transition: border-color 0.2s ease;
  line-height: 1.3;
}

#size-chart-modal select#product-type-selector:hover {
  border-color: var(--color-primary, #2563eb);
}

/* Ensure smooth scrolling in modal */
#size-chart-modal .animation {
  -webkit-overflow-scrolling: touch;
}

#size-chart-modal .overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Warning and Error states for recommendation box */
#size-chart-modal .bg-warning-light {
  background-color: #fef3c7;
}

#size-chart-modal .border-warning {
  border-color: #f59e0b;
}

#size-chart-modal .text-warning {
  color: #f59e0b;
}

#size-chart-modal .bg-error-light {
  background-color: #fee2e2;
}

#size-chart-modal .border-error {
  border-color: #ef4444;
}

#size-chart-modal .text-error {
  color: #ef4444;
}

#size-chart-modal .bg-info-light {
  background-color: #dbeafe;
}

#size-chart-modal .border-info {
  border-color: var(--color-primary);
}

#size-chart-modal .text-info {
  color: var(--color-primary);
}

/* Input validation states */
#size-chart-modal .measurement-input-group input.border-error {
  border-color: var(--color-error);
  background-color: var(--color-error-light);
}

#size-chart-modal .measurement-input-group input.border-error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(var(--color-error), 0.1);
}

#size-chart-modal .measurement-input-group input.border-success {
  border-color: var(--color-success);
  background-color: var(--color-success-light);
}

#size-chart-modal .measurement-input-group input.border-success:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(var(--color-success), 0.1);
}

#size-chart-modal .input-error-message {
  display: block;
}

/* Default state styling */
#size-chart-modal .text-neutral-60 {
  color: var(--color-neutral-60);
}

#size-chart-modal .icon-info-circle {
  color: var(--color-neutral-60);
}

/* Modal scrolling optimization */
#size-chart-modal .animation {
  -webkit-overflow-scrolling: touch;
}

#size-chart-modal .flex-1.overflow-y-auto {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Mobile optimization */
@media (max-width: 768px) {
  #size-chart-modal .flex-1.overflow-y-auto {
    max-height: calc(95vh - 300px) !important;
  }
}

/* Modern UI Enhancements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes bounceSubtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.animate-bounce-subtle {
  animation: bounceSubtle 2s ease-in-out infinite;
}

/* Enhanced input styling */
#size-chart-modal input[type="number"] {
  transition: all 0.2s ease;
}

#size-chart-modal input[type="number"]:hover {
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 5%, transparent);
}

#size-chart-modal input[type="number"]:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* Table styling enhancements */
#size-chart-modal table {
  border-collapse: separate;
  border-spacing: 0;
}

#size-chart-modal table th {
  background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

#size-chart-modal table td {
  padding: 0.875rem 1rem;
  transition: background-color 0.15s ease;
}

#size-chart-modal table tbody tr:hover td {
  background-color: color-mix(in srgb, var(--color-primary) 2%, transparent);
}

/* Button hover effects */
#size-chart-modal .btn-primary {
  position: relative;
  overflow: hidden;
}

#size-chart-modal .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#size-chart-modal .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Smooth scrollbar */
#size-chart-modal .overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  border-radius: 10px;
  transition: background 0.2s;
}

#size-chart-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9ca3af, #6b7280);
}

/* Tabs UI Styling */
#size-chart-modal .tab-button {
  position: relative;
}

#size-chart-modal .tab-button.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

#size-chart-modal .tab-button:not(.active):hover {
  background: #f9fafb;
}

#size-chart-modal .tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

#size-chart-modal .tab-content.active {
  display: block;
}

.image_order {
  width: 64px !important;
}

/* ============================================
   GENT THEME - TYPOGRAPHY
   ============================================ */

/* Heading tags and generic titles default to the BODY font.
   Only section headlines (allowlist below) keep the heading font.
   (.price/.compare-price already forced to body font above.) */
h1,
h2,
h3,
h4,
h5,
h6,
.title {
  font-family: var(--font-body-family);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
}

/* Section headlines - the only elements that use the heading font.
   Placed AFTER the body-default rule so it wins on equal specificity
   (e.g. .fs-luxury__title.flashsale-heading). */
.heading,
.section-heading,
.flashsale-heading,
.main-product .product-title h1 {
  font-family: var(--font-headings-family);
  font-weight: var(--font-headings-weight);
  letter-spacing: normal;
  line-height: 1.2;
  text-wrap: wrap;
}

.main-product .product-title h1 {
  font-size: var(--font-size-h3);
  line-height: 1.2;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .main-product .product-title h1 {
    font-size: var(--font-size-24);
  }
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-36);
}

h3 {
  font-size: var(--font-size-h4);
}

h4 {
  font-size: var(--font-size-24);
}

/* ============================================
   RICH-TEXT (.prose) BRAND THEMING
   Single source of truth for product description / page / blog / collection
   rich text. Overrides Tailwind Typography's default palette (global.css
   .prose block) with theme tokens instead of a hardcoded hex.
   ============================================ */
.prose {
  --tw-prose-body: var(--color-foreground);
  --tw-prose-headings: var(--color-foreground);
  --tw-prose-bold: var(--color-foreground);
  --tw-prose-links: var(--color-primary);
  --tw-prose-bullets: var(--color-primary);
  --tw-prose-counters: var(--color-primary);
  --tw-prose-quote-borders: var(--color-primary);
  --tw-prose-hr: var(--color-neutral-50);
  --tw-prose-th-borders: var(--color-neutral-50);
  --tw-prose-td-borders: var(--color-neutral-50);
}

/* Product & card titles use the BODY font - only section headings keep the heading font */
.product-title,
.product-title h2,
.product-title a,
card-product .product-name,
.card-product__title,
.card-product__title a,
card-product [class*="title"] {
  font-family: var(--font-body-family);
  letter-spacing: normal;
}

/* Countdown / flash-sale timers use the BODY font (numeric digits read cleaner
   in the sans body face; the heading serif is reserved for section headings). */
.flashsale__countdown-timer,
.flashsale__countdown-timer *,
.flashsale__countdown,
.flashsale__countdown *,
.flashsale__countdown-label,
.ega-badge-ctd,
.ega-badge-ctd *,
.stock-countdown,
.stock-countdown * {
  font-family: var(--font-body-family);
}

/* ============================================
   GENT THEME - BUTTONS
   ============================================ */

.btn,
button[type="submit"],
.button,
[class*="btn-"]:where(:not(.tab-btn-v2, .readmore-btn-ghost, .btn-live)) {
  font-family: var(--font-body-family);
  border-radius: var(--rounded-button);
  transition: background 0.2s ease, color 0.2s ease;
}

/* Primary CTA - dùng đúng setting "Màu nút" (button_primary_*) */
.btn-primary,
.btn--primary {
  background: var(--color-button-primary);
  color: var(--color-button-primary-text);
  border: 1px solid var(--color-button-primary);
}

/* Thêm vào giỏ hàng - dùng riêng setting "Màu nút Thêm vào giỏ hàng" (addtocart_*),
   tách khỏi Primary CTA ở trên vì đây là 1 setting riêng trong customizer. */
button.btn-add-to-cart,
[class*="add-to-cart"] {
  background: var(--color-addtocart-bg);
  color: var(--color-addtocart);
  border: 1px solid var(--color-addtocart-bg);
}

/* Hover: làm tối nhẹ màu nền hiện tại thay vì hardcode 1 màu cố định,
   để luôn khớp bất kể setting đang chọn màu gì. */
.btn-primary:hover,
.btn--primary:hover,
button.btn-add-to-cart:hover,
[class*="add-to-cart"]:hover {
  filter: brightness(0.9);
}

/* Secondary / outlined */
.btn-secondary,
.btn--secondary {
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-foreground);
}

.btn-secondary:hover,
.btn--secondary:hover {
  background: var(--color-foreground);
  color: #FFFFFF;
}

/* ============================================
   GENT THEME - PRODUCT CARDS
   ============================================ */

/* The custom element defaults to display:inline. In carousels/flash-sale it is
   NOT a flex/grid item, so it stays inline and border/radius on it render as
   stray vertical lines + broken corners. Force block, and put the visible card
   chrome on the inner block wrapper (.item_product_main) which is always block. */
card-product,
.product-card {
  display: block;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Root cause of the "cưa bo góc" (square corners peeking out) on flash-sale's
   dark background: the OUTER <card-product> element itself paints a white, SQUARE
   background the exact size of the rounded inner card, so its 4 square corners
   show behind the rounded inner card. Round the outer element's own bg box to
   match. overflow stays visible so hover add-to-cart / utilities that translate
   outside the card are NOT clipped. */
.card-product--vertical {
  border-radius: var(--product-card-rounded, 0);
}

.card-product--vertical .item_product_main {
  border: 0;
  background: transparent;
  border-radius: var(--product-card-rounded, 0);
  /* rounds the 1px border + the (non-transformed) body */
  overflow: hidden;
  /* NOT clip-path here, so hover box-shadow isn't clipped */
  box-shadow: none;
}

/* Root-cause fix for square top corners.
   The visible white card fill is NOT .item_product_main - it's the inner <form>
   (class "bg-background", h-full, z-10 relative) that stacks on top and fills the
   whole card. Under flash-sale's composited ancestor (.fs-luxury: overflow+rounded),
   the form's square corners ESCAPE .item_product_main's overflow:hidden+radius clip,
   so the top corners render square even though the wrapper is rounded.
   Fix: round the form at its OWN source. An element's own border-radius always clips
   its own background/border - immune to the composited-descendant escape. overflow
   clips the (square) .card-product__top image box to the same rounded shape. */
.card-product--vertical .item_product_main>form {
  border-radius: var(--product-card-rounded, 0);
  overflow: hidden;
  background: transparent;
}

/* Round the image box top corners too. The template marks the image with the
   class "rounded-t", but that utility is NOT compiled in this theme (only
   .rounded-t-sm exists), so the image kept SQUARE top corners. On flash-sale's
   dark background the scaled image (transform: scale) composites onto its own
   layer and its square top corners ESCAPE the form's rounded overflow clip,
   reading as un-rounded vs. the fully-rounded cards elsewhere. Fix at the source:
   round .card-product__top (already overflow:hidden) AND the image elements
   directly so the corners round even when the image forms its own layer. */
.card-product--vertical .card-product__top {
  border-top-left-radius: var(--product-card-rounded, 0);
  border-top-right-radius: var(--product-card-rounded, 0);
  background: var(--product-image-bg);
}

.card-product--vertical .card-product__vendor {
  opacity: 1;
  padding-bottom: 0;
  color: var(--color-neutral-300);
  font-size: var(--font-size-12);
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-product--vertical .card-product__body {
  padding: 1.2rem 0.2rem 0;
  gap: 0.4rem;
}

.card-product--vertical .card-product__image,
.card-product--vertical .card-product__image-2 {
  border-top-left-radius: var(--product-card-rounded, 0);
  border-top-right-radius: var(--product-card-rounded, 0);
}

/* Product carousels: stretch slides to EQUAL height so every card is the same
   size. The card body anchors its price/actions to the bottom (mt-auto) so the
   extra height sits as balanced spacing, not an empty gap under the content. */
.section-related-products .embla__container,
.section-equal-price-products .embla__container,
.section-recent-products .embla__container,
#recent-view-coll .embla__container,
.section-product-slider .embla__container,
.section-product-tabs .embla__container {
  align-items: stretch;
}

card-product .product-price,
.product-card .price {
  letter-spacing: 0.05em;
  font-size: var(--font-size-16);
}

/* Subtle image hover - no aggressive zoom */
card-product .card-media img,
.product-card .card-media img {
  transition: transform 0.6s ease;
}

card-product:hover .card-media img,
.product-card:hover .card-media img {
  transform: scale(1.03);
}

/* Removed breaking header styles */

/* ============================================
   GENT THEME - FOOTER
   ============================================ */

.footer,
footer,
.site-footer {
  background: var(--color-footer) !important;
  color: var(--color-footer-text);
}

.footer h2,
.footer h3,
.footer h4,
.site-footer .heading,
.site-footer .title {
  font-family: var(--font-body-family);
  color: #FFFFFF;
  font-size: var(--font-size-h5);
  letter-spacing: normal;
}

.footer a,
.site-footer a {
  color: var(--color-footer-text);
  transition: color 0.2s;
}

.footer a:hover,
.site-footer a:hover {
  color: var(--color-footer-hover);
}

/* ============================================
   GENT THEME - SECTIONS & LAYOUT
   ============================================ */


/* ============================================
   GENT THEME - MICRO-FIXES (from design review)
   ============================================ */

/* Badge border-radius - use token for consistency */
.sale-badge,
.badge {
  border-radius: var(--rounded-button) !important;
}

/* Mobile touch target - ATC button min 44px */
@media (max-width: 767px) {

  button.btn-add-to-cart,
  [class*="add-to-cart"],
  .btn-primary {
    min-height: 44px;
  }
}

/* Product card - subtle warm background for depth vs page bg */
card-product,
.product-card {
  background-color: transparent;
}

.btn,
button.btn-add-to-cart,
[class*="add-to-cart"],
.btn-primary {
  border-radius: var(--rounded-button);
}

.btn:where(:not([class*="hidden"], .dnone)) {
  display: inline-flex;
}

.btn {
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 2.8rem;
  border-width: 1.5px;
}

.btn:not(.addtocart-btn--icon, [class*="h-["]) {
  min-height: 4.8rem;
}

.btn--large {
  padding: 0 2.8rem;
}

.btn.btn--small:not(.addtocart-btn--icon, [class*="h-["]) {
  min-height: 3.8rem;
}

.btn--small {
  padding: 0 1.6rem;
}

/* Flash Sale: label text color white */
.section-flashsale .flashsale__countdown-label,
.section-flashsale .flashsale__countdown-wrapper {
  color: var(--color-flashsale-title) !important;
}

/* ── Policies v2 - dark bar, đồng bộ màu với footer (footer_bg_color/footer_text_color) và primary_color (gold) ── */
.section.section-polices-v2 {
  background: var(--policies-section-bg);
  /* KHÔNG thêm đệm dưới. Thiết lập "policies_margin" đã sinh ra CẢ margin trên lẫn
     dưới (snippets/section-styles.bwt đổi "64px 64px" thành "64px 0 64px"), nên mọi
     đệm thêm ở đây đều cộng dồn và làm section này cách section kế tiếp xa hơn các
     section khác dù thiết lập khoảng cách y hệt nhau. Section cũng không có
     padding-top, để đệm dưới còn gây lệch trên/dưới. */
  padding-bottom: 0;
}

.section-polices-v2 .policies-inner.has-border-bottom {
  border-bottom: 1px solid var(--policies-border-color);
  /* Chừa khoảng giữa nội dung và đường kẻ, bằng đệm trên của khối (.section-polices-v2 .container) */
  padding-bottom: 2.4rem;
}

.policy-card {
  background: none;
  border-radius: 0;
  padding: 0;
  gap: 1.4rem;
}

.policy-card--link:hover .policy-card__title {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.policy-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-icon-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.policy-card__title {
  font-size: var(--font-size-16);
  font-weight: 600;
  color: var(--policies-title-color);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .policy-card__title {
    font-size: var(--font-size-14);
  }
}

.policy-card__desc {
  font-size: var(--font-size-14);
  color: var(--policies-desc-color);
  line-height: 1.6;
}

/* Mobile: stack icon above text so the copy gets the full card width */
@media (max-width: 768px) {
  .policy-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Standardize blog article grid gaps */
.article-list.grid {
  gap: var(--grid-gutter) !important;
}

/* ── Mobile carousels: ONE uniform item width (~1.75 items) across every card
   carousel, so tiles stop varying in size between sections (were: 74vw / 65.5%
   / 61.3% / 130px / 300px). Prioritises large, clearly-readable items. ── */
@media (max-width: 767px) {

  /* Product card carousels sharing the .product-list embla container:
     related, recently-viewed, same-price, cart cross-sell, product-slider
     section, and the frequently-bought bundle */
  .product-list.embla__container>div,
  /* Flash-sale products */
  .section-flashsale .flashsale__item,
  /* Video review tiles */
  .section-video-review .video-list .embla__slide,
  /* Lookbook (instagram) + group banners */
  .section-banner-group .embla__container>div {
    width: var(--mobile-slide-width, 47.5%) !important;
    max-width: var(--mobile-slide-width, 47.5%) !important;
  }

  .section-banner-group {
    --mobile-slide-width: 86.4%;
  }

  .section-instagram {
    --mobile-slide-width: var(--group-banner-mobile);
  }

  /* Tighter, uniform gap between items: 0.8rem (8px) - reduces the mixed
     pl-4 (16px) / pl-6 (24px) gaps down to match flash-sale/hotspot (already 8px).
     Raw CSS (not Tailwind classes) so it can't silently miss an uncompiled class. */
  .product-list.embla__container,
  .section-video-review .video-list .embla__container,
  .section-banner-group:not(.section-instagram) .embla__container {
    margin-left: -1rem !important;
  }

  .product-list.embla__container>div,
  .section-video-review .video-list .embla__slide,
  .section-banner-group:not(.section-instagram) .embla__container>div {
    padding-left: 1rem !important;
  }

  .section-flashsale {
    --mobile-slide-width: 47.6%;
  }

  .section-video-review {
    --mobile-slide-width: calc(44% + 0.56rem);
  }

  /* First product card flush with container edge
     (cancels the [&>div:first-of-type]:-ml-6 offset) */
  .product-list.embla__container>div:first-of-type {
    margin-left: 0 !important;
  }
}

/* ── Tỉ lệ khung video (section trang chủ) - theo setting section_video_ratio ── */
.section-video-review .svr-thumb {
  aspect-ratio: 9 / 16;
  /* mặc định: dọc (hợp Shorts) */
}

.section-video-review.svr--landscape .svr-thumb {
  aspect-ratio: 16 / 9;
}

.section-video-review.svr--square .svr-thumb {
  aspect-ratio: 1 / 1;
}

.section-video-review.svr--portrait .svr-thumb {
  aspect-ratio: 9 / 16;
}

/* Ảnh phủ đầy khung theo tỉ lệ đã chọn (crop gọn, không méo) */
.section-video-review .svr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Video review pill button ── */
.review-video__item .relative {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.review-video__pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #ffffff;
  border-radius: 99.9rem;
  min-height: 0;
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  /* Hover transition */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.review-video__pill:hover,
.review-video__item:hover .review-video__pill {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #f8f8f8;
}

.review-video__pill:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.review-video__pill span:first-child {
  font-size: var(--font-size-12);
  font-weight: 600;
  color: var(--color-foreground);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  flex: 1;
  transition: color 0.2s ease;
}

.review-video__pill:hover span:first-child,
.review-video__item:hover .review-video__pill span:first-child {
  color: var(--color-primary);
}

.review-video__pill .pill-arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-foreground);
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 1.4rem;
}

.review-video__pill:hover .pill-arrow,
.review-video__item:hover .review-video__pill .pill-arrow {
  transform: translateX(3px);
  background: var(--color-button-primary);
  color: var(--color-button-primary-text);
}

/* ── Product video review block (theo sản phẩm, YouTube) ──
   Ratio + bề rộng slide điều khiển tại đây để KHÔNG phụ thuộc
   Tailwind arbitrary values (aspect-[9/16], w-[240px]...) vốn không
   được compile sẵn trong theme. Thumbnail dùng object-cover nên
   ảnh 16:9 của YouTube cắt gọn theo tỉ lệ, không méo. */
/* Block nhúng trong cột thông tin SP (có nền bg-background).
   Thêm padding ngang để thumbnail không sát/tràn mép nền - bù cho
   embla__container -ml-4 (kéo slide đầu ra ngoài 1rem) và trường hợp
   cột không có padding ngang trên mobile. */
.pvr-embed {
  padding-left: 0;
  padding-right: 0;
}

/* ── Video play button - thin outlined ring with a radiating pulse effect
   (compact, NOT a big solid disc). Shared by main gallery video + the product
   video-review carousel. ── */
.ega-video-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  aspect-ratio: 1 / 1;
  /* guarantee a perfect circle, never oval */
  flex: 0 0 auto;
  /* never let a flex parent squash it */
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-primary);
  filter: none;
  /* contrast on light frames */
  transition: transform 0.2s ease, background 0.2s ease;
}

/* A single ring radiating outward - slow, with a long idle pause between
   pulses (only ~30% of the cycle is active) so it doesn't run continuously. */
.ega-video-play::before {
  display: none;
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: ega-video-pulse 5s ease-out infinite;
  pointer-events: none;
}

@keyframes ega-video-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  30% {
    transform: scale(1.7);
    opacity: 0;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.ega-video-play .icon-play {
  font-size: 2rem;
  line-height: 1;
  opacity: 1;
  /* optically center the triangle glyph */
}

.group:hover .ega-video-play,
.review-video__item:hover .ega-video-play,
.swipe-tablet__item:hover .ega-video-play {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {

  .ega-video-play::before,
  .ega-video-play::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .ega-video-play {
    width: 4.4rem;
    height: 4.4rem;
  }

  .ega-video-play .icon-play {
    font-size: 1.7rem;
  }
}

.section-product-video-review .pvr-thumb {
  aspect-ratio: 9 / 16;
  /* mặc định: dọc (hợp Shorts) */
}

.section-product-video-review.pvr--landscape .pvr-thumb {
  aspect-ratio: 16 / 9;
}

.section-product-video-review.pvr--square .pvr-thumb {
  aspect-ratio: 1 / 1;
}

.section-product-video-review.pvr--portrait .pvr-thumb {
  aspect-ratio: 9 / 16;
}

.section-product-video-review .pvr-slide {
  flex: 0 0 auto;
  max-width: 100%;
}

/* Mobile (mặc định) */
.section-product-video-review.pvr--portrait .pvr-slide {
  width: 42%;
}

.section-product-video-review.pvr--square .pvr-slide {
  width: 60%;
}

.section-product-video-review.pvr--landscape .pvr-slide {
  width: 50%;
}

/* Tablet ≥768px */
@media (min-width: 768px) {
  .section-product-video-review.pvr--portrait .pvr-slide {
    width: 25%;
  }

  .section-product-video-review.pvr--square .pvr-slide {
    width: 33.333%;
  }

  .section-product-video-review.pvr--landscape .pvr-slide {
    width: 50%;
  }
}

/* Desktop ≥1024px - block nằm trong CỘT thông tin SP (hẹp ~45% màn),
   nên số cột ít hơn full-width để card không bị nhỏ vụn. */
@media (min-width: 1024px) {
  .section-product-video-review.pvr--portrait .pvr-slide {
    width: 33.333%;
  }

  .section-product-video-review.pvr--square .pvr-slide {
    width: 40%;
  }

  .section-product-video-review.pvr--landscape .pvr-slide {
    width: 50%;
  }
}

/* Cap bề rộng card theo tỉ lệ: khi block đặt ở vị trí FULL-WIDTH
   (kiểu tab 'horizontal' - mô tả nằm dưới), % width sẽ cho card quá to.
   max-width giữ card ở kích thước hợp lý, thành 1 dải video gọn. */
.section-product-video-review.pvr--portrait .pvr-slide {
  max-width: 190px;
}

.section-product-video-review.pvr--square .pvr-slide {
  max-width: 240px;
}

.section-product-video-review.pvr--landscape .pvr-slide {
  max-width: 340px;
}

/* ── Full-section placement (video block đặt trên/dưới mô tả SP): width bằng
   container như các section khác + spacing rộng hơn, và số cột desktop lấy từ
   setting (--pvr-cols, mặc định 4). Bỏ cap max-width để lấp đầy chiều ngang. ── */
.section-product-video-review.pvr-section {
  margin-top: 6.4rem;
  margin-bottom: 6.4rem;
}

@media (min-width: 1024px) {
  .section-product-video-review.pvr-section .pvr-slide {
    width: calc(100% / var(--pvr-cols, 4));
    max-width: none;
  }
}

@media (max-width: 767px) {
  .section-product-video-review.pvr-section {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
  }
}

/* ── Info placement (video block nằm trong CỘT thông tin SP): số cột desktop
   cũng lấy từ setting (--pvr-cols) thay vì cố định theo tỉ lệ. Đặt sau các rule
   width/max-width theo tỉ lệ để thắng source-order. ── */
@media (min-width: 1024px) {
  .section-product-video-review.pvr-embed .pvr-slide {
    width: calc(100% / var(--pvr-cols, 3));
    max-width: none;
  }
}

@media (min-width: 1024px) {

  .product-list.grid,
  .tab-content-inner.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Flex/Embla carousel: 5 items per row on desktop (~20% each) ──
   Applies to: Related products, Same price, Recently viewed,
   Product slider section, Blog section carousel
*/
@media (min-width: 1024px) {

  /* product-slider section */
  .section-product-slider .embla__container>div,
  /* flashsale carousel */
  .section-flashsale .flashsale__item {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }

  .section-related-products .embla__container>div,
  .section-equal-price-products .embla__container>div,
  #recent-view-coll .embla__container>div {
    width: 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* ============================================
   PRODUCT POLICIES
   ============================================ */

.ega-fallback-icon {
  width: 48px;
  height: 48px;
  background: #f8f9fa;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}

.ega-highlight {
  color: var(--color-secondary, #094eff);
  font-weight: 700;
}

.ega-tooltip-box {
  position: relative;
  display: flex;
  align-items: center;
  cursor: help;
  flex-shrink: 0;
}

.ega-tooltip-icon {
  color: #ccc;
  transition: color 0.2s;
  display: flex;
}

.ega-tooltip-box:hover .ega-tooltip-icon {
  color: var(--color-secondary, #094eff);
}

.ega-tooltip-content {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
  z-index: 9999;
  pointer-events: none;
}

.ega-tooltip-box:hover .ega-tooltip-content {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 10px);
}

/* Auto-flip tooltip to prevent viewport overflow */
.ega-tooltip-content.tooltip-align-right {
  left: auto;
  right: 0;
  transform: none;
}

.ega-tooltip-arrow.tooltip-arrow-right {
  left: auto;
  right: 16px;
  transform: none;
}

.ega-tooltip-content.tooltip-align-left {
  left: 0;
  transform: none;
}

.ega-tooltip-arrow.tooltip-arrow-left {
  left: 16px;
  transform: none;
}


.ega-tooltip-inner {
  background: #fff;
  color: #444;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: var(--font-size-14);
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
}

.ega-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

@media (max-width: 1023px) {

  .ega-tooltip-box {
    position: static !important;
  }

  /* Tooltip responsive */
  .ega-tooltip-content {
    width: auto;
    left: 15px !important;
    right: 15px !important;
    transform: none !important;
    max-width: none;
  }

  .ega-tooltip-box:hover .ega-tooltip-content {
    bottom: calc(100% + 10px);
  }

  /* Row 1 (items 1,2): show above */

  /* Row 2 (items 3,4): show below */

  /* Arrow horizontal positions */

  /* 3-item special: last item full width, tooltip below */

  .ega-tooltip-inner {
    padding: 12px 15px;
    font-size: var(--font-size-12);
  }
}

/* ============================================
   PRODUCT POLICIES - MODERN GRID
   ============================================ */

.ega-highlight {
  font-weight: 700;
}

.ega-tooltip-box {
  position: relative;
  display: flex;
  align-items: center;
  cursor: help;
}

.ega-tooltip-content {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.ega-tooltip-box:hover .ega-tooltip-content {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 10px);
}

.ega-tooltip-inner {
  background: #fff;
  color: #444;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: var(--font-size-14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
}

.ega-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

@media (max-width: 1023px) {

  .ega-tooltip-box {
    position: static !important;
  }

  .ega-tooltip-content {
    display: none !important;
  }
}

/* SMART MOBILE DRAWER STYLES */
.ega-policy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ega-policy-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 10001;
  padding: 24px 20px 40px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.ega-policy-drawer.active {
  transform: translateY(0);
}

.ega-policy-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ega-drawer-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: -12px auto 20px;
}

.ega-drawer-title {
  font-size: var(--font-size-body);
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
  display: block;
}

.ega-drawer-body {
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: #666;
}

.ega-drawer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 1024px) {

  .ega-policy-overlay,
  .ega-policy-drawer {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .tabs-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 5px;
  }

  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Product tabs (horizontal, bottom) wrapper - moved off Tailwind arbitrary values (NO-KIT) */
.product-tabs-bottom {
  border-radius: var(--rounded-lg);
}

.product-tabs-bottom .tab-btn {
  font-weight: 600;
}

/* ===== Home banner countdown overlay ("Ảnh Banner - Trang chủ") ===== */
/* Glass-blur card overlaid on the single-image banner (section-image-banner.bwt) */
.banner-overlay-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  max-width: min(90%, 36rem);
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
  border-radius: 1.75rem;
  color: #fff;
  text-align: left;
  /* Solid fallback (browsers without backdrop-filter) */
  background-color: rgba(18, 20, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .banner-overlay-card {
    background-color: rgba(18, 20, 22, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* Position variants */
.banner-overlay-card--left {
  left: clamp(1rem, 4vw, 4rem);
}

.banner-overlay-card--right {
  right: clamp(1rem, 4vw, 4rem);
}

.banner-overlay-card--center {
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
}

.banner-overlay-card__heading {
  margin: 0;
  font-family: var(--font-headings-family);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.15;
}

.banner-overlay-card__subheading {
  margin: 0;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
}

/* CTA button - white pill */
.banner-overlay-card__btn {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.7em 1.6em;
  border-radius: var(--rounded-button);
  background-color: #fff;
  color: #16181a;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.banner-overlay-card__btn:hover {
  opacity: 0.85;
}

/* Dark countdown badges scoped to the card (overrides --color-flashsale-timer defaults) */
.banner-overlay-card__countdown .flashsale__countdown-wrapper {
  justify-content: flex-start;
}

.banner-overlay-card--center .banner-overlay-card__countdown .flashsale__countdown-wrapper {
  justify-content: center;
}

/* Countdown tiles - frosted grey, number+label left-aligned (matches mockup) */
.banner-overlay-card .ega-badge-ctd {
  gap: 0.55rem;
}

.banner-overlay-card .ega-badge-ctd__item {
  width: 4.9rem;
  padding: 0.75rem 0.85rem;
  text-align: center;
  border-radius: var(--rounded-md) !important;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.banner-overlay-card .ega-badge-ctd__h {
  text-align: center;
  font-size: var(--font-size-20);
  font-weight: 700;
  /* MUST stay 1: the flip animation scrolls the digit column by -1em per tick
     against a height:1em mask; any other line-height drifts digits progressively. */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.banner-overlay-card .ega-badge-ctd--animate::before {
  text-align: left;
}

.banner-overlay-card .ega-badge-ctd__item span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 400;
}

.banner-overlay-card .ega-badge-dot {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
  align-self: center;
}

/* Hide shared flash-sale status labels ("Ưu đãi sẽ kết thúc sau:" ...) while
   the deal is upcoming/ongoing - the card's own subheading conveys this. */
.banner-overlay-card .flashsale__countdown-label {
  display: none;
}

/* When the deal has ENDED the countdown digits empty out, so the static
   "Ưu đãi sẽ kết thúc sau:" subheading becomes misleading. Swap it for the
   configured ended label ("Chương trình đã kết thúc"). */
.banner-overlay-card:has(countdown-timer.ended) .banner-overlay-card__subheading {
  display: none;
}

.banner-overlay-card:has(countdown-timer.ended) .flashsale__countdown-label[data-label="ended"] {
  display: block;
  margin: 0;
  text-align: inherit;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 1024px) {
  .banner-overlay-card {
    max-width: min(90%, 62rem);
    gap: 2.2rem;
    padding: clamp(2.8rem, 3vw, 4rem);
    border-radius: 2.4rem;
  }

  .banner-overlay-card--left {
    left: max(3rem, calc((100% - 1440px) / 2 + 2rem));
  }

  .banner-overlay-card--right {
    right: max(3rem, calc((100% - 1440px) / 2 + 2rem));
  }

  .banner-overlay-card__heading {
    font-size: clamp(3.2rem, 3.6vw, 4.8rem);
  }

  .banner-overlay-card__subheading,
  .banner-overlay-card:has(countdown-timer.ended) .flashsale__countdown-label[data-label="ended"] {
    font-size: clamp(1.5rem, 1.4vw, 2rem);
  }

  .banner-overlay-card__btn {
    font-size: var(--font-size-18);
    padding: 0.85em 2.2em;
  }

  /* Countdown tiles doubled */
  .banner-overlay-card .ega-badge-ctd {
    gap: 1rem;
  }

  .banner-overlay-card .ega-badge-ctd__item {
    width: 9rem;
    padding: 1.4rem 1.5rem;
  }

  .banner-overlay-card .ega-badge-ctd__h {
    font-size: var(--font-size-36);
  }

  .banner-overlay-card .ega-badge-ctd__item span {
    font-size: var(--font-size-14);
    margin-top: 0.4rem;
  }
}

/* Mobile: center card, shrink so 4 boxes fit the portrait banner (rec 450x500) */
@media (max-width: 767px) {

  .banner-overlay-card,
  .banner-overlay-card--left,
  .banner-overlay-card--right {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
    max-width: calc(100% - 2rem);
    padding: 1.2rem 1rem;
    gap: 0.75rem;
  }

  .banner-overlay-card__countdown .flashsale__countdown-wrapper {
    justify-content: center;
  }

  /* scoped selector beats JS-injected w-[5.4rem] utility */
  .banner-overlay-card .ega-badge-ctd {
    gap: 0.4rem;
  }

  .banner-overlay-card .ega-badge-ctd__item {
    width: 3.7rem;
    padding: 0.55rem 0.5rem;
  }

  .banner-overlay-card .ega-badge-ctd__h {
    font-size: var(--font-size-14);
  }

  .banner-overlay-card .ega-badge-ctd__item span {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Tra cứu mã số thuế (vat-lookup)
   Lưu ý: root font-size của theme = 10px, nên 1rem = 10px.
   ========================================================================== */

.vat-lookup-control {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
}

.vat-lookup-control .form-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Nút tra cứu: cao bằng ô input, chữ không xuống dòng */
.vat-lookup-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.8rem;
  white-space: nowrap;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-button-primary-text, #fff);
  background-color: var(--color-button-primary, #464646);
  border: 0;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.vat-lookup-btn:hover:not(:disabled) {
  opacity: 0.88;
}

/* Chưa đủ 10 số thì nút mờ & không bấm được - chặn gọi API vô ích */
.vat-lookup-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vat-lookup-spinner {
  display: none;
  width: 1.4rem;
  height: 1.4rem;
  border: 0.2rem solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
}

.vat-lookup.is-loading .vat-lookup-spinner {
  display: block;
  animation: vat-lookup-spin 0.7s linear infinite;
}

@keyframes vat-lookup-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dòng trạng thái: ẩn hoàn toàn khi rỗng để không tạo khoảng trống thừa */
.vat-lookup-status {
  font-size: var(--font-size-14);
  line-height: 1.4;
  color: var(--color-neutral-300, #737373);
}

.vat-lookup-status:empty {
  display: none;
}

.vat-lookup-status[data-state="success"] {
  color: var(--color-success, #16a34a);
}

.vat-lookup-status[data-state="warning"] {
  color: var(--color-warning, #d97706);
}

.vat-lookup-status[data-state="empty"],
.vat-lookup-status[data-state="error"] {
  color: var(--color-neutral-300, #737373);
}

/* Nháy nền các ô vừa được điền tự động để người dùng thấy điều gì đã thay đổi */
.vat-lookup-filled {
  animation: vat-lookup-flash 1.2s ease;
}

@keyframes vat-lookup-flash {

  0%,
  60% {
    /* neutral-50 thay vì --color-highlight: highlight là màu thương hiệu do
       khách chỉnh, có thể quá đậm để làm nền nháy sau ô input */
    background-color: var(--color-neutral-50, #f0eeeb);
  }

  100% {
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vat-lookup.is-loading .vat-lookup-spinner {
    animation: none;
  }

  .vat-lookup-filled {
    animation: none;
  }
}

/* Nút xoá thông tin hoá đơn: hành động phụ, cố tình để nhạt hơn nút Lưu */
.vat-clear-btn {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: 1rem;
  font-size: var(--font-size-14);
  color: var(--color-neutral-300, #6b5f58);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  cursor: pointer;
}

.vat-clear-btn:hover {
  color: var(--color-error);
}

/* =========================================================
   PRODUCT PAGE 2026-07
   Chính sách dưới slider / Dịch vụ áp dụng / Hàng sắp về / Banner
   Ghi chú: root font-size = 10px (1rem = 10px).
   ========================================================= */

/* --- Hàng sắp về (phase 04) --- */
.btn--preorder {
  background: var(--color-warning-bg, #fff4e5);
  color: var(--color-foreground, #1a1a1a);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-button);
}

.product-contact__preorder-note {
  margin: 0;
  color: var(--color-foreground-secondary, #6b7280);
}

/* --- Dịch vụ áp dụng (phase 03) --- */
/*
  Dịch vụ áp dụng - trình bày dạng bảng (theo Vua Nệm):
  khung bo góc + nền nhạt, mỗi dịch vụ là 1 hàng ngăn nhau bằng đường kẻ,
  nhãn/hành động căn phải.
*/
.ega-policy-block {
  margin-top: 0;
}

.ega-policy-block__title {
  font-weight: 700;
  font-size: var(--font-size-body);
  margin-bottom: 0.8rem;
}

/*
  KHÔNG dùng overflow:hidden ở đây - nó cắt mất tooltip (position:absolute) của các hàng,
  gây ra dải trắng bị xén khi hover. Các hàng không có nền riêng nên bo góc ở khung là đủ.
*/
.ega-policy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.ega-policy-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
}

.ega-policy-row.hidden {
  display: none;
}

.ega-policy-row__icon {
  grid-row: 1 / span 2;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ega-policy-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*
  Dùng block + inline thay vì flex: khi tiêu đề xuống 2 dòng (hay gặp trên mobile),
  flex đẩy icon info ra sát mép phải và tách rời khỏi chữ. Để icon chảy inline thì
  nó luôn nằm ngay sau từ cuối cùng.
*/
.ega-policy-row__text {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
}

.ega-policy-row__title {
  display: inline;
  margin: 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  font-weight: 600;
}

.ega-policy-row__text .ega-tooltip-box {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .4rem;
}

/*
  Tooltip mặc định rộng 420px - quá khổ so với cột thông tin, dễ tràn mép.
  Thu hẹp lại trong phạm vi khối dịch vụ và nâng z-index để không bị hàng dưới che.
*/
.ega-policy-row__text .ega-tooltip-content {
  width: 30rem;
  max-width: min(30rem, 80vw);
  z-index: 200;
}

.ega-policy-row__status {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.ega-policy-row__status--pill {
  padding: 0;
  border: 0;
}

.ega-policy-row__status--link {
  text-decoration: underline;
  color: var(--color-primary);
}

/* portal-opener chỉ là lớp bọc logic, không được phá layout hàng */
.ega-policy-row portal-opener {
  display: contents;
}

.ega-policy-row__status--store {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: var(--font-size-14);
  font-weight: 400;
  line-height: 1.6;
  text-decoration: underline;
  cursor: pointer;
  color: var(--color-neutral-300);
  background: transparent;
  border: 0;
  transition: color .2s ease;
}

.ega-policy-row__status--store .icon {
  display: none;
}

.ega-policy-row__status--store:hover {
  color: var(--color-primary);
}

.ega-policy-row__status--store:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Banner nhỏ trang sản phẩm (phase 05) --- */
.product-inline-banner {
  width: 100%;
  margin-bottom: 0;
}

.product-inline-banner picture,
.product-inline-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.product-inline-banner img {
  border-radius: 0;
}

/*
  Không đặt aspect-ratio: chiều cao chạy theo tỉ lệ thật của ảnh (height auto),
  nên ảnh banner kích thước nào cũng hiển thị đúng, không bị bóp/cắt.
*/

/* --- Bỏ in đậm mặc định (in đậm do người dùng nhập <b> trong setting) --- */
.ega-policy-row__title span:not(.ega-highlight) {
  font-weight: inherit;
}

/* ═══════════════════════════════════════════
   PRODUCT CONTACT - card cùng ngôn ngữ với policy list
   ═══════════════════════════════════════════
   Dùng lại đúng token của .ega-policy-list (viền, nền, bo .8rem, padding 1.2/1.4rem,
   icon 2.4rem) để khối liên hệ thuộc cùng hệ thống với khối "Dịch vụ áp dụng" ngay dưới,
   thay vì tự tạo kiểu riêng và trôi nổi giữa CTA (pill) với card chính sách. */
.product-contact {
  margin-top: 1.6rem;
}

.product-contact__card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0.8rem;
  background: var(--color-background-subtle, #f8fafc);
}

.product-contact__icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-neutral-300, #6b5f58);
}

.product-contact__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-contact__text {
  flex: 1 1 auto;
  min-width: 0;
}

.product-contact__label {
  display: block;
  color: var(--color-neutral-300, #6b5f58);
  font-size: var(--font-size-12);
  line-height: 1.4;
}

.product-contact__phone {
  display: inline-block;
  color: var(--color-foreground);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.product-contact__phone:hover {
  color: var(--color-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-contact__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.8rem;
}

/* Chip mượn dáng nút phụ của policy row ("Tìm showroom") để đồng bộ hệ thống */
.product-contact__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0.8rem;
  background: #ffffff;
  color: var(--color-foreground);
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-contact__chip svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-contact__chip:hover {
  border-color: var(--color-foreground);
  color: var(--color-foreground);
}

/* Cột hẹp: cho chip xuống hàng thay vì bóp chữ hotline */
@media (max-width: 480px) {
  .product-contact__card {
    flex-wrap: wrap;
  }

  .product-contact__text {
    flex: 1 1 60%;
  }

  .product-contact__actions {
    flex: 1 1 100%;
    padding-left: 3.6rem;
  }

  .product-contact__chip {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ── Trang giỏ hàng ở khổ 976–1269px ──
   Lưới 5 cột trong components.css được tính cho bố cục rộng 1384px. Ở khổ tablet
   cột "Đơn giá" chỉ còn ~54px nên chuỗi giá tràn ra, đồng thời ô số lượng bị ghim
   cứng 13rem trong khi rãnh lưới cũng đúng 13rem (chưa trừ padding ngang) nên ô này
   tràn sang và đè lên cột giá. Thu hẹp khoảng cách + ô số lượng, nới cột giá. */
@media (min-width: 976px) and (max-width: 1269px) {
  .cart-table {
    --table-gap: calc(1.6 / var(--total-width) * 100%);
    --product-column: calc(30 / var(--total-width) * 100%);
    --default-column: calc(17 / var(--total-width) * 100%);
    --cart-template: var(--product-column) var(--default-column) 10.4rem var(--default-column) auto;
  }

  .cart-header>*,
  .cart-item>.cart-product-col,
  .cart-item>.cart-unit-price-col,
  .cart-item>.cart-quantity-col,
  .cart-item>.cart-total-col,
  .cart-item>.cart-remove-col {
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
  }

  .cart-item .cart-quantity-col .custom-number-input {
    width: 100%;
    max-width: 10.4rem;
  }

  /* Hai nút -/+ là flex item cố định; ô nhập phải co giãn phần còn lại. Nếu để nút
     rộng 3.2rem thì ô nhập chỉ còn ~22px, số 2 chữ số bị cắt mất (khung có
     overflow: hidden nên không thấy phần tràn). */
  .cart-item .cart-quantity-col .custom-number-input button {
    width: 2.8rem;
    flex: 0 0 2.8rem;
  }

  .cart-unit-price-col .price,
  .cart-unit-price-col .compare-price,
  .cart-total-col .price {
    white-space: nowrap;
  }
}

/* ── Thanh banner trên cùng khi dùng ảnh ──
   Ảnh trước đây bị đặt position-absolute nên thanh banner sập chiều cao về 0. */
.top-banner .top-banner__link {
  display: block;
}

.top-banner .top-banner__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.top-banner .top-banner__link > div {
  display: block;
  padding-block: 0.76rem;
  font-weight: 400;
}

.top-banner b {
  color: var(--color-secondary);
  font-weight: 700;
}

@media (max-width: 767px) {
  .top-banner .top-banner__link > div {
    padding-block: 0.68rem;
  }
}

/* ── Bộ lọc danh mục dạng ngăn kéo ──
   Ngăn kéo còn là lớp phủ tới 1269px, nên chỉ bỏ đệm ngang từ 1270px trở lên
   (trước đây bỏ từ 976px làm nội dung dính sát lề trái ở khổ tablet). */
@media (min-width: 1270px) {
  .collection-filter .facet-inner {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }
}

/* ── Ô nhập số lượng trong giỏ hàng ──
   Ô nhập vốn không co giãn được (min-width mặc định của flex item là auto) nên khi
   khung hẹp lại ở khổ tablet, số bị khung `overflow: hidden` cắt mất. Cho ô nhập
   chiếm hết phần còn lại và bỏ đệm ngang - chữ đã canh giữa sẵn. */
.cart-item .cart-quantity-col .custom-number-input input.form-quantity {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ── Carousel sản phẩm trong mega-menu ──
   Slide phải TRÀN hết bề ngang khung (header.css đã khai flex: 0 0 100%), không dùng
   kiểu "ló 1.75 card" của carousel trong trang. Rule 57% ở khối mobile phía trên nhắm
   `.product-list.embla__container>div` nên vô tình trùm cả carousel này - trong ngăn kéo
   mobile khung chỉ rộng 337px mà slide bị ép 192px, card thứ hai tràn ra ngoài và bị
   mép `overflow: clip` cắt mất. Đặt ngoài media query để đúng ở mọi khổ. */
.megamenu-products-carousel .embla__container>div {
  width: 100% !important;
  max-width: 100% !important;
}

/* Nhãn "Quà tặng" cho dòng quà trong giỏ (gift-engine tự thêm, sản phẩm 0đ) */
.cart-item__gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0.2rem 0.8rem;
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-success, #16a34a);
  background: color-mix(in srgb, var(--color-success, #16a34a) 12%, transparent);
  border-radius: 9999px;
}

.cart-item__gift-badge::before {
  content: "\1F381";
  /* 🎁 */
  font-size: 1.2rem;
}

.cart-item--gift .gift-quantity {
  white-space: nowrap;
}

/* ===== Banner trang chủ (section-hero-banner) ===== */
.section-hero-banner {
  padding: 0;
}

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62rem;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-foreground);
  color: #fff;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(90deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 50%, transparent 70%);
  pointer-events: none;
}

.hero-banner .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-banner--center {
  text-align: center;
}

.hero-banner--center .hero-banner__content {
  margin-inline: auto;
}

.hero-banner--center .hero-banner__actions,
.hero-banner--center .hero-banner__rating {
  justify-content: center;
}

.hero-banner__content {
  position: relative;
  max-width: 52rem;
  color: #fff;
}

.hero-banner__kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hero-banner__heading {
  margin: 0.6rem 0 1.8rem;
  font-family: var(--font-headings-family);
  font-weight: 500;
  font-size: var(--font-size-64);
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--hero-heading-color);
}

.hero-banner__heading span:last-child {
  color: var(--hero-accent-color);
  font-style: italic;
}

.hero-banner__subheading {
  margin: 0 0 3rem;
  max-width: 44rem;
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--hero-subheading-color);
}

.hero-banner--center .hero-banner__subheading {
  margin-inline: auto;
}

.hero-banner--right {
  text-align: right;
}

.hero-banner--right .hero-banner__content {
  margin-inline-start: auto;
}

.hero-banner--right .hero-banner__actions,
.hero-banner--right .hero-banner__rating {
  justify-content: flex-end;
}

.hero-banner--right .hero-banner__subheading {
  margin-inline-start: auto;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.hero-banner .btn--primary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-foreground);
  height: 4.8rem;
  padding: 0 2.8rem;
  font-size: var(--font-size-14);
  letter-spacing: 0.04em;
}

.hero-banner__btn-ghost {
  gap: 0.6rem;
  padding: 0 0 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  white-space: nowrap;
}

.hero-banner__btn-ghost:hover {
  color: #fff;
  opacity: 0.85;
}

.hero-banner__btn-ghost .icon {
  font-size: 1.4rem;
}

.hero-banner__rating {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.2rem 0 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: #fff;
}

.hero-banner__stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--color-secondary);
}

@media (max-width: 767px) {
  .hero-banner {
    min-height: 56rem;
    align-items: flex-start;
  }

  .hero-banner .container {
    padding-top: 4.4rem;
  }

  .hero-banner__overlay {
    background-image: linear-gradient(180deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 100%);
  }

  .hero-banner__heading {
    font-size: var(--font-size-44);
  }

  .hero-banner__subheading {
    font-size: var(--font-size-16);
  }
}

/* ===== Video nền tự chạy (dùng chung cho mọi khối có video) ===== */
video-background {
  display: contents;
}

.video-background__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

.video-background__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-background__stage iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
}

.video-background__toggle {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.video-background__toggle[hidden] {
  display: none;
}

.video-background__toggle:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.video-background__icon--play,
.is-paused .video-background__icon--pause {
  display: none;
}

.is-paused .video-background__icon--play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .video-background__stage,
  .video-background__toggle {
    display: none;
  }
}

.section-banner-group .banner-group__image {
  overflow: hidden;
  border-radius: var(--rounded-lg);
}

/* ===== Reveal on scroll (reusable) ===== */
.reveal-on-scroll .reveal-item {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal-on-scroll.is-visible .reveal-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-process-steps {
  color: var(--color-foreground);
}

.process-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--process-heading-color);
}

.process-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.process-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--process-bg-color) 96%, transparent) 0%,
      color-mix(in srgb, var(--process-bg-color) 92%, transparent) 42%,
      color-mix(in srgb, var(--process-bg-color) 25%, transparent) 80%);
}

.process-hero__text {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 5.3rem 0 12rem;
}

.process-steps__kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--process-accent-color);
}

.process-steps__heading {
  max-width: 52rem;
  margin: 0 0 1rem;
  font-family: var(--font-headings-family);
  font-weight: 500;
  font-size: var(--font-size-44);
  line-height: 1.15;
  text-wrap: balance;
  color: var(--process-heading-color);
}

.process-steps__heading span {
  color: var(--process-accent-color);
  font-style: italic;
}

.process-steps__subheading {
  max-width: 46rem;
  margin: 0;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--process-desc-color);
}

.process-hero__car {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease-out 0.2s;
}

.process-hero__car.is-visible {
  opacity: 1;
}

.process-hero__car img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .process-hero__car {
    opacity: 1;
    transition: none;
  }
}

.process-steps-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--process-cols, 5), 1fr);
  gap: 2rem;
  align-items: stretch;
  margin: -8rem 0 0;
}

.process-steps-row--try {
  grid-template-columns: repeat(var(--process-cols, 3), 1fr) 1.25fr;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.4rem;
  border: 1px solid var(--color-neutral-50);
  border-radius: 0;
  background: var(--color-background);
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-0.4rem);
}

.process-step__hexwrap {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  flex-shrink: 0;
  width: 4.4rem;
  height: 4.4rem;
}

.process-step__hex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.process-step__hex img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.process-step__card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

.process-step__num {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h2);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-highlight);
}

.process-step__title {
  margin: 1rem 0 0;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-foreground);
}

.process-step__desc {
  margin: 0.6rem 0 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

@media (max-width: 1023px) {
  .process-hero__text {
    padding: 5.3rem 0 11rem;
  }

  .process-steps-row,
  .process-steps-row--try {
    grid-template-columns: repeat(2, 1fr);
    margin: -8rem 0 0;
  }
}

@media (max-width: 768px) {
  .process-hero {
    min-height: 42rem;
    align-items: flex-start;
  }

  .process-hero::before {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--process-bg-color) 94%, transparent),
        color-mix(in srgb, var(--process-bg-color) 88%, transparent));
  }

  .process-hero__text {
    padding: 3.3rem 0 2.8rem;
  }

  .process-steps__heading {
    font-size: var(--font-size-h3);
  }

  .process-steps-row,
  .process-steps-row--try {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: -15rem 0 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding: 1.6rem 1.8rem;
  }

  .process-step__hexwrap {
    display: none;
  }

  .process-step__card {
    display: contents;
  }

  .process-step__num {
    position: static;
    grid-row: span 2;
    font-size: var(--font-size-h3);
  }

  .process-step__title {
    margin: 0 0 0.2rem;
    font-size: var(--font-size-20);
  }

  .process-step__desc {
    margin: 0;
  }
}

/* ===== Before / After slider (section-before-after) ===== */
.before-after {
  display: block;
}

.before-after__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--color-dark, #12161C);
}

.before-after__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.before-after__after {
  clip-path: inset(0 0 0 var(--pos, 50%));
  background-color: #000;
}

.before-after__label {
  position: absolute;
  bottom: 1.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 0;
  background: rgba(21, 23, 26, 0.75);
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  color: #fff;
}

.before-after__label--before {
  left: 1.4rem;
}

.before-after__label--after {
  right: 1.4rem;
}

.before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.before-after__handle .icon {
  font-size: 1.1rem;
}

.before-after__handle-left {
  transform: rotate(180deg);
}

.before-after__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  /* mouse/touch dùng kéo trên frame; range chỉ cho bàn phím (tab + mũi tên) */
}

.before-after__range:focus-visible {
  outline: none;
}

.before-after__frame:has(.before-after__range:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.before-after.is-dragging .before-after__frame {
  cursor: ew-resize;
}

.before-after__caption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-body-family);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-16);
  color: var(--color-foreground, #12161C);
  letter-spacing: 0.04em;
}

/* ===== Promo popup redesign (promo-card: ảnh nền + overlay heading/CTA) ===== */
.promo-card {
  position: relative;
  /* Khung vuông theo cạnh nhỏ nhất của màn hình để ảnh 1:1 luôn hiện trọn, không bị cắt mép */
  width: min(92vw, 60rem, 82vh);
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
}

.promo-card__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.promo-card__link {
  display: block;
}

.promo-card__media {
  position: relative;
  /* Ảnh popup là bản thiết kế hoàn chỉnh tỉ lệ 1:1 → giữ 1:1 mọi breakpoint,
     không ép 4:5 mobile (sẽ cắt mất logo/xe hai bên). */
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* ===== Đồng nhất canh heading + subheading (heading snippet mặc định canh trái,
   subheading canh giữa → cho cả hai canh GIỮA ở các khối trang chủ) ===== */
.ba-info--center .heading-bar {
  text-align: center;
  justify-content: center;
}

.ba-info--center .heading-bar .heading {
  margin-inline: auto;
}

/* ============================================================
   REDESIGN v2 - "Cinematic Automotive Luxury"
   Nền kim loại + gold accent sắc, chiều sâu, typography uy lực.
   Block cuối cùng → override các style trước.
   ============================================================ */

/* --- Section heading system: kicker line + Oswald lớn, canh giữa uy lực --- */
.ba-info--center .heading-bar,
.section-collection-list .section-heading,
.section-video-review .section-heading {
  text-align: center;
}

/* Headline đồng nhất TOÀN SITE: KHÔNG gạch chân/thanh trang trí dưới heading
   (trước đây .section-before-after có 1 thanh gradient ::after riêng, gây lệch
   với các section khác - bỏ để mọi heading cùng 1 kiểu, không có gạch dưới). */
.section-before-after .heading {
  position: relative;
  font-family: var(--font-headings-family);
}

/* Combo tiết kiệm - thẻ biến thể số lượng trên product detail */
.combo-tier-card-wrap {
  width: 100%;
  display: flex;
}

.combo-tier-card {
  width: 100%;
  flex: 1;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded, 8px);
  padding: 1rem 0.6rem;
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease;
}

.peer:checked+.combo-tier-card,
.combo-tier-card--selected {
  border-color: var(--color-primary);
  background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.combo-tier-card__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-12);
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.combo-tier-card__badge--featured {
  background: #218410;
}

.combo-tier-card__name {
  font-weight: 600;
  font-size: var(--font-size-14);
  margin-top: 0.4rem;
}

.combo-tier-card__price {
  font-weight: 700;
  color: var(--color-price);
}

.combo-tier-card__unit-price {
  font-size: var(--font-size-12);
  color: var(--color-neutral-300);
}

/* Mobile: 3 tier trở xuống vẫn dùng grid-cols-3 (vừa khít màn hình, không cắt chữ).
   Chỉ chuyển sang scroll ngang khi có từ 4 tier trở lên (không đủ chỗ chia cột đều). */
@media (max-width: 767px) {
  .combo-tier-picker__grid:has(.combo-tier-card-wrap:nth-child(4)) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .combo-tier-picker__grid:has(.combo-tier-card-wrap:nth-child(4))::-webkit-scrollbar {
    display: none;
  }

  .combo-tier-picker__grid:has(.combo-tier-card-wrap:nth-child(4)) .combo-tier-card-wrap {
    flex: 0 0 auto;
    width: 11rem;
  }

  .combo-tier-card__name {
    font-size: var(--font-size-14);
  }

  .combo-tier-card__price {
    font-size: var(--font-size-14);
  }

  .combo-tier-card__unit-price {
    font-size: var(--font-size-12);
  }
}

/* --- Collections & video cards: bo tròn, hover zoom ảnh, viền tinh --- */
.section-collection-list .coll-item,
.section-collection-list a[class*="coll"] {
  border-radius: 0;
  overflow: hidden;
}

.section-collection-list img,
.section-video-review img {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.section-collection-list a:hover img {
  transform: scale(1.06);
}

/* ===== Section Blog - featured (trái) + list nhỏ (phải) ===== */
.section-blogs .section-blogs__header {
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2.8rem;
}

.section-blogs .section-blogs__header .heading-bar .heading {
  margin-bottom: 0;
}

.card-article__image > a {
  width: 100%;
}

.section-blogs__featured-image {
  background: var(--color-neutral-100, #e9ebee);
}

/* Tỷ lệ khung ảnh lấy đúng theo setting "Tỷ lệ khung hình bài viết" (kể cả
   'Tuỳ chỉnh') qua biến --blogs-aspect-ratio đã tính sẵn ở css-variables.bwt -
   giống hệt cách article-card.bwt đang dùng, không hardcode ratio riêng ở đây. */
.section-blogs__featured-image.aspect-custom,
.section-blogs__featured-image .aspect-custom,
.section-blogs__list-thumb.aspect-custom,
.section-blogs__list-thumb .aspect-custom {
  --aspect-ratio: var(--blogs-aspect-ratio, 1/1);
}

.section-blogs__featured-tag {
  margin: 1.2rem 0 0.4rem;
  font-size: var(--font-size-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-blogs__featured-title {
  margin: 0 0 0.6rem;
  font-size: var(--font-size-h5);
  font-weight: 700;
  color: var(--color-foreground, #12161C);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-blogs__featured-tag+.section-blogs__featured-title {
  margin-top: 0;
}

.section-blogs__featured-desc {
  margin: 0;
  color: var(--color-neutral-300);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-blogs__list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.section-blogs__list-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.section-blogs__list-thumb {
  flex: none;
  width: 8rem;
  background: var(--color-neutral-100, #e9ebee);
}

.section-blogs__list-title {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--color-foreground, #12161C);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-blogs__list-item:hover .section-blogs__list-title {
  color: var(--color-primary);
}

.section-blogs__list-meta {
  margin: 0;
  font-size: var(--font-size-14);
  color: var(--color-neutral-300);
}

/* Ảnh thật ở nửa trên panel (thay cho div bg-image + overlay text cũ - text giờ tách
   thành nội dung HTML thật bên dưới ảnh, dễ đọc hơn nhiều so với chữ đè lên ảnh). */

/* Scroll ngang, mỗi item chiếm ~1/3.75 chiều rộng khung (thay vì wrap xuống dòng).
   fieldset có default `min-width: min-content` của trình duyệt - ép fieldset (và
   mọi thứ bên trong, kể cả grid overflow-x-auto) nở rộng vừa đủ chứa hết 6 item
   không-wrap, phá luôn cơ chế cuộn ngang (tràn ra ngoài card thay vì cuộn). */

/* ============================================================
   Bảng THƯỜNG trong nội dung (non-tech chèn qua editor, không class) - P1-B
   Áp cho: mô tả sản phẩm (.prose).
   Header vàng brand, zebra, viền mềm, cuộn ngang trên mobile.
   ============================================================ */
.main-product .content.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: var(--font-size-16);
  border: 1px solid var(--color-neutral-50);
  border-radius: 1rem;
  overflow: hidden;
}

.main-product .content.prose table th {
  background: var(--color-primary);
  color: var(--color-button-primary-text, #fff);
  font-weight: 600;
  text-align: left;
  padding: 1.2rem 1.4rem;
}

.main-product .content.prose table td {
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--color-neutral-50);
  vertical-align: top;
}

.main-product .content.prose table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

/* Cột đầu (tên gói/hạng mục) nổi bật */
.main-product .content.prose table td:first-child {
  font-weight: 600;
  color: var(--color-heading, inherit);
}

@media (max-width: 639px) {

  .main-product .content.prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Mobile UI review (Task 67) ===== */
@media (max-width: 767px) {
  /* Header trong suốt chỉ hợp desktop: banner mobile thấp, logo/menu đè lên chữ trong ảnh → mobile dùng header thường */
  .header.header.header-transparent {
    background-color: var(--color-header-bg);
    color: var(--color-header);
  }
  .header.header.header-transparent .header-logo { display: block; }
  .header.header.header-transparent .header-logo-transparent { display: none; }
  /* header.css nạp sau custom.css → cần selector mạnh hơn để thắng margin âm */
  .header.header.header-has-transparent ~ main { margin-top: 0; }

  .cro-btn-item {
    min-width: 4.4rem;
    min-height: 4.4rem;
  }
  .cro-btn-item:not(.cro-btn-item--cart) .w-4 {
    width: 2.4rem;
    height: 2.4rem;
  }
  .cro-btn-item .text-xs {
    font-size: var(--font-size-12);
    line-height: 1.6rem;
    color: var(--color-neutral-300);
  }
  .cro-btns-container {
    gap: 0;
  }
  /* Liquid gắn .hidden khi giỏ rỗng nhưng .cro-btns:has(.cro-btn-item){display:block} thắng .hidden → ép lại */
  .cro-btns.hidden { display: none; }

  /* Bảng trong nội dung trang (hướng dẫn chọn cỡ xe...): cuộn ngang thay vì bẻ từng chữ */
  .page-content .prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-content .prose table td:first-child,
  .page-content .prose table th:first-child { white-space: nowrap; }
}

@media (min-width: 768px) {
  .ba-info--center + .ba-grid > .before-after:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 1.2rem);
    margin-inline: auto;
  }
}

.promo-card__close {
  transition: transform 0.5s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.promo-card__close:hover {
  transform: rotate(360deg);
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

@media (max-width: 768px) {
  .policies-grid {
    row-gap: 2rem;
  }
  .policy-card {
    padding-block: 0;
    gap: 1.2rem;
  }
}

.card-product__footer > .card-product__option-wrapper {
  flex-basis: 100%;
}

/* Giá bán và giá gốc cùng một hàng trên thẻ sản phẩm */
.card-product .price-box > div {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
}


.cart-releated-products .embla__container {
  margin-left: 0 !important;
}

.megamenu-products-carousel .embla__nav {
  display: none;
}
.megamenu-products-carousel:has(card-product) .embla__nav {
  display: flex;
}

.card-product__soldout {
  --color-badge-bg: var(--color-neutral-50);
  --color-badge: color-mix(in srgb, var(--color-foreground) 65%, transparent);
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  line-height: 1.6rem;
}

/* Tablet 768-1023px dùng header dạng mobile (nút menu) nhưng logo vẫn rộng 22rem → header cao hơn --header-height,
   header trong suốt kéo nội dung lên không đủ nên hở dải trắng dưới thanh banner trên cùng. Logo về cỡ mobile. */
@media (min-width: 768px) and (max-width: 1023px) {
  .header .logo-wrapper { max-width: 15rem; }
}

/* Polyfill dialog trong vendors.css đặt `border: solid` → drawer menu/giỏ hàng hiện viền đen 3px quanh màn hình */
.portal-dialog { border: 0; }

/* Khối bài viết trang chủ dạng carousel: nhiều hơn số cột vẫn nằm 1 hàng, vuốt/bấm nút để xem tiếp */
.section-blogs__track {
  margin-left: -1.6rem;
}
.section-blogs__slide {
  flex: 0 0 80%;
  max-width: 80%;
  padding-left: 1.6rem;
}
@media (min-width: 768px) {
  .section-blogs__slide { flex-basis: 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 1024px) {
  .section-blogs__slide { flex-basis: 25%; max-width: 25%; }
}
.section-blogs__carousel .embla__button--prev { left: calc(var(--grid-gutter) * -0.5); }
.section-blogs__carousel .embla__button--next { right: calc(var(--grid-gutter) * -0.5); }
.section-blogs__carousel .embla__button { top: 30%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

/* ===== Trang blog: chia lại cột phải =====
   Lưới gốc `lg:[9fr_3fr] xl:[10fr_2fr]` cho cột phải chỉ ~17% bề ngang, "Tin tức nổi bật" bị bẻ chữ
   thành vài từ mỗi dòng. Cột phải cố định 30rem (32rem từ 1280px), cột bài viết chiếm phần còn lại với 2 thẻ mỗi hàng.
   Class tuỳ ý của Tailwind không biên dịch trong CSS dựng sẵn nên đặt tường minh ở đây. */
@media (min-width: 1024px) {
  .section-main-blog .blog-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) 30rem !important;
    column-gap: 4rem;
  }
  .section-main-blog .blog-layout--sidebar .blog-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .section-main-blog .blog-layout--sidebar .blog-sidebar {
    max-width: none;
  }
}
@media (min-width: 1280px) {
  .section-main-blog .blog-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) 32rem !important;
  }
}

.eyebrow {
  display: inline;
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-text);
}

.section-testimonials {
  --home-line: var(--color-neutral-50);
  --home-tag-bg: var(--color-accent-soft);
  --home-muted: var(--color-neutral-300);
}

.tst__who {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tst__mono {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--tst-bg);
  color: var(--color-primary);
  font-family: var(--font-body-family);
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  overflow: hidden;
}

.tst__mono img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: auto;
  min-height: 0;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: var(--rounded-md);
  background: var(--color-accent-soft);
  color: var(--color-primary);
  font-size: var(--font-size-14);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.link-view-all:hover {
  background: var(--color-neutral-50);
  color: var(--color-primary);
}

.link-view-all .icon {
  font-size: 1.4rem;
}

.empty-state,
.no-products-content .product-list > .w-full {
  grid-column: 1 / -1;
  margin-inline: auto;
  text-align: center;
}

.tst__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.4rem;
  transition: text-decoration-color 0.2s ease;
}

.tst__link .icon {
  transition: transform 0.2s ease;
}

.tst__link:hover {
  text-decoration-color: currentColor;
}

.tst__link:hover .icon {
  transform: translateX(0.4rem);
}

.section-testimonials {
  background: var(--tst-bg);
}

.tst__layout {
  display: block;
}

.tst__intro {
  text-align: center;
}

.tst__intro .heading-bar .heading {
  margin-top: 0;
}

.tst__intro .heading-subtitle {
  max-width: 62rem;
  margin: 0.6rem auto 0;
}

.tst__nav {
  display: none;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (min-width: 769px) {
  .tst__layout--paged .tst__nav {
    display: flex;
  }
}

.tst__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-secondary);
}

.tst__product {
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  margin-left: auto;
  object-fit: cover;
}

.tst__nav .embla__button {
  position: static;
  transform: none;
  width: 4.4rem;
  height: 4.4rem;
  opacity: 1;
  border: 1px solid var(--home-line);
  background: var(--color-background);
  color: var(--color-foreground);
}

.tst__nav .embla__button:disabled {
  opacity: 0.45;
}

.tst__track .embla__container {
  margin-left: -2rem;
}

.tst__slide {
  flex: 0 0 33.3333%;
  min-width: 0;
  margin: 0;
  padding-left: 2rem;
}

.tst__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 1.4rem;
  height: 100%;
  padding: 2.8rem;
  font-size: var(--font-size-16);
  line-height: 1.6;
  background: var(--color-background);
  border: 1px solid var(--home-line);
  border-radius: 0;
}

.tst__quote {
  flex: 1;
  margin: 0;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h5);
  line-height: 1.45;
}

.tst__quote {
  quotes: "\201C" "\201D";
  letter-spacing: normal;
  text-wrap: pretty;
}

.tst__quote::before {
  content: open-quote;
}

.tst__quote::after {
  content: close-quote;
}

.tst__order {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-12);
  font-weight: 600;
  color: var(--color-gold-text);
}

.tst__order .icon {
  font-size: 1.5rem;
}

.tst__who {
  gap: 1.2rem;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--home-line);
}

.tst__who-text {
  display: block;
  min-width: 0;
}

.tst__who-text b {
  display: block;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--color-foreground);
}

.tst__who-text span {
  display: block;
  font-size: var(--font-size-12);
  line-height: 1.6;
  color: var(--home-muted);
}

.tst__track .embla__dots {
  margin-top: 1.4rem;
}

@media (max-width: 768px) {

  .section-testimonials .heading-bar .heading {
    font-size: var(--font-size-h4);
  }

  .tst__track .embla__container {
    margin-left: -1.2rem;
  }

  .tst__slide {
    flex-basis: calc(86% + 0.17rem);
    padding-left: 1.2rem;
  }

  .tst__card {
    padding: 2.8rem;
    font-size: var(--font-size-16);
  }

  .tst__quote {
    font-size: var(--font-size-18);
  }
}

footer {
  --footer-muted: var(--color-footer-text);
  --footer-line: color-mix(in srgb, var(--color-footer-text) 28%, var(--color-footer));
  --footer-soft: color-mix(in srgb, var(--color-footer-text) 7%, var(--color-footer));
  margin-top: var(--section-surface-pad);
  font-size: var(--font-size-16);
  padding-top: var(--spacing-14);
}

footer > .container > .grid:not(.footer-copyright) {
  padding-top: 0;
}

footer .footer-logo img {
  max-width: 100%;
  height: auto;
}

footer .footer-col > .text-base.font-semibold,
footer .footer-col > .mb-3,
footer .email-subscribe > p:nth-child(2),
footer .contact-group .text-forground {
  color: var(--footer-muted);
  line-height: 1.6;
}

footer .footer-details summary,
footer .footer-col > .mt-6 > p:first-child,
footer .social-icons > p,
footer .email-subscribe > p:first-child,
footer .trust-badges > p {
  margin-bottom: var(--spacing-4);
  font-family: var(--font-body-family);
  font-size: var(--font-size-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-footer-text);
  list-style: none;
}

footer .footer-details summary::-webkit-details-marker {
  display: none;
}

footer .footer-details summary:hover {
  color: var(--color-footer-hover);
}

footer .list-menu {
  padding-left: 0;
  list-style: none;
}

footer .list-menu > li + li {
  margin-top: var(--spacing-3);
}

footer .list-menu a {
  display: inline-block;
  text-wrap: balance;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .list-menu a:hover {
  transform: translateX(4px);
}

footer .link,
footer a {
  color: var(--color-footer-text);
}

footer .link:hover,
footer a:hover {
  color: var(--color-footer-hover);
}

footer .contact-group .icon {
  flex: 0 0 3.6rem;
  width: 3.6rem;
  height: 3.6rem;
  margin-right: var(--spacing-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-footer-hover);
  background: var(--footer-soft);
}

footer .contact-group .text-forground {
  font-size: var(--font-size-14);
}

footer .social-icons .flex {
  flex-wrap: wrap;
}

footer .social-icons a {
  width: 4rem;
  height: 4rem;
  border-color: var(--footer-line);
  border-radius: 50%;
  background: var(--footer-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

footer .social-icons a:hover {
  background: var(--footer-soft);
  box-shadow: 0 0 0 3px var(--color-footer-hover);
  transform: translateY(-3px);
}

footer .member-card {
  padding: 2.2rem;
  border-radius: var(--rounded-lg);
  background: var(--color-accent-soft);
  gap: 0;
}

footer .member-card > p:first-child {
  margin-bottom: 0.6rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h5);
  font-weight: 600;
  color: var(--color-primary);
}

footer .member-card > p:nth-child(2) {
  color: var(--color-neutral-300);
}

footer .member-card__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

footer .member-card > p:nth-child(2),
footer .member-card__benefit span {
  text-wrap: balance;
}

footer .member-card__benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 2.4rem;
  color: var(--color-ink);
  font-weight: 400;
}

footer .member-card__benefit .icon {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-button-primary-text);
  font-size: 1.2rem;
}

footer .member-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.6rem;
  border-radius: var(--rounded-full);
  color: var(--color-button-primary-text);
}

footer .member-card__button:hover {
  color: var(--color-button-primary-text);
}

footer .trust-badges img {
  border-radius: var(--rounded-sm, 6px);
}

footer .footer-copyright {
  border-top: 1px solid var(--footer-line);
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-4);
  color: var(--footer-muted);
  font-size: var(--font-size-14);
}

@media (max-width: 767px) {
  footer {
    padding-top: var(--spacing-12);
  }

  footer > .container > .grid:not(.footer-copyright) {
    padding-top: 0;
  }

  footer .footer-details summary {
    margin-bottom: var(--spacing-3);
  }

  footer .footer-details summary .icon {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  footer .footer-details[open] summary .icon {
    transform: rotate(270deg);
  }
}

/* Dưới 1280px nội dung chạm sát mép phải, nút dọc sẽ che chữ: chỉ hiện trên máy tính */

.addThis_listSharing {
  position: fixed;
  bottom: 110px;
  z-index: 999;
  top: auto !important;
  right: 12px;
  opacity: 0;
  display: none;
}

.backtop {
  top: auto !important;
  font-size: var(--font-size-14);
  cursor: pointer;
  color: #fff;
  top: auto !important;
  height: 44px;
  width: 44px;
  background-color: var(--color-primary);
  line-height: 36px;
  border-radius: 100%;
  font-size: var(--font-size-32);
  transition: all 0.3s ease-out 0s;
  /* Trượt theo trục dọc: translateX(20px) ở trạng thái ẩn đẩy nút vượt mép
     phải viewport (right:12px + 20px) và làm tràn ngang tài liệu trên một số
     trình duyệt. Trượt xuống dưới cho hiệu ứng tương đương mà không lấn ngang. */
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  text-align: center;
  color: #fff !important;
  margin-bottom: 5px;
}

.backtop:hover {
  filter: brightness(1.3);
}

.backtop.show {
  z-index: 999;
  transition: transform 0.3s ease-out 0s;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.floating_banner img{
  max-width: 70px;
}
@media (max-width: 576px) {
  .backtop {
    bottom: 60px;
  }
  .floating_banner img{
    max-width: 60px;
  }
}

.fb_dialog_advanced.fb_customer_chat_bubble_animated_no_badge {
  right: 12px !important;
}
.addThis_listSharing {
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.addThis_listing .addThis_item {
  margin-bottom: 5px;
}
.addThis_listing .addThis_item .addThis_item--icon {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.11);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
}
.addThis_listing .addThis_item .addThis_item--icon .tooltip-text {
  position: absolute;
  top: 4px;
  right: 55px;
  z-index: 9;
  height: 32px;
  line-height: 26px;
  padding: 3px 10px;
  width: auto;
  border-radius: 5px;
  font-size: 11px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 1);
  visibility: hidden;
  opacity: 0;
  -ms-transition: all 200ms linear;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}
.addThis_listing .addThis_item .addThis_item--icon .tooltip-text:after {
  content: "";
  width: 0;
  height: 0;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(0, 0, 0, 1);
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  margin: auto;
  -ms-transition: all 200ms linear;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}
.addThis_listing .addThis_item .addThis_item--icon:hover {
  text-decoration: none;
  opacity: 0.9;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.13);
}
.addThis_listing .addThis_item .addThis_item--icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.actionToolbar_mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 999;
  height: 45px;
  width: 100%;
  border-top: 1px solid #e7e7e7;
  background: #fff;
  padding: 5px 10px;
}
.fb_dialog_content > iframe {
  right: -6px !important;
}
.addThis_item--toggle{
	width: 44px;
	height: 44px;
	background: var(--color-primary);
	padding: 4px;
	cursor: pointer;
	color: #fff;
	  display: flex;
    align-items: center;
    justify-content: center;

}
.addThis_item--toggle * {
	transition: transform ease .3s;
	position: absolute;
	
}
.addThis_item--toggle:hover{
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.13);
}

.addThis_group:not(.active) .addThis_listing{
	pointer-events: none;
}
 .addThis_item--toggle .icon{
	transform: scale(0);
	 /* 44px = icon lấp đầy cả vòng tròn 44px → nét X quá thô. Thu nhỏ cho thanh mảnh. */
	 font-size: 20px;
	 inset: 0;
	 display: flex;
	 align-items: center;
	 justify-content: center;
}
.addThis_group.active .icon{
	transform: scale(1)

}

.addThis_group.active .addThis_item--toggle  img{
	transform: scale(0)
}

/* Frequently Bought Together Styles */
.section-frequently-bought {
    border: 1px solid #f3f4f6;
    padding: 2.2rem;
}

@media (max-width: 767px) {
    .section-frequently-bought {
        padding: 1.6rem;
    }
}

.frequently-product-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--color-background);
    border-radius: var(--product-card-rounded);
    transition: all 0.3s ease;
    border: 1px solid var(--color-neutral-50);
}

.frequently-product-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.frequently-product-item .card-product__image {
    margin-bottom: 0;
}

.frequently-product-item .card-product__image > div {
    border-radius: 0;
}

.frequently-product-item .card-product__body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.frequently-product-item .card-product__title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.frequently-product-item .card-product__price {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.6rem;
}

.frequently-product-item .card-product__price > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.frequently-product-item .card-product__body > .mt-auto {
    margin-top: 0.8rem;
}

.frequently-product-item .card-product__body a.link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.frequently-product-item .card-product__vendor {
    padding-bottom: 0;
    color: var(--color-neutral-300);
}

/* Sản phẩm hết hàng: vẫn hiện để gợi ý nhưng làm mờ, checkbox bị khoá */
.frequently-product-item--sold-out .card-product__image,
.frequently-product-item--sold-out .card-product__body > *:not(:last-child) {
    opacity: 0.5;
}

.frequently-product-item--sold-out .frequently-checkbox {
    opacity: 0.4;
    cursor: not-allowed;
}

.frequently-product-item .frequently-checkbox-wrapper {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 10;
}

.frequently-product-item .frequently-checkbox {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-neutral-50);
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.frequently-product-item .frequently-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.frequently-product-item .frequently-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.frequently-bundle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .frequently-bundle-grid {
        grid-template-columns: minmax(0, 1fr) 27rem;
        gap: 1.2rem;
    }
}

.frequently-summary {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    padding: 1.6rem;
    background: var(--color-background);
    border: 0;
}

.frequently-summary > p {
    margin-bottom: 0;
}

.frequently-summary .frequently-selected-items {
    margin-bottom: 0;
}

.frequently-summary > .border-t {
    margin-bottom: 0;
    padding-top: 0;
    border-top: 0;
}

.frequently-summary > .border-t > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.frequently-summary > .border-t > div > span:first-child {
    font-weight: 400;
    color: var(--color-neutral-300);
}

.frequently-summary .frequently-add-to-cart {
    margin-top: auto;
}

.frequently-summary h3 {
    font-size: var(--font-size-18);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.frequently-add-to-cart {
    height: 50px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
}

.frequently-total-price {
    color: var(--color-price, #ee1926);
    font-size: var(--font-size-h5);
    font-weight: 700;
}

.frequently-selected-items {
    max-height: 16rem;
    overflow-y: auto;
}

/* Fix carousel overflow on mobile */
.frequently-products-carousel .embla {
    overflow: hidden;
}

.frequently-products-carousel .embla__viewport {
    overflow: visible;
}

.frequently-products-carousel .embla__container {
    display: flex;
}

@media (min-width: 768px) {
    .frequently-products-carousel .embla__container {
        margin-left: -1.2rem;
    }

    .frequently-products-carousel .embla__container > div,
    .frequently-products-carousel .embla__container > div:first-of-type {
        flex: 0 0 33.3333%;
        width: 33.3333%;
        margin-left: 0;
        padding-left: 1.2rem;
    }
}

@media (min-width: 1280px) {
    .frequently-products-carousel .embla__container > div,
    .frequently-products-carousel .embla__container > div:first-of-type {
        flex-basis: 25%;
        width: 25%;
    }
}

/* Mobile: mọi slide phải cùng padding thì card mới rộng bằng nhau. Trước đây
   bỏ padding riêng slide đầu để card không lẹm mép trái, nhưng card đầu vì thế
   rộng hơn 8px -> ảnh (aspect-ratio cố định) cao hơn ~10px -> phần thông tin
   bên dưới ngắn lại, lệch hẳn so với các card sau. Giữ padding đều và kéo cả
   dải sang trái đúng 8px để mép trái vẫn thẳng. */
@media (max-width: 767px) {
    .frequently-products-carousel .embla__container {
        margin-left: -8px !important;
    }
}

.frequently-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.sapo-product-reviews-module .bpr-products-module-heading .bpr-products-module-title {
  display: inline-block;
  position: relative;
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: #333;
  font-size: var(--font-size-24);
  padding-bottom: 15px;
  line-height: 1.2; }

.sapo-product-reviews-module .bpr-product-img img {
  width: 100%; }

.sapo-product-reviews-module .bpr-product-content {
  margin: 20px 0px 15px; }
  .sapo-product-reviews-module .bpr-product-content .bpr-product-name {
    font-size: var(--font-size-body);
    font-weight: 400;
    margin: 0 0 5px;
    line-height: 24px; }
  .sapo-product-reviews-module .bpr-product-content .bpr-product-star {
    display: flex;
    align-items: center;
    line-height: 1; }
    .sapo-product-reviews-module .bpr-product-content .bpr-product-star i {
      font-size: var(--font-size-18);
      font-style: normal; }
    .sapo-product-reviews-module .bpr-product-content .bpr-product-star.bpr-product-reviews-heart i.star-on-png:before {
      content: "\f004";
      font-family: 'FontAwesome'; }
    .sapo-product-reviews-module .bpr-product-content .bpr-product-star.bpr-product-reviews-heart i.star-off-png:before {
      content: "\f08a";
      font-family: 'FontAwesome'; }
    .sapo-product-reviews-module .bpr-product-content .bpr-product-star.bpr-product-reviews-heart i.star-half-png {
      position: relative; }
      .sapo-product-reviews-module .bpr-product-content .bpr-product-star.bpr-product-reviews-heart i.star-half-png:before {
        content: "\f08a";
        font-family: 'FontAwesome'; }
      .sapo-product-reviews-module .bpr-product-content .bpr-product-star.bpr-product-reviews-heart i.star-half-png:after {
        font-family: 'FontAwesome';
        content: "\f004";
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        overflow: hidden;
        line-height: 1; }
  .sapo-product-reviews-module .bpr-product-content .bpr-product-price .price {
    font-size: var(--font-size-body);
    font-family: 'Arial', sans-serif;
    color: #363636;
    font-weight: 700;
    margin-right: 10px; }
    .sapo-product-reviews-module .bpr-product-content .bpr-product-price .price.bpr-product-oldprice {
      font-size: var(--font-size-14);
      color: #acacac;
      font-family: 'Arial', sans-serif;
      line-height: 24px;
      font-weight: 300;
      text-decoration: line-through; }

.sapo-product-reviews-module .bpr-button-prev, .sapo-product-reviews-module .bpr-button-next {
  font-size: var(--font-size-44);
  background: transparent;
  color: #333;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-140%);
  z-index: 999; }
  .sapo-product-reviews-module .bpr-button-prev:not(.swiper-button-disabled), .sapo-product-reviews-module .bpr-button-next:not(.swiper-button-disabled) {
    cursor: pointer; }

.sapo-product-reviews-module .bpr-button-next {
  right: 0;
  left: auto; }

.banner-3d {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	perspective: 2500px;
	transition: all 0.5s;
}

.banner-3d .banner-3d__wrapper {
	transition: all 0.5s;
	width: 100%;
	z-index: -1;
}

.banner-3d .banner-3d__hover-img {
	opacity: 0;
	transition: all 0.5s;
	position: absolute;
	z-index: -1;
}


@media(min-width: 1200px) {

	.banner-3d .banner-3d__wrapper::before,
	.banner-3d .banner-3d__wrapper::after {
		content: "";
		opacity: 0;
		width: 100%;
		height: 80px;
		transition: all 0.5s;
		position: absolute;
		left: 0;
	}

	.banner-3d .banner-3d__wrapper::before {
		top: 0;
		height: 100%;
		background-image: linear-gradient(to top, transparent 100%, rgba(12, 13, 19, 0.5) 68%, rgba(12, 13, 19, 0.8) 97%);
	}

	.banner-3d .banner-3d__wrapper::after {
		bottom: 0;
		opacity: 1;
	}

	.banner-3d:hover .banner-3d__wrapper {
		transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0) scale(0.8);
		box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
		-webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
		-moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
		filter: blur(1px);
	}

	.banner-3d:hover .banner-3d__wrapper::before,
	.banner-3d:hover .banner-3d__wrapper::after {
		opacity: 1;
	}

	.banner-3d:hover .banner-3d__wrapper::after {
		height: 100%;
		background-image: linear-gradient(to bottom, transparent 0%, rgba(12, 13, 19, 0.5) 68%, rgba(12, 13, 19, 0.8) 97%);
	}

	.banner-3d:hover .banner-3d__hover-img {
		opacity: 1;
		transform: translate3d(0, -28%, 0) scale(1.15);
		z-index: 1;
	}
}

@media (min-width: 1600px) {
	.banner-3d:hover .banner-3d__hover-img {
		transform: translate3d(0, -38%, 0) scale(1.15);
	}
}

.section-collection-list .coll-card {
  position: relative;
  display: block;
  text-align: center;
  cursor: pointer;
}

.section-collection-list .coll-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-bottom: 1.2rem;
  background: var(--product-image-bg);
  transition: transform 0.6s ease;
}

.section-collection-list .coll-card:hover img {
  transform: scale(1.05);
}

.section-collection-list .coll-card .coll-label {
  display: block;
  color: var(--color-foreground);
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h5);
  font-weight: 500;
  line-height: 1.6;
}

.section-collection-list .coll-card .coll-label small {
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 400;
  line-height: 1.6;
  padding-bottom: 0.4rem;
  display: block;
  color: var(--color-neutral-300);
}

.section-collection-list .coll-card .coll-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--color-secondary);
  color: #1a1a1a;
  font-size: var(--font-size-12);
  font-weight: 700;
  border-radius: 50%;
  width: 5.2rem;
  height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.section-collection-list .section-heading h2 {
  position: relative;
  display: inline;
}

.collection-slider-wrapper {
  position: relative;
  margin-top: 0;
}

/* Cụm nút trước/sau nằm sẵn trong hàng flex `justify-between` cạnh tiêu đề, nên
   KHÔNG cần định vị tuyệt đối. Bản cũ dùng position: absolute + top: -5.6rem kéo
   nó lên phía trên `.container.overflow-hidden` -> bị cắt hoàn toàn ở MỌI khổ màn
   hình, khách không bao giờ thấy 2 nút này. */
.collection-slider-nav {
  display: flex;
  gap: 0.8rem;
  flex: none;
}

.section-collection-list .section-card {
  position: relative;
}

.section-collection-list .section-card > .flex {
  margin-bottom: 0;
}

.section-collection-list .heading-bar {
  flex: 1;
  text-align: center;
}

.section-collection-list .collection-slider-nav {
  position: absolute;
  top: 0;
  right: 0;
}

.collection-slider-nav button {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-100);
  background: var(--color-background);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.collection-slider-nav button:hover {
  background: var(--color-foreground);
  color: #fff;
  border-color: var(--color-foreground);
}

/* Explicit layout for collection items */
.section-collection-list .embla__container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 1rem;
}

.section-collection-list .embla__slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}

@media (min-width: 1024px) {
  .section-collection-list .embla__container {
    flex-wrap: nowrap;
    gap: 1.6rem;
  }

  .section-collection-list .embla__slide {
    flex: 0 0 calc((100% - (var(--coll-columns, 5) - 1) * 1.6rem) / var(--coll-columns, 5));
  }
}

.section-collection-list .collection-slider-nav:has(#coll-prev:disabled):has(#coll-next:disabled) {
  display: none;
}

.section-product-tabs .tab-header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  margin-bottom: 0;
}

.section-product-tabs .tab-header-bar .heading-bar {
  text-align: center;
}

.section-product-tabs .tab-group {
  display: flex;
  justify-content: center;
  gap: 2.8rem;
  width: 100%;
  margin: 0 0 2.8rem;
  padding: 0;
  border-bottom: 1px solid var(--color-neutral-50);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-product-tabs .tab-group::-webkit-scrollbar {
  display: none;
}

.section-product-tabs .tab-pill {
  flex-shrink: 0;
  margin-bottom: -1px;
  padding: 0 0 1.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--color-neutral-300);
  font-size: var(--font-size-16);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-product-tabs .tab-pill:hover {
  color: var(--color-foreground);
}

.section-product-tabs .tab-pill.active {
  border-bottom-color: var(--color-foreground);
  background: none;
  color: var(--color-foreground);
  box-shadow: none;
}

.section-product-tabs .tab-view-all {
  text-align: center;
  margin-top: 2.2rem;
}

.section-product-tabs .tab-view-all--section {
  margin-top: 4rem;
}

@media (max-width: 767px) {
  .section-product-tabs .tab-group {
    justify-content: flex-start;
    gap: 2.2rem;
  }
}

/* Mobile product gap */
@media (max-width: 767px) {
  .section-product-tabs .product-list {
    gap: 1.2rem !important;
  }
}

.section-flashsale--single {
  overflow: visible !important;
}

.fs-wrap {
  position: relative;
  background: var(--color-flashsale-bg);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.fs-wrap__inner {
  display: grid;
  grid-template-columns: 30rem minmax(0, 1fr);
  align-items: stretch;
}

.fs-promo {
  position: relative;
  width: auto;
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.6rem;
  background: linear-gradient(160deg, var(--color-flashsale-timer-bg), var(--color-flashsale-bg));
  overflow: hidden;
}

.fs-promo--photo {
  background-image: var(--fs-promo-bg);
  background-size: cover;
  background-position: center;
}

.fs-promo--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(9,11,15,0.94) 0%, rgba(9,11,15,0.82) 45%, rgba(9,11,15,0.45) 100%);
  pointer-events: none;
}

.fs-promo > * { position: relative; z-index: 1; }

.fs-promo__head {
  display: flex;
  flex-direction: column;
}

.fs-promo__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--color-flashsale-accent);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fs-promo__title {
  margin: 0;
  font-family: var(--font-headings-family);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: var(--color-flashsale-title);
  line-height: 1.15;
}

.fs-promo__title-line1 {
  display: block;
  font-size: var(--font-size-36);
  line-height: 1.15;
}

.fs-promo__title-light,
.fs-promo__title-accent { color: var(--color-flashsale-title); }

.fs-promo__sub {
  margin: 0.8rem 0 0;
  font-size: var(--font-size-14);
  line-height: 1.55;
  color: var(--color-flashsale-muted);
}

.fs-promo__title-line2 {
  display: block;
  font-size: var(--font-size-36);
  line-height: 1.15;
  color: var(--color-flashsale-title);
}

.fs-promo__timer countdown-timer,
.fs-promo__timer .flashsale__countdown-timer,
.fs-promo__timer .flashsale__countdown {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 0.8rem;
}

.fs-promo__timer .flashsale__countdown-label {
  margin: 0;
  color: var(--color-flashsale-muted) !important;
  font-size: var(--font-size-14);
  line-height: 1.6;
  text-align: left;
}

.fs-promo__timer .ega-badge-ctd {
  display: flex !important;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.fs-promo__timer .ega-badge-ctd__item {
  width: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.8rem 0 !important;
  border-radius: 0 !important;
  background: var(--color-flashsale-bg) !important;
  border: 0;
  min-width: 5.6rem;
}

.fs-promo__timer .ega-badge-ctd__h {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-28) !important;
  font-weight: 500;
  color: var(--color-flashsale-title);
}

.fs-promo__timer .ega-badge-ctd__item {
  font-size: var(--font-size-12);
  color: var(--color-flashsale-muted);
}

.fs-promo__timer .ega-badge-ctd__item span {
  font-size: var(--font-size-12);
  line-height: 1.6;
  color: var(--color-flashsale-muted);
}

.fs-promo__timer .ega-badge-dot {
  display: none;
}

.fs-promo__gift {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
}

.fs-promo__gift-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-flashsale-accent);
  font-size: 1.8rem;
}

.fs-promo__gift-title {
  font-weight: 700;
  font-size: var(--font-size-14);
  color: var(--color-flashsale-title);
  line-height: 1.3;
}

.fs-promo__gift-subtitle {
  font-size: var(--font-size-12);
  color: var(--color-flashsale-title);
}

.fs-promo__cta {
  align-self: flex-start;
  padding: 0 0 0.2rem;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--color-flashsale-title);
  font-weight: 600;
  line-height: 1.6;
}

.fs-promo__cta:hover {
  background: none;
  color: var(--color-flashsale-accent);
}

.fs-products {
  min-width: 0;
  padding: 2.4rem 0;
  display: flex;
  align-items: flex-start;
}

.fs-products > * { width: 100%; }

/* Dòng thông báo chưa có sản phẩm: cùng màu chữ của khối, không mờ, để đọc rõ trên nền tối. */
.fs-products .empty-state {
  color: var(--color-flashsale-title);
  opacity: 1;
}

.fs-products .embla__container {
  margin-left: -1.8rem;
}

.fs-products .flashsale__item {
  padding-left: 1.8rem;
}

.section-flashsale .card-product__vendor,
.section-flashsale .compare-price {
  color: var(--color-flashsale-muted);
}

.section-flashsale .card-product__title,
.section-flashsale .card-product .price {
  color: var(--color-flashsale-title);
}

.section-flashsale .card-product .stock-countdown-inner .stock-label {
  margin-top: 0.8rem;
  color: var(--color-flashsale-muted);
  font-size: var(--font-size-12);
  line-height: 1.6;
}

.section-flashsale .card-product .stock-progressbar {
  height: 0.4rem;
  margin-top: 0.8rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--color-flashsale-title) 16%, transparent);
}

.section-flashsale .card-product .stock-percent {
  height: 0.4rem;
  border-radius: 0.4rem;
  background: var(--color-flashsale-process);
}

@media (min-width: 1024px) {
  .section-flashsale .fs-products .flashsale__item {
    width: calc((100% - 7.2rem) / 3.75 + 1.8rem) !important;
    max-width: calc((100% - 7.2rem) / 3.75 + 1.8rem) !important;
    flex: 0 0 calc((100% - 7.2rem) / 3.75 + 1.8rem) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .section-flashsale .fs-products .flashsale__item {
    width: 43.4783% !important;
    max-width: 43.4783% !important;
    flex: 0 0 43.4783% !important;
  }
}

.fs-wrap .embla__dot { background-color: color-mix(in srgb, var(--color-flashsale-title) 35%, transparent); }
.fs-wrap .embla__dot--selected { background-color: var(--color-flashsale-accent); }

@media (max-width: 1023px) {
  .fs-wrap__inner {
    grid-template-columns: 1fr;
  }

  .fs-promo {
    padding: 2.4rem;
  }

  .fs-products {
    padding: 0 0 2.4rem 2.4rem;
  }
}

@media (max-width: 767px) {
  .fs-promo__title-line1,
  .fs-promo__title-line2 { font-size: var(--font-size-h4); }

  .fs-products .embla__container {
    margin-left: -1.2rem;
  }

  .fs-products .flashsale__item {
    padding-left: 1.2rem;
    width: calc((100% - 1.2rem) * 0.46 + 1.2rem);
  }
}

.section-banner-group .embla__container {
  margin-left: -1.6rem;
}

.section-banner-group .embla__slide a {
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.section-banner-group .embla__slide a.banner-3d {
  overflow: visible;
}

.coupon-ticket .coupon-ticket__copy-btn.btn {
  min-height: 0;
}

.card-product__badges .sale-badge {
  padding: 0.2rem 0.7rem;
  border-radius: var(--rounded-button);
  font-weight: 600;
  line-height: 1.6;
}

.ba-grid {
  gap: 2rem;
}

.section-hot-spots .container > div {
  grid-template-columns: 1.1fr 1fr;
}

.section-hot-spots hot-spots img {
  border-radius: var(--rounded-lg);
}

.section-hot-spots .hot-spot-summary span {
  width: 2.6rem;
  height: 2.6rem;
}

/* Nút của mọi điểm nằm trên popup của điểm đang mở (popup z-index 999): hai điểm gần nhau thì popup điểm thứ nhất
   không phủ lên nút điểm thứ hai, bấm điểm thứ hai là điểm thứ nhất tự đóng. */
.hot-spot-item .hot-spot-summary {
  z-index: 1000;
}

.section-hot-spots .hot-spots-content-text p {
  margin: 1.4rem 0;
  color: var(--color-neutral-300);
}

.section-hot-spots h2.heading {
  font-size: var(--font-size-36);
}

@media (max-width: 767px) {
  .section-hot-spots h2.heading {
    font-size: var(--font-size-28);
  }
}

.section-hot-spots a.btn {
  margin-top: 2.2rem;
  min-width: 0;
  min-height: 4.6rem;
  padding: 0 2.4rem;
  border-radius: var(--rounded-button);
}

.section-video-review .social-media__title {
  font-weight: 700;
}

.section-video-review .video-list .embla__container {
  margin-left: -1.6rem;
}

.section-video-review .video-list .embla__slide {
  padding-left: 1.6rem;
}

.section-blogs .card-article__body {
  padding-block: 0;
}

.section-blogs .cart-article__date {
  margin: 1rem 0 0;
}

.section-blogs .card-article__title {
  margin: 0.4rem 0;
  min-height: 0;
  font-weight: 600;
}

.section-blogs .card-article__desc {
  color: var(--color-neutral-300);
  -webkit-line-clamp: 2;
}

.section-blogs .card-article__image,
.section-blogs .card-article__image img {
  border-radius: 0;
}

.section-polices-v2 .container {
  padding-block: 4rem;
}

@media (max-width: 768px) {
  .section-polices-v2 .container {
    padding-block: 2.4rem;
  }
}

footer .footer-details summary,
footer .footer-col > .mt-6 > p:first-child,
footer .social-icons > p,
footer .trust-badges > p {
  color: #fff;
}

footer .contact-group p.font-semibold {
  color: #fff;
}

footer .footer-col > .mb-3 {
  opacity: 0.85;
}

footer .contact-group .text-forground {
  opacity: 0.65;
}

footer .member-card > p:nth-child(2) {
  margin-bottom: 1.2rem;
}

footer .footer-copyright {
  margin-top: 3.6rem;
  padding: 1.8rem 0;
  border-color: var(--footer-line);
  color: var(--color-footer-text);
  font-size: var(--font-size-14);
}

.fs-products .embla__dots,
.section-collection-list .embla__dots,
.section-banner-group .embla__dots,
.section-instagram .embla__dots {
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

.embla__dots {
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.embla__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.3rem;
  background-color: var(--color-neutral-50);
}

.embla__dot--selected {
  width: 1.8rem;
  background-color: var(--color-secondary);
}

.card-product--vertical .card-product__footer {
  padding-top: 0.6rem;
}

.section-instagram .embla__slide a {
  border-radius: 0;
}

.section-hot-spots .hot-spot-content__inner > div:last-child {
  border-radius: var(--rounded);
}

.policy-card__title {
  margin-bottom: 0;
}

footer .contact-group .text-forground {
  font-size: var(--font-size-14);
}

.section-blogs__carousel {
  margin-top: 0;
}

.section-instagram .embla__slide img {
  height: auto;
}

.section-before-after .heading-bar .heading {
  margin-bottom: 0.6rem;
}

@media (max-width: 767px) {
  .section-collection-list .coll-card .coll-label {
    font-size: var(--font-size-18);
  }

  .section-collection-list .coll-card .coll-label small {
    display: none;
  }

    .fs-products .embla__container {
    margin-left: -1rem;
  }

  .fs-products .flashsale__item {
    padding-left: 1rem;
  }

  .card-product .addtocart-btn.addtocart-btn--icon {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0.6rem;
    border-radius: 9999px;
  }

  .section-hot-spots .hot-spot-summary span {
    width: 3.6rem;
    height: 3.6rem;
  }

  .section-hot-spots a.btn {
    width: auto;
  }

  .section-blogs__track {
    margin-left: -1rem;
  }

  .section-blogs__slide {
    flex-basis: 47.5%;
    max-width: 47.5%;
    padding-left: 1rem;
  }

  footer .footer-copyright {
    margin-top: 2rem;
  }

  .header {
    padding-block: 0.9rem;
  }

  .header .logo-wrapper img {
    max-height: 3.8rem;
    width: auto;
  }
}

.section-banner-group:not(.section-instagram) .embla__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 408 / 232;
  object-fit: cover;
}

@media (max-width: 767px) {
  .section-products-slider .section-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-products-slider .section-card > carousel-slider {
    grid-row: 3;
  }

  .section-products-slider .section-card > .text-center {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: -1rem 0 1.8rem;
  }
}

@media (min-width: 768px) {
  footer > .container > .grid:not(.footer-copyright) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.6rem;
    align-items: start;
  }

  footer .footer-col {
    width: auto;
    flex: none;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  footer > .container > .grid:not(.footer-copyright) {
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  }
}

@media (max-width: 767px) {
  .heading:has(+ .heading-subtitle) {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .section-video-review .section-card > div:first-child {
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }

  .section-video-review .heading-subtitle {
    margin-bottom: 0;
  }

  .section-video-review .social-media .flex-col {
    gap: 0;
  }

  .section-hot-spots .container > div {
    gap: 2rem;
  }
}

.section-hot-spots h2.heading {
  margin-bottom: 0;
}

.section-hot-spots .hot-spots-content-text ul {
  margin-block: 0;
}

@media (max-width: 767px) {
  .section-blogs .section-blogs__header {
    gap: 0.8rem;
    margin-bottom: 3.6rem;
  }

  .section-blogs__header .heading-subtitle {
    margin-bottom: 0;
  }
}

.section-hot-spots .hot-spots-content-text li {
  margin: 0.8rem 0 0;
}

.section-hot-spots .hot-spots-content-text li:first-child {
  margin-top: 0;
}

.section-hot-spots .hot-spots-content-text {
  padding-bottom: 1rem;
}

.card-product .addtocart-btn--icon .icon {
  font-size: 1.6rem;
}

.collection-slider-nav:has(button:disabled + button:disabled) {
  display: none;
}

@media (max-width: 767px) {
  .collection-slider-nav {
    display: none;
  }
}

.before-after__handle {
  width: 4rem;
  height: 4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-hot-spots .hot-spots-content-text ul {
  padding-left: 0;
  list-style: none;
}

.section-hot-spots .hot-spots-content-text li {
  display: flex;
  gap: 1rem;
  padding-left: 0;
}

.section-hot-spots .hot-spots-content-text li::before {
  content: "\2726";
  color: var(--color-secondary);
}

@media (max-width: 767px) {
  .section-product-tabs .tab-header-bar {
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }

  .section-product-tabs .tab-header-bar .heading-subtitle {
    margin-bottom: 0;
  }
}

@media (max-width: 1279px) {
  .header-box-live {
    display: none;
  }
}

button[data-toggle-facet] > svg path {
  fill-opacity: 1;
}

.section-main-login .btn.w-full {
  max-width: none;
}

.section-main-login .social-login__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.section-main-login .social-login__buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.social-login__icon {
  flex: 0 0 auto;
}

.product-form-wrapper .product-title compare-button button {
  color: var(--color-foreground);
}

.product-form-wrapper .group-status {
  gap: 1rem 1.8rem;
}

.product-form-wrapper .group-status .status {
  color: var(--color-neutral-300);
}

.product-form-wrapper .group-status .status-vendor a.text-sm {
  color: var(--color-primary);
  font-weight: 600;
}

.product-form-wrapper .short-description {
  color: var(--color-neutral-300);
}

.product-form-wrapper .stock-progressbar {
  width: 12rem;
}

.product-form-wrapper .compare-price {
  color: var(--color-neutral-300);
}

.product-form-wrapper .sale-badge {
  padding: 0.1rem 0.6rem;
  border-radius: var(--rounded-full);
  font-weight: 700;
}

.product-form-wrapper .variant-picker__label-row .btn {
  min-height: 0;
  padding: 0;
  color: var(--color-primary);
}

.product-form-wrapper .variant-picker__input .fieldset label.btn {
  min-height: 0;
  padding: 0.7rem 1.4rem;
  font-weight: 400;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background);
  color: var(--color-foreground);
}

.product-form-wrapper .variant-picker__input input:checked + label.btn {
  border-color: var(--color-button-primary);
  background: var(--color-button-primary);
  color: var(--color-button-primary-text);
}

:is(.product-shortcode, #quick-view-product) .product-form-wrapper #add-to-cart-form:not(.hidden) {
  display: flex;
}

:is(.product-shortcode, #quick-view-product) .product-form-wrapper #add-to-cart-form {
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.6rem;
}

:is(.product-shortcode, #quick-view-product) .product-form-wrapper #add-to-cart-form > div:first-of-type,
:is(.product-shortcode, #quick-view-product) .product-form-wrapper #add-to-cart-form > .inventory-status {
  flex: 0 0 auto;
  margin-bottom: 2.2rem;
}

:is(.product-shortcode, #quick-view-product) .product-form-wrapper #add-to-cart-form > .product-form__actions {
  flex: 0 0 100%;
}

.product-form-wrapper #add-to-cart-form .text-neutral-400 {
  width: auto;
  font-weight: 400;
  color: var(--color-foreground);
}

.product-form-wrapper .inventory-status > div {
  width: auto;
}

.product-form-wrapper .btn-buynow {
  border-width: 1px;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Rê chuột: đảo màu nút viền (nền màu chủ đạo, chữ màu nền trang). Quy tắc chung của .btn--secondary:hover đặt nền
   màu chữ chính nhưng không đổi màu chữ của nút Mua ngay, nên chữ và nền cùng màu khi hai màu này trùng nhau. */
.product-form-wrapper .btn-buynow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-background-body, #fff);
}

.product-form-wrapper .product-title {
  gap: 0.8rem;
}

.product-form-wrapper .product-title > .flex-wrap.mt-2 {
  margin-top: 0;
}

.product-form-wrapper .group-status {
  margin-top: 1rem;
}

.product-form-wrapper .variant-picker__input {
  gap: 0;
  padding-top: 0;
}

.product-form-wrapper .variant-picker__label-row {
  min-height: 0;
  padding-block: 0;
  margin-bottom: 0.8rem;
}

.product-form-wrapper .variant-picker__label-row .font-semibold {
  font-weight: 400;
}

.product-form-wrapper .variant-picker__label-row .currentSelected {
  font-weight: 700;
}

.product-form-wrapper .variant-picker__label-row > div,
.product-form-wrapper .inventory-status > div {
  color: var(--color-foreground);
}

.product-form-wrapper .inventory-status > div {
  color: var(--color-neutral-300);
}

.product-form-wrapper .variant-picker__label-row .btn {
  font-weight: 400;
}

.product-form-wrapper .custom-number-input {
  width: 11rem;
}

.product-form-wrapper #add-to-cart-form > .product-form__actions {
  gap: 1.2rem;
  margin-top: 0;
  padding-block: 0;
}

.product-info-wrapper > .product-title {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .product-form-wrapper .product-price-group {
    margin-top: 0.8rem;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .product-form-wrapper > div:first-child {
    padding-top: 0;
  }
}

:is(.product-shortcode, #quick-view-product) .product-info-wrapper > .product-cta {
  margin-top: 2.2rem;
}

:is(.product-shortcode, #quick-view-product) .product-info-wrapper:not(:has(variant-picker)) > .product-cta {
  margin-top: 0;
}

/* Không biến thể và không có khối ưu đãi, mã giảm giá, banner chen giữa (popup xem nhanh, hoặc tắt các khối đó):
   nút mua đứng ngay dưới giá, không còn khối nào tạo khoảng cách nên phải giữ khoảng cách như khi có biến thể. */
:is(.product-shortcode, #quick-view-product) .product-info-wrapper > .product-title + .product-cta {
  margin-top: 2.2rem;
}

/* Nút biến thể dạng chữ: khung bọc có bề rộng tối thiểu 6rem (theo theme gốc), nhưng nút là inline-flex nên
   không giãn theo khung; giá trị ngắn (X, M) để lại khoảng trống trong khung, nhìn như hai nút cách xa nhau. */
.variant-picker__input .fieldset label.btn {
  width: 100%;
}

.product-info-wrapper > div > .mb-4:has(> variant-picker) {
  margin-bottom: 0;
}

/* ===== Cột thông tin trang sản phẩm: thứ tự phần tử và bốn nhóm cách nhau bằng đường kẻ ===== */
.main-product:not(.product-shortcode) .product-info-wrapper {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.6rem;
  align-content: start;
}

.main-product:not(.product-shortcode) .product-info-wrapper > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper > .product-title,
.main-product:not(.product-shortcode) .product-info-wrapper .group-status,
.main-product:not(.product-shortcode) .product-info-wrapper .product-price-group {
  display: contents;
  overflow: visible;
}

.main-product:not(.product-shortcode) .product-info-wrapper .status-vendor,
.main-product:not(.product-shortcode) .product-info-wrapper .status-sku {
  order: 1;
  grid-column: 1;
  font-size: var(--font-size-12);
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-300);
}

.main-product:not(.product-shortcode) .product-info-wrapper .status-sku {
  grid-column: 2;
}

.main-product:not(.product-shortcode) .product-info-wrapper .product-title > h1,
.main-product:not(.product-shortcode) .product-info-wrapper .product-title > h1 + div:not(.group-status),
.main-product:not(.product-shortcode) .product-info-wrapper .price-box,
.main-product:not(.product-shortcode) .product-info-wrapper .short-description,
.main-product:not(.product-shortcode) .product-info-wrapper .product-flashsale {
  grid-column: 1 / -1;
}

.main-product:not(.product-shortcode) .product-info-wrapper .status span,
.main-product:not(.product-shortcode) .product-info-wrapper .status a {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.main-product:not(.product-shortcode) .product-info-wrapper .status-vendor a {
  text-decoration: none;
  font-weight: 600;
}

.main-product:not(.product-shortcode) .product-info-wrapper .product-title > h1 {
  order: 2;
  margin: 0.8rem 0 1rem;
  font-size: var(--font-size-40);
  font-weight: 500;
  line-height: 1.15;
}

.main-product:not(.product-shortcode) .product-info-wrapper .product-title > h1 + div:not(.group-status) {
  order: 3;
  margin: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper .price-box {
  order: 4;
  margin: 1.6rem 0 0;
  padding: 0;
  gap: 1.2rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper .price-box > div:first-child {
  gap: 1.2rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper .price-box .price {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-32);
  font-weight: 600;
  line-height: 1;
}

.main-product:not(.product-shortcode) .product-info-wrapper .price-box .compare-price {
  font-size: var(--font-size-16);
  line-height: 1.6;
}

.main-product:not(.product-shortcode) .product-info-wrapper .price-box .sale-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 0.2rem;
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
}

.main-product:not(.product-shortcode) .product-info-wrapper .short-description {
  order: 5;
  margin: 1.2rem 0 0;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.main-product:not(.product-shortcode) .product-info-wrapper .short-description:empty {
  display: none;
}

.main-product:not(.product-shortcode) .product-info-wrapper .product-flashsale {
  order: 6;
}

.main-product:not(.product-shortcode) .product-info-wrapper .promo-box { order: 10; margin-bottom: 0; }
.main-product:not(.product-shortcode) .product-info-wrapper .coupon-box { order: 11; margin: 1.8rem 0 0.4rem; }
.main-product:not(.product-shortcode) .product-info-wrapper > div:not([class]) { order: 20; }
.main-product:not(.product-shortcode) .product-info-wrapper > .product-cta { order: 30; }
.main-product:not(.product-shortcode) .product-info-wrapper > .product-contact { order: 31; }
.main-product:not(.product-shortcode) .product-info-wrapper > .ega-policy-block { order: 40; }
.main-product:not(.product-shortcode) .product-info-wrapper > .product-inline-banner { order: 41; margin-top: 1.8rem; }
.main-product:not(.product-shortcode) .product-info-wrapper > .section-product-video-review { order: 50; margin-top: 1.6rem; margin-bottom: 0; }

.main-product:not(.product-shortcode) .product-info-wrapper > .promo-box,
.main-product:not(.product-shortcode) .product-info-wrapper > .product-title + .coupon-box,
.main-product:not(.product-shortcode) .product-info-wrapper > div:not([class]),
.main-product:not(.product-shortcode) .product-info-wrapper > .product-cta,
.main-product:not(.product-shortcode) .product-info-wrapper > .ega-policy-block {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--color-line-warm);
}

.main-product:not(.product-shortcode) .product-info-wrapper > .product-cta {
  margin-bottom: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper > .product-cta:not(:has(> form:not(.hidden))):not(:has(> .btn--soldout:not(.hidden))) {
  display: none;
}


.product_banner_top {
  margin-bottom: 1.6rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper variant-picker .variant-picker {
  display: block;
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__input {
  padding-top: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__label-row {
  margin-bottom: 1rem;
  font-size: var(--font-size-14);
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__label-row .btn {
  font-size: var(--font-size-14);
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__input .fieldset {
  gap: 0.8rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__input .fieldset > div {
  min-width: 4.8rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__input .fieldset label.btn {
  min-height: 4.4rem;
  padding: 0 1.2rem;
  border-radius: 0;
  font-size: var(--font-size-16);
  font-weight: 500;
  line-height: 2.4rem;
  letter-spacing: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper .variant-picker__input input:checked + label.btn {
  border-color: var(--color-primary);
  background: var(--color-background);
  box-shadow: inset 0 0 0 1px var(--color-primary);
  color: var(--color-foreground);
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form:not(.hidden) {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form > div:first-of-type {
  order: 1;
  grid-column: 1;
  margin: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form > div:first-of-type > div:first-child {
  display: none;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .custom-number-input,
.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form quantity-input {
  width: 100%;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .custom-number-input > div {
  height: 5.4rem;
  width: 100%;
  border-radius: 0;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form > .product-form__actions {
  display: contents;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .btn-add-to-cart {
  order: 2;
  grid-column: 2;
  min-height: 5.4rem;
  border-radius: var(--rounded-button);
  font-size: var(--font-size-16);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .btn-buynow > svg.lucide-zap {
  display: none;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .btn-buynow {
  order: 3;
  grid-column: 1 / -1;
  min-height: 5.4rem;
  border-radius: var(--rounded-button);
  font-size: var(--font-size-16);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form > .inventory-status {
  order: 4;
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--font-size-14);
}

@media (max-width: 768px) {
  .main-product:not(.product-shortcode) .product-info-wrapper .product-title > h1 {
    font-size: var(--font-size-h4);
  }

  .main-product:not(.product-shortcode) .product-info-wrapper .price-box .price {
    font-size: var(--font-size-28);
  }

  .main-product:not(.product-shortcode) .product-info-wrapper .ega-policy-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form:not(.hidden) {
    grid-template-columns: 9.6rem minmax(0, 1fr);
  }
}

.product-form-wrapper .custom-number-input input.form-quantity {
  min-width: 0;
}

.product-form-wrapper .product-cta .btn {
  min-height: 5rem;
}

.product-form-wrapper .ega-policy-row__status--pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-form-wrapper .price {
  font-weight: 700;
}

.product-form-wrapper .variant-picker__input .fieldset label.btn {
  gap: 0;
}

.product-form-wrapper .btn-buynow,
.product-form-wrapper .btn-add-to-cart {
  font-weight: 600;
}

.product-form-wrapper .social-media__title {
  font-weight: 700;
}

.product-form-wrapper .product-inline-banner img {
  border-radius: 0;
}

@media (min-width: 1024px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4.4rem;
  }

  .main-product:not(.product-shortcode) .product-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 4.8rem;
  }
}

.product-gallery .gallery-container {
  gap: 1.2rem;
}

.product-gallery.layout-left .embla-thumbs {
  flex: 0 0 7.6rem;
  width: 7.6rem;
}

.product-gallery .embla-thumbs .embla__slide {
  border-width: 1.5px;
  border-color: transparent;
  border-radius: var(--rounded-md);
  background: var(--product-image-bg);
}

.product-gallery .embla-thumbs .embla__slide.embla-thumbs__slide--selected {
  border-color: var(--color-primary);
}

.product-gallery .gallery-main {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  background: var(--product-image-bg);
}

.section-frequently-bought {
  border: 0;
}

.section-frequently-bought h2,
.section-frequently-bought .heading {
  font-size: var(--font-size-28);
  line-height: 1.2;
}

.promo-box-group .promo-box__header .icon {
  height: 1.4rem;
  font-size: 1.4rem;
  line-height: 1;
}

.promo-box-group .promo-box__header svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
}

.product-form-wrapper .variant-picker__label-row .btn svg {
  width: 1.8rem;
  height: 1.8rem;
}

.product-form-wrapper .share-group__item:not(.lg\:hidden) {
  display: grid;
  place-items: center;
}

@media (max-width: 1023px) {
  .product-form-wrapper .share-group__item.lg\:hidden {
    display: grid;
    place-items: center;
  }
}

.product-form-wrapper .share-group__item {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 1px solid var(--color-neutral-50);
  border-radius: 50%;
  background: none;
}

.product-form-wrapper .share-group__item img {
  width: 1.5rem;
  height: 1.5rem;
}

.product-form-wrapper #add-to-cart-form .inventory-status .text-neutral-400 {
  color: var(--color-neutral-300);
}

.product-form-wrapper quantity-input {
  width: 11rem;
}

.product-form-wrapper .custom-number-input {
  width: 100%;
}

.product-form-wrapper .custom-number-input > div {
  width: 100%;
}

@media (max-width: 767px) {
  .product-form-wrapper quantity-input {
    width: 13rem;
  }

  .product-form-wrapper .custom-number-input > div {
    height: 4.4rem;
  }
}

/* Điện thoại: thẻ hẹp, bớt lề trong thẻ để giá và nút giỏ (32px, đặt ở quy tắc nút giỏ điện thoại) nằm cùng một hàng */
@media (max-width: 767px) {
  .card-product--vertical .card-product__body {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

.product-list.grid,
.product-list > .grid,
.section-flashsale .grid.grid-cols-2 {
  gap: 2.8rem 2rem !important;
}

@media (max-width: 767px) {
  .product-list.grid,
  .product-list > .grid,
  .section-flashsale .grid.grid-cols-2 {
    gap: 2.2rem 1.2rem !important;
  }
}

.main-product {
  padding-bottom: 0;
}

.main-product .product-tabs-bottom {
  margin-bottom: 0;
}

*:has(> nav.pages) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

nav.pages {
  margin-top: 2.4rem !important;
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {
  nav.pages {
    margin-top: 3.2rem !important;
  }
}

.grid > :has(> nav.pages) > nav.pages {
  margin-top: 1.4rem !important;
}

@media (min-width: 768px) {
  .grid > :has(> nav.pages) > nav.pages {
    margin-top: 1.6rem !important;
  }
}

/* Thẻ sản phẩm có viền 1px: phần bên trong viền (form, khung ảnh, ảnh) bo cùng bán kính với viền thì góc ảnh không
   trùng đường cong bên trong viền, lộ khe nhỏ ở hai góc trên. Bên trong viền bo nhỏ hơn đúng bề dày viền. */
.card-product--vertical {
  --product-card-inner-rounded: max(0px, calc(var(--product-card-rounded, 0px) - 1px));
}

.card-product--vertical .item_product_main > form {
  border-radius: var(--product-card-inner-rounded);
}

.card-product--vertical .card-product__top,
.card-product--vertical .card-product__image,
.card-product--vertical .card-product__image-2 {
  border-top-left-radius: var(--product-card-inner-rounded);
  border-top-right-radius: var(--product-card-inner-rounded);
}

.campaign-page {
  display: block;
  --camp: var(--campaign-color);
  --campaign-dark: color-mix(in srgb, var(--color-footer) 60%, black);
}

.campaign-page[data-phase="last"] {
  --camp: var(--campaign-last-color, var(--campaign-color));
}

.campaign-page,
.campaign-hero,
.campaign-toc,
.campaign-bar,
.section-budget-tabs,
.section-campaign-faq,
.ldp-tier {
  --campaign-line: var(--color-neutral-50);
  --campaign-soft: color-mix(in srgb, var(--color-secondary) 28%, var(--color-background));
  --campaign-muted: var(--color-neutral-300);
}

.campaign-page[data-phase="pre"] [data-for]:not([data-for~="pre"]),
.campaign-page[data-phase="live"] [data-for]:not([data-for~="live"]),
.campaign-page[data-phase="last"] [data-for]:not([data-for~="last"]),
.campaign-page[data-phase="ended"] [data-for]:not([data-for~="ended"]) {
  display: none;
}

.campaign-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60rem;
  overflow: hidden;
  color: var(--color-background);
}

.campaign-hero picture,
.campaign-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.campaign-hero__image {
  object-fit: cover;
}

.campaign-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(90deg, color-mix(in srgb, var(--campaign-dark) 92%, transparent), color-mix(in srgb, var(--campaign-dark) 60%, transparent) 45%, color-mix(in srgb, var(--campaign-dark) 15%, transparent) 80%);
}

.campaign-hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.campaign-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 0.6rem 1.2rem;
  background: var(--camp);
  color: var(--color-background);
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.5;
}

.campaign-chip svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
}

.campaign-hero__title {
  max-width: 90rem;
  margin: 0 0 1.6rem;
  font-family: var(--font-headings-family);
  font-size: 7.2rem;
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--color-background);
}

.campaign-hero__title--plain {
  max-width: 90rem;
}

.campaign-hero__title span:last-child {
  color: var(--color-secondary);
}

.campaign-hero__text {
  max-width: 48rem;
  margin: 0 0 2.2rem;
  font-size: var(--font-size-16);
  color: color-mix(in srgb, var(--color-background) 78%, transparent);
}

.campaign-cd {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.6rem;
  visibility: hidden;
}

.campaign-page.is-ready .campaign-cd {
  visibility: visible;
}

.campaign-cd__label {
  font-size: var(--font-size-14);
  color: color-mix(in srgb, var(--color-background) 70%, transparent);
}

.campaign-cd__units {
  display: flex;
  gap: 0.8rem;
}

.campaign-cd__units span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.6rem;
  padding: 0.8rem 0;
  border: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent);
  background: color-mix(in srgb, var(--color-background) 8%, transparent);
  font-size: var(--font-size-12);
  line-height: 1.5;
  color: var(--color-footer-muted);
}

.campaign-cd__units b {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-28);
  font-weight: 500;
  line-height: 1;
  color: var(--color-background);
}

.campaign-page[data-phase="last"] .campaign-hero .campaign-cd__units b {
  color: color-mix(in srgb, var(--camp) 45%, var(--color-background));
}

.campaign-hero__text p {
  margin: 0;
}

.campaign-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.campaign-hero__btn {
  background: var(--camp);
  border-color: var(--camp);
  color: var(--color-background);
}

.campaign-hero .campaign-hero__btn:hover,
.campaign-bar .campaign-hero__btn:hover {
  background: var(--camp);
  filter: brightness(1.1);
}

.campaign-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 4.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.campaign-hero__link:hover {
  color: var(--color-secondary);
}

.campaign-toc {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--campaign-line);
  background: var(--color-background);
}

body.header-pinned .campaign-toc {
  top: var(--header-height);
}

.campaign-toc__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.4rem 1.6rem;
}

.campaign-toc__link {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--campaign-line);
  border-radius: 999px;
  background: var(--color-background-body);
  font-size: var(--font-size-14);
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.campaign-toc__link:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-button-primary-text);
}

.campaign-toc__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.campaign-block {
  scroll-margin-top: calc(var(--header-height) + 6rem);
}

.budget__band {
  padding: 5.2rem 0;
  background: var(--camp);
  color: var(--color-background);
  text-align: center;
}

.budget__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.budget__band .eyebrow {
  color: var(--color-background);
}

.budget__band .heading-bar {
  margin-bottom: 2.4rem;
}

.budget__text {
  max-width: 62rem;
  margin: -1.4rem 0 2.4rem;
  color: var(--color-background);
}

.budget__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}

.budget__tab {
  min-height: 4.4rem;
  padding: 1.2rem 2.2rem;
  border: 1px solid color-mix(in srgb, var(--color-background) 60%, transparent);
  background: transparent;
  color: var(--color-background);
  font-size: var(--font-size-14);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.budget__tab:hover {
  border-color: var(--color-background);
}

.budget__tab.active {
  border-color: var(--color-background);
  background: var(--color-background);
  color: var(--color-foreground);
  font-weight: 500;
}

.budget__tab:focus-visible {
  outline: 2px solid var(--color-background);
  outline-offset: 2px;
}

.budget__panels {
  padding-top: 3.2rem;
  padding-bottom: var(--section-surface-pad);
}

.campaign-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 4.8rem;
}

.campaign-faq__intro .heading-subtitle {
  text-wrap: balance;
}

.campaign-faq__item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--campaign-line);
}

.campaign-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

@media (max-width: 767px) {
  .campaign-faq__question {
    min-height: 4.2rem;
  }
}

.campaign-faq__question::-webkit-details-marker {
  display: none;
}

.campaign-faq__question::after {
  content: "+";
  flex: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}

.campaign-faq__item[open] .campaign-faq__question::after {
  content: "\2212";
}

.campaign-faq__question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.campaign-faq__answer {
  margin-top: 0.8rem;
  font-size: var(--font-size-16);
  color: var(--campaign-muted);
}

.campaign-faq__answer p {
  margin: 0;
}

@media (max-width: 767px) {
  .campaign-toc {
    position: static;
  }

  .campaign-toc__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .campaign-toc__link {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 4.4rem;
    white-space: nowrap;
  }


}

.campaign-bar {
  position: sticky;
  bottom: 0;
  margin-top: var(--section-surface-pad);
  z-index: 90;
  border-top: 0.3rem solid var(--camp);
  background: var(--campaign-dark);
  color: var(--color-background);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.campaign-bar.is-visible {
  visibility: visible;
  opacity: 1;
}

.campaign-page[data-phase="ended"] .campaign-bar {
  display: none;
}

.campaign-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: var(--font-size-14);
}

.campaign-bar .btn {
  min-height: 4.4rem;
  padding: 0 1.6rem;
  font-size: var(--font-size-14);
}

.campaign-cd--bar {
  margin-bottom: 0;
}

.campaign-cd--bar .campaign-cd__units span {
  min-width: 4.4rem;
  padding: 0.4rem 0;
}

.campaign-cd--bar .campaign-cd__units b {
  font-size: var(--font-size-18);
}

.ldp-marquee {
  overflow: hidden;
  background: var(--camp);
  color: var(--color-background);
}

.ldp-marquee__track {
  display: flex;
  width: max-content;
  animation: ldp-marquee 30s linear infinite;
}

.ldp-marquee__run {
  display: flex;
  gap: 2.8rem;
  padding-right: 2.8rem;
  white-space: nowrap;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
}

.ldp-marquee__run span::after {
  content: "\2726";
  margin-left: 2.8rem;
  font-style: normal;
  opacity: 0.6;
}

@keyframes ldp-marquee {
  to {
    transform: translateX(-33.333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ldp-marquee__track {
    animation: none;
  }
}

.ldp-tier__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 98rem;
  margin: 0 auto;
}

.ldp-tier__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2.2rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.ldp-tier__item.is-reached {
  border-color: var(--camp);
}

.ldp-tier__n {
  font-size: var(--font-size-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--campaign-muted);
}

.ldp-tier__reward {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-32);
  font-weight: 500;
  line-height: 1.1;
}

.ldp-tier__code {
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed var(--color-foreground);
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
}

.ldp-tier__badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-12);
  font-style: normal;
  font-weight: 600;
  color: var(--camp);
}

.ldp-tier__badge[hidden] {
  display: none;
}

.ldp-tier__bar {
  max-width: 98rem;
  margin: 2.2rem auto 0;
}

.ldp-tier__track {
  position: relative;
  height: 0.6rem;
  border-radius: 0.6rem;
  background: var(--color-border);
}

.ldp-tier__track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 0.6rem;
  background: var(--camp);
}

.ldp-tier__track b {
  position: absolute;
  top: -0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--color-foreground);
  border-radius: 50%;
  background: var(--color-background-body);
  transform: translateX(-50%);
}

.ldp-tier__msg,
.ldp-tier__note {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: var(--font-size-16);
}

.ldp-tier__note {
  margin-top: 1.6rem;
  color: var(--campaign-muted);
}

@media (max-width: 1279px) {
  .campaign-hero__image {
    object-position: 80% center;
  }
}

@media (max-width: 767px) {
  .campaign-hero__image {
    object-position: center top;
  }
}

@media (max-width: 768px) {
  .campaign-hero {
    align-items: flex-end;
    min-height: 62rem;
    padding-bottom: 3rem;
  }

  .campaign-hero__overlay {
    background: linear-gradient(0deg, color-mix(in srgb, var(--campaign-dark) 95%, transparent) 0%, color-mix(in srgb, var(--campaign-dark) 65%, transparent) 55%, color-mix(in srgb, var(--campaign-dark) 20%, transparent) 100%);
  }

  .campaign-hero__title {
    font-size: var(--font-size-44);
  }

  .campaign-cd {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .campaign-bar__inner {
    justify-content: space-between;
    gap: 0.8rem;
    font-size: var(--font-size-12);
  }

  .campaign-bar__name {
    display: none;
  }

  .ldp-marquee__run {
    font-size: var(--font-size-18);
  }

  .ldp-tier__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ldp-tier__reward {
    font-size: var(--font-size-24);
  }
}

/* Banner ảnh và nhóm banner của trang LDP bán hàng (theo trang LDP EGA Kids) */
.ldp-banner__link,
.ldp-banners__item a {
  display: block;
}

.ldp-banner__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rounded-lg);
}

.ldp-banners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.ldp-banners__item {
  position: relative;
  overflow: hidden;
  color: var(--color-background);
}

.ldp-banners__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--campaign-dark) 85%, transparent), transparent 60%);
  pointer-events: none;
}

.ldp-banners__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.ldp-banners__caption {
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 2;
}

.ldp-banners__title {
  margin: 0;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h4);
  font-weight: 500;
  line-height: 1.15;
}

.ldp-banners__desc {
  margin: 0.2rem 0 1rem;
  font-size: var(--font-size-14);
  opacity: 0.85;
}

.ldp-banners__price {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: var(--font-size-12);
  font-weight: 600;
}

.ldp-banners__price img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: cover;
  background: var(--product-image-bg);
}

@media (max-width: 768px) {
  .ldp-banners__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 1.2rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

.navigation-horizontal .menu-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  z-index: 900;
}

.navigation-horizontal .menu-item.submenu-dismissed:focus-within > .submenu {
  opacity: 0;
  visibility: hidden;
}

.header .hamburger-button,
.header .header-icon-group {
  min-width: 4.4rem;
  min-height: 4.4rem;
}

@media (max-width: 767px) {
  .addThis_listSharing {
    right: auto;
    left: 12px;
    bottom: 84px;
  }
}

.top-banner .top-banner__link > div {
  font-size: var(--font-size-12);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.top-banner .top-banner__link > div b {
  font-weight: 600;
}

@media (max-width: 767px) {
  .top-banner .top-banner__link > div {
    font-size: var(--font-size-12);
  }
}

.header .navigation-horizontal .menu-item__link {
  font-size: var(--font-size-14);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 1279px) {
  .header .navigation-horizontal .menu-item__link {
    font-size: var(--font-size-14);
  }
}

footer {
  font-size: var(--font-size-14);
}

footer .footer-col summary {
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer .footer-col > .mb-3,
footer .list-menu li,
footer .footer-copyright {
  line-height: 1.6;
}

footer .footer-copyright {
  font-size: var(--font-size-12);
}

/* ===== Nhãn nhỏ và liên kết bên phải của tiêu đề khối ===== */
.heading-eyebrow {
  display: block;
  margin-bottom: 0.8rem;
}

.heading-bar--aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2.4rem;
  align-items: end;
}

.heading-bar--aside > :not(.heading-aside) {
  grid-column: 1;
}

.heading-bar--aside > .heading-aside {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.heading-bar--aside:has(> .heading-eyebrow) > .heading-aside {
  grid-row: 2;
}

.heading-bar--aside .heading {
  margin-bottom: 0;
}

.heading-bar--aside:not(:has(> .heading-subtitle)) {
  margin-bottom: 2.8rem;
}

@media (max-width: 767px) {
  .heading-bar--aside:not(:has(> .heading-subtitle)) {
    margin-bottom: 1.8rem;
  }
}

.heading-aside,
.ba-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.heading-aside .icon,
.ba-link .icon {
  font-size: 1.4rem;
}

/* ===== Thanh thông báo đầu trang: nhiều thông điệp ===== */
.top-banner__message:not(:last-child)::after {
  content: "\00a0·";
  margin-inline-end: 0.4em;
}

@media (max-width: 767px) {
  .top-banner .top-banner__link > div {
    letter-spacing: 0;
  }

  .top-banner__messages {
    display: block;
  }

  .top-banner__message {
    display: none;
  }

  .top-banner__message.is-active {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .top-banner__message:not(:last-child)::after {
    content: none;
  }
}

/* ===== Màu chữ phụ chân trang ===== */
footer .footer-col > .mb-3,
footer .list-menu li,
footer .list-menu li a,
footer .footer-copyright,
footer .footer-copyright a {
  color: var(--color-footer-muted);
}

footer .list-menu li a:hover,
footer .footer-copyright a:hover {
  color: var(--color-footer-hover);
}

/* ===== Mục menu cấp 1 tô màu nổi bật ===== */
.navigation-horizontal .menu-item__link--highlight,
.navigation-vertical .menu-item__link--highlight {
  color: var(--color-menu-highlight);
}

.heading-bar .heading {
  font-size: var(--font-size-40);
  font-weight: 500;
  line-height: 1.15;
}

@media (max-width: 767px) {
  .heading-bar .heading {
    font-size: var(--font-size-h4);
  }
}

.fs-promo__title.flashsale-heading {
  font-size: var(--font-size-36);
  font-weight: 500;
  line-height: 1.15;
}

.fs-promo__title-line1 {
  font-size: inherit;
}

@media (max-width: 767px) {
  .fs-promo__title.flashsale-heading {
    font-size: var(--font-size-h4);
  }
}

/* ===== Thẻ sản phẩm phẳng: nút giỏ viền mảnh, nhãn ===== */
.card-product--vertical .addtocart-btn--icon {
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--color-neutral-50);
  background: none;
  color: var(--color-foreground);
  transition: border-color 0.15s ease;
}

.card-product--vertical .addtocart-btn--icon:hover {
  border-color: var(--color-secondary);
  background: none;
  color: var(--color-secondary);
  filter: none;
}

.section-flashsale .card-product--vertical .addtocart-btn--icon {
  border-color: color-mix(in srgb, var(--color-flashsale-title) 16%, transparent);
  color: var(--color-flashsale-title);
}

.card-product--vertical .card-product__badges .badge {
  padding: 0.2rem 0.7rem;
  font-size: var(--font-size-12);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.card-product--vertical .card-product__badges .sale-badge {
  font-weight: 600;
  letter-spacing: 0;
}

.card-product--vertical .card-product__body > .product-promo-tag--3 {
  order: 2;
}

.card-product--vertical .product-promo-tag--3 {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  width: auto;
  margin-top: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-badge);
  font-size: var(--font-size-12);
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.section-flashsale .card-product--vertical .product-promo-tag--3 {
  color: var(--color-secondary);
}

.card-product--vertical .product-promo-tag--3::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== Sản phẩm dạng trượt ===== */
.section-products-slider .section-card > div:first-child {
  margin-bottom: 2.8rem;
}


/* ===== Logo thương hiệu ===== */
.section-brand .section-card {
  border-block: 0;
  padding-block: 0;
}

.section-brand .scrolling-promotion__item {
  padding: 0 0.8rem;
}

.section-brand .scrolling-promotion__item a {
  width: 21.2rem;
  height: 7.6rem;
  border: 1px solid var(--color-neutral-50);
}

@media (max-width: 767px) {
  .section-brand .scrolling-promotion__item a {
    width: 10.9rem;
    height: 5.8rem;
  }

  .section-brand .scrolling-promotion__item img {
    max-width: 90%;
    max-height: none;
  }
}

/* ===== Banner ảnh ===== */
.banner-image__img {
  height: 44rem;
  object-fit: cover;
  object-position: center 30%;
}

.section-banner-image .relative {
  overflow: hidden;
}

.banner-image__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--banner-overlay) 0%, var(--banner-overlay-mid) 50%, transparent 85%);
}

.banner-image__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  text-align: left;
}

.banner-image__text--center {
  justify-content: center;
  text-align: center;
}

.banner-image__text--right {
  justify-content: flex-end;
  text-align: right;
}

.banner-image__content {
  max-width: 52rem;
}

.banner-image__text--center .banner-image__content {
  margin-inline: auto;
}

.banner-image__text--right .banner-image__content {
  margin-inline-start: auto;
}

.banner-image__eyebrow,
.banner-overlay-card__eyebrow {
  color: var(--color-secondary);
}

.banner-image__heading {
  max-width: 52rem;
  margin: 0 0 1.2rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-48);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
}

.banner-image__heading span {
  color: var(--color-secondary);
  font-style: italic;
}

.banner-image__subheading {
  max-width: 44rem;
  margin: 0 0 2.4rem;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: #fff;
  opacity: 0.85;
}

.banner-image__text--center .banner-image__subheading {
  margin-inline: auto;
}

.banner-image__btn {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-foreground);
  height: 4.8rem;
  padding: 0 2.8rem;
  font-size: var(--font-size-14);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .banner-image__img {
    height: 42rem;
  }

  .banner-image__overlay {
    background: linear-gradient(0deg, var(--banner-overlay) 0%, var(--banner-overlay-mid) 85%, transparent 100%);
  }

  .banner-image__text {
    align-items: flex-end;
    padding-bottom: 2.8rem;
  }

  .banner-image__heading {
    font-size: var(--font-size-h3);
  }

  .banner-image__subheading {
    font-size: var(--font-size-16);
  }
}

/* ===== Tin tức ===== */
.section-blogs__track {
  margin-left: -2.4rem;
}

.section-blogs__slide {
  padding-left: 2.4rem;
}

@media (min-width: 768px) {
  .section-blogs__slide {
    flex-basis: 33.3333%;
    max-width: 33.3333%;
  }
}

@media (max-width: 767px) {
  .section-blogs__track {
    margin-left: -1.4rem;
  }

  .section-blogs__slide {
    flex-basis: calc((100% - 1.4rem) * 0.82 + 1.4rem);
    max-width: calc((100% - 1.4rem) * 0.82 + 1.4rem);
    padding-left: 1.4rem;
  }
}

/* Khối Tin tức trang chủ: tỷ lệ khung và cắt ảnh theo hai ô của nhóm Tin tức - Trang chủ (lớp aspect-custom,
   object-cover hoặc object-contain trong snippet), không ép 3:2 và không ép cắt. */
.section-blogs .card-article__image img {
  width: 100%;
  height: auto;
}

.section-main-blog .card-article__image img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-blogs .cart-article__date,
.section-main-blog .cart-article__date {
  font-size: var(--font-size-12);
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-300);
}

.section-blogs .card-article__title,
.section-main-blog .card-article__title {
  margin: 0.6rem 0 0.8rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.15;
}

.section-blogs .card-article__desc,
.section-main-blog .card-article__desc {
  font-size: var(--font-size-14);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .section-blogs .card-article__title,
  .section-main-blog .card-article__title {
    font-size: var(--font-size-24);
  }
}

.section-blogs__view-all {
  align-self: flex-end;
}

/* ===== Logo thương hiệu: lưới đứng yên ===== */
.section-brand .brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem;
}

.section-brand .brand-grid__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.6rem;
  border: 1px solid var(--color-neutral-50);
}

.section-brand .brand-grid__item img {
  width: auto;
  height: auto;
  max-width: 14rem;
  max-height: 4.8rem;
  object-fit: contain;
}

@media (max-width: 768px) {
  .section-brand .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .section-brand .brand-grid__item a {
    height: 5.8rem;
  }

  .section-brand .brand-grid__item img {
    max-width: 90%;
    max-height: 3.6rem;
  }
}

/* ===== Xem trước chữ cá nhân hoá ở khối Quy trình ===== */
.process-try {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.2rem;
  border: 1px solid color-mix(in srgb, var(--process-desc-color) 14%, transparent);
  background: color-mix(in srgb, var(--process-bg-color) 94%, white);
  color: var(--process-heading-color);
}

.process-try__title {
  margin: 0;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.15;
  color: var(--process-heading-color);
}

.process-try__input {
  height: 4.4rem;
  padding: 0 1.2rem;
  border: 1px solid color-mix(in srgb, var(--process-desc-color) 30%, transparent);
  border-radius: var(--radius-btn, 0);
  background: transparent;
  font-size: var(--font-size-14);
  letter-spacing: 0.12em;
  color: var(--process-heading-color);
}

.process-try__input::placeholder {
  color: color-mix(in srgb, var(--process-desc-color) 60%, transparent);
}

.process-try__counter {
  margin-left: auto;
}

.process-try__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--font-size-12);
  line-height: 1.6;
  color: var(--process-desc-color);
}

.process-try__warn {
  display: block;
  min-height: 1.4em;
  font-size: var(--font-size-12);
  color: color-mix(in srgb, var(--color-sale) 55%, white);
}

.process-try__ring {
  display: grid;
  place-items: center;
  height: 6.4rem;
  border-radius: 3.2rem;
  background: linear-gradient(180deg, #5A5D63 0%, #D9DBDE 30%, #F4F5F6 50%, #B7BABF 72%, #4A4D52 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.process-try__text {
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-18);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  color: #3E4146;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.process-try__text.ph {
  opacity: 0.55;
}

.process-try__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  color: var(--process-heading-color);
}

/* ===== Nhóm 3 banner ===== */
.section-group-banner {
  background: var(--banner-group-bg);
}

.section-group-banner--slide .heading-bar {
  text-align: center;
}

.section-group-banner--card .heading-subtitle {
  max-width: 62rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .section-group-banner--card .heading-subtitle {
    margin-top: 1.8rem;
  }
}

.section-group-banner .embla__container {
  margin-left: -2rem;
}

.section-group-banner .embla__container > div {
  padding-left: 2rem;
}

.section-group-banner .banner-group__image {
  position: relative;
}

.banner-group__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2.2rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.64) 75%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  pointer-events: none;
}

.banner-group__text {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h4);
  line-height: 1.1;
}

.banner-group__desc {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-body-family);
  font-size: var(--font-size-12);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner-group__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.banner-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 55%);
}

.banner-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s;
}

.banner-card:hover .banner-card__img {
  transform: scale(1.04);
}

.banner-card:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: -4px;
}

.banner-card__body {
  position: absolute;
  right: 2.4rem;
  bottom: 2.4rem;
  left: 2.4rem;
  z-index: 2;
}

.banner-card__eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.banner-card__name {
  margin: 0 0 0.4rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h3);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
}

.banner-card__desc {
  margin: 0 0 1.2rem;
  font-size: var(--font-size-14);
  line-height: 1.6;
  opacity: 0.85;
}

.banner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.banner-card__link .icon {
  font-size: 1.8rem;
}

.banner-group__budget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.banner-group__budget-label {
  margin-right: 0.4rem;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.banner-group__budget-link {
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background);
  font-size: var(--font-size-14);
  font-weight: 500;
  line-height: 1.6;
}

.banner-group__budget-link[href]:hover {
  border-color: var(--color-foreground);
}

@media (max-width: 768px) {
  .section-group-banner .embla__container > div {
    width: 86.4%;
    max-width: 86.4%;
  }

  .section-group-banner .heading-bar .heading {
    font-size: var(--font-size-h4);
  }

  .section-group-banner--card .heading-subtitle {
    font-size: var(--font-size-16);
  }

  .banner-group__cards {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    gap: 1.2rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .banner-card__name {
    font-size: var(--font-size-28);
  }

  .banner-group__caption {
    padding-left: 1.8rem;
  }

  .banner-group__text {
    font-size: var(--font-size-24);
  }

  .banner-group__budget {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .banner-group__budget-label,
  .banner-group__budget-link {
    white-space: nowrap;
  }

  .banner-group__budget-link {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
  }
}

/* ===== Trước và sau ===== */
.ba-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.8rem;
  align-items: center;
}

.ba-info--center {
  margin-bottom: 2.8rem;
  text-align: center;
}

.ba-info--center .ba-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.4rem;
}

.ba-info .heading-bar .heading {
  margin-bottom: 1.2rem;
}

.ba-split .heading-bar .heading {
  font-size: var(--font-size-h2);
}

.ba-points {
  margin: 1.8rem 0 2.6rem;
  padding: 0;
  list-style: none;
}

.ba-points:empty {
  display: none;
}

.ba-points li {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: var(--font-size-16);
  line-height: 1.6;
}

.ba-info .heading-subtitle {
  margin-block: 0;
  line-height: 1.6;
}

.ba-info .heading-eyebrow {
  margin-bottom: 0.8rem;
}

.ba-points .icon {
  flex: none;
  margin-top: 0.3rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-gold-text);
}

.ba-link .icon {
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .ba-info .heading-subtitle,
  .ba-points li {
    font-size: var(--font-size-16);
  }

  .ba-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ba-split .heading-bar .heading {
    font-size: var(--font-size-32);
  }
}

/* ===== Lưới video ===== */
.section-video-review .section-card > div:first-child > .heading-bar {
  flex: 1 1 100%;
}

.section-video-review .video-icon {
  top: 1.2rem;
  right: 1.2rem;
  left: auto;
  transform: none;
}

.section-video-review .ega-video-play {
  width: 3.4rem;
  height: 3.4rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.section-video-review .ega-video-play .icon-play {
  font-size: 1.4rem;
}

.svr-product {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  background: #fff;
  color: var(--color-foreground);
  font-size: var(--font-size-12);
  line-height: 1.35;
}

.section-video-review .svr-product img {
  flex: none;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  background: var(--color-accent-soft);
}

.svr-product__info {
  min-width: 0;
}

.svr-product__info b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-weight: 600;
}

.svr-product__info > span {
  display: block;
}

/* ===== Lưới ảnh mạng xã hội ===== */
.section-instagram {
  background: var(--instagram-bg);
}

.section-instagram .heading-bar {
  margin-bottom: 2.8rem;
}

.section-instagram .embla__container {
  margin-left: -0.8rem;
}

.section-instagram .embla__container > div {
  padding-left: 0.8rem;
}

.section-instagram .embla__slide picture {
  width: 100%;
}

.section-instagram .embla__slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* ===== Slideshow: chấm chuyển ảnh dạng vạch mảnh ===== */
.section-home-banner .embla__dots {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  z-index: 2;
  gap: 0.8rem;
  margin: 0;
  transform: translateX(-50%);
}

.section-home-banner .embla__dot {
  box-sizing: content-box;
  width: 2.8rem;
  height: 0.2rem;
  padding-block: 1.1rem;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.35);
  background-clip: content-box;
}

.section-home-banner .embla__dot--selected {
  width: 2.8rem;
  background-color: #fff;
}

@media (max-width: 768px) {
  .section-video-review .heading-bar .heading,
  .section-instagram .heading-bar .heading {
    font-size: var(--font-size-h4);
  }

  .section-video-review .video-list .embla__container {
    margin-left: -1rem;
  }

  .section-video-review .video-list .embla__slide {
    width: calc(44% + 0.56rem);
    padding-left: 1rem;
  }

  .section-instagram .embla__container {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    margin-left: -0.4rem;
  }

  .section-instagram .embla__container > div {
    width: var(--group-banner-mobile);
    padding-left: 0.4rem;
  }
}

@media (min-width: 769px) {
  .section-video-review .video-list .embla__slide {
    width: 20%;
  }
}

/* ===== Nút viền sáng trên nền tối ===== */
.btn--light {
  border: 1px solid color-mix(in srgb, currentColor 60%, transparent);
  background: transparent;
  color: inherit;
  line-height: 1.6;
}

.btn--light:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
}

/* ===== Ảnh kèm chữ ===== */
.section-image-text {
  background: var(--story-bg);
  color: var(--story-color);
}

.image-text {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.image-text--no-text {
  grid-template-columns: 1fr 1fr;
}

.image-text__text {
  align-self: center;
  padding-right: 2.4rem;
}

.image-text__eyebrow,
.video-text__eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  font-size: var(--font-size-12);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.image-text__name,
.video-text__name {
  margin: 0;
  font-family: var(--font-headings-family);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  color: inherit;
}

.image-text__name {
  margin-bottom: 1.8rem;
  font-size: var(--font-size-48);
}

.image-text__name span,
.video-text__name span {
  color: var(--color-secondary);
  font-style: italic;
}

.image-text__desc,
.video-text__desc {
  margin: 0 0 2.6rem;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: color-mix(in srgb, currentColor 67%, transparent);
}

.image-text__figure {
  margin: 0;
}

.image-text__figure:last-child {
  transform: translateY(-4rem);
}

.image-text__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-text__figure figcaption {
  margin-top: 1rem;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: color-mix(in srgb, currentColor 67%, transparent);
}

/* ===== Video kèm chữ ===== */
.section-video-text {
  background: var(--craft-bg);
  color: var(--craft-color);
}

.video-text {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

.video-text--right {
  grid-template-columns: 1fr 1.25fr;
}

.video-text--right .video-text__media {
  order: 2;
}

.video-text--media-only {
  grid-template-columns: 1fr;
}

.video-text__media {
  position: relative;
  min-height: 60rem;
  overflow: hidden;
}

.video-text__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-text__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.2rem 6.4rem;
}

.video-text__name {
  margin-bottom: 1.6rem;
  font-size: var(--font-size-h1);
}

.video-text__desc {
  max-width: 44rem;
  margin-bottom: 2.8rem;
}

.video-text__stats {
  display: grid;
  grid-template-columns: repeat(var(--craft-stats), 1fr);
  gap: 1.6rem;
  margin-bottom: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.video-text__stat {
  font-size: var(--font-size-16);
  line-height: 1.6;
}

.video-text__stat b {
  display: block;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h2);
  font-weight: 500;
  line-height: 1;
  color: var(--color-secondary);
}

.video-text__stat span {
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: color-mix(in srgb, currentColor 67%, transparent);
}

.video-text__body .btn {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .image-text {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .image-text__desc,
  .video-text__desc {
    font-size: var(--font-size-16);
  }

  .image-text__text {
    grid-column: 1 / -1;
    padding: 0;
  }

  .image-text__name {
    font-size: var(--font-size-36);
  }

  .image-text__figure:last-child {
    transform: none;
  }

  .video-text,
  .video-text--right {
    grid-template-columns: 1fr;
  }

  .video-text--right .video-text__media {
    order: 0;
  }

  .video-text__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .video-text__body {
    padding: 3.2rem 1.6rem 4rem;
  }

  .video-text__name {
    font-size: var(--font-size-h3);
  }

  .video-text__stat {
    font-size: var(--font-size-16);
  }

  .video-text__stat b {
    font-size: var(--font-size-32);
  }

  .video-text__media .video-background__toggle {
    right: 1.2rem;
    bottom: 1.2rem;
  }
}

/* ===== Xem nhanh sản phẩm ===== */
#quick-view-product .portal-inner{
	/* Cao theo nội dung, tối đa 90% màn hình: nút mua luôn thấy được mà không dư khoảng trống */
	height: auto;
	max-height: 90vh;
	display: flex;
    align-items: center;
	padding: 1.2rem
}
#quick-view-product .product-wrapper{
	border-radius: var(--rounded);
	height: 100%;
	width: 100%;
				overflow: hidden

}
#quick-view-product product-form{
	height: 100%;
}
#quick-view-product .product-detail{
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: 1fr;
	align-items: start
}
#quick-view-product .portal-inner.loading{
  	display: flex;
	justify-content: center;
	align-items: center;
}
#quick-view-product .product-detail:before{
	content: none
}
#quick-view-product .product-gallery{
	padding: 0
}

#quick-view-product .product-gallery.layout-left .gallery-container{
	display: block !important;
}
#quick-view-product .product-gallery.layout-left .embla-thumbs,
#quick-view-product .product-gallery.layout-left .gallery-main{
	order: initial !important;
	width: auto !important;
	flex: none !important;
}
#quick-view-product .product-gallery.layout-left .gallery-thumbnails{
	margin-top: 0.75rem !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
}
#quick-view-product .product-gallery.layout-left .gallery-thumbnails .embla__container{
	flex-direction: row !important;
	height: auto !important;
}
#quick-view-product .product-gallery.layout-left .gallery-thumbnails .embla__slide{
	width: 6.1rem !important;
}

@media(min-width: 768px){
    #quick-view-product .product-detail {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		height: 100%!important;
		overflow: hidden;
		padding: var(--spacing-3)

	}
	#quick-view-product .product-form-wrapper{
		position: relative;
		max-height: calc(90vh - 2.4rem);
		overflow: hidden;
	}
	#quick-view-product .product-form-wrapper > *{
		max-height: inherit;
		overflow: auto;
		scrollbar-width: thin;
	}
	#quick-view-product .product-form-wrapper > *::-webkit-scrollbar{
		width: 6px;
	}
	#quick-view-product .product-form-wrapper > *::-webkit-scrollbar-thumb{
		background: var(--color-neutral-100);
		border-radius: var(--rounded-full);
	}
	#quick-view-product .product-form-wrapper.has-more-below:after{
		content: "";
		position: absolute;
		left: 0;
		right: 6px;
		bottom: 0;
		height: 3.2rem;
		pointer-events: none;
		background: linear-gradient(0deg, var(--color-background) 0%, rgba(255,255,255,0) 100%);
	}
	#quick-view-product .portal-close-button{
		top: 1.6rem;
		right: 1.6rem;
	}
	#quick-view-product .product-gallery{
		display: flex;
		flex-direction: column;
		max-height: calc(90vh - 3rem);
	}
	#quick-view-product .product-gallery .gallery-main{
		min-height: 0;
		flex: 1 1 auto;
	}
	#quick-view-product .product-gallery .gallery-main-img{
		max-height: calc(90vh - 14rem);
		margin-inline: auto;
	}
	#quick-view-product .product-gallery .gallery-thumbnails{
		flex: 0 0 auto;
		min-height: 6.4rem;
	}
	#quick-view-product .gallery-thumbnails .embla__slide{
		width: 6.4rem;
		height: 6.4rem;
		aspect-ratio: auto;
	}
	#quick-view-product .gallery-thumbnails .embla__slide > div{
		height: 100%;
		width: 100%;
	}
	#quick-view-product .gallery-thumbnails .embla__slide img{
		height: 100%;
		width: 100%;
		object-fit: cover;
	}
}
@media(max-width: 767px){
	#quick-view-product .product-wrapper{
	border-radius: 0;
		max-height: 90vh;
		overflow: auto

}
	#quick-view-product .card-product__badges {
		display: none
	}
	#quick-view-product .gallery-thumbnails{
		display: none!important;
	}
	#quick-view-product .product-detail{
		grid-template-columns: 1fr
	}
	#quick-view-product [class*=text-h]{
		font-size: var(--font-size-body)
	}
	#quick-view-product  .portal-inner.loading {
	min-height: 30rem;
}
	#quick-view-product .portal-inner{
		align-self: flex-end;
		height : auto;
		padding: 0
	}

	#quick-view-product compare-button,
	#quick-view-product .group-status,
	#quick-view-product .installment-button,
	#quick-view-product .product-polices,
	#quick-view-product [name="buynow"]
	{
		display: none!important;
	}
	#quick-view-product .product-detail {
		padding: 2rem;
		position: relative
	}
	#quick-view-product .portal-inner{
		border-radius: var(--rounded-sm) var(--rounded-sm) 0 0
	}
	#quick-view-product .product-gallery-wrapper  {
		height: 80px!important;
		width: 80px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 2rem;
		left: 2rem;
		z-index: 2;
		pointer-events: none

	}
	#quick-view-product .product-gallery-wrapper > div{
		padding: 0px;
		max-width: 100%;
	}
	#quick-view-product .product-title{
		padding-left: 90px;
		min-height: 90px
	}
	#quick-view-product  .product-cta .btn, #quick-view-product .product-contact__link{
		min-height: 44px;
		        font-size: var(--font-size-12);
        text-wrap: pretty;
	}
	#quick-view-product  .product-contact__text {
		display: none
	}
	#quick-view-product  .product-contact{
		--spacing-3: 8px
	}
	#quick-view-product .product-contact__socials {
		display: flex
	}
}

@media(max-width: 767px){
	#quick-view-product .product-title{
		padding-right: 4rem;
	}
}

/* Giá cách phần chọn phiên bản trong xem nhanh */
#quick-view-product variant-picker{
	display: block;
	margin-top: 1.6rem;
}

/* ===== Ngăn kéo giỏ hàng ===== */
#cart-drawer .cart-header {
	display: none
}



#cart-drawer .cart-unit-price-col{
	display: none
} 

#cart-drawer .cart {
	 --cart-right-column: 100%;
	 --cart-left-column: 100%;
	 --cart-gap: 1.6rem;
	 display: grid;
    height: 100%;
}
 #cart-drawer .cart-table {
	 --cart-template: 4.2rem 1fr 1fr;
}
 #cart-drawer .cart-item {
	 grid-template-areas: "product product product" "space total quantity";
	 padding: 1.6rem 0;
	 grid-template-columns: var(--cart-template);
}
#cart-drawer .cart-item:first-child{
	padding-top: 0
}
#cart-drawer .cart-item > div{
	padding: 0
}
 #cart-drawer .cart-item .cart-product-col {
	 grid-area: product;
	 padding-right: 2rem;
	 gap: 1.2rem;
}
 #cart-drawer .cart-quantity-col {
	 grid-area: quantity;
	 justify-content: flex-end;
}
 #cart-drawer .cart-total-col {
	 grid-area: total;
	 text-align: left
}
 #cart-drawer .cart-remove-col {
	 position: absolute;
	 right: 0;
	 top: 1.6rem;
	 z-index: 1;
}
 #cart-drawer .cart-quantity-col .custom-number-input button {
	 padding: 0.4rem;
}
 #cart-drawer .cart-quantity-col .custom-number-input {
	 width: 9.6rem;
	 height: 3.2rem;
}
 
#cart-drawer .cart-summary > div{
	--spacing-4: 1.2rem;
	border: none;
	padding: 0;
}
.cart-empty{
	display:none
}

.is-empty .cart-empty{
	display: block
}
#cart-drawer .is-empty .cart-form {
	display: block;
}
#cart-drawer .is-empty .cart-left,
#cart-drawer .is-empty .cart-right{
	display: none
}
#cart-drawer .cart-opener-group{
	 display: grid;
	grid-template-columns: repeat(auto-fit,minmax(0,1fr));
    gap: 0.4rem;
    justify-content: space-between;
    border-top: 1px dashed var(--color-neutral-50);
}
#cart-drawer .cart-opener-item{
	display: flex;
	justify-content: center;
	align-items: center
}
#cart-drawer .cart-opener-item:hover{
	cursor: pointer;
	opacity: 0.8
}
#cart-drawer .cart-opener-item  p {
        flex-direction: column;
	text-align: center;
}
#cart-drawer .cart-opener-item p .line-clamp-1 {
	-webkit-line-clamp: 2;
}
#cart-drawer .cart-opener-item button {
    display: none;
}
.cart-total  .price{
	font-family: var(--font-headings-family);
	font-size: var(--font-size-24);
	font-weight: 600;
}
@media(max-width:767px){
  #cart-drawer .cart-opener-item  p {
     font-size: var(--font-size-12)
	}
	.cart-form .card-product--horizontal .card-product__option-wrapper {
		display: none;
	}
}

.rewards-bar{
	    grid-template-columns: 1fr auto;
		border: none;
		border-bottom:  1px solid var(--color-neutral-50);
}
#cart-drawr .card-product--horizontal form {
  padding-inline: 0;
}
#cart-drawer .rewards-bar{
		grid-template-columns: 1fr;
	}
#cart-drawer .rewards-messages,.rewards-success{
		text-align: center;
	}
#cart-drawer .rewards-coupon{
		order : 1;
		text-align: center;
	}
@media(max-width: 767px){
	.rewards-bar{
		grid-template-columns: 1fr;
	}
	.rewards-messages,.rewards-success{
		text-align: center;
	}
	.rewards-coupon{
		order : 1;
		text-align: center;
	}
}
.datepicker-input .datepicker {
	 --cell-width: 36px;
}
 .datepicker-input .datepicker-controls .prev-button, .datepicker-input .datepicker-controls .next-button {
	 width: var(--cell-width);
	 flex: 0 0 var(--cell-width);
	 min-width: auto;
}
 .datepicker-input .datepicker-view {
	 --cell-gap: 4px;
	 width: calc(var(--cell-width) * 7);
	 gap: var(--cell-gap);
}
 .datepicker-input .datepicker .dow {
	 font-weight: 400;
	 font-size: var(--font-size-14);
}
 .datepicker-input .datepicker .focused {
	 outline: none;
	 outline-offset: none;
	 box-shadow: none;
}
 .datepicker-input .datepicker .dow, .datepicker-input .datepicker-cell {
	 width: var(--cell-width);
	 height: var(--cell-width);
}
 .datepicker-input .datepicker .dow {
	 height: 2.4rem;
}
 .datepicker-input .datepicker-header .datepicker-controls .button {
	 border-color: transparent;
	 font-size: var(--font-size-14);
	 font-weight: 600;
}
 .datepicker-input .datepicker-cell:not(.day) {
	 flex-basis: calc(25% - var(--cell-gap));
	 height: 7.2rem;
}
 .datepicker-input .datepicker-cell.selected, .datepicker-input .datepicker-cell.selected:hover {
	 background-color: var(--color-primary);
}
 .datepicker-input .datepicker .button::before, .datepicker-input .datepicker .button::after {
	 content: none;
}
 .datepicker-input .datepicker-main {
	 padding: 5px;
}

.datepicker-input .datepicker-cell.disabled.focused {
	color: var(--color-foreground)
}

.reward-title {
    position: absolute;
    background: var(--color-header);
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    top: 2.5rem;
	font-size:var(--font-size-12);
    left: var(--tooltip-position);
    min-width: 12rem;
}


.rewards-item:hover .reward-title{
	display: block
}

/* ===== Tìm cửa hàng gần nhất ===== */
/* nearest-store — modal tìm cửa hàng gần nhất (trang sản phẩm).

   LƯU Ý QUAN TRỌNG: theme đặt html { font-size: var(--font-size-12) } nên 1rem = 10px, KHÔNG phải 16px.
   Toàn bộ file này dùng thang đó (1.6rem = 16px, 1.4rem = 14px, 1.2rem = 12px) cho khớp
   convention của cart-drawer.css và các file khác trong theme.

   Viết CSS thật, không dùng Tailwind arbitrary values: theme không compile JIT nên các
   class dạng w-[42rem] viết tay trong .bwt sẽ không có tác dụng. */

.nearest-store {
  max-width: var(--dialog-max-width, 64rem);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  margin: auto;
}

.nearest-store__header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-neutral-50, #eee);
}

/* Nút đóng: bản đầu để nền trong suốt + icon thừa hưởng màu nhạt nên chìm hẳn vào nền
   trắng. Cho nền xám nhạt + viền + màu icon đậm để đọc được là một control.
   3.6rem = 36px, đủ vùng chạm trên mobile. */
.nearest-store__close {
  flex: 0 0 auto;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--color-neutral-100, #e5e5e5);
  background: var(--color-neutral-50, #f4f4f4);
  color: var(--color-neutral-500, #333);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nearest-store__close .icon {
  font-size: 1.6rem;
  line-height: 1;
}

.nearest-store__close:hover,
.nearest-store__close:focus-visible {
  background: var(--color-neutral-100, #e5e5e5);
  border-color: var(--color-neutral-200, #ccc);
  color: var(--color-primary);
}

/* Thông báo dạng callout: nền có tông + viền trái đậm + icon.
   Bản trước chỉ đổi màu chữ trên nền trắng — chữ vàng cảnh báo trên trắng contrast quá
   thấp (trượt WCAG AA). Nay mỗi tông có nền nhạt riêng và chữ đậm màu để đạt tương phản. */
.nearest-store__status {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 0.6rem;
  font-size: var(--font-size-16);
  line-height: 1.5;
}

/* Icon dựng bằng ega-iconfont, đổi glyph theo tông. */
.nearest-store__status::before {
  font-family: "ega-iconfont";
  font-size: 1.6rem;
  line-height: 1.4;
  flex: 0 0 auto;
  -webkit-font-smoothing: antialiased;
}

.nearest-store__status[data-tone="info"] {
  background: var(--color-neutral-50, #f4f4f5);
  border-color: #e4e4e7;
  border-left-color: #a1a1aa;
  color: #3f3f46;
}
.nearest-store__status[data-tone="info"]::before {
  content: "\ea1a"; /* icon-notification */
}

.nearest-store__status[data-tone="success"] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #059669;
  color: #065f46;
}
.nearest-store__status[data-tone="success"]::before {
  content: "\ea27"; /* icon-tick */
}

.nearest-store__status[data-tone="warn"] {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
  color: #92400e;
}
.nearest-store__status[data-tone="warn"]::before {
  content: "\ea0f"; /* icon-danger */
}

.nearest-store__status[data-tone="error"] {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  color: #991b1b;
}
.nearest-store__status[data-tone="error"]::before {
  content: "\ea0f"; /* icon-danger */
}

.nearest-store__list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: grid;
  gap: 0.8rem;
}

.nearest-store__item {
  padding: 1.2rem;
  border: 1px solid var(--color-neutral-50, #eee);
  border-radius: 0.6rem;
}

.nearest-store__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
}

.nearest-store__name {
  font-size: var(--font-size-14);
  font-weight: 600;
}

.nearest-store__distance {
  flex: 0 0 auto;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Địa chỉ có icon dẫn: icon canh theo dòng đầu, phần chữ tự xuống dòng thụt lề đều
   nhờ flex + align-items:flex-start. */
.nearest-store__address {
  margin: 0.6rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--font-size-14);
  line-height: 1.5;
  color: var(--color-neutral-400, #666);
}

.nearest-store__address .icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-neutral-300, #999);
}

.nearest-store__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--font-size-14);
}

.nearest-store__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.nearest-store__phone .icon {
  font-size: 1.5rem;
  color: var(--color-neutral-300, #999);
}

/* "Chỉ đường" là hành động chính của mỗi cửa hàng nên nâng lên dạng nút viền,
   thay vì một link chữ dễ bị bỏ qua. */
.nearest-store__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 9999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nearest-store__directions .icon {
  font-size: 1.4rem;
}

.nearest-store__directions:hover,
.nearest-store__directions:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

/* Ô tìm kiếm: thay cho việc cắt bớt danh sách. Icon đặt tuyệt đối bên trái, input
   chừa padding-left tương ứng. */
.nearest-store__search {
  position: relative;
  margin-top: 1.2rem;
}

.nearest-store__search .icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--color-neutral-300, #888);
  pointer-events: none;
}

.nearest-store__search-input {
  width: 100%;
  padding: 1.1rem 1.4rem 1.1rem 3.8rem;
  font-size: var(--font-size-16);
  line-height: 1.4;
  color: inherit;
  background: var(--color-background, #fff);
  border: 1px solid var(--color-neutral-100, #e5e5e5);
  border-radius: 0.6rem;
  outline: none;
}

.nearest-store__search-input::placeholder {
  color: var(--color-neutral-300, #999);
}

.nearest-store__search-input:focus {
  border-color: var(--color-primary);
}

.nearest-store__empty {
  padding: 2.4rem 1.2rem;
  text-align: center;
  font-size: var(--font-size-16);
  color: var(--color-neutral-400, #666);
}

/* Nút mở modal đặt dưới nút thêm vào giỏ.
   custom.css có .btn { border-radius: 9999px !important } nên muốn bo góc khác
   thì phải !important — ở đây giữ nguyên dạng bo tròn nên không cần ghi đè. */
.find-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 1.2rem;
  padding: 1.2rem 1.6rem;
  font-size: var(--font-size-body);
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--color-neutral-100, #ddd);
  cursor: pointer;
}

.find-store-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== Đầu trang ===== */
.header {
  background-color: var(--color-header-bg);
  color: var(--color-header);
  min-height: var(--header-height);
  padding: var(--spacing-2) 0;
  position: relative;
  z-index: 2000;
  width: 100%;
  transition: all .3s ease;
  border-bottom: 1px solid var(--color-neutral-50);
}

.header-logo-transparent {
  display: none;
}

.header.header-transparent .header-logo-transparent {
  display: block;
}

.header.header-transparent .header-logo {
  display: none;
}

.header.header-transparent {
  background-color: transparent;
  color: var(--color-transparent-header);
}

.logo-wrapper {
  max-width: var(--logo-width);
}

.header-icon .icon {
  font-size: 2.2rem;
}

.header-icon .icon-cart {
  font-size: 2.2rem;
}

/* Ba biểu tượng đầu trang (tìm kiếm, tài khoản, giỏ hàng) gần nhau hơn, cùng một khoảng ở mọi khổ. */
.header .header-icon-wrapper {
  column-gap: 0.4rem;
}

/* Chấm số dời ra góc trên bên phải, không che biểu tượng giỏ hàng. */
.header .mini-cart .cart-count {
  right: -0.4rem;
  top: -0.4rem;
}

.header:hover {
  background-color: var(--color-header-bg);
  color: var(--color-header);
}

.header:hover .header-logo {
  display: block
}

.header:hover .header-logo-transparent {
  display: none;
}

.cart-count {
  color: var(--color-cart-bubble);
  background-color: var(--color-cart-bubble-bg);
  width: 1.8rem;
  height: 1.8rem;
  font-size: var(--font-size-12);
  right: 4px;
  top: 2px;
}

.search-bar form {
  --search-button-size: 3.6rem;
  /* --search-button-width: 6.4rem; */
  /* --search-button-height: 100%; */
  /* padding-right: calc(var(--search-button-size) + 0.8rem) */
}

.header-search {
  max-width: 100%;
  width: 100%;
}

@media (min-width: 1024px) {
  .header-search {
    max-width: calc(100% - 3.6rem);
    width: 100%;
  }
}

header .search-bar .form-select {
  max-width: clamp(16rem, 12.5vw, 17.5rem);
  margin-right: 1.2rem;
  padding: 0;
  padding-right: 1.2rem;
  border-radius: 0;
  border-right: 1px solid var(--color-neutral-100) !important;
  --tw-ring-color: transparent;
  border: none;
}

.search-bar .search-button {
  width: var(--search-button-width, var(--search-button-size));
  height: var(--search-button-height, var(--search-button-size));
  font-size: var(--font-size-20);
}

header .search-dropdown {
  box-shadow: 0px 2.8rem 6.4rem 0px rgba(0, 0, 0, 0.2);
  display: none;
}

header .search-bar:has(input:focus) .search-dropdown {
  display: table;
}

.sub-header {
  background-color: var(--color-sub-header-bg);
  color: var(--color-sub-header);
}

header .search-bar .form-select {
  padding-left: 4px;
  padding-right: 30px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.header.active:not(.header-transparent) {
  box-shadow: 0px -11px 20px 3px rgba(0, 0, 0, 0.2);
}

.header.active {

  position: sticky;
  position: -webkit-sticky;
  -webkit-animation: fade-in 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.header.header-has-transparent ~ main {
  margin-top: calc(var(--header-height) * -1);
}

.header.active.header-transparent {
  background-color: var(--color-header-bg);
  color: var(--color-header);
}
.header.active.header-transparent .header-logo { display: block; }
.header.active.header-transparent .header-logo-transparent { display: none; }

@media (min-width: 1271px) {
  .header .logo-wrapper {
    transition: all 0.3s 0.1s ease;
    /* transform: translateX(-4.4rem); */
  }

  .header .menu-opener {
    /* transform: scale(0); */
    transition: transform 0.3s ease-out;
    /* display: block; */
  }

  .header.active .logo-wrapper {
    transform: translateX(0);
  }

  .header.active .menu-opener {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .header {
    padding: var(--spacing-2) 0;
  }
}

.navigation-wrapper {
  height: 4.8rem;
}

.navigation-header .navigation-vertical {
  width: 100%;
  color: var(--color-foreground);
  z-index: 2;
  top: 100%;
}

.submenu {
  position: absolute;
  top: 0;
  right: calc(-1 * var(--navigation-width));
  width: 100%;
  height: 100%;
  background-color: var(--color-background);
  z-index: 1;
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.1);
  display: none;
}

.navigation-horizontal-wrapper {
  /* KHÔNG kẹp 4.8rem: mục menu cao 5.5rem (đệm 1.4rem + dòng chữ), phần thừa bị
     `overflow: hidden` cắt mất ~7px đáy — mũi tên xổ xuống bị khuyết một góc.
     Bỏ kẹp thì wrapper cao đúng nội dung, header chỉ tăng 1px. */
  max-height: none;
  margin-inline: auto;
}

.navigation-horizontal {
  /* Dải menu KHÔNG tự cắt: việc cắt do wrapper (overflow-x: clip) đảm nhiệm.
     Nếu đặt overflow ở đây thì cửa sổ cắt trượt theo transform của thẻ cha, làm
     vùng nhìn thấy hẹp dần theo mức đã cuộn. Cũng nhờ vậy không còn thanh cuộn
     hệ thống — menu cuộn bằng cặp nút mũi tên. */
  overflow: visible;
  display: flex;
  flex-direction: row;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.navigation-horizontal::-webkit-scrollbar {
  display: none;
}


.navigation-arrows {
  display: none;
}

.navigation-horizontal .submenu {
  width: auto;
  top: initial;
  right: initial;
  bottom: initial;
  left: inherit;
  height: auto;
  width: 240px;
  color: var(--color-foreground);
}

.navigation-horizontal .submenu__list {
  background: var(--color-background);
  overflow: auto;
}

.navigation--horizontal .menu-item .submenu:hover,
.navigation--horizontal .menu-item:hover .submenu {
  /* display: block; */
  z-index: 900;
}

.navigation-horizontal .default .submenu__item--main {
  padding: var(--spacing-2) var(--spacing-4);
  font-weight: 600;
}

.navigation-horizontal .submenu-col .submenu__item--main {
  padding: 0;
}

.navigation-horizontal .submenu__item--main a {
  /* display: block; */
}

.navigation-horizontal .submenu.mega-menu {
  width: 100%;
  left: 0;
  padding: 0 var(--container-padding);
}

.navigation-horizontal .mega-menu .submenu__list {
  display: grid;
  grid-template-columns: repeat(var(--megamenu-column, 4), 1fr);
  padding: var(--spacing-8) 0;
  grid-gap: 24px;
  /* Kẹp theo chiều cao màn hình để trên laptop màn thấp panel không phủ kín viewport
     (khách không còn chỗ rê chuột ra ngoài để đóng menu). Chừa 16rem cho header + lề. */
  max-height: min(40rem, calc(100vh - 16rem));
  overflow: hidden auto;
}

/* Menu xổ xuống thông thường (menu 2 cấp hoặc khi tắt mega menu).
   KHÔNG đặt position: relative cho .menu-item: khối chứa của .submenu khi đó nằm
   trong .navigation-horizontal-wrapper (overflow: hidden) và panel bị cắt mất.
   Giữ khối chứa là <header class="header relative">; vị trí ngang do
   defer-scripts.js tính rồi ghi vào biến --submenu-left (bù phần menu đã bị cuộn
   ngang bằng margin-left âm — vị trí tĩnh mặc định bị lệch đúng bằng lượng cuộn). */
/* Giá trị dự phòng phải là `auto` (vị trí tĩnh — ngay dưới mục menu), KHÔNG phải 0.
   defer-scripts.js chỉ nạp sau tương tác đầu tiên nên trước đó biến --submenu-left
   chưa được đặt; nếu dự phòng là 0 thì panel nhảy về sát mép trái header. */
.navigation-horizontal .submenu.default {
  left: var(--submenu-left, auto);
  right: auto;
}

/* Panel KHÔNG có menu cấp 3: giữ cuộn dọc + kẹp chiều cao như thiết kế cũ. */
.navigation-horizontal .submenu.default:not(:has(.submenu__col)) {
  overflow-y: auto;
  max-height: min(40rem, calc(100vh - 16rem));
}

/* Panel CÓ menu cấp 3 (dropdown đổ tầng): overflow bắt buộc phải visible, nếu không
   panel cấp 3 đặt ở left: 100% bị cắt (overflow-y: auto kéo theo overflow-x: auto). */
.navigation-horizontal .submenu.default:has(.submenu__col),
.navigation-horizontal .submenu.default:has(.submenu__col) .submenu__list {
  overflow: visible;
  max-height: none;
}

/* Hàng cấp 2 có con = mốc định vị cho panel cấp 3. Rule này nằm BÊN TRONG panel nên
   position: relative ở đây an toàn, không đổi khối chứa của .submenu. */
.navigation-horizontal .submenu.default .submenu__col {
  position: relative;
}

.navigation-horizontal .submenu.default .submenu__col > .submenu__item--main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2);
  /* Cùng đệm với hàng cấp 2 không có con (rule .default .submenu__item--main) để
     hai loại hàng thẳng hàng nhau và không dính mép panel. */
  padding: var(--spacing-2) var(--spacing-4);
}

/* Mũi tên báo "có menu con" chỉ dùng cho dropdown thường; mega-menu trải phẳng
   sẵn nên phải ẩn đi. */
.submenu__col-arrow {
  display: none;
  flex: none;
  font-size: 1.2rem;
}

.navigation-horizontal .submenu.default .submenu__col-arrow {
  display: inline-flex;
}

/* Panel cấp 3 bay ra bên phải hàng cấp 2 */
.navigation-horizontal .submenu.default .submenu__col > ul {
  position: absolute;
  left: 100%;
  top: 0;
  width: 24rem;
  margin-top: 0;
  /* Đệm dọc đặt ở panel, đệm ngang đặt ở từng hàng để vùng bấm trải hết bề ngang. */
  padding: var(--spacing-2) 0;
  background: var(--color-background);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s 0.1s ease-out;
  max-height: min(40rem, calc(100vh - 16rem));
  overflow-y: auto;
  z-index: 1;
}

/* Hàng cấp 3: đệm riêng cho từng hàng. Selector đủ đặc hiệu (5 class) để thắng rule
   `.submenu__list .submenu__item:not(.submenu__item--main)+.submenu__item{margin-top}`
   bên dưới — nếu không sẽ vừa có đệm vừa có margin, khoảng cách bị gấp đôi. */
.navigation-horizontal .submenu.default .submenu__col > ul > .submenu__item {
  padding: var(--spacing-2) var(--spacing-4);
  margin-top: 0;
}

.navigation-horizontal .submenu.default .submenu__col:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* Lật sang trái khi panel cấp 3 sẽ tràn khỏi mép phải viewport
   (class do defer-scripts.js gắn khi rê chuột vào hàng cấp 2). */
.navigation-horizontal .submenu.default .submenu__col--flip > ul {
  left: auto;
  right: 100%;
}

.mega-menu .submenu__item--main a {
  padding: 0;
}

.submenu__col ul {
  /* padding-left: var(--spacing-5); */
  margin-top: var(--spacing-4);
}

.submenu__item--main {
  /* font-size: var(--font-size-16); */
  font-weight: 600;
}

/* Chỉ mega-menu mới bỏ đệm hàng cấp 2 (lưới đã có grid-gap sẵn). Dropdown thường
   giờ cũng dùng .submenu__col nên KHÔNG được gom chung, nếu không chữ dính sát mép. */
.navigation-horizontal .mega-menu .submenu__col .submenu__item--main {
  padding: 0;
  /* font-size: var(--font-size-16); */
}

.submenu__list .submenu__item:not(.submenu__item--main)+.submenu__item {
  margin-top: var(--spacing-3);
}

.navigation-vertical ul+ul {
  border-top: 2px solid var(--color-neutral-50);
  margin-top: 2rem;
  padding-top: 2rem;
}

/* Không dùng scroll-snap: submenu không có phần tử scroll-snap-align nào nên
   `scroll-snap-type: y mandatory` làm trình duyệt kẹt cuộn, không xem được các mục
   cấp 2 nằm dưới khi màn hình thấp. */
.submenu {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.submenu.default .submenu__list {
  padding-block: var(--spacing-2);
}

#menu-drawer .submenu[class*="mega-menu--"] {
  grid-template-columns: 100%;
}

@media (min-width: 1023px) {
  .navigation-vertical .submenu {
    right: auto;
    border-radius: 0 4px 4px 0;
    left: calc(var(--navigation-width) - 2px);
  }

  .index-container .navigation-vertical .submenu[class*="mega-menu--"] {
    width: calc(var(--container-width) - var(--navigation-width) - var(--container-padding) * 2);
    min-height: 450px;
    min-width: 100%;
  }
}

.navigation-vertical .section-card {
  padding: 0;
}

.navigation-vertical .container {
  padding: 0;
}

#menu-drawer .brand-list {
  --grid-col: repeat(2, 1fr) !important;
}

.navigation-vertical .mega-menu__inner {
  display: flex;
  gap: 1.2rem;
}

.mega-menu .heading {
  font-size: var(--font-size-h5);
}

#menu-drawer .mega-menu__inner {
  flex-direction: column;
}

.navigation-vertical .submenu__list .submenu__col {
  margin: 0;
}

.navigation-vertical .card-product__cta {
  display: block;
}

.submenu .product-promo-tag,
.submenu .card-product__cta,
.submenu .card-product__option-wrapper {
  display: none;
}

@media (max-width: 1023px) {
  .submenu {
    right: 0;
  }

  .navigation-vertical .menu-item.group>a {
    padding-right: 4.4rem;
    position: relative;
  }

  .navigation-vertical .menu-item.group>a>[data-toggle-submenu] {
    position: absolute;
    right: 0;
    width: 4.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .menu-active .submenu {
    display: block;
  }
}

.navigation-horizontal .submenu {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s 0.1s ease-out;
  display: block;
  top: 100% !important;
}

.navigation-horizontal .menu-item:hover .submenu {
  opacity: 1;
  visibility: visible;
}

/* Menu desktop mở bằng :hover nên khi panel phủ gần kín màn hình thấp, khách không
   còn chỗ rê chuột ra để đóng. Class này (do defer-scripts.js gắn khi bấm Esc hoặc
   click ra ngoài) tạm ép đóng cho tới khi chuột rời khỏi mục menu. */
.navigation-horizontal .menu-item.submenu-dismissed:hover>.submenu {
  opacity: 0;
  visibility: hidden;
}

/* Class do defer-scripts.js gắn là `overflow-menu` (không phải `overflow`) khi tổng
   chiều rộng các mục vượt khung → hiện 2 nút mũi tên cuộn menu. */
.navigation-horizontal-wrapper.overflow-menu+.navigation-arrows {
  display: flex;
}

.quick-search .search-loading,
.quick-search.loading .search-history-list,
.quick-search.loading .search-keywords,
.quick-search.loading .search-result,
.quick-search.loaded .search-keywords,
.quick-search.loaded .search-history-list {
  display: none;
}

.quick-search.loaded .search-result {
  display: block;
}

.search-loading .loading-icon,
.quick-search.loading .search-loading {
  display: flex;
  color: var(--color-neutral-100);
}

.loading>.loading-icon {
  display: flex;
}

.search-bar form {
  /* padding-right: 0; */
  overflow: hidden;
}

.search-dropdown {
  max-height: 100%;
  width: 100%;
  word-break: break-word;
  overflow: auto;
}

header .search-bar:has(input:focus) .search-dropdown,
header .search-dropdown:hover {
  display: block;
  max-height: 24rem;
  height: fit-content;
}

.search-input-group {
  padding-right: 4px;
}

.search-bar input {
  padding-right: 1.2rem;
}

.search-bar .search-button {
  right: 0;
  /* height: calc(100% + var(--spacing-3) * 2); */
  top: calc(-1 * var(--spacing-3));
  --search-button-width: 4rem;
  --search-bar-height: 4rem;
}

#search-drawer .search-bar .search-button {
  right: 0;
  height: 100%;
  top: 0;
}

#search-drawer .search-input-group {
  height: 4.4rem;
  border-radius: var(--rounded);
  border: 1px solid var(--color-neutral-50);
  display: flex;
  align-items: center;
  padding: 2px;
  padding-left: var(--spacing-2-5);
}

#search-drawer form {
  flex-direction: column;
  border: none;
  border-radius: 0px;
  padding: 0;
  gap: var(--spacing-3);
}

#search-drawer [name="query"] {
  display: block;
  width: 100%;
  background-color: var(--color-background);
  font-size: var(--font-size-body);
  line-height: 1;
}

#search-drawer .search-dropdown {
  position: relative;
}

#search-drawer .form-select {
  border: 1px solid var(--color-neutral-50);
  /* --rounded-input: var(--rounded-full); */
}

@media (max-width: 991px) {
  .submenu .submenu__list {
    max-height: calc(100% - 45px);
  }
}

/* Drawer mega-menu giờ có banner/sản phẩm NẰM DƯỚI danh sách danh mục → KHÔNG được
   kẹp chiều cao submenu__list (rule trên dành cho layout cũ chưa có phần này). Nếu
   kẹp, các cột danh mục tràn khỏi hộp list và ĐÈ lên khối sản phẩm. Cho list cao tự
   nhiên; cả drawer (nav.navigation-vertical overflow-y-auto) tự cuộn. */
.navigation-vertical .submenu .submenu__list {
  max-height: none;
}

/* Banner/sản phẩm mega-menu giữ class w-1/3 (đã compile) cho desktop; trong drawer
   mobile cho full-width. KHÔNG dùng class Tailwind lg:w-1/3 vì class đó CHƯA được
   compile trong theme → sẽ rơi về w-full làm desktop bị to bất thường. */
.navigation-vertical .mega-menu__banner,
.navigation-vertical .releated-products {
  width: 100%;
}


/* Khi menu tràn: wrapper trở thành LỚP CẮT đứng yên, còn dải menu bên trong trượt
   bằng transform (defer-scripts.js).
   - `overflow: clip visible` chứ KHÔNG phải `hidden`: `clip` không tạo scroll
     container nên hợp lệ khi ghép clip (ngang) với visible (dọc) — nhờ đó menu xổ
     xuống không bị cắt. `hidden` bắt buộc cả hai trục, sẽ cắt mất dropdown.
   - `flex: 1 1 auto` để wrapper chiếm trọn rãnh, không co theo nội dung. Để mặc
     `0 1 auto` thì bỏ overflow của ul xong wrapper sụp còn ~316px. */
.navigation-horizontal-wrapper.overflow-menu {
  max-width: calc(100% - 70px);
  flex: 1 1 auto;
  overflow: clip visible;
}

/* Dải menu trượt bằng margin-left (defer-scripts.js). KHÔNG đổi sang transform:
   transform tạo khối chứa mới cho position:absolute -> mega menu mất full-width. */
.navigation--horizontal nav {
  transition: margin-left 0.3s ease;
}


.navigation-horizontal-wrapper {
  /* Không có min-width: 0 thì flex item lấy chiều rộng nội tại (tổng các mục menu,
     vốn là flex: 0 0 auto) và tràn khỏi cột 60% của header-grid, đè lên nút LIVE /
     chọn ngôn ngữ ở màn ~1024px. */
  min-width: 0;
  flex: 0 1 auto;
}

/* Cột menu trong header-grid mang class `mx-auto`. Margin ngang auto làm grid item
   KHÔNG còn stretch theo rãnh mà co giãn theo nội dung (fit-content), nên khi menu
   dài nó phình to hơn rãnh 60% và vẽ đè lên nút LIVE / chọn ngôn ngữ ở khổ ~1024px.
   max-width: 100% kẹp lại đúng bề rộng rãnh; min-width: 0 cho phép co khi cần. */
.header-nav {
  min-width: 0;
  max-width: 100%;
}


.navigation-horizontal>.menu-item {
  flex: 0 0 auto
}

.navigation-horizontal>.menu-item {
  padding: 1.4rem
}

.navigation-arrows {
  display: none;
  line-height: 1
}

/* Hai nút cuộn menu: bớt khoảng đệm hai bên để hai nút sát nhau, đỡ chiếm chỗ. */
.navigation-arrows .btn {
  padding: 0 0.4rem;
}


.navigation--horizontal {
  justify-content: space-between
}

/* ============================================================
   Mega-menu — khối "Sản phẩm": carousel DỌC + card đẹp (scoped)
   Chỉ áp dụng trong .megamenu-products-carousel, không đụng
   card ngang dùng chung ở collection/hotspot/product-tabs...
   ============================================================ */

/* Custom element <related-products> mặc định display:inline. Ở desktop nó là flex
   item trong .mega-menu__inner nên bị blockify (chạy đúng); nhưng trong menu drawer
   mobile nó KHÔNG nằm trong flex → giữ inline, hộp inline bị "chẻ" quanh các block
   con (heading + carousel) → chữ đè nhau + bullet lạc. Ép block để bố cục đúng. */
.releated-products {
  display: block;
}

/* --- Carousel NGANG: mỗi slide = 1 cột chứa 2 card xếp chồng dọc ---
   Root fix "mất border sản phẩm khi scroll": JS related-products dựng carousel gán
   margin-left ÂM (-0.5rem) cho container theo mẫu gutter chung → slide RỘNG HƠN
   viewport, embla căn slide sát mép trái/phải nên card (viền 1px + bo 1.2rem) đè
   đúng mép overflow-x:clip → bị xén. Bỏ hẳn margin âm đó (dùng !important vì JS gán
   đè rule thường): container = đúng bề rộng viewport, slide = 100% viewport, card
   được đệm 0.8rem hai bên (padding của slide) → LUÔN cách mép clip 0.8rem ở MỌI
   breakpoint & mọi slide, không còn bị cắt. */
.megamenu-products-carousel .embla__container {
  margin-inline: 0 !important;
}

/* Card có viền + bo góc → phải chừa đệm ngang trong slide, nếu không viền/góc
   trái-phải của card sẽ bị viewport (overflow:clip) cắt khi embla trượt trang.
   Đệm 1.6rem (=16px; theme dùng root 10px nên 1rem=10px) = cùng cỡ padding heading
   bên dưới → card thẳng hàng với heading. */
.megamenu-products-carousel .embla__slide {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: auto !important;
  flex: 0 0 100%;
  padding-inline: 1.6rem;
}

/* Heading "Sản phẩm khuyến mãi" nằm NGOÀI carousel (sát mép cột) trong khi card
   được đệm 1.6rem trong slide → lệch trái. Cho heading cùng padding 1.6rem (16px)
   để mép chữ heading thẳng hàng với mép trái card. */
.releated-products > .heading-bar {
  padding-inline: 1.6rem;
}

.megamenu-products-carousel .embla__slide > card-product {
  display: block;
  width: 100%;
}

/* Nút trái/phải + dots gom 1 hàng canh giữa dưới carousel */
.megamenu-products-carousel .embla__nav .embla__button {
  position: static;
  transform: none;
  opacity: 1;
  width: 2.8rem;
  height: 2.8rem;
  font-size: var(--font-size-14);
  background: var(--color-neutral-50);
}

.megamenu-products-carousel .embla__nav .embla__button:hover {
  background: var(--color-neutral-100);
}

.megamenu-products-carousel .embla__nav .embla__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.megamenu-products-carousel .embla__dots {
  margin: 0;
}

/* --- Card ngang kiểu tham chiếu (bo góc + viền + hover) --- */
.megamenu-products-carousel .card-product--horizontal {
  border: 1px solid var(--color-neutral-50);
  border-radius: 1.2rem;
  background: var(--color-background);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.megamenu-products-carousel .card-product--horizontal:hover {
  border-color: var(--color-neutral-100);
}

.megamenu-products-carousel .card-product--horizontal form {
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 0.4rem;
}

/* Tiêu đề card dính sát giá (chỉ cách 12px, mà tiêu đề thường xuống 2 dòng nên
   nhìn như dính liền). Nới thêm, chỉ trong carousel mega-menu. */
.megamenu-products-carousel .card-product__title {
  margin-bottom: 0.4rem;
}

.megamenu-products-carousel .card-product__top .rounded-sm {
  border-radius: 0.8rem;
}

/* Menu chật — ẩn nút thao tác nhanh, cả card click vào sản phẩm */
.megamenu-products-carousel .card-product__cta {
  display: none;
}

.header .menu-item__link {
  font-weight: 600;
}

.header-icon .icon-shopping-bag {
  font-size: 2.2rem;
}

/* ===== Gợi ý sản phẩm theo câu hỏi ===== */
.product-quiz {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5.6rem;
  align-items: start;
}

.product-quiz [hidden] {
  display: none;
}

/* Hai cột: cột câu hỏi dính dưới đầu trang khi cuộn, tới hết khối (cột kết quả dài hơn thì cột trái đi theo).
   Từ 769px trở lên vì dưới đó khối xếp một cột. */
@media (min-width: 769px) {
  .product-quiz__form {
    position: sticky;
    top: calc(var(--header-height) + 2.4rem);
  }
}

.product-quiz__text {
  margin: 0;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.product-quiz__group {
  min-width: 0;
  margin: 2.4rem 0 0;
  padding: 0;
  border: 0;
}

.product-quiz__question {
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}

.product-quiz__question-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
}

.product-quiz__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: var(--font-size-12);
}

.product-quiz__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.product-quiz__choice {
  min-height: 4.4rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background);
  color: inherit;
  font-size: var(--font-size-14);
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
}

.product-quiz__choice[aria-pressed="true"] {
  border-color: var(--color-foreground);
  background: var(--color-foreground);
  color: var(--color-background);
}

.product-quiz__choice:focus-visible,
.size-finder__mode:focus-visible {
  outline: 2px solid var(--color-foreground);
  outline-offset: 2px;
}

.product-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.8rem;
}

.product-quiz__submit {
  line-height: 1.6;
}

.product-quiz .heading,
.size-finder .heading {
  font-size: var(--font-size-44);
}

.product-quiz__actions:empty {
  display: none;
}

.product-quiz__panel {
  min-height: 62rem;
  padding: 2.4rem;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background);
}

.product-quiz__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 0 2rem;
  font-size: var(--font-size-16);
  line-height: 1.6;
  text-align: center;
  color: var(--color-neutral-300);
}

.product-quiz__empty-icon {
  font-size: 3.6rem;
  line-height: 1;
  color: var(--color-link);
}

.product-quiz__empty-title {
  color: var(--color-foreground);
}

.product-quiz__skeleton,
.product-quiz__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.6rem;
}

.product-quiz__skeleton > div {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-quiz__skeleton i,
.product-quiz__skeleton b {
  display: block;
  background: color-mix(in srgb, var(--color-neutral-50) 55%, var(--color-background));
}

.product-quiz__skeleton i {
  aspect-ratio: 1;
}

.product-quiz__skeleton b {
  height: 1.4rem;
}

.product-quiz__skeleton i + b {
  width: 40%;
  margin-top: 0.2rem;
}

.product-quiz__skeleton b + b {
  width: 100%;
}

.product-quiz__skeleton b + b + b {
  width: 70%;
}

.product-quiz__skeleton b + b + b + b {
  width: 50%;
}

.product-quiz__output-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.15;
}

.product-quiz__output-msg {
  margin: 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.product-quiz__output-msg.is-none {
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--color-secondary);
  background: color-mix(in srgb, var(--color-neutral-50) 55%, var(--color-background));
  font-size: var(--font-size-16);
  color: var(--color-foreground);
}

.product-quiz__reset {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  padding: 1rem 2rem;
  border: 1px solid var(--color-foreground);
  background: none;
  color: var(--color-foreground);
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}

.product-quiz__reset:hover {
  background: var(--color-foreground);
  color: var(--color-background);
}

.product-quiz__fallback-title {
  margin: 2.8rem 0 0;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.15;
}

.product-quiz__list {
  margin-top: 1.6rem;
}

.product-quiz__cell {
  min-width: 0;
}

.product-quiz__more,
.suggestion-summary__back:not(.btn),
.suggestion-empty__actions .link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
}

/* ===== Công cụ tìm size ===== */
.size-finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.6rem;
  align-items: center;
}

.size-finder__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.size-finder__text {
  margin: 0;
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.size-finder__modes {
  display: flex;
  gap: 0.8rem;
  max-width: 42rem;
  margin: 2rem 0 1.4rem;
}

.size-finder__mode {
  flex: 1;
  min-height: 4.4rem;
  padding: 0;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background-body);
  color: inherit;
  font-size: var(--font-size-14);
  line-height: 1.6;
  cursor: pointer;
}

.size-finder__mode[aria-pressed="true"] {
  border-color: var(--color-foreground);
  box-shadow: inset 0 0 0 1px var(--color-foreground);
}

.size-finder__label {
  display: block;
  margin: 0 0 0.6rem;
  font-size: var(--font-size-14);
  font-weight: 500;
  line-height: 1.6;
}

.size-finder__label:empty,
.size-finder__unit:empty,
.size-finder__out-title:empty,
.size-finder__out-text:empty {
  display: none;
}

.size-finder__field {
  display: flex;
  max-width: 42rem;
  border: 1px solid var(--color-foreground);
  background: var(--color-background);
}

.size-finder__input {
  flex: 1;
  min-width: 0;
  height: 5.2rem;
  padding: 0 1.6rem;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--font-size-18);
  line-height: 1.6;
}

.size-finder__input:focus-visible {
  outline: 2px solid var(--color-foreground);
  outline-offset: -4px;
}

.size-finder__unit {
  display: grid;
  place-items: center;
  padding: 0 1.6rem;
  border-left: 1px solid var(--color-neutral-50);
  color: var(--color-neutral-300);
  font-size: var(--font-size-16);
  line-height: 1.6;
}

.size-finder__out {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  max-width: 42rem;
  min-height: 8.6rem;
  margin-top: 1.8rem;
  padding: 1.8rem 2rem;
  background: var(--color-foreground);
  color: var(--color-background-body);
}

.size-finder__size {
  min-width: 5.6rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-44);
  font-weight: 500;
  line-height: 1;
  color: var(--color-secondary);
}

.size-finder__out-body {
  display: block;
  font-size: var(--font-size-16);
  line-height: 1.6;
}

.size-finder__out-text {
  display: block;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: color-mix(in srgb, currentColor 67%, transparent);
}

.size-finder__out-link {
  display: inline-block;
  font-size: var(--font-size-14);
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}

.size-finder__out [hidden] {
  display: none;
}

.size-finder__hint {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.size-finder__hint .icon {
  font-size: 1.8rem;
}

.size-finder__hint .link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-14);
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .product-quiz__text,
  .product-quiz__empty,
  .size-finder__text,
  .size-finder__unit {
    font-size: var(--font-size-16);
  }

  .product-quiz .heading,
  .size-finder .heading {
    font-size: var(--font-size-32);
  }

  .product-quiz {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .size-finder {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

personalize-field {
  display: block;
  grid-column: 1 / -1;
  flex: 0 0 100%;
  order: 0;
  margin: 0 0 1.8rem;
}

.main-product:not(.product-shortcode) .product-info-wrapper personalize-field {
  margin-bottom: 0.8rem;
}

.personalize__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 4.4rem;
  font-size: var(--font-size-16);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.personalize__check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.personalize__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1.5px solid var(--color-foreground);
  color: var(--color-background);
}

.personalize__box .icon {
  font-size: 1.4rem;
  opacity: 0;
}

.personalize.is-open .personalize__box {
  background: var(--color-foreground);
}

.personalize.is-open .personalize__box .icon {
  opacity: 1;
}

.personalize__check:focus-visible + .personalize__box {
  outline: 2px solid var(--color-foreground);
  outline-offset: 2px;
}

.personalize__note {
  display: block;
  font-size: var(--font-size-14);
  font-weight: 400;
  color: var(--color-neutral-300);
}

.personalize__body {
  display: none;
}

.personalize.is-open .personalize__body {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
  padding: 1.6rem;
  background: color-mix(in srgb, var(--color-neutral-50) 42%, var(--color-background-body));
}

.personalize__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--font-size-14);
  font-weight: 500;
}

.personalize__input {
  width: 100%;
  height: 4.6rem;
  padding: 0 1.2rem;
  border: 1px solid var(--color-neutral-50);
  border-radius: 0;
  background: var(--color-background-body);
  font-size: var(--font-size-16);
  letter-spacing: 0.08em;
  color: var(--color-foreground);
}

.personalize__meta {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 0.4rem;
  font-size: var(--font-size-12);
  line-height: 1.5;
  color: var(--color-neutral-300);
}

.personalize__counter {
  flex: none;
}

.personalize__warn {
  display: block;
  min-height: 1.4em;
  margin-top: 0.2rem;
  font-size: var(--font-size-12);
  color: var(--color-error);
}

.personalize__style-list {
  display: flex;
  gap: 0.8rem;
}

.personalize__style {
  flex: 1;
  min-height: 4.4rem;
  border: 1px solid var(--color-neutral-50);
  background: var(--color-background-body);
  font-family: var(--font-headings-family);
  font-size: var(--font-size-18);
  color: var(--color-foreground);
}

.personalize__style--2 {
  font-style: italic;
}

.personalize__style[aria-pressed="true"] {
  border-color: var(--color-foreground);
  box-shadow: inset 0 0 0 1px var(--color-foreground);
}

.personalize__preview {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-neutral-50);
  font-size: var(--font-size-14);
  color: var(--color-neutral-300);
}

.personalize__preview-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h5);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--color-foreground);
}

.personalize__preview-text.ph {
  color: var(--color-neutral-300);
}

.personalize__preview-text.is-italic {
  font-style: italic;
}

.personalize__footnote {
  margin: 0;
  font-size: var(--font-size-12);
  line-height: 1.5;
  color: var(--color-neutral-300);
}

.cro-btn-pair {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cro-btn-pair [hidden] {
  display: none;
}

.cro-btn-pair .btn {
  flex: 1 1 0;
  min-height: 4.8rem;
  padding-inline: 1rem;
  font-size: var(--font-size-14);
}

.cro-btn-pair .cro-btn-item--addtocart {
  flex: 1 1 0;
}

.cro-btn-pair .btn-buynow {
  border-width: 1px;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cro-btn-pair .btn-buynow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-background-body, #fff);
}

@media (max-width: 767px) {
  body:has(.cro-btns .cro-btn-item--addtocart) .main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .btn-add-to-cart,
  body:has(.cro-btns .cro-btn-item--addtocart) .main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form .btn-buynow {
    display: none;
  }

  body:has(.cro-btns .cro-btn-item--addtocart) .main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form:not(.hidden) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.cro-btns .cro-btn-item--addtocart) .main-product:not(.product-shortcode) .product-info-wrapper #add-to-cart-form > div:first-of-type {
    width: 9.6rem;
  }
}

/* ===== Giỏ hàng: gói riêng, thuộc tính món, ghi chú giao hàng ===== */
.cart-order-options {
  padding: 0;
}

.cart-order-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 1.2rem 0;
  cursor: pointer;
}

.cart-order-option__check {
  flex: none;
  margin-top: 0.2rem;
}

.cart-order-option__text {
  display: block;
  min-width: 0;
}

.cart-order-option__title {
  display: block;
  font-size: var(--font-size-14);
  line-height: 1.4;
}

.cart-order-option__desc {
  display: block;
  font-size: var(--font-size-12);
  line-height: 1.5;
  color: var(--color-neutral-300);
}

.cart-item__variant,
.cart-item__prop {
  display: inline-block;
  margin: 0.4rem 0.4rem 0 0;
  padding: 0.2rem 0.8rem;
  font-size: var(--font-size-12);
  line-height: 1.5;
  background-color: var(--color-neutral-50);
}

.cart-ship-note {
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

/* ===== Tin tức: bài nổi bật ===== */
.blog-featured {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  overflow: hidden;
  margin-bottom: 1.6rem;
  background-color: var(--color-ink);
  color: #fff;
}

.blog-featured__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s;
}

.blog-featured:hover .blog-featured__image {
  transform: scale(1.03);
}

.blog-featured--no-image {
  min-height: 32rem;
}

.blog-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-ink);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.65) 40%, transparent 72%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.65) 40%, transparent 72%);
  pointer-events: none;
}

.blog-featured__content {
  position: absolute;
  left: 3.6rem;
  right: 3.6rem;
  bottom: 3.2rem;
  z-index: 2;
  display: block;
  max-width: 62rem;
}

.blog-featured__meta {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: var(--font-size-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: color-mix(in srgb, var(--color-ink) 75%, transparent);
}

.blog-featured__title {
  display: block;
  margin: 0.8rem 0 1rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-44);
  font-weight: 500;
  line-height: 1.1;
}

.blog-featured__desc {
  display: block;
  margin-bottom: 1.6rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.82);
}

.blog-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .blog-featured__image {
    aspect-ratio: 4 / 5;
  }

  .blog-featured__content {
    left: 1.6rem;
    right: 1.6rem;
    bottom: 2rem;
  }

  .blog-featured__title {
    font-size: var(--font-size-h4);
  }
}

.section-main-blog .blog-article-grid {
  row-gap: 3.2rem;
  column-gap: 2.4rem;
}

@media (max-width: 767px) {
  .section-main-blog .blog-article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.8rem;
  }
}

.pages .pagination .page-link {
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: transparent;
}

@media (max-width: 767px) {
  .pages .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pages .pagination .page-link {
    width: 4.4rem;
    height: 4.4rem;
  }
}

.pages .pagination .active .page-link {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-button-primary-text);
}

.section-main-cart .cart-summary-info {
  padding: 2.2rem;
  border-width: 1px;
  border-color: var(--color-border);
  background-color: var(--color-background);
}

.cart-item .cart-item__name {
  font-weight: 500;
}

.rewards-bar .rewards-messages,
.rewards-bar .rewards-success {
  font-weight: 400;
}

.section-main-cart .cart-right > ul li {
  color: var(--color-neutral-300);
}

@media (max-width: 767px) {
  #cart-drawer #PortalClose-cart-crawer {
    width: 4.4rem;
    height: 4.4rem;
  }

  #cart-drawer .cart-quantity-col .custom-number-input {
    width: 13.2rem;
    height: 4.6rem;
  }

  #cart-drawer .cart-quantity-col .custom-number-input button {
    width: 4.4rem;
    min-width: 4.4rem;
  }

  #cart-drawer .cart-remove-col {
    top: 0.4rem;
    right: -1.2rem;
  }

  #cart-drawer .cart-remove-col remove-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
  }
}

/* ===== Trang danh sách danh mục ===== */
.collection-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .collection-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .collection-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.collection-index-card {
  display: block;
  overflow: hidden;
  text-align: center;
  color: var(--color-foreground);
}

.collection-index-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.2rem;
  background: var(--product-image-bg);
  transition: transform 0.6s ease;
}

.collection-index-card:hover img {
  transform: scale(1.05);
}

.collection-index-card__name {
  display: block;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-18);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Trang liên hệ ===== */
.contact-page__head {
  margin-bottom: 2.4rem;
}

.contact-page__subtitle {
  color: var(--color-neutral-300);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}

@media (min-width: 768px) {
  .contact-page__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: 4.8rem;
  }

  .contact-page__info {
    order: 1;
  }

  .contact-page__map {
    order: 2;
  }

  .contact-page__form {
    order: 3;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.contact-page__info {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-page__item {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-neutral-50);
}

.contact-page__item > .icon,
.contact-page__zalo-icon {
  flex: none;
  margin-top: 0.2rem;
}

.contact-page__zalo-icon {
  margin-inline-end: -0.4rem;
}

.contact-page__label {
  color: var(--color-neutral-300);
  font-size: var(--font-size-14);
}

.contact-page__note {
  color: var(--color-neutral-300);
  font-size: var(--font-size-14);
}

.contact-page__map {
  align-self: start;
}

.contact-page__map iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--color-neutral-50);
}

.contact-page__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--color-neutral-50);
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.contact-form__fields > * {
  grid-column: 1 / -1;
}

@media (min-width: 480px) {
  .contact-form__fields > .contact-form__half {
    grid-column: auto;
  }
}

.contact-form__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--font-size-14);
  font-weight: 500;
}

.contact-form__fields .form-input,
.contact-form__fields .form-textarea {
  width: 100%;
}

/* ===== Trang nội dung: tiêu đề mục, bảng, đoạn cuối có liên kết thành nút ===== */
.main-page .prose h2 {
  margin: 3.6rem 0 1.2rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h3);
  font-weight: 500;
  line-height: 1.15;
}

.main-page .prose h2:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .main-page .prose h2 {
    font-size: var(--font-size-28);
  }
}

.main-page .prose table {
  border-collapse: collapse;
}

.main-page .prose th,
.main-page .prose td {
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.main-page .prose th {
  background: color-mix(in srgb, var(--color-border) 40%, var(--color-background-body));
  font-weight: 600;
}

.main-page .prose > p:last-child:has(> a:last-child) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 3.6rem;
  padding: 2.2rem 2.4rem;
  background: color-mix(in srgb, var(--color-border) 40%, var(--color-background-body));
}

.main-page .prose > p:last-child:has(> a:last-child) > strong {
  flex: 1 1 26rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.2;
}

.main-page .prose > p:last-child:has(> a:last-child) > a:last-child {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.4rem;
  background: var(--color-button-primary);
  color: var(--color-button-primary-text);
  border-radius: var(--rounded-button);
  font-weight: 600;
  text-decoration: none;
}

.contact-page__head h1 {
  font-size: var(--font-size-48);
  font-weight: 500;
  line-height: 1.15;
}

.contact-form-box > h2 {
  font-size: var(--font-size-h3);
  font-weight: 500;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .contact-page__head h1 {
    font-size: var(--font-size-36);
  }
}

.ldp-spot,
.ldp-sets,
.section-campaign-faq {
  background: var(--campaign-surface);
}

.ldp-promise__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.ldp-promise__item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--font-size-14);
  color: var(--campaign-muted);
}

.ldp-promise__icon {
  flex: none;
  width: 4rem;
  height: 4rem;
}

.ldp-promise__text b {
  display: block;
  font-size: var(--font-size-14);
  color: var(--color-foreground);
}

.ldp-deadline__wrap {
  display: block;
  position: relative;
  max-width: 108rem;
  margin: 0 auto;
  padding-top: 3rem;
}

.ldp-deadline__line {
  position: absolute;
  top: 0.8rem;
  right: 0;
  left: 0;
  height: 0.4rem;
  background: var(--color-border);
}

.ldp-deadline__line i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: max(0px, calc((var(--tl-past, 0) - 1) * (100% + 1.6rem) / var(--tl-cols, 4) + 0.8rem));
  background: var(--camp);
}

.ldp-deadline__grid {
  display: grid;
  grid-template-columns: repeat(var(--tl-cols, 4), minmax(0, 1fr));
  gap: 1.6rem;
}

.ldp-deadline__item {
  position: relative;
}

.ldp-deadline__item::before {
  content: "";
  position: absolute;
  top: -3rem;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  border: 3px solid var(--camp);
  border-radius: 50%;
  background: var(--color-background-body);
}

.ldp-deadline__item.is-past::before {
  background: var(--camp);
}

.ldp-deadline__date {
  display: block;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-36);
  font-weight: 500;
  line-height: 1;
  color: var(--camp);
}

.ldp-deadline__item strong {
  display: block;
  margin: 0.8rem 0 0.2rem;
}

.ldp-deadline__item span {
  font-size: var(--font-size-14);
  color: var(--campaign-muted);
}

.ldp-deadline__past {
  display: block;
  width: max-content;
  margin-top: 0.8rem;
  padding: 0.1rem 0.8rem;
  border: 1px solid var(--color-border);
  font-size: var(--font-size-12);
  font-weight: 600;
  color: var(--color-foreground);
}

.ldp-deadline__past[hidden] {
  display: none;
}

.ldp-deadline__today {
  margin: 1.8rem 0 0;
  text-align: center;
  color: var(--campaign-muted);
}

.ldp-spot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 5.6rem;
  align-items: center;
}

.ldp-spot__media {
  position: relative;
  background: var(--product-image-bg);
}

.ldp-spot__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.ldp-spot__off {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: 1rem 1.4rem;
  background: var(--camp);
  color: var(--color-background);
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 600;
  line-height: 1;
}

.ldp-spot .eyebrow {
  display: block;
  margin-bottom: 0.8rem;
}

.ldp-spot__title {
  margin: 0.6rem 0 1.2rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-48);
  font-weight: 500;
  line-height: 1.15;
}

.ldp-spot__text {
  margin: 0;
  color: var(--campaign-muted);
}

.ldp-spot__price,
.ldp-sets__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
}

.ldp-spot__price {
  margin: 2rem 0 0.6rem;
}

.ldp-spot__price b,
.ldp-sets__price b {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h2);
  font-weight: 600;
  line-height: 1;
  color: var(--camp);
}

.ldp-spot__price s,
.ldp-sets__price s {
  font-size: var(--font-size-18);
  color: var(--campaign-muted);
}

.ldp-spot__note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--campaign-muted);
}

.ldp-spot__stock {
  max-width: 100%;
  margin: 1.2rem 0 2.2rem;
  font-size: var(--font-size-14);
  color: var(--campaign-muted);
}

.ldp-spot__stock b {
  color: var(--color-foreground);
}

.ldp-spot__bar {
  max-width: 32rem;
  height: 0.3rem;
  margin-top: 0.8rem;
  background: var(--color-border);
}

.ldp-spot__bar i {
  display: block;
  height: 100%;
  background: var(--camp);
}

.ldp-spot__points {
  margin: 1.6rem 0 2.2rem;
  padding: 0;
  list-style: none;
}

.ldp-spot__points li {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: var(--font-size-16);
}

.ldp-spot__points svg {
  flex: none;
  margin-top: 0.3rem;
  color: var(--color-gold-text);
}

.ldp-spot__actions,
.ldp-sets__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.ldp-buy {
  display: block;
}

.ldp-buy form {
  margin: 0;
}

.ldp-spot__locked {
  gap: 0.8rem;
  border: 1px dashed var(--campaign-muted);
  background: transparent;
  color: var(--color-foreground);
  cursor: not-allowed;
}

.ldp-spot__locked:hover {
  filter: none;
}

.ldp-sets__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.ldp-sets__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.ldp-sets__media {
  display: block;
  background: var(--product-image-bg);
}

.ldp-sets__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.ldp-sets__name {
  margin: 0 0 1rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h4);
  font-weight: 500;
  line-height: 1.15;
}

.ldp-sets__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ldp-sets__list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-size: var(--font-size-14);
}

.ldp-sets__list svg {
  flex: none;
  margin-top: 0.3rem;
  color: var(--camp);
}

.ldp-sets__price {
  margin: 1.4rem 0;
}

.ldp-sets__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-14);
  color: var(--color-gold-text);
}

@media (max-width: 1023px) {
  .ldp-spot__grid {
    gap: 3.2rem;
  }

  .ldp-spot__title {
    font-size: var(--font-size-h2);
  }
}

@media (max-width: 768px) {
  .ldp-promise__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
  }

  .ldp-deadline__wrap {
    padding-top: 0;
    padding-left: 3rem;
  }

  .ldp-deadline__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .ldp-deadline__line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0.6rem;
    width: 0.4rem;
    height: auto;
  }

  .ldp-deadline__line i {
    width: 100%;
    height: max(0px, calc((var(--tl-past, 0) - 1) / var(--tl-cols, 4) * 100% + 1.4rem));
  }

  .ldp-deadline__item::before {
    top: 0.6rem;
    left: -3.1rem;
  }

  .ldp-deadline__today {
    margin-left: -3rem;
  }

  .ldp-spot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ldp-spot__title {
    font-size: var(--font-size-36);
  }

  .ldp-spot__price b,
  .ldp-sets__price b {
    font-size: var(--font-size-h3);
  }

  .ldp-sets__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ldp-sets__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
}

.budget__band .heading-bar .heading {
  font-size: var(--font-size-44);
  font-weight: 500;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .budget__band {
    padding: 3.6rem 0;
  }

  .budget__band .heading-bar .heading {
    font-size: var(--font-size-32);
  }

  .budget__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .budget__tab {
    flex: none;
    padding: 1rem 1.6rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .campaign-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
}

.ldp-hours {
  background: var(--campaign-dark);
  color: var(--color-footer-text);
}

.ldp-hours .eyebrow {
  color: var(--color-secondary);
}

.ldp-hours .heading {
  margin-bottom: 0;
  color: var(--color-footer-text);
}

.ldp-hours .heading span {
  color: var(--color-secondary);
}

.ldp-hours__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 2.8rem;
}

.ldp-hours__cd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.ldp-hours__cd-label {
  font-size: var(--font-size-14);
  color: var(--color-footer-muted);
}

.ldp-hours .campaign-cd {
  margin-bottom: 0;
}

.ldp-hours .campaign-cd__units span {
  border: 0;
  background: var(--campaign-dark);
  color: var(--color-footer-muted);
}

.ldp-hours .campaign-cd__units b {
  color: var(--color-background);
}

.ldp-hours__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.ldp-hours__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--color-footer-text) 18%, var(--campaign-dark));
  background: transparent;
  color: var(--color-footer-text);
  cursor: pointer;
}

.ldp-hours__tab b {
  font-family: var(--font-headings-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1;
}

.ldp-hours__status {
  font-size: var(--font-size-12);
  color: var(--color-footer-muted);
}

.ldp-hours__tab.active {
  color: var(--color-footer-text);
  font-weight: inherit;
  box-shadow: inset 0 -0.3rem 0 var(--color-secondary);
}

.ldp-hours__tab.is-live {
  border-color: var(--camp);
  background: var(--camp);
}

.ldp-hours__tab.is-live .ldp-hours__status {
  color: var(--color-background);
}

.ldp-hours__tab.is-past b {
  text-decoration: line-through;
}

.ldp-hours__tab:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.ldp-hours__note {
  margin: -1.2rem 0 2.2rem;
  font-size: var(--font-size-14);
  color: var(--color-footer-muted);
}

.ldp-hours__cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 6rem) / 4);
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.ldp-hours__cards::-webkit-scrollbar {
  display: none;
}

.ldp-hours__card {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.ldp-hours .card-product form {
  background: transparent;
}

.ldp-hours .card-product__title,
.ldp-hours .card-product .price {
  color: var(--color-footer-text);
}

.ldp-hours .card-product__vendor,
.ldp-hours .compare-price {
  color: var(--color-footer-muted);
}

.ldp-hours__lock {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.6rem;
  aspect-ratio: var(--product-aspect-ratio);
  padding: 0.8rem;
  background: color-mix(in srgb, var(--campaign-dark) 60%, transparent);
  color: var(--color-background);
  font-size: var(--font-size-14);
  font-weight: 600;
  text-align: center;
}

.ldp-hours__lock[hidden] {
  display: none;
}

.ldp-hours__panel.is-locked .card-product__utilites {
  display: none;
}

.ldp-days__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}

.ldp-days__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 15rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--campaign-line);
  background: var(--color-background);
  color: var(--color-foreground);
}

.ldp-days__state {
  font-size: var(--font-size-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campaign-muted);
}

.ldp-days__state[hidden] {
  display: none;
}

.ldp-days__date {
  margin-top: 0.6rem;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-h4);
  font-weight: 500;
  line-height: 1.1;
}

.ldp-days__name {
  font-size: var(--font-size-14);
  font-weight: 600;
}

.ldp-days__offer {
  margin-top: auto;
  font-size: var(--font-size-14);
  font-style: normal;
  color: var(--campaign-muted);
}

a.ldp-days__item:hover {
  border-color: var(--camp);
}

.ldp-days__item.is-now {
  border-color: var(--camp);
  background: var(--camp);
  color: var(--color-background);
}

.ldp-days__item.is-now .ldp-days__state,
.ldp-days__item.is-now .ldp-days__offer {
  color: var(--color-background);
}

.ldp-days__item.is-past {
  border-style: dashed;
  background: var(--campaign-surface);
}

.ldp-days__item.is-past .ldp-days__state,
.ldp-days__item.is-past .ldp-days__date,
.ldp-days__item.is-past .ldp-days__name,
.ldp-days__item.is-past .ldp-days__offer {
  color: var(--campaign-muted);
}

.ldp-days__item.is-past .ldp-days__date {
  text-decoration: line-through;
}

.ldp-price__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.ldp-price__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2.6rem;
  border: 1px solid var(--campaign-line);
  background: var(--color-background);
  transition: border-color 0.2s;
}

.ldp-price__tile:hover {
  border-color: var(--camp);
}

.ldp-price__label {
  font-size: var(--font-size-14);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--campaign-muted);
}

.ldp-price__big {
  font-family: var(--font-headings-family);
  font-size: 8.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--camp);
}

.ldp-price__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.ldp-price__product {
  position: relative;
  z-index: 1;
  margin: 0;
}

.ldp-price__thumb {
  display: block;
  background: var(--product-image-bg);
}

.ldp-price__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.ldp-price__product figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin-top: 0.8rem;
  font-size: var(--font-size-12);
  line-height: 1.35;
  color: var(--campaign-muted);
}

.ldp-price__name {
  flex: 1 1 100%;
  color: var(--color-foreground);
}

.ldp-price__product figcaption b {
  font-size: var(--font-size-16);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-foreground);
}

.ldp-price__product figcaption em {
  font-style: normal;
  font-weight: 600;
  color: var(--color-sale-bg);
}

.ldp-price__link {
  font-weight: 600;
}

.ldp-price__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ldp-gift {
  background: var(--campaign-surface);
}

.ldp-gift__main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.8rem 2rem;
}

.ldp-gift__main-item {
  position: relative;
}

.ldp-gift__shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: center;
}

.ldp-gift__main + .ldp-gift__shelf {
  margin-top: 3.6rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--campaign-line);
}

.ldp-gift__shelf-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--campaign-line);
  background: var(--color-background);
}

.ldp-gift__shelf-item img {
  flex: none;
  width: 5.6rem;
  height: 5.6rem;
  object-fit: cover;
  background: var(--product-image-bg);
}

.ldp-gift__shelf-item b {
  display: block;
  font-size: var(--font-size-14);
  font-weight: 500;
  line-height: 1.35;
}

.ldp-gift__shelf-item small {
  font-size: var(--font-size-12);
  color: var(--campaign-muted);
}

@media (max-width: 768px) {
  .ldp-hours__tab b {
    font-size: var(--font-size-20);
  }

  .ldp-hours__cards {
    grid-auto-columns: 46%;
    gap: 1.2rem;
  }

  .ldp-days__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ldp-price__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .ldp-gift__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 1.2rem;
  }

  .ldp-gift__shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .coupon-ticket .coupon-ticket__copy-btn {
    height: 4.4rem;
  }

  .ldp-sets .btn.btn--small {
    min-height: 4.4rem;
  }

  quantity-input button[name="minus"],
  quantity-input button[name="plus"],
  quantity-input input.form-quantity {
    flex: none;
    width: 4.4rem;
  }

  .ega-drawer-close {
    top: 1rem;
    right: 1rem;
    width: 4.4rem;
    height: 4.4rem;
  }

  .readmore-btn-ghost {
    min-height: 4.4rem;
  }

  a.border.px-3.py-1.rounded-sm {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
  }

  .toc-toggle-btn {
    min-width: 4.4rem;
  }

  footer .social-icons a {
    width: 4.4rem;
    height: 4.4rem;
  }

  .frequently-product-item select.product-selected {
    min-height: 4.4rem;
  }

  .frequently-product-item .frequently-checkbox {
    width: 2.4rem;
    height: 2.4rem;
  }

  .frequently-product-item .frequently-checkbox:checked::after {
    top: 0.4rem;
    left: 0.7rem;
  }

  .card-product .addtocart-btn.addtocart-btn--icon,
  .section-flashsale .card-product .addtocart-btn {
    width: 4.4rem;
    height: 4.4rem;
    margin: -0.5rem;
  }

  .share-group__item,
  menu-drawer [id^="PortalClose-"] {
    position: relative;
  }

  .share-group__item::after,
  menu-drawer [id^="PortalClose-"]::after {
    content: "";
    position: absolute;
    inset: -0.6rem;
  }

  .product-form-wrapper .share-group__item::after {
    inset: -1.1rem;
  }

  menu-drawer [id^="PortalClose-"]::after {
    inset: -0.8rem;
  }

  compare-button button,
  variant-picker .btn.link,
  .ega-policy-row__status--store,
  .nav-category .nav-link,
  .nav-category summary {
    position: relative;
  }

  compare-button button::after,
  variant-picker .btn.link::after,
  .ega-policy-row__status--store::after {
    content: "";
    position: absolute;
    inset: -1.3rem -0.4rem;
  }

  .nav-category .nav-link::after,
  .nav-category summary::after {
    content: "";
    position: absolute;
    inset: -1.1rem 0;
  }

  .heading-aside,
  .ba-link,
  .fs-promo__cta,
  .bundle-sum__link,
  .process-try__link,
  .hero-banner__btn-ghost,
  .changeurl,
  .toc-link,
  .heading a,
  .fs-promo__title a {
    position: relative;
  }

  .heading-aside::after,
  .ba-link::after,
  .fs-promo__cta::after,
  .bundle-sum__link::after,
  .process-try__link::after,
  .hero-banner__btn-ghost::after,
  .changeurl::after,
  .toc-link::after,
  .heading a::after,
  .fs-promo__title a::after {
    content: "";
    position: absolute;
    inset: -1.2rem -0.4rem;
  }

  .changeurl::after {
    inset: -1.6rem -0.4rem;
  }
}

.video-background__toggle:hover {
  border-color: var(--color-background);
}

.coupon-item:hover {
  opacity: 0.85;
}

.product-quiz__choice:hover,
.size-finder__mode:hover {
  border-color: var(--color-foreground);
}

.banner-image__btn:hover {
  opacity: 0.88;
}

.section-flashsale .card-product .addtocart-btn:hover {
  opacity: 0.85;
}

compare-button button:hover {
  opacity: 0.7;
}

variant-picker .btn.link:hover {
  color: var(--color-foreground);
  opacity: 0.75;
}

.product-quiz__choice[aria-pressed="true"]:hover,
.size-finder__mode[aria-pressed="true"]:hover {
  opacity: 0.88;
}

quantity-input button:hover {
  background-color: var(--color-neutral-50);
}

.budget__tab:hover {
  opacity: 0.85;
}

.campaign-faq__question:hover {
  background-color: var(--color-accent-soft);
}


.section[style*="--section-surface:"] {
  margin-top: max(0px, calc(var(--section-gap) - var(--section-surface-pad)));
  margin-bottom: calc(-1 * var(--section-surface-pad));
}

@media (max-width: 767px) {
  .section[style*="--section-surface:"] {
    margin-top: max(0px, calc(var(--section-gap-mb) - var(--section-surface-pad)));
  }
}

.section[style*="--section-tight:"] {
  margin-top: calc(var(--section-gap) - var(--section-tight-deficit));
  margin-bottom: calc(-1 * var(--section-tight-deficit));
}

@media (max-width: 767px) {
  .section[style*="--section-tight:"] {
    margin-top: calc(var(--section-gap-mb) - var(--section-tight-deficit));
  }
}

.campaign-hero {
  margin-bottom: calc(-1 * var(--section-surface-pad));
}

.breadcrumbs ~ section.section[style*="--section-gap"]:first-of-type,
.section-collection-banner + .section[style*="--section-gap"] {
  margin-top: var(--spacing-14);
}

@media (max-width: 767px) {
  .breadcrumbs ~ section.section[style*="--section-gap"]:first-of-type,
  .section-collection-banner + .section[style*="--section-gap"] {
    margin-top: var(--spacing-9);
  }
}

.ega-policy-row--blank {
  display: none;
}

/* ===== Mega menu: nhãn mục nổi bật, nhóm có đường kẻ, kiểu ảnh banner ===== */

/* Nhãn nhỏ cạnh mục menu nổi bật (menu máy tính và menu điện thoại). Màu nền là màu mục nổi bật. */
.menu-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-menu-highlight);
  color: #fff;
  font-size: var(--font-size-12);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navigation-horizontal .menu-item__link .menu-badge {
  margin-left: -0.2rem;
  transform: translateY(-0.5rem);
}

/* Tên nhóm trong mega menu: có đường kẻ chân và cách đều với danh sách bên dưới. */
.navigation-horizontal .mega-menu .submenu__col > .submenu__item--main {
  display: block;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-16);
}

.navigation-horizontal .mega-menu .submenu__col > ul {
  margin-top: var(--spacing-4);
}

/* Mega menu chỉ có mục cấp 2 (không có nhóm): một cột dọc thay vì rải mỗi mục một ô lưới. */
.navigation-horizontal .mega-menu .submenu__list--flat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  max-width: 24rem;
}

.navigation-horizontal .mega-menu .submenu__list--flat > .submenu__item--main {
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--color-border);
}

/* Kiểu ảnh banner: tối đa 3 thẻ ảnh cạnh nhau, giãn hết phần bề ngang còn lại sau cột danh mục.
   Số cột bằng số thẻ đang hiện (thẻ chưa có ảnh tự ẩn), nên 1 hoặc 2 ảnh vẫn lấp đủ chiều ngang. */
.mega-menu__banners {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--spacing-4);
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;
}

.navigation-horizontal .mega-menu__banner {
  width: 100%;
  max-height: 25rem;
}

.mega-menu__banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.2rem;
  aspect-ratio: 4 / 3;
  background: var(--color-neutral-50);
}

.mega-menu__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mega-menu__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.mega-menu__banner:hover img {
  transform: scale(1.05);
}

.mega-menu__banner-caption {
  position: absolute;
  left: var(--spacing-4);
  right: var(--spacing-4);
  bottom: var(--spacing-4);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2);
  color: #fff;
  font-family: var(--font-headings-family);
  font-size: var(--font-size-18);
  line-height: 1.2;
}

.mega-menu__banner-caption .icon {
  flex: none;
  font-size: 1.2rem;
}

/* Trong ngăn kéo điện thoại không vẽ banner, nhưng giữ an toàn nếu có. */
.navigation-vertical .mega-menu__banners {
  flex-basis: 100%;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
}

/* Thanh menu chính: cột giữa của đầu trang chiếm phần còn lại thay vì cố định 60%,
   để đủ 7 mục (kể cả Ưu đãi có nhãn) hiện hết ở màn máy tính, không phải cuộn bằng mũi tên. */
@media (min-width: 1024px) {
  .header-wrapper {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.section-product-quiz {
  scroll-margin-top: calc(var(--header-height) + 2.4rem);
}

.product-quiz__notice {
  flex: 1 0 100%;
  margin: 0;
  font-size: var(--font-size-14);
  line-height: 1.6;
  color: var(--color-error);
}

.product-quiz__notice[hidden],
.product-quiz__more[hidden] {
  display: none;
}

.search-count {
  margin: 0;
  font-size: var(--font-size-14);
  color: var(--color-neutral-300);
}

.suggestion-head {
  margin-bottom: 2.4rem;
}

.suggestion-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  min-height: 3.6rem;
  font-size: var(--font-size-14);
}

.suggestion-summary__label {
  color: var(--color-neutral-300);
}

.suggestion-summary__chips {
  display: contents;
}

.suggestion-summary__chip {
  padding: 0.7rem 1.4rem;
  background: var(--color-neutral-50);
  font-weight: 600;
}

.suggestion-summary__back:not(.btn),
.suggestion-empty__actions .link {
  margin-top: 0;
}

.suggestion-summary__back:not(.btn) {
  margin-left: 0.8rem;
}

.suggestion-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5.6rem 1.6rem;
  text-align: center;
}

.suggestion-empty__icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-link);
}

.suggestion-empty__title {
  margin: 0;
  font-size: var(--font-size-32);
}

.suggestion-empty__text {
  margin: 0;
  color: var(--color-neutral-300);
}

.suggestion-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
}

.suggestion-empty__actions .suggestion-summary__back {
  margin-left: 0;
}

@media (max-width: 768px) {
  .suggestion-empty {
    padding: 3.6rem 0;
  }

  .search-count {
    flex: 1 0 100%;
  }
}

/* ---------------------------------------------------------------------------
   Ảnh sản phẩm canh giữa khung bằng inset + margin auto thay cho dịch nửa khung.
   Khung có kích thước lẻ điểm ảnh thì phép dịch -50% làm mép ảnh lệch khỏi mép khung,
   để lộ một dải mảnh của màu nền khung ở cạnh trên, trái, dưới hoặc phải.
   --------------------------------------------------------------------------- */
.card-product--vertical .card-product__image,
.card-product--vertical .card-product__image-2,
.card-product--horizontal .card-product__top a.link > img {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  --tw-translate-x: 0px;
  --tw-translate-y: 0px;
}

/* ---------------------------------------------------------------------------
   Khung ảnh lớn trang sản phẩm: ô trượt cao bằng khung để ảnh nhỏ hơn khung nằm giữa
   theo cả hai chiều; chỉ khung bo góc và cắt, ảnh không bo riêng nên không lộ màu nền ở góc.
   Hộp xem nhanh có cách chia chiều cao riêng nên giữ nguyên.
   --------------------------------------------------------------------------- */
.product-gallery:not(#quick-view-product .product-gallery) .gallery-main .embla__viewport,
.product-gallery:not(#quick-view-product .product-gallery) .gallery-main .embla__container,
.product-gallery:not(#quick-view-product .product-gallery) .gallery-main .embla__slide {
  height: 100%;
}

.product-gallery:not(#quick-view-product .product-gallery) .gallery-main .gallery-main-img {
  border-radius: 0;
}

/* ---------------------------------------------------------------------------
   Ngăn kéo Tìm kiếm: tiêu đề dùng phông tiêu đề của trang, chữ nội dung cỡ chữ nội dung
   trên trang. Ô nhập và ô chọn giữ 16px ở điện thoại để Safari trên iPhone không tự phóng to
   trang khi bấm vào.
   --------------------------------------------------------------------------- */
#search-drawer .portal-header > div {
  font-family: var(--font-headings-family);
  font-weight: 500;
}

@media (max-width: 767px) {
  #search-drawer .portal-header > div {
    font-size: var(--font-size-h5);
  }

  #search-drawer .search-keywords,
  #search-drawer .search-keyword {
    font-size: var(--font-size-14);
  }
}

@media (min-width: 768px) {
  #search-drawer .form-select,
  #search-drawer [name="query"],
  #search-drawer .search-keywords,
  #search-drawer .search-keyword {
    font-size: var(--font-size-16);
  }
}

/* ---------------------------------------------------------------------------
   Gợi ý sản phẩm khi gõ tìm kiếm: tên chữ thường và cắt tối đa 2 dòng, giá bán đậm màu giá,
   giá so sánh nhỏ hơn, màu nhạt, gạch ngang. Màu lấy từ ô Màu giá và Màu giá gốc.
   --------------------------------------------------------------------------- */
.product-search-item__info {
  min-width: 0;
  flex: 1 1 auto;
}

.product-search-item__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--font-size-16);
  font-weight: 500;
  line-height: 1.4;
}

.product-search-item .price-box {
  margin-top: 0.2rem;
}

.product-search-item .price,
.product-search-item .price-contact {
  font-size: var(--font-size-16);
  font-weight: 600;
  line-height: 1.4;
}

.product-search-item .price {
  color: var(--color-price);
}

.product-search-item .compare-price {
  font-size: var(--font-size-12);
  font-weight: 400;
  color: var(--color-price-compare);
}

@media (max-width: 767px) {
  .product-search-item__name,
  .product-search-item .price,
  .product-search-item .price-contact {
    font-size: var(--font-size-14);
  }

  .product-search-item .compare-price {
    font-size: var(--font-size-12);
  }
}

/* ---------------------------------------------------------------------------
   Mega menu và menu thả xuống: chữ cấp 3 nhỏ hơn cấp 2, vẫn chữ thường.
   --------------------------------------------------------------------------- */
.navigation-horizontal .submenu__col > ul > .submenu__item {
  font-size: var(--font-size-14);
}

/* ---------------------------------------------------------------------------
   Nút lên đầu trang và nút hỗ trợ: viền sáng mỏng và bóng đổ, để nổi rõ trên nền chân trang
   tối mà vẫn gọn trên nền sáng, với mọi cặp màu chính và màu chân trang.
   --------------------------------------------------------------------------- */
.backtop,
.addThis_item--toggle {
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}