body {
  background-color: #f5f5f5;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-container {
  max-width: 489px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background-color: #737373;
  height: 32px;
  padding: 16px 8px;
  /* Giảm padding một chút cho cân đối */
  color: #ffffff;
  /* Chữ màu trắng */
}

.topbar-item {
  margin-left: 20px;
  margin-right: 20px;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 14px;
  letter-spacing: 0%;
  cursor: pointer;
  /* Để chuột thành hình bàn tay */
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background-color: #d1d1d1;
  margin: 0 7px;
}

.navbar-custom {
  height: 51.2px;
  border-bottom: 1px solid #e5e5e5;
  padding: 6px 10px;
}

.nav-icon-btn {
  background: none;
  border: none;
  padding: 0 4px;
  margin-right: 15px;
  font-size: 18px;
}

.nav-icon-btn i {
  font-size: 20px;
}

.nav-icon-btn img {
  width: 24px;
  height: 24px;
}

.nav-logo {
  margin-right: 5px;
}

.nav-logo img {
  width: 108.41px;
  height: 20px;
  object-fit: contain;
  display: block;
  margin: 16px 10px;
}

.cart-badge {
  position: absolute;
  bottom: -2px;
  right: 16px;
  background: #de0602;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
}

.promo-bar {
  background-color: #525252;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  padding: 9px 8px;
}

.page-content {
  flex: 1 0 auto;
  padding: 10px 12px 80px;
  /* bottom padding so content isn't hidden behind sticky footer */
}

.breadcrumb-link {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 14px;
}

/* Carousel */
.product-carousel-wrapper {
  position: relative;
}

.product-carousel-wrapper .carousel-item {
  height: auto;
}

.product-carousel-wrapper .carousel-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-control-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: transparent;

  width: 40px;
  height: 40px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;
}


/* icon */
.carousel-control-custom i {
  font-size: 18px;
  color: #dcd1bb;
  transition: color 0.25s ease;
}

/* hover */
/* .carousel-control-custom:hover {
  background-color: #dcd1bb;
} */

.carousel-control-custom img {
  width: 35px;
  height: auto;
  display: block;
  pointer-events: none;
}


.carousel-control-prev-custom {
  left: 25.5px;
}

.carousel-control-prev-custom i {
  font-size: 25px;
}

.carousel-control-next-custom {
  right: 25.5px;
}

.carousel-control-next-custom i {
  font-size: 25px;
}

.product-thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;

}




.product-thumbnails img {
  width: auto !important;
  height: 90px !important;
  object-fit: cover;
  border: 2px solid #DDDDDD;
  cursor: pointer;
  flex-shrink: 0;
}

.product-thumbnails img.active-thumb {
  border-color: #d3161b;
}

.product-title {
  padding-top: 26px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcd1bb;
  line-height: 1.6;
}

