/* ─── Review: ẩn product link trong review item ─────────────────────────── */
.review__item-product {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT INFO SECTION
═══════════════════════════════════════════════════════════════════════════ */

.product-info {
  padding-top: 160px;
  padding-bottom: 60px;
  background: #f4f4f4;
}

.product-info__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */

.product-info__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 609px;
}

/* Main slider */
.product-gallery-main {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.product-gallery-main__slide {
  aspect-ratio: 1 / 1;
}

.product-gallery-main__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-gallery-main__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnail strip */
.product-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-gallery-thumbs {
  flex: 1;
  overflow: hidden;
}

.product-gallery-thumbs__slide {
  width: 68px !important;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.product-gallery-thumbs__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs__slide.is-active,
.product-gallery-thumbs__slide.swiper-slide-thumb-active {
  border-color: #00d3d7;
}

/* Thumb nav buttons */
.product-gallery-thumbs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.2s;
}

.product-gallery-thumbs__btn:hover {
  opacity: 0.6;
}

.product-gallery-thumbs__btn:disabled,
.product-gallery-thumbs__btn.is-disabled {
  opacity: 0.2;
  cursor: default;
}

/* ─── Details ────────────────────────────────────────────────────────────── */

.product-info__details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Heading */
.product-info__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-info__name {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  margin: 0;
}

.product-info__category {
  font-size: 16px;
  color: #000;
  margin: 0;
}

.product-info__category a {
  color: inherit;
  text-decoration: none;
}

/* Short description */
.product-info__short-desc {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

.product-info__short-desc ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info__short-desc li {
  list-style: disc;
  margin-left: 24px;
}

/* Purchase box */
.product-info__purchase-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 28px;
  background: #ddd;
}
.product-info__purchase-boxv2 {
  border-radius: 28px;
  background: #fff;
  display: inline-flex;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
/* Price */
.product-info__price {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  line-height: 1;
  padding: 20px;
  padding-bottom: 0;
}

.product-info__price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.product-info__price del {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  margin-right: 8px;
}

.product-info__price ins {
  text-decoration: none;
}

/* Attribute groups */
.product-info__attr-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info__attr-label {
  font-size: 16px;
  color: #000;
  margin: 0;
}

/* Color swatches */
.product-info__color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-info__color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.2s,
    transform 0.15s;
  outline: none;
  position: relative;
}
.product-info__color-swatch-border {
  border-color: #cacaca;
}
.product-info__color-swatch::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.product-info__color-swatch.is-active::after,
.product-info__color-swatch:focus-visible::after {
  border-color: #00d3d7;
}

.product-info__color-swatch:hover {
  transform: scale(1.1);
}

/* Variant buttons (size, type, etc.) */
.product-info__variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-info__variant-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.product-info__variant-btn.is-active {
  border-color: #00d3d7;
  background: #e6fafa;
  color: #00d3d7;
}

.product-info__variant-btn:hover:not(.is-active) {
  border-color: #aaa;
}

/* Quantity */
.product-info__qty {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #000;
  border-radius: 100px;
  padding: 8px 12px;
}

.product-info__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #000;
  transition: opacity 0.2s;
}

.product-info__qty-btn:hover {
  opacity: 0.6;
}

