.z-999 {
  z-index: 999;
}

.btn {
  border-radius: var(--rounded-button);
}

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: 1.6rem;
  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: 1.6rem;
  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: 1.5rem;
  }

  .product-form-wrapper details.group\/details summary h3 {
    font-size: 1.5rem;
  }

  .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 */
.product-form-wrapper details.group\/details .content.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.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;
}


/* 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 {
  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;
  }
}

.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: 1.8rem;
  }
}

.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;
}

@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(1440px - 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: 30px;
  height: 30px;
  display: block;
  border-radius: var(--rounded-full);
  overflow: hidden;
  border: #fff;
  display: block;
}

.color-swatch {
  width: 38px;
  height: 38px;
  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: 6.1rem !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;
  }

  .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);
}

.flashsale-tab {
  cursor: pointer;
}

.flashsale-tab.ended {
  cursor: not-allowed;
  display: none;
}

.flashsale-tab .status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--rounded-full);
}

.flashsale-tab.ongoing .status {
  background: var(--color-flashsale-tab-bg);
  color: var(--color-flashsale-tab);
}

.product-flashsale-item {
  color: var(--color-flashsale);
  background: var(--color-flashsale-bg);
}

.flashsale-tab.active {
  background: var(--color-flashsale-tab-bg);
  color: var(--color-flashsale-tab);
  border-radius: 12px;
}

.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);
}

@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);
  }

  .flashsale-tab {
    padding-left: var(--spacing-1);
    padding-right: 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);
}

.product-flashsale-item .ega-badge-ctd__item span {
  display: none;
}

.product-flashsale-item:has(.active.ongoing) {
  padding: 0.8rem 1.2rem;
}

.product-price-group:has(.active.ongoing) {
  border: 1px solid var(--color-flashsale-bg);
}

.product-price-group:has(.active.ongoing) .price-box {
  padding: 1.2rem 0.8rem 1.2rem;
}

.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 Card Container */
.coupon-card {
  position: relative;
  background: var(--coupon-active-bg, #FFFFFF);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Decorative circles in background */
.coupon-card::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--coupon-badge-color, #FF6B00);
  top: -40px;
  right: -40px;
  z-index: 0;
  opacity: 0.1;
}

/*
.coupon-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--coupon-badge-color, #FF6B00);
  bottom: -20px;
  left: -10px;
  z-index: 0;
  opacity: 0.1;
}
*/

/* Badge Label */
.coupon-badge {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  background: var(--coupon-badge-color, #FF6B00);
  color: var(--coupon-active-badge-text, #FFFFFF);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* Coupon Content */
.coupon-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.coupon-content copy-button {
  display: block;
}

.coupon-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--coupon-active-title, #1A1A1A);
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.coupon-description {
  font-size: 14px;
  color: var(--coupon-active-desc, #666666);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Expiry Date - Always reserve space */
.coupon-expiry {
  font-size: 12px;
  color: #999999;
  margin-top: auto;
  margin-bottom: 16px;
  min-height: 20px;
  line-height: 20px;
}

.coupon-expiry-placeholder {
  opacity: 0;
  visibility: hidden;
}

.coupon-expiry-date {
  display: inline-block;
}

/* Copy Button */
.coupon-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--coupon-active-button-bg, #1A1A1A);
  color: var(--coupon-active-button-text, #FFFFFF);
  border: 2px dashed var(--coupon-active-button-bg, #1A1A1A);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-copy-btn:hover {
  background: color-mix(in oklab, var(--coupon-active-button-bg, #1A1A1A), white 20%);
  border-color: color-mix(in oklab, var(--coupon-active-button-bg, #1A1A1A), white 20%);
  transform: scale(1.02);
}

.coupon-copy-btn .icon {
  font-size: 16px;
}

/* ============================================
   EXPIRED COUPON STATE - DARK THEME
   ============================================ */
.coupon-card.expired::before,
.coupon-card.expired::after {
  background: #f6f6f6;
}

.coupon-card.expired .coupon-badge {
  filter: grayscale(1);
  opacity: 0.5;
}

.coupon-card.expired .coupon-copy-btn {
  background: transparent;
  border-color: #4A4A4A;
  color: #888888;
  cursor: not-allowed;
  opacity: 0.6;
}

.coupon-card.expired .coupon-copy-btn:hover {
  transform: none;
  background: transparent;
  border-color: #4A4A4A;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 767px) {
  .coupon-card {
    padding: 20px;
    border-radius: 12px;
  }

  .coupon-title {
    font-size: 20px;
  }

  .coupon-description {
    font-size: 13px;
  }

  .coupon-copy-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Coupon Carousel - Prevent shadow clipping */
.section-coupons .embla {
  overflow: visible;
}

.section-coupons .embla__viewport {
  overflow-x: clip;
  overflow-y: visible;
}

.section-coupons .embla__container {
  display: flex;
  align-items: stretch;
}

.section-coupons .embla__slide {
  display: flex;
}

.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%;
}

/* ============================================
   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, #FF6B00);
  font-size: 11px;
  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-active-badge-from, #FF6B00);
  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: 28px;
  font-weight: 700;
  color: var(--coupon-active-badge-from, #FF6B00);
  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: 14px;
}

.coupon-desc ul,
.coupon-desc ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.coupon-desc li {
  margin-bottom: 8px;
}

/* Modal Actions */
.coupon-modal-actions {
  gap: 12px;
}

.coupon-modal-actions .btn {
  font-size: 15px;
  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: 20px !important;
  }

  .coupon-code-text {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .coupon-modal-code-box {
    padding: 16px;
  }
}

/* Legacy support */
#coupon-modal,
.coupon-item {
  --color-primary: var(--color-coupon-primary);
}

.coupon-item-bg {
  background: var(--color-coupon-primary);
}

@media (min-width: 768px) {
  .product-flashsale-item .stock-countdown {
    width: 20rem;
  }
}

.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-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: var(--spacing-3);
}

@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;
  }
}

.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;
  }
}

.tiktok-embed {
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .gallery-main {
    position: relative;
  }
}

.card-product__badges:has(.product-promo-tag) {
  display: block;
}

.card-product__title {
  --font-size-body: 1.6rem;
  font-size: var(--font-size-body);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .card-product__title {
    --font-size-body: 1.4rem;
  }
}

.card-product--vertical.card-product__title {
  min-height: calc(var(--font-size-body) * 1.4 * 2);
}

.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;
  }
}

.tiktok-embed {
  border-radius: var(--rounded);
}

.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-h3);
  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: pretty;
}

.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: 3.2rem;
}

.heading span {
  color: var(--color-highlight);
  position: relative;
  display: inline-block;
}

.heading span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg height='11' viewBox='0 0 219 11' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8C25.8556 3.07738 53.8451 3.61733 82.4695 3.07653C119.514 2.37666 150.586 6.76911 216 4.41882' stroke='var(--color-highlight)' stroke-width='2' pathLength='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;

  /* Fallback: tạo mask để apply màu từ CSS variable */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg height='11' viewBox='0 0 219 11' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8C25.8556 3.07738 53.8451 3.61733 82.4695 3.07653C119.514 2.37666 150.586 6.76911 216 4.41882' stroke='black' stroke-width='2' pathLength='1' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg height='11' viewBox='0 0 219 11' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8C25.8556 3.07738 53.8451 3.61733 82.4695 3.07653C119.514 2.37666 150.586 6.76911 216 4.41882' stroke='black' stroke-width='2' pathLength='1' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  background-color: var(--color-highlight);
  background-image: none;
}