.product-price {
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price-old {
  text-decoration: line-through;
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 700;
}

.price-new {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

/* Shipping */
.shipping-note {
  padding-bottom: 15px;
  font-size: 14px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 3. Voucher Row Customization --- */
.voucher-row {
  margin-bottom: 20px;
}

.voucher-container {
  background-color: var(--background-surface-sub, #f2f4f7);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voucher-input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  outline: none;
  color: #333;
}

.voucher-input::placeholder {
  color: var(--Colors-Primary-Colors-Gray-400, #98a2b3);
}

.btn-apply {
  background-color: var(--Background-Surface-Primary, #101828);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
}

/* --- 4. Color Selection --- */
.section-label {
  font-size: 13px;
  color: #525252;
  margin-bottom: 8px;
}

.color-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-dot {
  width: 62px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
}

/* Hiệu ứng Selected cho Color (Viền xanh hoặc đen bao ngoài) */
.color-dot.selected {
  border: 2px solid #273bce;
}

.color-light-blue {
  background-color: #a6c4d9;
}

.color-white {
  background-color: #ffffff;
}

/* --- 5. Size Buttons --- */
.size-guide {
  font-size: 14px;
  text-decoration: underline;
  color: #0044cc !important;
  cursor: pointer;
  margin-bottom: 8px;
  display: block;
}

.size-buttons {
  display: flex;
  gap: 8px;
}

.btn-size {
  border: 1px solid #e5e5e5;
  background-color: #f9f9f9;
  color: #333;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  min-width: 40px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-size.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* custom size */
.custom-size-container {
  margin-top: 15px;
  padding-top: 10px;
  animation: slideDown 0.3s ease-out;
}

/* Tiêu đề CUSTOM DESIGN SIZE */
.custom-title {
  text-align: center;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Mỗi dòng input (Bust, Waist, Hip) */
.custom-input-row {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #fff;
  overflow: hidden;
}

/* Phần Label bên trái (nền xám) */
.input-label {
  background-color: #e9ecef;
  color: #000;
  width: 80px;
  padding: 8px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ccc;
}

/* Phần Input bên phải */
.input-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
}

/* Hiệu ứng đổ xuống nhẹ nhàng */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 6. Bottom Actions (Layout giống ảnh) --- */
.bottom-actions {
  margin-top: 30px;
  padding-top: 20px;
  background: #fff;
}

.bottom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  border: none;
  height: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;

  background: transparent;
  padding: 0;
  min-width: auto;
  height: auto;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.quantity-value {
  font-weight: 400;
  color: #929293;
  min-width: 97px;
  min-width: 60px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-add-cart {
  flex-grow: 1;
  background-color: #000;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  border-left: none;
  margin-left: 0px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 20px;
}

.btn-checkout {
  margin-top: 10px;
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  height: 50px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* product policy */
.product-policy {
  margin-top: 20px;
  margin-bottom: 20px;
  border: solid 1px #DCD1BB;
  border-radius: 10px;
  padding: 15px;
}

.product-policy .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* Mỗi mục chính sách */
.policy-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Style cho Icon ảnh */
.policy-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Style cho Text nội dung */
.policy-text {
  font-size: 10px;
  line-height: 12px;
  color: #929293;
  font-weight: 400;
}

/*pair-with-it*/
.pair-with-it {
  padding: 10px;
  border-radius: 10px;
}

/* product hightlight */
/* --- Product Highlight Title --- */
.section-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #000;
}

.accordion-content .spec-row:nth-child(2),
.accordion-content .spec-row:nth-child(4) {
  background-color: #F7F4EE;
}

.spec-row {
  display: flex;
  align-items: center;
  padding: 7px 0 7px 15px;
}

.spec-label {
  width: 40%;
  color: #929293;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0%;
}

.spec-value {
  width: 60%;
  color: #929293;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0%;
}

.image-hightlight-info {
  display: flex;
  justify-content: center;
}

.image-hightlight-info img {
  width: 332px;
  height: 218px;
}

/* --- About This Item --- */
.about-item {
  /* width: 332px;
  margin: 0 auto; */
}

.about-title {
  font-weight: 700;
  font-size: 21px;
  line-height: 20px;
  color: #525252;
  margin-bottom: 12px;
}

.product-description {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #525252;
}

.product-description p {
  margin-bottom: 8px;
}

.product-description ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.content-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  /* Giới hạn đúng 8 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* text-overflow: ellipsis; */
}

/* Khi mở rộng thì reset lại */
.content-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Chỉnh list ul cho gọn */
.product-description ul li {
  margin-bottom: 4px;
}

.description-text {
  text-align: justify;
  /* Căn đều 2 bên cho đoạn văn dài */
}

/* --- Button Xem Thêm --- */
.btn-see-more {
  background-color: #fff;
  /* Viền đen mỏng */
  color: #000;
  height: 37px;
  padding: 0px 30px;
  border-radius: 999px;
  /* Bo tròn hình viên thuốc */
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-see-more:hover {
  color: #dcd1bb;
}

/* pair with it */
.pair-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: #929293;
}

.pair-link {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #000 !important;
  text-decoration: underline;
  cursor: pointer;
}

.pair-card {
  width: 100%;
  margin: 0 auto;
}

.pair-card .img-wrapper img {
  width: 132px;
  height: 198px;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pair-grid {
  grid-template-columns: repeat(2, 1fr);
  display: grid;
  gap: 5px;
}

.pair-name {
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #525252;
  margin-bottom: 4px !important;
  white-space: nowrap;
  overflow: hidden;
}

.pair-price {
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: #000;
}

/* buy collection */
.collection-section {
  margin-top: 40px;
}

.collection-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #000;
  /* text-transform: uppercase; */
}

.collection-card {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.collection-img {
  border-radius: 10px;
  width: 100%;
  height: 222px;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/4;
}

/* --- Button MUA NGAY --- */
.btn-buy-now {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* product by collection */
/* --- Slider Container Layout --- */
.product-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

/* Ẩn thanh cuộn trên Chrome/Safari */
.product-scroll-container::-webkit-scrollbar {
  display: none;
}

/* --- Product Item Styling --- */
.product-card-item {
  flex: 0 0 calc(50% - 8px);
  width: calc(50% - 8px);

  transition: transform 0.2s ease;
}

/* popular category product */
.product-category {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 71px;
  height: 19px;
  border-radius: 9999px;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-category h3 {
  font-weight: 700;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Nút Quick Add (Túi xách) */
.btn-quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(17px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 16px;
  padding: 0 !important;
}

.btn-quick-add img {
  width: 18px;
  height: 18px;
}

/* --- Color Swatches --- */
.color-options {
  display: flex;
  gap: 6px;
  padding-left: 5px;
}

.color-circle {
  width: 30px;
  /* Kích thước chấm tròn màu */
  height: 17px;
  /* Hình bầu dục nằm ngang giống ảnh thì dùng width lớn hơn height (vd: 20px và 14px) */
  border-radius: 9999px;
  /* Bo tròn */
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Viền mờ cho các màu sáng */
  margin-right: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.color-circle.selected {
  border: 2px solid #273bce;
  /* khung đậm khi chọn */
  transform: scale(1.1);
  /* hơi phóng lớn cho đẹp */
}

/* --- Product Text Info --- */
.prod-name {
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  height: 28px;
  color: #1a1a1a;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Số dòng tối đa muốn hiện */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price {
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
}

/* --- Navigation Arrows (Nút đen to 2 bên) --- */
.nav-arrow {
  position: absolute;
  top: 45%;
  /* Căn giữa theo chiều dọc của ảnh (ước lượng) */
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: #000;
  /* Nền đen */
  color: #fff;
  /* Mũi tên trắng */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  opacity: 0.9;
}

.prev-arrow {
  left: -10px;
  /* Đẩy sang trái một chút */
}

.next-arrow {
  right: -10px;
  /* Đẩy sang phải một chút */
}

/* pop up select size */
.quick-add-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Màu đen mờ 50% */
  z-index: 1040;
  /* Cao hơn nội dung web */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Khi kích hoạt Overlay */
.quick-add-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- 2. Popup Bottom Sheet --- */
.quick-add-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  /* Bo tròn 2 góc trên */
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  /* Cao hơn Overlay */

  max-height: 80vh;
  /* Chiều cao tối đa 80% màn hình */
  overflow-y: auto;
  /* Cho phép cuộn dọc nếu nội dung dài */

  /* Mặc định ẩn xuống dưới đáy màn hình */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  /* Trượt mượt mà */
}

/* Khi kích hoạt Popup */
.quick-add-popup.active {
  transform: translateY(0);
  /* Trượt lên vị trí ban đầu */
}

/* --- 3. Các thành phần bên trong Popup --- */
.btn-close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  background-color: #000;
  /* Nền đen giống ảnh */
  color: #fff;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 23px;
}

.popup-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #1a1a1a;
}

.popup-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
}

.popup-size-options {
  display: flex;
  gap: 10px;
}

.btn-size-option {
  border: none;
  background-color: #f2f2f2;
  /* Nền xám nhạt */
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  /* Bo góc mềm mại */
  font-size: 14px;
  min-width: 40px;
  cursor: pointer;
}

/* Trạng thái được chọn (Selected) */
.btn-size-option.selected {
  background-color: #000;
  color: #fff;
}

/* footer */
footer {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Ẩn phần thừa nếu có */
}

.image-footer img {
  width: 100%;
  /* Ép ảnh luôn rộng bằng 100% màn hình/thiết bị */
  height: auto;
  /* Tự động tính chiều cao để giữ đúng tỷ lệ ảnh, không bị méo */
  display: block;
  /* Loại bỏ khoảng trắng thừa nhỏ xíu thường thấy dưới chân ảnh */
  object-fit: cover;
  /* (Tùy chọn) Giúp ảnh lấp đầy đẹp hơn nếu có chiều cao cố định */
}

/* Ghi đè woocommerce */
.single_add_to_cart_button {
  font-size: 14px;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 90%;
    /* Mở rộng container cho desktop */
    padding: 0 20px;
    box-sizing: border-box;
  }

  .topbar {
    height: 40px;
    /* Cao hơn một chút */
    padding: 12px 20px;
    /* Padding rộng hơn */
  }

  .topbar-item {
    font-size: 14px;
    /* Font lớn hơn */
    margin-left: 25px;
    margin-right: 25px;
  }

  .topbar-divider {
    height: 22px;
    /* Cao hơn cho desktop */
    margin: 0 10px;
  }

  .navbar-custom {
    height: 60px;
    /* Cao hơn */
    padding: 10px 20px;
  }

  .nav-icon-btn {
    font-size: 20px;
    margin-right: 20px;
  }

  .nav-icon-btn img {
    width: 28px;
    height: 28px;
  }

  .nav-logo img {
    width: 150px;
    /* Logo lớn hơn */
    height: auto;
    margin: 16px 15px;
  }

  .cart-badge {
    font-size: 12px;
    /* Badge lớn hơn */
    padding: 3px 6px;
    right: 20px;
  }

  .promo-bar {
    font-size: 14px;
    /* Font lớn hơn */
    padding: 12px 20px;
  }

  .page-content {
    padding: 20px 30px 100px;
    /* Tăng padding để có không gian rộng hơn */
  }

  .breadcrumb-link {
    font-size: 16px;
    /* Tăng kích thước font cho breadcrumb */
  }

  .product-carousel-wrapper .carousel-item {
    height: 600px;
  }

  .carousel-control-custom {
    width: 50px;
    height: 40px;
  }

  .carousel-control-prev-custom i,
  .carousel-control-next-custom i {
    font-size: 30px;
  }

  .product-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
  }

  .product-thumbnails img {
    flex-shrink: 0;
    width: calc((100% - 6px * 6) / 7);
    max-width: calc((100% - 6px * 6) / 7);
    height: auto;
    cursor: pointer;
  }


  .product-title {
    font-weight: 400;
    padding-top: 0px;
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .product-price {
    padding-bottom: 24px;
    gap: 4px;
  }

  .price-old {
    font-size: 14px;
    /* Tăng font size cho giá cũ */
  }

  .price-new {
    font-size: 22px;
    /* Tăng kích thước giá mới */
    font-weight: 700;
  }

  /* Shipping */
  .shipping-note {
    padding-top: 19px;
    font-size: 16px;
    color: #929293;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* --- 3. Voucher Row Customization --- */
  .voucher-row {
    margin-bottom: 30px;
  }

  .voucher-container {
    background-color: var(--background-surface-sub, #f2f4f7);
    border-radius: 8px;
    padding: 12px;
    /* Tăng padding để rộng rãi hơn */
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .voucher-input {
    border: none;
    background: transparent;
    padding: 12px 16px;
    /* Tăng padding cho input */
    font-size: 15px;
    /* Tăng kích thước font cho input */
    width: 70%;
    /* Giảm width để tạo không gian cho button */
    outline: none;
    color: #333;
  }

  .voucher-input::placeholder {
    color: var(--Colors-Primary-Colors-Gray-400, #98a2b3);
  }

  .btn-apply {
    background-color: var(--Background-Surface-Primary, #101828);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    /* Tăng font-size cho button */
    font-weight: 500;
    padding: 10px 25px;
    /* Tăng padding để button dễ nhấn hơn */
    cursor: pointer;
  }

  /* --- 4. Color Selection --- */
  .section-label {
    font-size: 16px;
    /* Tăng font-size cho tiêu đề */
    color: #525252;
    margin-bottom: 12px;
    /* Tăng khoảng cách giữa label và các phần tử dưới */
  }

  .color-dots {
    display: flex;
    gap: 18px;
    /* Tăng khoảng cách giữa các dot màu */
    align-items: center;
  }

  .color-dot {
    width: 80px;
    /* Tăng kích thước cho color dot */
    height: 50px;
    /* Tăng chiều cao để dễ chọn */
    border-radius: 9999px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
  }

  .color-dot.selected {
    border: 2px solid #273bce;
    /* Tăng kích thước viền khi được chọn */
  }

  .color-light-blue {
    background-color: #a6c4d9;
  }

  .color-white {
    background-color: #ffffff;
  }

  /* --- 5. Size Buttons --- */
  .size-guide {
    font-size: 16px;
    /* Tăng kích thước font của size guide */
    text-decoration: underline;
    color: #0044cc !important;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
  }

  .size-buttons {
    display: flex;
    gap: 15px;
    /* Tăng khoảng cách giữa các size button */
  }

  .btn-size {
    border: 1px solid #e5e5e5;
    background-color: #f9f9f9;
    color: #333;
    padding: 12px 20px;
    /* Tăng padding cho nút size */
    border-radius: 12px;
    font-size: 16px;
    /* Tăng font-size cho nút */
    min-width: 60px;
    /* Tăng độ rộng tối thiểu */
    height: 48px;
    /* Tăng chiều cao của nút */
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-size.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
  }

  /* --- Custom Size --- */
  .custom-size-container {
    margin-top: 20px;
    padding-top: 15px;
    animation: slideDown 0.3s ease-out;
  }

  .custom-title {
    text-align: center;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    /* Tăng font-size cho tiêu đề */
    text-transform: uppercase;
    margin-bottom: 20px;
    /* Tăng khoảng cách dưới tiêu đề */
  }

  .custom-input-row {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    /* Tăng khoảng cách giữa các dòng input */
    background-color: #fff;
    overflow: hidden;
  }

  .input-label {
    background-color: #e9ecef;
    color: #000;
    width: 100px;
    /* Tăng chiều rộng cho label */
    padding: 12px 16px;
    /* Tăng padding để dễ đọc hơn */
    font-size: 16px;
    /* Tăng font-size */
    display: flex;
    align-items: center;
    border-right: 1px solid #ccc;
  }

  .input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
  }

  /* --- 6. Bottom Actions --- */
  .bottom-actions {
    margin-top: 30px;
    padding-top: 20px;
    background: #fff;
  }

  .bottom-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    border: none;
    height: auto;
  }

  .quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;

    background: transparent;
    padding: 0;
    min-width: auto;
    height: auto;
  }

  .quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .quantity-value {
    font-weight: 400;
    color: #929293;
    min-width: 97px;
    height: 40px;
    border: 1px solid #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .btn-add-cart {
    flex-grow: 1;
    background-color: #000;
    color: #000;
    border: none;
    border-radius: 0 999px 999px 0;
    border-left: none;
    margin-left: 0px;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 20px;
  }

  .btn-checkout {
    margin-top: 10px;
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
  }

  /* --- Product Policy --- */
  .product-policy {
    padding: 10px;
    margin-top: 15px;
    border: solid 1px #DCD1BB;
    border-radius: 10px;
    padding-left: 20px;
    height: auto;
    margin-bottom: 15px;
  }

  .policy-item {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .policy-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .product-policy .row {
    display: flex;
    gap: 10px;
  }

  .policy-text {
    font-size: 14px;
    line-height: 18px;
    color: #929293;
    font-weight: 400;
  }

  .section-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 48px;
    color: #929293;
    letter-spacing: 0%;
  }

  .pair-with-it {
    margin-bottom: 15px;
    border: solid 1px #DCD1BB;
    padding-left: 20px;
    border-radius: 10px;
  }

  .spec-row {
    display: flex;
    align-items: center;
    padding: 7px 0 7px 15px;
  }

  .spec-label {
    width: 35%;
    color: #929293;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0%;
  }

  .spec-value {
    width: 65%;
    color: #929293;
    font-weight: 400;
    font-size: 13px;
    line-height: 24px;
  }

  /* --- Image Highlight --- */
  .image-hightlight-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
  }

  .image-hightlight-info img {
    width: 100%;
    height: auto !important;
    max-width: 500px !important;
    object-fit: contain;
  }


  /* --- About This Item --- */

  .about-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #525252;
    margin-bottom: 16px;
  }

  .product-description {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.8;
    color: #525252;
    text-align: justify;
    margin-bottom: 20px;
  }

  .product-description p {
    margin-bottom: 12px;
  }

  .product-description ul {
    padding-left: 20px;
    margin-bottom: 12px;
    /* Tăng khoảng cách dưới list */
  }

  /* --- Collapsed Description --- */
  .content-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    /* Giới hạn đúng 8 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* text-overflow: ellipsis; */
  }

  /* Khi mở rộng thì reset lại */
  .content-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* --- List Items --- */
  .product-description ul li {
    margin-bottom: 6px;
    /* Tăng khoảng cách dưới mỗi item */
  }

  .description-text {
    text-align: justify;
  }

  .btn-see-more {
    background-color: #fff;
    color: #000;
    height: 45px;
    padding: 0px 40px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .btn-see-more:hover {
    color: #dcd1bb;
  }

  /* --- Pair With It --- */
  .pair-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #929293;
  }

  .pair-link {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #000 !important;
    text-decoration: underline;
    cursor: pointer;
  }

  .pair-card {
    width: 100%;
    max-width: 100px;

  }

  .pair-card .img-wrapper a {
    display: flex;
    justify-content: center;
  }

  .pair-card .img-wrapper img {
    width: 100px;
    height: 144px;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .pair-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, 100px);
    display: grid;
    justify-content: center;
  }

  .pair-name {
    max-width: 114px;
    margin: 0 auto 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #525252;
  }

  .pair-price {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #000;
  }

  /* --- Buy Collection Section --- */
  .collection-title {
    font-weight: 400;
    font-size: 22px;
    line-height: 32px;
    color: #000;
  }

  .collection-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .collection-img {
    border-radius: 10px;
    width: auto;
    /* height: 448px !important; */
    object-fit: cover;
    display: block;
    aspect-ratio: 3/4;
  }

  /* --- Buy Now Button --- */
  .btn-buy-now {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  /* Hover effect for Buy Now Button */
  .btn-buy-now:hover {
    background-color: #000;
    color: #fff;
    transform: translateX(-50%) scale(1.05);
  }

  .product-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .product-scroll-container::-webkit-scrollbar {
    display: none;
  }

  /* --- Product Item Styling --- */
  .product-card-item {
    flex: 0 0 calc(33.333% - 16px);
    width: calc(33.333% - 16px);
    transition: transform 0.2s ease;
  }

  /* .img-wrapper:hover {
    transform: scale(1.05); /* Phóng to nhẹ khi hover để tạo hiệu ứng */


  */

  /* --- Popular Category Label --- */
  .product-category {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 80px;
    height: 22px;
    border-radius: 9999px;
    background-color: #000;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-category h3 {
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    padding: 0;
  }

  /* --- Quick Add Button --- */
  .btn-quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(17px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 18px;
    padding: 0 !important;
  }

  .btn-quick-add img {
    width: 20px;
    height: 20px;
  }

  /* --- Color Swatches --- */
  .color-options {
    padding-left: 10px;
    display: flex;
    gap: 12px;
  }

  .color-circle {
    width: 36px;
    height: 20px;
    border-radius: 9999px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* --- Product Text Info --- */
  .prod-name {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    height: 40px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .prod-name:hover {
    color: #dcd1bb;
  }

  /* --- Product Price --- */
  .prod-price {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
  }

  /* --- Navigation Arrows (Nút đen to 2 bên) --- */
  .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 0.9;
    font-size: 20px;
    transition: opacity 0.2s ease;
  }

  /* Hiệu ứng hover cho mũi tên */
  .nav-arrow:hover {
    opacity: 1;
  }

  .prev-arrow {
    left: 20px;
  }

  .next-arrow {
    right: 20px;
  }

  /* --- Pop-up Select Size --- */
  .quick-add-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  /* Khi kích hoạt Overlay */
  .quick-add-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* --- 2. Popup Bottom Sheet --- */
  .quick-add-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Khi kích hoạt Popup */
  .quick-add-popup.active {
    transform: translateY(0);
  }

  /* --- 3. Các thành phần bên trong Popup --- */
  .btn-close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 23px;
  }

  /* --- Popup Title --- */
  .popup-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #1a1a1a;
  }

  /* --- Popup Subtitle --- */
  .popup-subtitle {
    padding-bottom: 6px;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
  }

  /* --- Size Options in Popup --- */
  .popup-size-options {
    display: flex;
    gap: 15px;
  }

  .btn-size-option {
    border: none;
    background-color: #f2f2f2;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    min-width: 60px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .btn-size-option.selected {
    background-color: #000;
    color: #fff;
  }

  footer {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .image-footer img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .product-detail-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 70px;
  }

  .product-gallery {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .product-info {
    flex: 0 0 45%;
    max-width: 39.5%;
    padding-top: 30px;
  }

  .product-highlight .title {
    border-bottom: solid 1px #DCD1BBB2;
    padding-bottom: 10px;
    font-size: 24px;
  }

  .product-highlight .highlight-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .product-highlight .image-hightlight-info {
    flex: 0 0 50%;
    max-width: 50%;
  }


  /* Overwrite woocommerce */
  .single_add_to_cart_button {
    flex-grow: 1;
    background-color: #000;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    border-left: none;
    margin-left: 0px;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 20px;
    cursor: pointer;
    transition: 0.2s ease;
  }

  /* Hover */
  .single_add_to_cart_button:hover:not(.disabled) {
    background-color: #e0e0e0;
  }

  /* Disabled (chưa chọn variation) */
  .single_add_to_cart_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .quantity-btn.qty-plus {
    padding-bottom: 3px;
  }

  .quantity-btn.qty-minus {
    padding-bottom: 7px;
  }

  .info .woocs_price_code {
    font-size: 18px;
    justify-content: center;
    display: flex;
  }
}

.style-options {
  list-style: none;
  padding: 10px 0 10px 0;
  margin: 0;
  display: flex;
  gap: 10px;
  /* khoảng cách giữa các ô */
}

.style-options li {
  cursor: pointer;
  padding: 10px 15px;
  /* kích thước ô */
  border-radius: 8px;
  /* bo góc nhẹ */
  border: 1px solid #e5e5e5;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
  /* đều nhau trên 1 hàng */
  font-size: 16px;
}

/* khi hover */
.style-options li:hover {
  background-color: #f0f0f0;
}

/* khi được chọn */
.style-options li.selected {
  background-color: #333;
  ;
  color: #fff;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.accordion-arrow {
  width: 11px;
  height: 11px;
  border-right: 3px solid #DCD1BB;
  border-bottom: 3px solid #DCD1BB;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: auto;
}

/* Đóng */
.accordion-content {
  display: none;
}

/* Mở */
.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(-135deg);
}

.accordion-item .section-title {
  color: #929293;
  font-weight: 700;
  font-size: 14px;
  border-bottom: solid 1px #DCD1BBB2;
  padding-bottom: 10px;
  padding-top: 10px;
}

.page-content .wc-tabs-wrapper {
  display: none;
}

.product-detail-wrapper {
  display: flex;
  align-items: flex-start;
}

.pair-with-it .by-this-collection {
  font-size: 12px;
  font-weight: 400;
  color: #273BCE;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {

  .product-detail-wrapper {
    flex-direction: column;
  }

  .product-gallery {
    display: contents;
  }

  .breadcrumb-container,
  .product-carousel-wrapper,
  .product-thumbnails {
    order: 1;
  }

  .product-info {
    order: 2;
  }

  .product-highlight {
    order: 3;
    width: -webkit-fill-available;
  }

  .product-highlight .title {

    font-size: 16px;
  }

  /* container scroll */

  .collection-layout.mobile-scroll {

    display: flex;

    flex-wrap: nowrap;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    width: 100%;

    margin-left: 5px;

  }



  /* ẩn scrollbar */

  .collection-layout.mobile-scroll::-webkit-scrollbar {

    display: none;

  }



  /* từng item */

  .collection-layout.mobile-scroll>.col-6 {

    flex: 0 0 auto;

    width: 40%;

    max-width: 160px;

    scroll-snap-align: start;

    padding: 0px;

  }

  .collection-img {

    border-radius: 10px;

    width: 137px;

    height: 206px !important;
  }

  .slider-viewed-products .slick-list {
    overflow: visible;
  }

  .slider-viewed-products .item-slider {
    padding: 0 6px;
    box-sizing: border-box;
  }

  .pair-with-it .by-this-collection {
    padding-bottom: 8px;
  }

}

.input-group-prepend .input-group-text {
  height: 30px;
  font-size: 14px;
}

.info .woocs_price_code {
  font-size: 18px;
  justify-content: center;
  display: flex;
}