/* =========================================================
   PRODUCT EXTRA
========================================================= */
.product-extra {
  width: 100%;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 20px 40px;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  color: #45413d;
}

/* =========================================================
   TABS
========================================================= */
.product-extra-tabs {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 46px;
  border-bottom: 1px solid #ebe5df;
}

.extra-tab {
  position: relative;
  height: 46px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: #625c57;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.extra-tab.active {
  color: #df6074;
  font-weight: 500;
}

.extra-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #df6074;
}

/* =========================================================
   INFORMATION CONTENT
========================================================= */
.product-info-content {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.2fr;
  gap: 32px;
  padding: 24px 4px 0;
}

/* =========================================================
   MEMORY CARD
========================================================= */
.memory-message-card {
  position: relative;
  min-height: 210px;
  padding: 22px 18px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf7f1, #faf0e9);
}

/* TITLE */
.memory-message-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.memory-message-title i {
  color: #e35f76;
  font-size: 18px;
}

.memory-message-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #393531;
}

/* TEXT */
.memory-message-card > p {
  max-width: 320px;
  margin: 0;
  color: #77706a;
  font-size: 13px;
  line-height: 1.7;
}

/* LINE */
.memory-message-line {
  width: 24px;
  height: 1px;
  margin-top: 16px;
  background: #eadbd3;
}

/* NOTE */
.memory-message-note {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 15px;
  line-height: 1.15;
  color: #e6a1a4;
  transform: rotate(-5deg);
}

/* FLOWER */
.memory-flower {
  position: absolute;
  right: 42px;
  bottom: 8px;
  color: #d9c0ae;
  font-size: 48px;
  transform: rotate(-15deg);
}

/* =========================================================
   HIGHLIGHTS
========================================================= */
.product-highlights {
  min-width: 0;
}

.highlight-block h3,
.specification-block h3,
.product-detail-accordion > h3 {
  margin: 0 0 12px;
  color: #403b37;
  font-size: 14px;
  font-weight: 600;
}

/* LIST */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  color: #77716c;
  font-size: 13px;
  line-height: 1.55;
}

.highlight-list li i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #e45f76;
  font-size: 11px;
}

/* =========================================================
   SPECIFICATION
========================================================= */
.specification-block {
  margin-top: 20px;
}

.specification-list {
  border-top: 1px solid #eee9e4;
}

.specification-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  min-height: 32px;
  align-items: center;
  border-bottom: 1px solid #eee9e4;
  color: #77716c;
  font-size: 13px;
}

.specification-row strong {
  color: #77716c;
  font-size: 13px;
  font-weight: 400;
}

/* =========================================================
   ACCORDION
========================================================= */
.product-detail-accordion {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid #eee9e4;
}

.product-detail-accordion > h3 {
  margin-bottom: 12px;
}

/* ITEM */
.accordion-item {
  border-top: 1px solid #e9e3de;
}

.accordion-item:last-child {
  border-bottom: 1px solid #e9e3de;
}

/* BUTTON */
.accordion-button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  color: #53656a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.accordion-button i {
  color: #777;
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* CONTENT */
.accordion-content {
  display: none;
  padding: 0 12px 12px;
}

.accordion-content p {
  margin: 0;
  color: #77716c;
  font-size: 13px;
  line-height: 1.65;
}

/* OPEN */
.accordion-item.open .accordion-content {
  display: block;
}

.accordion-item.open .accordion-button i {
  transform: rotate(180deg);
}

/* =========================================================
   RELATED PRODUCTS
========================================================= */
.related-products {
  margin-top: 32px;
}

.related-products > h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  color: #37332f;
}

/* TRACK */
.related-products-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

/* =========================================================
   RELATED CARD
========================================================= */
.related-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  cursor: pointer;
}

/* IMAGE */
.related-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/ 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f1ec;
}

.related-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.04);
}

/* BADGE */
.related-badge {
  position: absolute;
  top: 7px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #e86b7c;
  color: white;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
}

.related-badge.new {
  background: #7bb6a6;
}

/* HEART */
.related-heart {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #d9828e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.related-heart i {
  font-size: 11px;
}

/* PRODUCT NAME */
.related-product-card h3 {
  margin: 8px 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #514b47;
  font-size: 13px;
  font-weight: 400;
}