@media (max-width: 767px) {
  .heading {
    font-size: var(--font-size-h3);
  }

  .heading:not([class*="mb"]) {
    margin-bottom: 2rem;
  }

  .section-flashsale--single .flashsale__countdown-timer {
    flex-direction: column;
  }

  .section-flashsale .flashsale-heading {
    font-size: var(--font-size-h4) !important;
  }
}

.heading:has(.heading-icon) {
  padding-right: 45px;
}



@media (max-width: 767px) {
  .heading {
    font-size: var(--font-size-h4);
    margin-bottom: 1.2rem;
  }
}

.card-article__desc {
  /* min-height: calc(var(--font-size-body) * 1.5 * 3); */
}

.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 var(--primary-color);
  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;
}

.compare-opener button {
  box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.2);
}

.compare-opener.hidden {
  transform: translateY(-50%) scale(0);
  display: none;
}

#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 {
  padding: 1rem 0;
}

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;
}

.product-detail .module-buyxgety .list-product-buyxgety .item-product-buyxgety .product-content-buyxgety .product-title-buyxgety {
  white-space: initial;
}

.heading-tabs .tab-btn.active {}

.spl-pane iframe {
  width: 90%;
  height: 90%;
}

#contact_map iframe {
  height: 100%;
}

.card-product .sapo-buyxgety-badge {
  top: auto;
  bottom: 15px;
  right: 15px;
  min-width: 20px;
}

.card-product .sapo-buyxgety-badge .icon-buyxgety {
  max-width: 20px;
}

.card-product .sapo-combo-badge {
  position: absolute;
  left: 15px;
  z-index: 2;
  min-width: 50px;
  bottom: 15px;
  top: auto;
  right: auto;
  font-size: 8px;
}

.card-product .sapo-combo-badge .label-text {
  border-radius: 4px;
}

.card-product .sapo-combo-badge .label-text+.label-text {
  display: none;
}

.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,
.product-contact__link {
  min-height: 60px;
}

.product-contact__zalo {
  --color-button-primary: #288ad6;
  --color-button-primary-text: white;
}

.product-contact__messenger {
  --color-button-primary: #3180f3;
  --color-button-primary-text: white;
}

.product-contact__phone {
  --color-button-primary: #d0cfcf;
  --color-button-primary-text: #000;
}

.product-contact__phone:hover {
  filter: brightness(0.9);
}

.btn-live {
  border-radius: 5px;
  padding: 4px 10px 4px 22px;
  color: var(--header-live-color);
  border: 1px 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: 13px;
}

.btn-live:after {
  content: " ";
  background: var(--header-live-color);
  width: 8px;
  height: 8px;
  position: absolute;
  left: 7px;
  top: calc(50% - 4px);
  border-radius: 50%;
  animation: pulse-red 1.65s linear infinite;
}

@media (max-width: 991px) {
  .btn-live {
    padding: 2px 5px 0px 20px;
  }

  .btn-live:after {
    left: 6px;
  }
}

@media (max-width: 767px) {
  .addThis_listSharing .btn-live {
    padding: 0;
    width: 40px;
    font-size: 10px;
    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;
  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%);
}

.modal-live .btn-close--live {
  position: absolute;
  right: -40px;
  top: 0;
  cursor: pointer;
  opacity: 0;
  padding: 0 10px;
}

.modal-live iframe {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: 100%;
}

.modal-live .modal-live--inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.modal-live:hover .btn-close--live {
  opacity: 1;
}

.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;
}

.product-detail-info-box-width {
  max-width: 140rem;
  width: 100%;
}

.social-share-group {
  background-color: #f9fafb;
}

.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: 1.6rem;
}

.card-product .compare-price {
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .card-product .price {
    font-size: 1.4rem;
  }

  .card-product .compare-price {
    font-size: 1.2rem;
  }
}

/* Bundle Section Grid Layout */
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: Stack vertically, image 100% */
  align-items: start;
  gap: 1.5rem;
  /* 24px on mobile */
  width: 100%;
  max-width: 100%;
}

/* Desktop: 2:3 ratio horizontal */
@media (min-width: 1024px) {
  .bundle-grid {
    grid-template-columns: 2fr 3fr;
    /* Desktop: Image 40%, Products 60% */
    gap: 4rem;
    /* 40px on desktop */
  }
}

/* Product Bundle - Modern Grid Layout */
.product-bundle-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.product-bundle-grid {
  display: flex;
  width: 100%;
  gap: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.product-bundle-grid::-webkit-scrollbar {
  display: none;
}

.product-bundle-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Tablet & Desktop: Grid Layout */
@media (min-width: 768px) {
  .product-bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: visible;
    width: 100%;
  }
}

.product-bundle-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-bundle-card:hover {
  box-shadow: none;
  transform: none;
}

.card-product-bundle .card-product__image img {
  transition: transform 0.3s ease;
}

.card-product-bundle:hover .card-product__image img {
  transform: scale(1.05);
}

/* Bundle Card Responsive Fixes */
.card-product-bundle {
  height: 100%;
}

.product-bundle-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile specific */
@media (max-width: 767px) {

  /* Prevent image overflow */
  .section-bundle hot-spots,
  .section-bundle hot-spots>div,
  .section-bundle hot-spots img {
    max-width: 100%;
    width: 100%;
  }

  .section-bundle hot-spots img {
    height: auto;
    display: block;
    max-height: none;
    object-fit: cover;
  }

  .product-bundle-card {
    width: 280px;
    max-width: 80vw;
    flex: 0 0 auto;
  }

  /* Ensure smooth scrolling on mobile */
  .product-bundle-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0;
    gap: 1rem;
    padding-bottom: 1rem;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .product-bundle-card {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
  }

  .product-bundle-grid {
    overflow-x: visible;
    padding-bottom: 0;
  }
}


@media(min-width: 1025px) {
  .product-bundle-grid:has(.active) .product-bundle-card:not(.active) {
    opacity: 0.3;
  }
}


.tab-btn.active {
  background-size: 100% 2px;
  font-weight: 600;
}

.tab-btn:hover {
  background-size: 100% 2px;
}

.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;
}

@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) {
  .hot-spot-item[open] {
    z-index: 9000;
  }

  .hot-spot-overlay {
    top: 0 !important;
  }

  .hot-spot-content.fixed {
    top: auto !important;
    left: 0 !important;
  }
}



.tiktok-embed:not([data-embed-type]) {
  max-width: max-content !important;
}

@media (max-width: 767px) {
  .tiktok-embed:not([data-embed-type]) {
    max-width: 100% !important;
  }
}

