.header-vertical-menu__fly-out .nav-dropdown,
.header-vertical-menu__fly-out {
  border: 0px !important;
  box-shadow: none !important;
  border-radius: 0px !important;
}

.vertical-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  display: none;
}

#menu-vertical-menu {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.header-vertical-menu__fly-out {
  background: transparent !important;
  padding-top: 20px;
}

.header-vertical-menu__fly-out .menu-vertical-menu-container {
  background: #FFF;
  position: relative;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .woocommerce-product-gallery {
    position: relative;
  }

  /* Hiện và đặt dots trên ảnh */
  .woocommerce-product-gallery .flickity-page-dots {
    display: flex !important;
    gap: 6px;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 5;
    margin: 0;
    pointer-events: auto;
  }

  /* Dot cơ bản */
  .woocommerce-product-gallery .flickity-page-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    border: 0;
    position: relative;
    box-shadow: none;
  }

  /* Dot đang chọn → kéo dài */
  .woocommerce-product-gallery .flickity-page-dots .dot.is-selected {
    width: 16px;
    background: transparent;
  }
}

/* Custom Promotions Box - Khung Khuyến Mãi */
.custom-promotions-box {
  margin: 15px 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  border: 1px solid var(--border);
  transition: var(--transition-hover);
}

.custom-promotions-box .promotions-header {
  background-color: var(--primary);
  /* Màu xanh thương hiệu */
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-promotions-box .promotions-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.custom-promotions-box .promotions-header-left svg {
  flex-shrink: 0;
  color: #ffffff;
  width: 24px;
  height: 24px;
  animation: giftBounce 2s infinite ease-in-out;
}

@keyframes giftBounce {

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

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

.custom-promotions-box .promotions-header-text {
  display: flex;
  flex-direction: column;
}

.custom-promotions-box .promotions-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-promotions-box .promotions-subtitle {
  font-size: 12.5px;
  opacity: 0.9;
  margin-top: 3px;
  line-height: 1.35;
  font-weight: normal;
}

.custom-promotions-box .promotions-header-right {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.custom-promotions-box .toggle-promotions-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  text-transform: none;
  transition: opacity 0.2s ease;
  line-height: 1.2;
}

.custom-promotions-box .toggle-promotions-btn:hover {
  opacity: 0.85;
}

.custom-promotions-box .toggle-promotions-btn svg.toggle-icon {
  transition: transform 0.3s ease;
  width: 12px;
  height: 12px;
}

/* Khi mở rộng, xoay ngược chevron */
.custom-promotions-box.open .toggle-promotions-btn svg.toggle-icon {
  transform: rotate(180deg);
}

.custom-promotions-box .promotions-body {
  display: none;
  /* jQuery slideToggle sẽ điều khiển */
  background-color: var(--surface);
  /* Nền xám nhạt */
  padding: 18px 20px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.custom-promotions-box .promotions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-promotions-box .promo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.45;
}

.custom-promotions-box .promo-item:last-child {
  margin-bottom: 0;
}

.custom-promotions-box .promo-icon {
  display: flex;
  align-items: center;
  margin-top: 3px;
  color: var(--primary);
  /* Icon màu xanh thương hiệu */
  flex-shrink: 0;
}

.custom-promotions-box .promo-content {
  flex: 1;
}

.custom-promotions-box .promo-content strong {
  color: var(--heading);
  font-weight: 700;
}

.custom-promotions-box .promo-link {
  color: var(--primary);
  text-decoration: underline;
  margin-left: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.custom-promotions-box .promo-link:hover {
  color: var(--primary-hover);
}

.custom-promotions-box .promotions-note {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 15px;
  line-height: 1.4;
}

/* Responsive cho Mobile */
@media (max-width: 550px) {
  .custom-promotions-box .promotions-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 8px;
  }

  .custom-promotions-box .promotions-header-left {
    gap: 8px;
  }

  .custom-promotions-box .promotions-header-right {
    margin-left: 0;
    width: auto;
    flex-shrink: 0;
  }

  .custom-promotions-box .toggle-promotions-btn {
    width: auto;
    padding: 4px 6px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .custom-promotions-box .promotions-body {
    padding: 12px 10px;
  }

  .custom-promotions-box .promotions-title {
    font-size: 13.5px;
  }

  .custom-promotions-box .promotions-subtitle {
    font-size: 11px;
    margin-top: 2px;
  }

  .custom-promotions-box .promo-item {
    font-size: 12.5px;
    gap: 6px;
  }
}

/* Custom Commitments Box - Khung Cam Kết */
.custom-commitments-box {
  margin-top: 25px;
}

.custom-commitments-box .commitments-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}

.custom-commitments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.custom-commitments-grid .commitment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--primary-light);
  /* Màu nền xanh nhạt thương hiệu */
  border-radius: var(--radius);
  padding: 10px 14px;
  border: 1px solid var(--border);
  transition: var(--transition-hover);
}

.custom-commitments-grid .commitment-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.custom-commitments-grid .commitment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  /* Màu xanh đậm cho icon container */
  color: #ffffff;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.custom-commitments-grid .commitment-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
}

.custom-commitments-grid .commitment-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.custom-commitments-grid .commitment-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.custom-commitments-grid .commitment-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Responsive cho Mobile */
@media (max-width: 550px) {
  .custom-commitments-box {
    padding: 15px;
    margin-top: 20px;
  }

  .custom-commitments-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Force Add to Cart buttons to be inline on mobile using CSS Grid */
@media (max-width: 768px) {
  html body.single-product .my-custom-add-to-cart-block form.cart,
  html body.single-product .my-custom-add-to-cart-block .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    align-items: center !important;
  }
  html body.single-product .my-custom-add-to-cart-block .custom-quantity-wrapper {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 5px !important;
  }
  html body.single-product .my-custom-add-to-cart-block .custom-quantity-label {
    margin: 0 10px 0 0 !important;
  }
  html body.single-product .my-custom-add-to-cart-block .single_add_to_cart_button,
  html body.single-product .my-custom-add-to-cart-block .ux-buy-now-button {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  html body.single-product .my-custom-add-to-cart-block form.cart::before,
  html body.single-product .my-custom-add-to-cart-block form.cart::after {
    display: none !important;
  }
}

.spec-value {
  font-weight: 500;
}