/* PRICE */
.related-product-card > strong {
  color: #dc6073;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 900px) {
  .product-info-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .product-detail-accordion {
    border-left: none;
    border-top: 1px solid #eee9e4;
    padding-left: 0;
    padding-top: 20px;
  }

  .related-products-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {
  .product-extra {
    padding: 0 14px 28px;
    margin-top: 20px;
  }

  /* TABS */
  .product-extra-tabs {
    height: 40px;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-extra-tabs::-webkit-scrollbar {
    display: none;
  }

  .extra-tab {
    height: 40px;
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  /* CONTENT */
  .product-info-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 0 0;
  }

  /* MEMORY */
  .memory-message-card {
    min-height: 160px;
    padding: 16px 14px;
    border-radius: 9px;
  }

  .memory-message-title {
    gap: 8px;
    margin-bottom: 10px;
  }

  .memory-message-title i {
    font-size: 16px;
  }

  .memory-message-title h3 {
    font-size: 14px;
  }

  .memory-message-card > p {
    max-width: 85%;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .memory-message-note {
    left: 14px;
    bottom: 12px;
    font-size: 13px;
  }

  .memory-flower {
    right: 28px;
    font-size: 38px;
  }

  /* HIGHLIGHTS */
  .highlight-block h3,
  .specification-block h3,
  .product-detail-accordion > h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .highlight-list li {
    font-size: 12.5px;
    margin-bottom: 7px;
  }

  .highlight-list li i {
    font-size: 10px;
  }

  /* SPEC */
  .specification-block {
    margin-top: 16px;
  }

  .specification-row {
    min-height: 30px;
    font-size: 12.5px;
  }

  .specification-row strong {
    font-size: 12.5px;
  }

  /* ACCORDION */
  .product-detail-accordion {
    padding-top: 14px;
  }

  .accordion-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .accordion-button i {
    font-size: 9px;
  }

  .accordion-content {
    padding: 0 10px 10px;
  }

  .accordion-content p {
    font-size: 12.5px;
  }

  /* RELATED PRODUCTS */
  .related-products {
    margin-top: 24px;
  }

  .related-products > h2 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .related-products-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .related-products-track::-webkit-scrollbar {
    display: none;
  }

  .related-product-card {
    flex: 0 0 calc((100% - 10px) / 2);
    scroll-snap-align: start;
  }

  .related-product-image {
    aspect-ratio: 0.25/ 0.25;
    border-radius: 7px;
  }

  .related-badge {
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .related-heart {
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
  }

  .related-heart i {
    font-size: 10px;
  }

  .related-product-card h3 {
    margin-top: 6px;
    font-size: 12.5px;
  }

  .related-product-card > strong {
    font-size: 13px;
  }
}

/* =========================================================
   PRODUCT DETAIL
========================================================= */
.product-detail {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 32px;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  color: #3d3935;
}

/* =========================================================
   BREADCRUMB
========================================================= */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #77716c;
}

.product-breadcrumb span {
  color: #b7b0aa;
}

.product-breadcrumb strong {
  color: #4d4844;
  font-weight: 500;
}

/* =========================================================
   MAIN
========================================================= */
.product-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

/* =========================================================
   GALLERY
========================================================= */
.product-gallery {
  min-width: 0;
}

/* MAIN IMAGE */
.product-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f1ec;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* BADGE */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e85f7b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
}

/* WISHLIST */
.gallery-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #77716d;
  cursor: pointer;
  z-index: 3;
}

.gallery-wishlist i {
  font-size: 16px;
}

/* ARROWS */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #55504c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.gallery-arrow i {
  font-size: 11px;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

/* =========================================================
   THUMBNAILS CAROUSEL
========================================================= */
.product-thumbnails {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 12px;

  /* chỉ hiển thị thumbnail trong một vùng cố định */
  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 4px;

  scrollbar-width: none;
  -ms-overflow-style: none;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.product-thumbnails::-webkit-scrollbar {
  display: none;
}

/* mỗi thumbnail không được co lại */
.product-thumb {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 60px;

  padding: 0;
  overflow: hidden;

  border: 1px solid transparent;
  border-radius: 8px;

  background: #f7f1ec;
  cursor: pointer;

  scroll-snap-align: start;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* thumbnail đang chọn */
.product-thumb.active {
  border: 2px solid #df6375;
}

/* variant đang chọn */
.product-thumb.variant-active {
  border: 2px solid #df6375;
}

/* =========================================================
   MOBILE THUMBNAILS
========================================================= */
@media (max-width: 700px) {
  .product-thumbnails {
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 3px;

    /* vuốt ngang */
    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .product-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 50px;
    border-radius: 6px;
  }
}


.video-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 15px;
}

/* =========================================================
   RIGHT INFO
========================================================= */
.product-detail-info {
  min-width: 0;
  padding-top: 2px;
}

/* TITLE */
.product-detail-title {
  margin: 0 0 10px;
  max-width: 520px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  color: #393532;
}

/* RATING */
.rating-stars {
  display: flex;
  gap: 2px;
  color: #df5e76;
  font-size: 14px;
}

.rating-count {
  font-size: 12px;
  color: #918a85;
}

/* PRICE */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-detail-price {
  color: #e45f78;
  font-size: 24px;
  font-weight: 700;
}

.product-price-row del {
  color: #9b9590;
  font-size: 14px;
}

.discount {
  padding: 4px 9px;
  border-radius: 10px;
  background: #fdebed;
  color: #dd6176;
  font-size: 11px;
  font-weight: 500;
}

/* DESCRIPTION */
.product-detail-description {
  max-width: 500px;
  margin: 0 0 16px;
  color: #625b56;
  font-size: 13.5px;
  line-height: 1.6;
}

/* OPTIONS */
.option-group {
  margin-bottom: 14px;
}

.option-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #403b37;
}

.option-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #e6dfd9;
  border-radius: 8px;
  background: #fff;
  color: #625c57;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.option-btn:hover {
  border-color: #e6a2ac;
}