.btn.loading .btn-label {
  display: none
}

.embla__container.product-list {
  margin-left: calc(var(--spacing-4)*-1) !important;
}

.embla__container.product-list>div {
  padding-left: var(--spacing-4) !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: 4rem;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
}

/* Size Chart Modal Custom Styles */
#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: rgba(var(--primary-rgb, 14, 78, 255), 0.3);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 14, 78, 255), 0.05);
}

#size-chart-modal input[type="number"]:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 14, 78, 255), 0.15);
}

/* 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: rgba(var(--primary-rgb, 14, 78, 255), 0.02);
}

/* 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;
}

/* ============================================
   SIMIGO BRAND COLOR TOKENS (Le Thuan 2026-05-21)
   Override default theme colors với brand chuẩn:
   - UNIQ: red #165DFC (Pantone 7621C, brand book official)
   - Crénot: purple #165DFC + yellow #FFE100 + gray #A8A8A8
   - SimiGO: purple #165DFC (estimate, cho Phu confirm hex chinh xac)
   ============================================ */
:root {
	  --color-primary: #165DFC;
	  --color-secondary: #165DFC;
	  --color-accent: #165DFC;
	  --color-foreground: #000000;
	  --color-link: #165DFC;
	  --color-sale: #165DFC;
	  --color-price: #165DFC;
	  --color-addtocart-bg: #165DFC;
	  --color-button-primary: #165DFC;
}

/* UNIQ brand context: khi user vao /collections/uniq, override --color-primary thanh UNIQ red */
body.template-collection[class*="uniq"] {
	  --color-primary: #165DFC;
	  --color-link: #165DFC;
}

/* Crénot brand context */
body.template-collection[class*="crenot"] {
	  --color-primary: #165DFC;
	  --color-link: #165DFC;
	  --color-accent: #FFE100;
}

/* FORCE override với !important vì css-variables.bwt load sau custom.css */
:root,
body {
	  --color-primary: #165DFC !important;
	  --color-secondary: #165DFC !important;
	  --color-accent: #165DFC !important;
	  --color-foreground: #131313 !important;
	  --color-link: #165DFC !important;
	  --color-sale: #165DFC !important;
	  --color-price: #165DFC !important;
	  --color-addtocart-bg: #165DFC !important;
	  --color-button-primary: #165DFC !important;
	  --color-highlight: #165DFC !important;
}

/* Quick win: button KHÁM PHÁ NGAY + các CTA primary */
.btn-primary,
.btn--primary,
.button--primary,
[class*="btn"][class*="primary"],
.add-to-cart,
.add_to_cart {
	  background-color: var(--color-button-primary) !important;
	  border-color: var(--color-button-primary) !important;
}
.btn-primary:hover,
.btn--primary:hover {
	  background-color: var(--color-secondary) !important;
	  border-color: var(--color-secondary) !important;
}

/* Link mau primary */
a:not([class]):not([href*="http"]) { color: var(--color-link) !important; }


/* ============================================
   FONT: Be Vietnam Pro (Vietnamese-friendly, modern sans-serif)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root, body {
  --font-body-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  --font-headings-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body, p, span, div, a, button, input, textarea, select {
  font-family: var(--font-body-family) !important;
}

h1, h2, h3, h4, h5, h6, .heading {
  font-family: var(--font-headings-family) !important;
}

/* ============================================
   POLISH: hover, voucher, heading underline, focus states
   ============================================ */

.product-item:hover, .product-card:hover, [class*="product-block"]:hover { box-shadow: 0 8px 24px rgba(107, 104, 181, 0.18) !important; transition: box-shadow 0.25s ease; }

.product-item:hover .price, .product-card:hover .price { color: var(--color-secondary) !important; }