.product-info__qty-input {
  width: 32px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #000;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}

.product-info__qty-input::-webkit-outer-spin-button,
.product-info__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action buttons */
.product-info__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.product-info__btn {
  flex: 1;
  min-width: 160px;
  height: 52px;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
  padding: 0 20px;
}

.product-info__btn:hover {
  opacity: 0.85;
}

.product-info__btn:active {
  transform: scale(0.97);
}

.product-info__btn--cart {
  background: #ff3030;
  color: #fff;
}

.product-info__btn--buy {
  background: #ffbd30;
  color: #fff;
}

.product-info__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Shipping note */
.product-info__shipping {
  font-size: 16px;
  color: #000;
  margin: 0;
}

.product-info__shipping-link {
  color: #00d3d7;
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .product-info__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .product-info__gallery {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .product-info {
    padding-top: 80px;
    padding-bottom: 32px;
  }

  .product-info__inner {
    gap: 24px;
  }

  .product-info__name {
    font-size: 20px;
  }

  .product-info__purchase-box {
    padding: 16px;
    border-radius: 20px;
  }

  .product-info__actions {
    flex-direction: column;
  }

  .product-info__btn {
    min-width: unset;
    width: 100%;
    flex: unset;
  }
  /*  */
  .product-info__short-desc,
  .product-info__heading {
    padding: 0 16px;
  }
}

/* product content */
.control-menu {
  margin: 25px 0;
  padding: 20px 16px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 40;
}
.control-menu-item {
  cursor: pointer;
  color: #000;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding-bottom: 12px;
  transition: all 0.5s;
}
.control-menu-item.active {
  color: #ff3030;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  border-bottom: 4px solid #ff3030;
}
@media (max-width: 768px) {
  .control-menu {
    overflow: hidden;
    overflow-x: auto;
    justify-content: start;
  }
  .control-menu-item {
    flex-shrink: 0;
  }
}
/* product-content */
:root {
  --wp--style--gallery-gap-default: 30px;
}
.product-content {
  background: #070707;
  padding: 80px 0;
}
.detail-content {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.detail-content p {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.detail-content .wp-block-heading {
  color: #fff;
  font-family: Montserrat;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-top: 40px;
  margin-bottom: 40px;
}
.detail-content .wp-block-heading strong {
  color: #00d3d7;
  font-weight: 700;
}
.detail-content
  .wp-block-media-text
  .wp-block-media-text__content
  .wp-block-heading {
  margin-bottom: 16px;
}
.detail-content .wp-block-gallery-is-layout-flex {
  display: flex;
  gap: 30px;
}
.detail-content .wp-block-media-text {
  margin-bottom: 66px;
}
.detail-content .wp-block-gallery {
  margin-bottom: 40px;
  margin-top: 20px;
}
.detail-content .wp-block-media-text__media img {
  border-radius: 20px;
}
.detail-content .wp-block-image img {
  border-radius: 20px;
}
.detail-content
  .wp-block-columns
  .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow
  .wp-block-image
  img {
  width: 100%;
}
.detail-content .wp-block-columns.is-layout-flex {
  gap: 40px;
}
@media (max-width: 768px) {
  .detail-content {
    padding: 0 16px;
  }
}
/*  */
.product-content-more {
  margin-top: 80px;
}
.product-content-more .container {
  display: flex;
  gap: 40px;
}
.product-content-instruct {
  padding: 20px;
  border-radius: 28px;
  border: 1px solid #00d3d7;
  flex: 1 0 0;
}
.product-content-heading {
  color: #fff;
  text-align: center;
  font-family: Montserrat;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 16px;
}
.product-content-list {
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 16px;
}
.product-content-list li {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
@media (max-width: 768px) {
  .product-content-more .container {
    padding: 0 16px;
    flex-direction: column;
  }
  .product-content-heading {
    font-size: 30px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT RELATED SECTION
═══════════════════════════════════════════════════════════════════════════ */

.product-related {
  background: #f4f4f4;
  padding: 80px 0;
}

.product-related__title {
  font-size: 40px;
  font-weight: 700;
  color: #0d0d0d;
  text-align: center;
  margin: 0 0 40px;
  line-height: normal;
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .product-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-related {
    padding: 48px 0;
  }

  .product-related__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .product-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .product-related__grid {
    gap: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT FAQ SECTION
═══════════════════════════════════════════════════════════════════════════ */

.product-faq {
  background: #fff;
  padding: 80px 0;
}

.product-faq__title {
  font-size: 40px;
  font-weight: 700;
  color: #0d0d0d;
  text-align: center;
  margin: 0 0 30px;
  line-height: normal;
}

/* Grid 2 cột */
.product-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* FAQ item card */
.product-faq__item {
  background: #fff;
  border: 1px solid rgba(231, 231, 231, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

/* Question button */
.product-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.product-faq__question-text {
  font-size: 16px;
  font-weight: 600;
  color: #092559;
  line-height: 24px;
  flex: 1;
}

.product-faq__question-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.product-faq__question[aria-expanded="true"] .product-faq__question-icon {
  transform: rotate(90deg);
}

/* Answer */
.product-faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.product-faq__answer:not([hidden]) {
  max-height: 1000px;
  opacity: 1;
}

.product-faq__answer-inner {
  padding: 0 24px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #343330;
  line-height: 1.6;
}

.product-faq__answer-inner p {
  margin-bottom: 10px;
}

.product-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .product-faq {
    padding: 48px 0;
  }

  .product-faq__title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .product-faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY BOTTOM BAR
═══════════════════════════════════════════════════════════════════════════ */

.product-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  /* transform khởi tạo bởi GSAP: gsap.set(bar, { yPercent: 100 }) */
  will-change: transform;
}

.product-bottom-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}

/* ── Ảnh + tên + giá ─────────────────────────────────────────────────────── */

.product-bottom-bar__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.product-bottom-bar__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-bottom-bar__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-bottom-bar__name {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-bottom-bar__price {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.product-bottom-bar__price del {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-right: 4px;
}

.product-bottom-bar__price ins {
  text-decoration: none;
}

/* ── Options ─────────────────────────────────────────────────────────────── */

.product-bottom-bar__options {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}

.product-bottom-bar__attr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-bottom-bar__attr-label {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

/* Color swatches */
.product-bottom-bar__swatches {
  display: flex;
  gap: 6px;
  align-items: center;
}

.product-bottom-bar__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s;
  outline: none;
}

.product-bottom-bar__swatch::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.product-bottom-bar__swatch.is-active::after,
.product-bottom-bar__swatch:focus-visible::after {
  border-color: #00d3d7;
}

.product-bottom-bar__swatch:hover {
  transform: scale(1.1);
}

/* Select dropdown */
.product-bottom-bar__select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
}

.product-bottom-bar__select:focus {
  border-color: #00d3d7;
}

/* ── Nút hành động ───────────────────────────────────────────────────────── */

.product-bottom-bar__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.product-bottom-bar__btn {
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.product-bottom-bar__btn:hover {
  opacity: 0.85;
}

.product-bottom-bar__btn:active {
  transform: scale(0.97);
}

.product-bottom-bar__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-bottom-bar__btn--cart {
  background: #ff3030;
  color: #fff;
}

.product-bottom-bar__btn--buy {
  background: #ffbd30;
  color: #fff;
}
.product-bottom-bar__btn svg {
  width: 24px;
}

/* ── Qty trong bottom bar ────────────────────────────────────────────────── */

.product-bottom-bar__qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #000;
  border-radius: 100px;
  padding: 6px 12px;
  flex-shrink: 0;
}

.product-bottom-bar__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #000;
  transition: opacity 0.2s;
}

.product-bottom-bar__qty-btn:hover {
  opacity: 0.6;
}

.product-bottom-bar__qty-input {
  width: 28px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #000;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}

.product-bottom-bar__qty-input::-webkit-outer-spin-button,
.product-bottom-bar__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .product-bottom-bar__inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .product-bottom-bar__name {
    max-width: 140px;
    font-size: 13px;
  }

  .product-bottom-bar__options {
    display: none;
  }

  .product-bottom-bar__qty {
    display: none;
  }

  .product-bottom-bar__btns {
    gap: 8px;
  }

  .product-bottom-bar__btn {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }
}