.option-btn.active {
  border-color: #e15f76;
  color: #df5e74;
  background: #fff8f7;
}

/* QUANTITY */
.quantity-group {
  margin-bottom: 14px;
}

.quantity-control {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 34px;
  overflow: hidden;
  border: 1px solid #e4ddd7;
  border-radius: 8px;
}

.quantity-control button {
  width: 34px;
  height: 100%;
  border: none;
  background: #fff;
  color: #77716d;
  font-size: 16px;
  cursor: pointer;
}

.quantity-value {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
  color: #4b4642;
}

/* ACTIONS */
.product-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.add-cart-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 9px;
  background: #e45e78;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.add-cart-btn:hover {
  background: #d84f6b;
}

.add-cart-btn i {
  font-size: 15px;
}

.detail-wishlist-btn {
  width: 48px;
  height: 42px;
  border: 1px solid #e8ddd8;
  border-radius: 9px;
  background: #fff;
  color: #df6076;
  cursor: pointer;
  font-size: 18px;
}

/* BENEFITS */
.product-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.benefit-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e26377;
  font-size: 14px;
}

.benefit > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit span {
  color: #77706b;
  font-size: 12px;
  line-height: 1.35;
}

/* SUPPORT */
.product-support {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #fdf0ed;
  color: #9b7772;
  font-size: 13px;
}

.product-support > i:first-child {
  color: #e26076;
  font-size: 16px;
}

.product-support strong {
  color: #df6075;
  font-size: 13px;
  font-weight: 500;
}

.product-support span {
  color: #93847f;
}

.product-support > i:last-child {
  color: #df6075;
  font-size: 11px;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 900px) {
  .product-detail-main {
    gap: 28px;
  }

  .product-detail-title {
    font-size: 23px;
  }

  .product-detail-price {
    font-size: 22px;
  }

  .product-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {
  .product-detail {
    padding: 12px 14px 28px;
  }

  /* BREADCRUMB */
  .product-breadcrumb {
    gap: 6px;
    margin-bottom: 12px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
  }

  .product-breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* MAIN */
  .product-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* GALLERY */
  .product-gallery {
    width: 100%;
  }

  .product-main-image {
    aspect-ratio: 1 / 0.85;
    border-radius: 9px;
  }

  /* BADGE */
  .product-badge {
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    font-size: 10px;
  }

  /* WISHLIST */
  .gallery-wishlist {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .gallery-wishlist i {
    font-size: 14px;
  }

  /* ARROWS */
  .gallery-arrow {
    width: 26px;
    height: 26px;
  }

  .gallery-arrow i {
    font-size: 10px;
  }



  /* INFO */
  .product-detail-info {
    width: 100%;
  }

  .product-detail-title {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.2;
  }

  .rating-stars {
    font-size: 13px;
  }

  .rating-count {
    font-size: 11px;
  }

  .product-detail-price {
    font-size: 22px;
  }

  .product-price-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .product-price-row del {
    font-size: 13px;
  }

  .discount {
    padding: 3px 7px;
    font-size: 10px;
  }

  .product-detail-description {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* OPTIONS */
  .option-title {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .option-list {
    gap: 8px;
  }

  .option-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12.5px;
  }

  /* QUANTITY */
  .quantity-control {
    height: 32px;
    border-radius: 8px;
  }

  .quantity-control button {
    width: 32px;
    font-size: 15px;
  }

  .quantity-value {
    min-width: 32px;
    font-size: 13px;
  }

  /* ACTIONS */
  .product-actions {
    gap: 8px;
    margin-bottom: 14px;
  }

  .add-cart-btn {
    height: 40px;
    border-radius: 9px;
    font-size: 14px;
  }

  .detail-wishlist-btn {
    width: 44px;
    height: 40px;
    border-radius: 9px;
    font-size: 16px;
  }

  /* BENEFITS */
  .product-benefits {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .benefit {
    gap: 5px;
  }

  .benefit-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .benefit span {
    font-size: 11px;
  }

  /* SUPPORT */
  .product-support {
    min-height: 40px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 8px;
    font-size: 12px;
  }

  .product-support > i:first-child {
    font-size: 15px;
  }

  .product-support strong {
    font-size: 12px;
  }

  .product-support > i:last-child {
    font-size: 10px;
  }
}