[class*="voucher"] [class*="code"], .voucher-code, .coupon-code { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important; color: #fff !important; border: none !important; }

a:hover { color: var(--color-secondary) !important; transition: color 0.2s ease; }

h1, h2, h3, .heading-title { color: var(--color-foreground); }
h2 em, h3 em { color: var(--color-primary); font-style: normal; }

.badge-sale, .badge-discount, [class*="sale"][class*="badge"] { background: var(--color-secondary) !important; color: #fff !important; font-weight: 600 !important; }

button:focus, input:focus, select:focus, textarea:focus, a:focus { outline: 2px solid var(--color-primary) !important; outline-offset: 2px !important; }

/* ==============================================================
 * SIMI Member page styles
 * Append vào custom.css để Sapo serve
 * Author: Lê Thuận (2026-05-22)
 * ============================================================== */

.simi-member-page {
  --sm-radius: 16px;
  --sm-shadow: 0 4px 16px rgba(107, 104, 181, 0.1);
  --sm-shadow-hover: 0 8px 24px rgba(107, 104, 181, 0.18);
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ----- HERO ----- */
.sm-hero {
  background: linear-gradient(135deg, #165DFC 0%, #4A48A3 100%);
  color: #fff;
  border-radius: var(--sm-radius);
  padding: 64px 32px;
  text-align: center;
  margin-bottom: 48px;
}
.sm-hero__title { font-size: 56px; font-weight: 800; margin: 0 0 16px; letter-spacing: -1px; }
.sm-hero__subtitle { font-size: 20px; margin: 0 0 24px; opacity: 0.95; }
.sm-hero__greeting { font-size: 16px; }
.sm-hero__greeting strong { color: #FFE100; }
.sm-hero__cta { background: #fff; color: #165DFC; font-weight: 700; padding: 14px 32px; }
.sm-hero__hint { margin-top: 16px; font-size: 14px; opacity: 0.9; }
.sm-hero__hint a { color: #FFE100; text-decoration: underline; }

/* ----- TIER GRID ----- */
.sm-tiers { margin-bottom: 48px; }
.sm-tiers__title { font-size: 32px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.sm-tiers__desc { text-align: center; color: #666; margin: 0 0 32px; }
.sm-tiers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .sm-tiers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sm-tiers__grid { grid-template-columns: 1fr; } }
.sm-tiers__note { text-align: center; color: #999; font-size: 13px; margin-top: 24px; }

/* Tier card */
.sm-tier-card {
  background: #fff;
  border-radius: var(--sm-radius);
  padding: 24px;
  box-shadow: var(--sm-shadow);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.sm-tier-card:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow-hover); }
.sm-tier-card.is-current {
  border-color: #165DFC;
  background: linear-gradient(180deg, rgba(107, 104, 181, 0.05) 0%, #fff 100%);
  position: relative;
}
.sm-tier-card.is-current::before {
  content: 'Hạng của bạn';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #165DFC;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.sm-tier-card__badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
}
.sm-tier-card__icon { line-height: 1; }
.sm-tier-card__name { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.sm-tier-card__req { text-align: center; color: #666; font-size: 14px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.sm-tier-card__benefits { list-style: none; padding: 0; margin: 0; }
.sm-tier-card__benefits li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; line-height: 1.5; }
.sm-tier-card__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #165DFC;
  font-weight: 700;
}

/* ----- MY TIER ----- */
.sm-mytier { background: #fafbfd; border-radius: var(--sm-radius); padding: 32px; margin-bottom: 48px; }
.sm-mytier__title { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.sm-mytier__card { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .sm-mytier__card { grid-template-columns: 1fr; text-align: center; } }
.sm-mytier__badge { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sm-mytier__icon { font-size: 48px; line-height: 1; }
.sm-mytier__info { }
.sm-mytier__tier { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.sm-mytier__spent, .sm-mytier__orders { margin: 4px 0; color: #555; font-size: 15px; }
.sm-mytier__progress { grid-column: 1 / -1; margin-top: 16px; }
.sm-mytier__next { margin: 0 0 8px; font-size: 14px; color: #165DFC; font-weight: 600; }
.sm-mytier__bar { background: #e9ecef; border-radius: 8px; height: 12px; overflow: hidden; }
.sm-mytier__bar-fill { height: 100%; border-radius: 8px; transition: width 0.6s ease; }
.sm-mytier__percent { margin: 8px 0 0; font-size: 13px; color: #666; }
.sm-mytier__max { color: #C9A961; font-size: 18px; font-weight: 700; margin: 16px 0 0; }

/* ----- REFERRAL ----- */
.sm-referral { background: #fff; border-radius: var(--sm-radius); padding: 32px; margin-bottom: 48px; border: 1px solid #f0f0f0; }
.sm-referral__title { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.sm-referral__desc { color: #666; margin: 0 0 24px; }
.sm-referral__box { }
.sm-referral__label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; }
.sm-referral__code-row { display: flex; gap: 8px; max-width: 480px; }
.sm-referral__code {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  padding: 12px 16px;
  border: 2px dashed #165DFC;
  border-radius: 8px;
  background: rgba(107, 104, 181, 0.05);
  color: #165DFC;
  letter-spacing: 1px;
}
.sm-referral__copy { background: #165DFC; color: #fff; padding: 12px 24px; font-weight: 600; }
.sm-referral__copy:hover { background: #4A48A3; }

.sm-referral__share { margin-top: 24px; }
.sm-referral__share-label { font-weight: 600; margin-bottom: 12px; }
.sm-referral__share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-referral__share-btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.sm-referral__share-btn--zalo { background: #0068FF; color: #fff; }
.sm-referral__share-btn--fb { background: #1877F2; color: #fff; }
.sm-referral__share-btn--copy-url { background: #f0f0f0; color: #333; border: 1px solid #ddd; }

.sm-referral__history { margin-top: 32px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.sm-referral__history h4 { margin: 0 0 16px; font-size: 18px; }
.sm-ref-history-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.sm-ref-history-status.is-rewarded { color: #28a745; font-weight: 600; }
.sm-ref-history-status.is-pending { color: #999; }

.sm-referral__guest { text-align: center; padding: 32px; }
.sm-referral__guest .btn { margin: 0 8px; }

/* ----- VOUCHER ----- */
.sm-voucher { background: linear-gradient(135deg, #165DFC 0%, #8B0023 100%); color: #fff; border-radius: var(--sm-radius); padding: 48px 32px; text-align: center; margin-bottom: 48px; }
.sm-voucher__title { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.sm-voucher__desc { margin: 0 0 24px; opacity: 0.95; }
.sm-voucher__cta { background: #fff; color: #165DFC; font-weight: 700; padding: 14px 32px; }

/* ----- FAQ ----- */
.sm-faq { margin-bottom: 48px; }
.sm-faq__title { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.sm-faq__item { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 8px; padding: 16px 20px; }
.sm-faq__item summary { font-weight: 600; cursor: pointer; padding: 4px 0; list-style: none; }
.sm-faq__item summary::-webkit-details-marker { display: none; }
.sm-faq__item summary::after { content: '+'; float: right; font-size: 24px; color: #165DFC; transition: transform 0.2s; }
.sm-faq__item[open] summary::after { content: '−'; }
.sm-faq__item p { margin: 12px 0 0; color: #555; line-height: 1.6; }

/* ----- CTA ----- */
.sm-cta { background: #131313; color: #fff; border-radius: var(--sm-radius); padding: 64px 32px; text-align: center; }
.sm-cta__title { font-size: 32px ; font-weight: 700; margin: 0 0 8px; }
.sm-cta__desc { margin: 0 0 24px; opacity: 0.85; }
.sm-cta__btn { background: #165DFC; color: #fff; padding: 16px 40px; font-size: 16px; font-weight: 700; }
.sm-cta__btn:hover { background: #4A48A3; }

/* ============================================================
   PHASE 3 — Brand-scoped theming
   Author: Le Thuan (2026-05-22)
   Scope: body.coll-{alias} on collection pages, body.vendor-{handle} on product detail
   Strategy: override CSS variables + button + accent color theo brand
   ============================================================ */

/* ----- UNIQ collection (red #165DFC) ----- */
body.coll-uniq {
  --color-primary: #165DFC !important;
  --color-button-primary: #165DFC !important;
  --color-button-primary-hover: #9A0024 !important;
  --color-accent: #165DFC !important;
  --color-link: #165DFC !important;
}
body.coll-uniq .btn-primary,
body.coll-uniq .add-to-cart,
body.coll-uniq button[type="submit"]:not([class*="search"]),
body.coll-uniq .product-card .btn,
body.coll-uniq .product-item__actions .btn,
body.coll-uniq .price__current,
body.coll-uniq .product-card__price--current { color: #165DFC !important; }
body.coll-uniq .btn-primary,
body.coll-uniq .add-to-cart,
body.coll-uniq button[type="submit"]:not([class*="search"]) { background-color: #165DFC !important; color: #fff !important; }
body.coll-uniq a:hover,
body.coll-uniq .product-card a:hover,
body.coll-uniq .product-item a:hover { color: #165DFC !important; }
body.coll-uniq .badge--sale,
body.coll-uniq .product-card__badge--sale,
body.coll-uniq [class*="badge"][class*="sale"] { background-color: #165DFC !important; color: #fff !important; }

/* ----- Crénot collection (purple #165DFC) ----- */
body.coll-thuong-hieu-crenot {
  --color-primary: #165DFC !important;
  --color-button-primary: #165DFC !important;
  --color-button-primary-hover: #124ACA !important;
  --color-accent: #165DFC !important;
  --color-link: #165DFC !important;
}
body.coll-thuong-hieu-crenot .btn-primary,
body.coll-thuong-hieu-crenot .add-to-cart,
body.coll-thuong-hieu-crenot button[type="submit"]:not([class*="search"]),
body.coll-thuong-hieu-crenot .product-card .btn,
body.coll-thuong-hieu-crenot .price__current,
body.coll-thuong-hieu-crenot .product-card__price--current { color: #165DFC !important; }
body.coll-thuong-hieu-crenot .btn-primary,
body.coll-thuong-hieu-crenot .add-to-cart,
body.coll-thuong-hieu-crenot button[type="submit"]:not([class*="search"]) { background-color: #165DFC !important; color: #fff !important; }
body.coll-thuong-hieu-crenot a:hover,
body.coll-thuong-hieu-crenot .product-card a:hover { color: #165DFC !important; }
body.coll-thuong-hieu-crenot .badge--sale,
body.coll-thuong-hieu-crenot [class*="badge"][class*="sale"] { background-color: #FFE100 !important; color: #1a1a1a !important; }

/* ----- Lifetrons keeps default SimiGO purple ----- */

/* ----- Collection page header (banner) accent ----- */
body[class*="coll-"] .collection-header,
body[class*="coll-"] .collection__title,
body[class*="coll-"] [class*="collection-banner"] {
  --header-accent: var(--color-primary);
}
body[class*="coll-"] .collection__title h1 { color: var(--color-primary) !important; }

/* ----- Product card hover lift (brand-agnostic, applies to all collections) ----- */
body[class*="coll-"] .product-card,
body[class*="coll-"] .product-loop,
body[class*="coll-"] .product-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body[class*="coll-"] .product-card:hover,
body[class*="coll-"] .product-loop:hover,
body[class*="coll-"] .product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* ----- Product detail page: brand vendor scope ----- */
body.vendor-uniq {
  --color-primary: #165DFC !important;
  --color-button-primary: #165DFC !important;
  --color-accent: #165DFC !important;
}
body.vendor-uniq .add-to-cart,
body.vendor-uniq .btn-primary,
body.vendor-uniq button.product-form__cart-submit { background-color: #165DFC !important; color: #fff !important; }
body.vendor-uniq .price__current,
body.vendor-uniq .product__price--current { color: #165DFC !important; }

body.vendor-crenot,
body.vendor-cre-not {
  --color-primary: #165DFC !important;
  --color-button-primary: #165DFC !important;
  --color-accent: #165DFC !important;
}
body.vendor-crenot .add-to-cart,
body.vendor-cre-not .add-to-cart,
body.vendor-crenot .btn-primary,
body.vendor-cre-not .btn-primary,
body.vendor-crenot button.product-form__cart-submit,
body.vendor-cre-not button.product-form__cart-submit { background-color: #165DFC !important; color: #fff !important; }
body.vendor-crenot .price__current,
body.vendor-cre-not .price__current { color: #165DFC !important; }

/* ----- Filter sidebar polish (brand-agnostic) ----- */
body[class*="coll-"] aside[class*="filter"],
body[class*="coll-"] .filter-sidebar,
body[class*="coll-"] .aside-filter {
  border-right: 1px solid #eee;
  padding-right: 16px;
}
body[class*="coll-"] aside[class*="filter"] h3,
body[class*="coll-"] aside[class*="filter"] h4,
body[class*="coll-"] .filter-sidebar h3,
body[class*="coll-"] .filter-sidebar h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a1a !important;
  margin-bottom: 12px !important;
}
body[class*="coll-"] aside[class*="filter"] input[type="checkbox"],
body[class*="coll-"] .filter-sidebar input[type="checkbox"] {
  accent-color: var(--color-primary, #165DFC);
}

/* ----- Mobile sticky add-to-cart bar (product detail) ----- */
@media (max-width: 768px) {
  body[class*="vendor-"] .sticky-cart-bar,
  body.template-product .product-form__cart-submit-mobile { display: block; }
}

/* End Phase 3 brand-scoped */


/* ----- Phase 3: Product card vendor badge ----- */
.card-product__vendor {
  display: inline-block !important;
  background: var(--color-primary, #165DFC) !important;
  color: #fff !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  align-self: flex-start;
  margin: 0 0 4px;
  line-height: 1.4;
  transition: background-color 0.2s;
}
/* On default (no coll-X) keep SimiGO purple — variable inherits */
body:not([class*="coll-"]):not([class*="vendor-"]) .card-product__vendor { background: #165DFC !important; }
/* On /collections/all show mixed — but vendor text varies; emphasize visually */
body.coll-all .card-product__vendor {
  background: #f5f5f7 !important;
  color: #1a1a1a !important;
  border: 1px solid #e0e0e0;
}

/* ----- Phase 3: Card overflow only — NO image scale hover (conflict với EGA quick-add button overlay) ----- */
.card-product { overflow: hidden; }

/* ----- Phase 3: Per-card brand badge color (JS adds .card-vendor-<handle> theo vendor text) ----- */
.card-product.card-vendor-uniq .card-product__vendor { background: #165DFC !important; color: #fff !important; border: 0 !important; }
.card-product.card-vendor-crenot .card-product__vendor,
.card-product.card-vendor-cre-not .card-product__vendor { background: #165DFC !important; color: #fff !important; border: 0 !important; }
.card-product.card-vendor-lifetrons .card-product__vendor { background: #1a1a1a !important; color: #fff !important; border: 0 !important; }

/* Override .coll-all neutral on cards that have brand class */
body.coll-all .card-product.card-vendor-uniq .card-product__vendor { background: #165DFC !important; color: #fff !important; }
body.coll-all .card-product.card-vendor-crenot .card-product__vendor,
body.coll-all .card-product.card-vendor-cre-not .card-product__vendor { background: #165DFC !important; color: #fff !important; }

/* ----- Phase 3: Sale percentage badge polish ----- */
[class*="card-product"] [class*="badge"][class*="sale"],
[class*="card-product"] [class*="-sale"],
.product-loop__sale,
.product-card__sale {
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px;
}

/* End vendor badge */

/* ----- Phase 3: Hide EGA "LIVE" TikTok module (demo content @valencias____, Simigo chưa có TikTok riêng) ----- */
.header-box-live,
.btn-live,
.modal-live { display: none !important; }


/* ----- Phase 3 fix: ensure btn-primary text is white (was inheriting var --color-primary giving same color as BG = invisible) ----- */
.btn.btn-primary,
.sm-hero__cta,
.sm-cta__btn,
.vct-cta,
.vct-btn-primary,
.vct-btn-secondary {
  color: #ffffff !important;
}
.vct-cta,
.vct-btn-primary {
  color: #1a1a1a !important; /* yellow BG needs dark text */
}

/* Fix "Đăng nhập" link contrast trên hero SIMI Member purple BG */
.sm-hero__hint a {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 600;
}
.sm-hero__hint a:hover { color: #FFE100 !important; }


/* ----- Hide EGA demo sections (banner empty + voucher EGA50/EGAT10/FREESHIP/EGA500K) ----- */
.section-collection-banner { display: none !important; }
.section-coupons { display: none !important; }
.coupon-drawer { display: none !important; }
.section-video-social { display: none !important; }

/* ----- Phase 3: Hide product page coupon-box (EGA50/EGAT10 vouchers placeholder, đợi Phú rename) ----- */
.coupon-box,
.product-form-wrapper .coupon-group { display: none !important; }
/* Hide product-page "Kết nối" social section nếu trống */
.section-video-social,
[class*="seller-vn.tiktok"] { display: none !important; }

/* ----- Phase 3: Hide EGA promo-box-group (Nhập mã EGANY...) on product page ----- */
.promo-box-group { display: none !important; }

/* ----- Phase 3: Hide footer copyright "© EGANY | Cung cấp bởi Sapo" ----- */
.footer-copyright { display: none !important; }

/* ----- Phase 3: Hide social-icons section "Mạng xã hội" (chờ Phú gửi link real) ----- */
.social-icons { display: none !important; }

/* ============================================================
   PHASE 8 polish — UI/UX fixes (22/05/2026)
   Sau khi chạy 71 testcase, fix 4 issue improvement
   ============================================================ */

/* ----- FIX #1: Focus state visible cho keyboard a11y (WCAG 2.4.7) ----- */
*:focus-visible {
  outline: 2px solid var(--color-primary, #165DFC) !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}
/* Buttons / links: thicker outline */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary, #165DFC) !important;
  outline-offset: 3px !important;
}
/* Override theme rules that remove outline globally */
*:focus { outline: none; }
*:focus-visible { outline-style: solid !important; }

/* ----- FIX #3: Image aspect-ratio chống CLS (Cumulative Layout Shift) ----- */
/* Product card image: square ratio */
.card-product__image,
.card-product__image-wrapper,
.product-loop__image,
.product-card__image,
[class*="card-product"] .image-wrap,
[class*="product-card"] .image-wrap {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}
.card-product__image img,
.product-loop__image img,
.product-card__image img,
[class*="card-product"] img:not(.brand-logo):not(.badge) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hero banner: 16:6 ratio */
.section-home-banner picture,
.section-home-banner img {
  aspect-ratio: 1920 / 720;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Collection banner: 16:5 ratio */
.collection-banner img,
[class*="collection-header"] img {
  aspect-ratio: 1920 / 600;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Logo SIMI.VN: tỉ lệ 640/131 (~4.88:1), height cố định, width auto (chống CLS + chống méo) */
.header-logo, .header-logo-transparent {
  aspect-ratio: 640 / 131;
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.footer-logo img {
  aspect-ratio: 640 / 131;
  height: 46px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* ----- FIX #4: Click target ≥44px cho mobile (WCAG 2.5.5) ----- */
@media (max-width: 768px) {
  /* Tất cả button + link interactive ≥44x44 */
  a.btn, button, .btn,
  .add-to-cart, .product-card__action,
  .card-product__action button, .card-product__action a,
  input[type="submit"], input[type="button"],
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Menu links có padding đủ */
  nav a, .navigation-horizontal a, .menu-item a {
    padding: 12px 16px;
    min-height: 44px;
  }
  /* Icon buttons (search/cart/account) ≥44x44 */
  .header-icon-btn, .icon-button, button[aria-label],
  .header-search, .header-cart, .header-account {
    min-width: 44px;
    min-height: 44px;
  }
}

/* End Phase 8 UI/UX polish */
/* ============================================
   PHASE 7 — BLOG / ARTICLE STYLES (Lê Thuận 2026-05-26)
   Brand-scoped: blog-uniq-tips (UNIQ red) / blog-crenot-wellness (Crénot purple)
   ============================================ */

/* Article card — modern hover + brand badge */
body.blog .article-list .item-article,
body.blog .article-list article,
body.blog .article-list .article-card,
body.article .article-card,
.related-articles .article-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.blog .article-list .item-article:hover,
body.blog .article-list .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(107, 104, 181, 0.12);
}

/* Article card hover badge color theo brand */
body.blog-uniq-tips .article-list .item-article:hover,
body.blog-uniq-tips .article-list .article-card:hover {
  box-shadow: 0 12px 28px rgba(188, 0, 45, 0.18) !important;
}
body.blog-crenot-wellness .article-list .item-article:hover,
body.blog-crenot-wellness .article-list .article-card:hover {
  box-shadow: 0 12px 28px rgba(105, 58, 201, 0.18) !important;
}

/* Article title (card) — typographic polish */
body.blog .article-list h2,
body.blog .article-list h3,
body.blog .article-list .item-article a {
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.blog .article-list h2 a:hover,
body.blog .article-list h3 a:hover,
body.blog .article-list .item-article a:hover {
  color: #165DFC;
}
body.blog-uniq-tips .article-list h2 a:hover,
body.blog-uniq-tips .article-list h3 a:hover {
  color: #165DFC;
}
body.blog-crenot-wellness .article-list h2 a:hover,
body.blog-crenot-wellness .article-list h3 a:hover {
  color: #165DFC;
}

/* Article detail — modern typography */
body.article .article-content,
body.article .prose,
body.article .rte .content {
  font-family: 'Be Vietnam Pro', Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
}
body.article .article-content h2,
body.article .prose h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 32px 0 14px;
  padding-bottom: 6px;
  color: #1a1a1a;
  border-bottom: 2px solid #f0eef9;
  letter-spacing: -0.01em;
}
body.article .article-content h3,
body.article .prose h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  margin: 24px 0 10px;
  color: #1a1a1a;
}
body.article .article-content p,
body.article .prose p {
  margin: 0 0 14px;
}
body.article .article-content ul,
body.article .article-content ol,
body.article .prose ul,
body.article .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
body.article .article-content li,
body.article .prose li {
  margin-bottom: 6px;
  line-height: 1.7;
}
body.article .article-content img,
body.article .prose img {
  border-radius: 12px;
  margin: 16px 0;
  max-width: 100%;
  height: auto;
}
body.article .article-content blockquote,
body.article .prose blockquote {
  background: #f8f7fc;
  border-left: 4px solid #165DFC;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-style: italic;
  color: #4b4870;
}
body.blog-uniq-tips .article-content blockquote,
body.blog-uniq-tips .prose blockquote {
  border-left-color: #165DFC !important;
}
body.blog-crenot-wellness .article-content blockquote,
body.blog-crenot-wellness .prose blockquote {
  border-left-color: #165DFC !important;
}

/* Article H1 title — bigger + bolder */
body.article h1.text-h4 {
  font-size: clamp(24px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  margin: 16px 0 16px !important;
  color: #1a1a1a;
}

/* TOC — restyle to match brand */
body.article .toc-wrapper {
  background: #fafafd !important;
  border: 1px solid #ece9f4 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
}
body.article .toc-title {
  color: #165DFC;
  font-size: 13px !important;
  letter-spacing: 1px;
}
body.blog-uniq-tips .toc-title { color: #165DFC; }
body.blog-crenot-wellness .toc-title { color: #165DFC; }

body.article .js-toc a {
  display: block;
  padding: 6px 10px;
  color: #555;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
}
body.article .js-toc a:hover {
  background: #f0eef9;
  color: #165DFC;
}
body.blog-uniq-tips .js-toc a:hover { background: #fff0f3; color: #165DFC; }
body.blog-crenot-wellness .js-toc a:hover { background: #f3edff; color: #165DFC; }

body.article .js-toc a.is-active-link,
body.article .js-toc .is-active-li > a {
  background: linear-gradient(135deg, #165DFC, #165DFC);
  color: #fff !important;
  font-weight: 600;
}
body.blog-uniq-tips .js-toc a.is-active-link,
body.blog-uniq-tips .js-toc .is-active-li > a {
  background: #165DFC !important;
}
body.blog-crenot-wellness .js-toc a.is-active-link,
body.blog-crenot-wellness .js-toc .is-active-li > a {
  background: #165DFC !important;
}

/* Article image rounded */
body.article .article-image img {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Article meta (date / size selector row) — cleaner */
body.article .cart-article__date {
  font-size: 14px;
  color: #777;
}

/* Related articles section — restyle */
body.article .blog-aside-article .title-head {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #165DFC;
  border-bottom-color: #ece9f4 !important;
}
body.blog-uniq-tips .blog-aside-article .title-head { color: #165DFC !important; }
body.blog-crenot-wellness .blog-aside-article .title-head { color: #165DFC !important; }

/* Share buttons subtle restyle */
body.article .article-share {
  padding: 18px 0;
  border-top: 1px solid #ece9f4;
  border-bottom: 1px solid #ece9f4;
  margin: 28px 0 !important;
}

/* Article focus-visible */
body.blog a:focus-visible,
body.article a:focus-visible {
  outline: 2px solid #165DFC;
  outline-offset: 3px;
  border-radius: 4px;
}
body.blog-uniq-tips a:focus-visible { outline-color: #165DFC; }
body.blog-crenot-wellness a:focus-visible { outline-color: #165DFC; }

/* Mobile tweaks for article */
@media (max-width: 640px) {
  body.article .article-content h2,
  body.article .prose h2 { font-size: 19px; margin: 24px 0 10px; }
  body.article .article-content,
  body.article .prose { font-size: 15px; line-height: 1.7; }
  body.article .toc-wrapper { padding: 12px 14px !important; }
}

/* End Phase 7 — Blog/Article */

/* ============================================
   PHASE 7 BIS — Hide remaining EGA demo sections (Lê Thuận 2026-05-26)
   ============================================ */
/* "Mua trọn bộ trang phục" — fashion bundle EGA, không liên quan Simigo */
.section-bundle { display: none !important; }
/* "Mix & Match Giày mới" — sneaker video review EGA */
.section-video-review { display: none !important; }
/* End */

/* ============================================
   PHASE 7 TER — Disable EGANY newsletter form (Lê Thuận 2026-05-26)
   Lý do: newsletter_form_action trỏ Mailchimp EGANY → data leak
   Action: Hide form tạm thời, hiện CTA "Liên hệ Zalo" thay thế
   Phú setup Mailchimp Simigo riêng → revert CSS này
   ============================================ */
.subscribe-form,
.newsletter-form,
.section-newsletter form,
form[action=""],
form[action*="EGANY"] {
  display: none !important;
}
/* Show fallback message */
.subscribe-fallback {
  background: linear-gradient(135deg, #165DFC 0%, #165DFC 100%);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}
.subscribe-fallback a {
  color: #FFE100;
  font-weight: 600;
  text-decoration: underline;
}
/* End */

/* === BLOG EMPTY STATE (Phase 7 polish 27/05) === */
.bb-empty-state { grid-column: 1 / -1; padding: 64px 24px 56px; text-align: center; color: #4a4a4a; max-width: 540px; margin: 0 auto; }
.bb-empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; color: #c4c4d4; display: block; }
body.blog-uniq-tips .bb-empty-icon { color: #165DFC; opacity: 0.45; }
body.blog-crenot-wellness .bb-empty-icon { color: #165DFC; opacity: 0.45; }
.bb-empty-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: #1a1a1a; line-height: 1.3; }
.bb-empty-subtitle { font-size: 15px; line-height: 1.55; margin: 0 auto 24px; color: #555; max-width: 440px; }
.bb-empty-cta { display: inline-block; padding: 11px 26px; background: var(--color-primary, #165DFC); color: #fff !important; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: 0.3px; text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s; }
body.blog-uniq-tips .bb-empty-cta { background: #165DFC; }
body.blog-crenot-wellness .bb-empty-cta { background: #165DFC; }
.bb-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); color: #fff !important; }
.bb-empty-cta:focus-visible { outline: 3px solid #165DFC; outline-offset: 3px; }
@media (max-width: 640px) { .bb-empty-state { padding: 44px 16px 40px; } .bb-empty-icon { width: 64px; height: 64px; margin-bottom: 14px; } .bb-empty-title { font-size: 19px; } .bb-empty-subtitle { font-size: 14px; } }
/* === END BLOG EMPTY STATE === */

/* === ISSUE #1 FIX (27/05 trưa): Bump h1 collection hierarchy === */
body.collection .heading,
body.collection h1.heading,
body.collection .container > h1 { font-size: 36px !important; font-weight: 700 !important; line-height: 1.2; margin-bottom: 8px; }
@media (max-width: 767px) {
  body.collection .heading,
  body.collection h1.heading,
  body.collection .container > h1 { font-size: 24px !important; }
}
/* === END ISSUE #1 FIX === */

/* === LOADING SKELETON product card (27/05 polish) === */
.card-product .link.aspect-custom { position: relative; overflow: hidden; background: #f5f5f7; }
.card-product .link.aspect-custom::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f3f3f5 0%, #ececef 50%, #f3f3f5 100%); background-size: 200% 100%; animation: simigo-skel 1.4s ease-in-out infinite; z-index: 0; pointer-events: none; }
.card-product .link.aspect-custom img { position: relative; z-index: 1; opacity: 0; animation: simigo-img-in 0.6s ease-out 0.1s forwards; }
.card-product .link.aspect-custom img.lazyloaded,
.card-product .link.aspect-custom img[src*="."]:not([src=""]) { animation: simigo-img-in 0.4s ease-out forwards; }
@keyframes simigo-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes simigo-img-in { from { opacity: 0; } to { opacity: 1; } }
/* End skeleton */

/* === SIMIGO MENU DESKTOP FIX (Round 2 - Nhan #1) === */
@media (min-width:1024px){
  .header-wrapper{ grid-template-columns: auto minmax(0,1fr) auto !important; gap:12px !important; }
  .header-nav{ width:100% !important; max-width:none !important; margin:0 !important; }
  .navigation--horizontal{ width:100% !important; }
  .navigation-horizontal-wrapper{ max-width:100% !important; overflow:visible !important; }
  ul.navigation-horizontal{ width:100% !important; justify-content:space-between !important; flex-wrap:nowrap !important; column-gap:2px !important; }
  ul.navigation-horizontal > li > a{ font-size:14px !important; padding-left:7px !important; padding-right:7px !important; white-space:nowrap !important; letter-spacing:-0.2px !important; }
}
/* === END MENU FIX === */

/* === MENU FIX v2 (nới full + font 13) === */
@media (min-width:1024px){
  .header-wrapper{ max-width:100% !important; padding-left:16px !important; padding-right:16px !important; column-gap:8px !important; }
  ul.navigation-horizontal > li > a{ font-size:13px !important; padding-left:5px !important; padding-right:5px !important; }
}
/* === END v2 === */

/* === MENU FIX v3 (đóng khoảng cuối) === */
@media (min-width:1024px){
  .navigation-horizontal-wrapper{ max-width:none !important; width:100% !important; }
  .header-nav{ width:100% !important; }
  ul.navigation-horizontal{ column-gap:0 !important; }
  ul.navigation-horizontal > li > a{ font-size:12.5px !important; padding-left:4px !important; padding-right:4px !important; }
}
/* === END v3 === */

/* === MENU FIX v4 (giảm padding container header) === */
@media (min-width:1024px){
  .header > .container{ padding-left:24px !important; padding-right:24px !important; }
}
/* === END v4 === */

/* === SIMI MEMBER FIX #2 (card nổi khối) === */
.sm-tier-card{ background:#ffffff !important; box-shadow:0 6px 22px rgba(17,17,26,.08), 0 2px 6px rgba(17,17,26,.04) !important; transition:transform .25s ease, box-shadow .25s ease; }
.sm-tier-card:hover{ transform:translateY(-4px); box-shadow:0 14px 34px rgba(107,104,181,.20) !important; }
/* === END #2 === */

/* === BLOG TAG HOVER FIX #5 (Nhan - chữ mất khi hover) === */
a[href*="/tagged/"]:hover, .article-tags a:hover, .blog-tags a:hover{ background-color:var(--color-secondary,#165DFC) !important; color:#ffffff !important; border-color:var(--color-secondary,#165DFC) !important; }
/* === END #5 === */

/* === COLLECTION FIX B3+B5 (Nhan) === */
.card-product__badges{ left:auto !important; right:8px !important; }
.sort-mobile .labbel, label.labbel.text-neutral-100{ color:#4a4a4a !important; }
/* === END B3+B5 === */

/* === RUBY RED + NỔI KHỐI (Nhan - nút CTA cao cấp) === */
.btn_base, .btn_base.buynow, .btn_base.btn_add_cart, .btn-primary, .add-to-cart{
  background:linear-gradient(180deg,#165DFC 0%,#165DFC 55%,#165DFC 100%) !important;
  box-shadow:0 4px 14px rgba(165,0,38,.30), inset 0 1px 0 rgba(255,255,255,.18) !important;
  border:none !important;
  transition:transform .15s ease, box-shadow .15s ease !important;
}
.btn_base:hover, .btn-primary:hover, .add-to-cart:hover{ box-shadow:0 7px 20px rgba(165,0,38,.40), inset 0 1px 0 rgba(255,255,255,.18) !important; transform:translateY(-1px); }
.btn_base:active, .btn-primary:active{ transform:translateY(1px); box-shadow:0 2px 8px rgba(165,0,38,.32) !important; }
/* === END RUBY === */

/* === RUBY GRADIENT v2 (force background-image + specificity) === */
button.btn_base, a.btn_base, .btn_base.buynow, .btn_base.btn_add_cart, button.btn-primary, a.btn-primary{
  background-image:linear-gradient(180deg,#165DFC 0%,#165DFC 55%,#165DFC 100%) !important;
  background-color:#165DFC !important;
}
/* === END ruby v2 === */

/* === BUTTON DEPTH FINAL (clean, bỏ gradient lỗi) === */
.btn_base, .btn--primary, button.btn--primary, a.btn--primary{
  background-image:none !important;
  box-shadow:0 4px 14px rgba(165,0,38,.26), inset 0 1px 0 rgba(255,255,255,.16) !important;
  transition:transform .15s ease, box-shadow .15s ease !important;
}
.btn_base:hover, .btn--primary:hover{ box-shadow:0 7px 20px rgba(165,0,38,.36), inset 0 1px 0 rgba(255,255,255,.16) !important; transform:translateY(-1px); }
.btn_base:active, .btn--primary:active{ transform:translateY(1px); }
/* === END button depth === */

/* === FIX hover nút --primary (đỏ mất chữ) === */
.btn--primary:hover{
  background-color:var(--color-primary) !important;
  border-color:var(--color-primary) !important;
  color:#ffffff !important;
  filter:brightness(0.93);
  box-shadow:0 7px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.16) !important;
  transform:translateY(-1px);
}
.btn--primary:hover *{ color:#ffffff !important; }
/* === END fix hover === */

/* === MENU UNDERLINE GROW-FROM-CENTER (Nhan UX) === */
@media (min-width:1024px){
  ul.navigation-horizontal > li > a{
    background-image:linear-gradient(var(--color-secondary,#165DFC),var(--color-secondary,#165DFC)) !important;
    background-position:50% 100% !important;
    background-repeat:no-repeat !important;
    background-size:0% 2px !important;
    transition:background-size .3s ease, color .25s ease !important;
  }
  ul.navigation-horizontal > li > a:hover,
  ul.navigation-horizontal > li.active > a,
  ul.navigation-horizontal > li > a.active{
    background-size:100% 2px !important;
  }
}
/* === END underline center === */

/* === UNDERLINE CENTER cho .link-underline (submenu + link khác) === */
.link-underline{ background-position:50% 100% !important; transition:background-size .3s ease, color .25s ease !important; }
/* === END === */

/* === FIX VARIANT PILL (Nhan - ô trống chữ đỏ trên nền đỏ) === */
input[type="radio"] + label.btn{
  background-color:#ffffff !important;
  background-image:none !important;
  color:var(--color-button-primary,#165DFC) !important;
}
input[type="radio"]:checked + label.btn{
  background-color:var(--color-button-primary,#165DFC) !important;
  color:#ffffff !important;
}
input[type="radio"]:hover + label.btn{ filter:brightness(0.97); }
/* === END variant pill === */

/* ===== B1: giam container max-width ~10% (1840->1656) — Nhan: layout desktop qua rong. KHONG doi font (an toan user lon tuoi) ===== */
.container { max-width: 1656px !important; }

/* ===== 19/06: Crenot rebrand tim #165DFC -> azure #165DFC (Figma Minh 15/06). Giu SimiGO #165DFC. ===== */
/* ===== FIX giật khi đổi tab "Mua sắm theo nhu cầu" (19/06) ===== */
/* Panel tab load AJAX → khi rỗng bị co về 0px gây nhảy layout. Giữ chỗ min-height. */
.section-product-tabs .tab-content,
.product_tabs_1 .tab-content {
  min-height: 1000px;
  transition: min-height .2s ease;
}
@media (max-width: 1024px) {
  .section-product-tabs .tab-content,
  .product_tabs_1 .tab-content { min-height: 1200px; }
}
@media (max-width: 600px) {
  .section-product-tabs .tab-content,
  .product_tabs_1 .tab-content { min-height: 1500px; }
}
/* ===== 22/06: breadcrumb trắng trên hero blog/article (Figma: chữ "Trang chủ" → trắng) ===== */
body.blog .breadcrumbs, body.article .breadcrumbs { background: #165DFC; }
body.blog .breadcrumbs a, body.blog .breadcrumbs span,
body.article .breadcrumbs a, body.article .breadcrumbs span,
body.blog .breadcrumbs .text-neutral-100, body.article .breadcrumbs .text-neutral-100 { color: #ffffff !important; }
body.blog .breadcrumbs a:hover, body.article .breadcrumbs a:hover { color: #ffffff !important; text-decoration: underline; }