/* ============ THEME2 LEGACY PAGES ============
   Completes the legacy-compat bridge started in theme2-legacy-compat.css.
   The home page and the product detail page still use the theme1 class
   vocabulary; the retired HELSAN stylesheets that used to render it are no
   longer linked. This file ports those structural rules onto theme2 tokens
   (red Digikala palette, RTL-safe) without linking the old green sheets.

   Load order: after theme2-legacy-compat.css, before theme2-dark.css. */

/* ================================================================
   1 — HOME · SECTION HEADS & CAROUSEL WRAPPERS
   ================================================================ */
.sec-head { margin-bottom: clamp(20px, 3vw, 34px); }
.list-best-sellers { position: relative; }
.best-seller-container { margin-top: 8px; }
.best-seller-container .header-section { margin-bottom: 18px; }
.best-seller-container .list-best-sellers { padding-block: 4px; }

/* Owl nav arrows for the best-seller / new-products / more-discount rows.
   Selectors are deliberately specific: the vendor owl stylesheet loads after
   theme2 and sets `.owl-carousel .owl-nav button.owl-next {background:0 0;border:none}`. */
.list-best-sellers .owl-carousel .owl-nav button.owl-prev,
.list-best-sellers .owl-carousel .owl-nav button.owl-next,
.offers-container .owl-carousel .owl-nav button.owl-prev,
.offers-container .owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: .65;
  z-index: 3;
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.list-best-sellers .owl-carousel .owl-nav button.owl-prev:hover,
.list-best-sellers .owl-carousel .owl-nav button.owl-next:hover,
.offers-container .owl-carousel .owl-nav button.owl-prev:hover,
.offers-container .owl-carousel .owl-nav button.owl-next:hover {
  opacity: 1;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(30, 32, 37, .16);
}
.list-best-sellers .owl-nav button.owl-prev,
.offers-container .owl-nav button.owl-prev { inset-inline-start: 6px; }
.list-best-sellers .owl-nav button.owl-next,
.offers-container .owl-nav button.owl-next { inset-inline-end: 6px; }

.nav-btn-best,
.nav-btn-amazing { width: 24px; height: 24px; display: grid; place-items: center; }
.nav-btn-best::after,
.nav-btn-amazing::after {
  content: '';
  width: 9px;
  height: 9px;
  display: block;
  transform: rotate(-45deg);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.nav-btn-best.next-slide-best::after,
.nav-btn-amazing.next-slide-amazing::after {
  transform: rotate(45deg);
  border-left: 2px solid var(--ink);
  border-right: none;
  border-bottom: 2px solid var(--ink);
}
@media (max-width: 1024px) {
  .list-best-sellers .owl-nav,
  .offers-container .owl-nav { display: none !important; }
}

/* ================================================================
   2 — HOME · HERO SLIDER BANNER (bxSlider)
   ================================================================ */
.slider-banner .box-slider { position: relative; min-height: 320px; }
.slider-banner .box-slider .bx-viewport { background: var(--bg2); }
.slider-banner .box-slider .item-slider { height: 100%; }
.slider-banner .box-slider .item-slider img { display: block; }
.slider-banner .box-banner .item-slider {
  min-height: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg2);
}
.slider-banner .box-banner .item-slider img { transition: transform .6s var(--ease); }
.slider-banner .box-banner .item-slider:hover img { transform: scale(1.04); }

.slider-banner .box-slider .action-slider {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}
.slider-banner .arrow-slider { display: flex; gap: 10px; }
.slider-banner .arrow-item {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 32, 37, .2);
  transition: transform .3s var(--ease), background .3s;
}
.slider-banner .arrow-item:hover { background: #fff; transform: scale(1.07); }
.slider-banner .arrow-item .ic { width: 18px; height: 18px; }

.slider-banner .dots-slider { display: flex; align-items: center; gap: 7px; }
.slider-banner .dot-item {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.slider-banner .dot-item.miniActive { background: rgba(255, 255, 255, .85); }
.slider-banner .dot-item.active { width: 26px; border-radius: 999px; background: #fff; }

@media (max-width: 768px) {
  .slider-banner { grid-template-columns: 1fr !important; }
  .slider-banner .box-slider { min-height: 220px; }
  .slider-banner .box-slider .action-slider { inset-inline-start: 14px; bottom: 12px; }
  .slider-banner .arrow-slider { display: none; }
}

/* ================================================================
   3 — HOME · AMAZING OFFER ROW
   ================================================================ */
.offers-container { position: relative; margin-top: 18px; }
.offers-container-mobile { margin-top: 20px; }
.offers-container .amazing-offer-carousel .item-product { height: 100%; }
.offers-container .amazing-offer-carousel .owl-item { padding-block: 4px; }
.offers-container .more-product {
  display: grid;
  place-items: center;
  background: var(--bg2);
  border: 1px dashed var(--line2);
  border-radius: var(--r-md);
  text-align: center;
}
.offers-container .more-product a {
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--accent);
  font-weight: 800;
}
.offers-container .more-product .ic { width: 34px; height: 34px; transform: scaleX(-1); }
.offers-container .more-product p { font-size: .95rem; }

/* ================================================================
   4 — HOME · BOTTOM BANNERS
   ================================================================ */
.banner-container { margin-top: 8px; }
.banner-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.banner-bottom a {
  display: block;
  min-height: 180px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.banner-bottom a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30, 32, 37, .14); }
.banner-bottom img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.banner-bottom a:hover img { transform: scale(1.04); }

/* ================================================================
   5 — HOME · QUICK ACCESS / TRUST STRIP
   ================================================================ */
.footer-quick-access { padding-block: clamp(32px, 4vw, 52px); }
.footer-quick-access .container-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}
.footer-quick-access .col-quick-access {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--ink);
  transition: transform .3s var(--ease);
}
.footer-quick-access .col-quick-access:hover { transform: translateY(-5px); }
.footer-quick-access .col-quick-access img { width: 48px; height: 48px; }
.footer-quick-access .col-quick-access h4 { font-weight: 700; font-size: 1rem; }

/* ================================================================
   6 — HOME · ORDER STATUS PILL (mobile)
   ================================================================ */
.status-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.status-order .status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status-order .status .ic { color: var(--accent); }
.status-order .status p {
  background: linear-gradient(120deg, #EF394E, #D71921);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .82rem;
  font-weight: 700;
}
.status-order .detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: .88rem;
}
.status-order .detail .ic { width: 16px; height: 16px; }

/* ================================================================
   7 — PRODUCT DETAIL · LAYOUT
   ================================================================ */
.title-statistics { margin-bottom: 22px; }
.title-statistics .title-product { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.price-condition-return {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 8px;
}
.price-condition-return .col-condition-return { flex: 1 1 0; min-width: 0; }
.price-condition-return .col-price { flex: 0 0 268px; max-width: 268px; }

.row-price-similar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  margin-top: 40px;
}
.row-price-similar .col-comment-similar { flex: 1 1 420px; min-width: 0; }
.row-price-similar .col-price { flex: 0 0 268px; max-width: 268px; }
.row-price-similar .price-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* specs / description containers */
.detail-container,
.description-container { padding-top: 20px; border-top: 1px solid var(--line); }
.description-container { padding-bottom: 32px; }
.col-title-row { width: 192px; }
.col-title-row h3 { font-size: 1.1rem; font-weight: 800; }
.col-specs-row { width: calc(100% - 192px); min-width: 0; }
.specs { max-height: 247px; overflow: hidden; transition: max-height .6s var(--ease); }
.specs.show { max-height: 1000px; }
.box-desc { margin-top: 16px; }
.description-product .show-more { display: none; }

/* small utility kept from the legacy vocabulary */
.color-primary { color: var(--accent) !important; }

/* ================================================================
   8 — PRODUCT DETAIL · GALLERY (desktop)
   ================================================================ */
.container-image { position: relative; }
.container-image .like-share {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.container-image .like-share li {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(30, 32, 37, .12);
}
.container-image .like-share img { width: 22px; height: 22px; }

.play-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-style: normal;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.play-circle img { width: 12px; }

.list-images { position: relative; margin-top: 14px; }
.product-slider-container { position: relative; }
.product-slider li { width: 74px; flex: 0 0 auto; }
.product-slider-container .owl-carousel .owl-nav button.owl-prev,
.product-slider-container .owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 3;
  opacity: .9;
  transition: opacity .3s var(--ease), background .3s;
}
.product-slider-container .owl-carousel .owl-nav button.owl-prev:hover,
.product-slider-container .owl-carousel .owl-nav button.owl-next:hover { background: var(--bg2); }
.product-slider-container .owl-nav button.owl-prev { inset-inline-start: 0; }
.product-slider-container .owl-nav button.owl-next { inset-inline-end: 0; }
.product-slider-container .owl-nav .btn-arrow-cat { display: grid !important; width: 100%; height: 100%; place-items: center; }
.product-slider-container .owl-nav .btn-arrow-cat img { display: none; }
.product-slider-container .owl-nav .btn-arrow-cat::after {
  content: '›';
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.product-slider-container .owl-nav .btn-arrow-next::after { content: '‹'; }

/* ================================================================
   9 — PRODUCT DETAIL · GALLERY (mobile)
   ================================================================ */
.container-image-mobile { position: relative; margin-bottom: 18px; }
.container-image-mobile .like-share {
  position: static;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.container-image-mobile .like-share li { width: 34px; height: 34px; display: grid; place-items: center; }
.container-image-mobile .like-share img { width: 24px; height: 24px; }
.images-mobile-list { position: relative; overflow: hidden; }
.images-mobile-list .product-slider-container { padding-inline: 10px; }
.images-mobile-list .product-mobile-slider { list-style: none; }
.images-mobile-list .product-mobile-slider .product-images {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  padding-inline: 12px;
  cursor: pointer;
}
.images-mobile-list .product-mobile-slider .product-images img { width: 100%; height: auto; }
.images-mobile-list .product-mobile-slider .owl-dots {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-block: 10px;
}
.images-mobile-list .product-mobile-slider .owl-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line2);
  transform: scale(.7);
  transition: transform .3s var(--ease), background .3s;
}
.images-mobile-list .product-mobile-slider .owl-dots button.active {
  background: var(--accent);
  transform: scale(1);
}

/* ================================================================
   10 — PRODUCT DETAIL · COMMENTS
   ================================================================ */
.container-comment { padding-block: 20px 40px; }
.container-comment .title-section-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.container-comment .count-message { font-size: .82rem; color: var(--ink2); font-weight: 500; }
.comment-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 200px;
}
.comment-empty .text-empty { font-size: 1.05rem; color: var(--ink2); }

.list-comment-box .list-comment { display: flex; flex-direction: column; gap: 18px; }
.item-comment {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.item-comment .rate-comment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 8px 16px;
  background: rgba(239, 57, 78, .08);
  border-radius: 12px;
}
.item-comment .rate-comment .title { font-size: .78rem; color: var(--ink2); }
.item-comment .rate-comment .value { font-size: 1.1rem; font-weight: 800; }
.item-comment .detail-comment { flex: 1; min-width: 0; }
.item-comment .head-comment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.item-comment .title-comment {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
}
.item-comment .title-comment span {
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .72rem;
}
.item-comment .status-comment-buy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--ink2);
}
.item-comment .status-comment-buy img { width: 13px; height: 13px; }
.item-comment .status-comment-buy.green { color: #16A34A; }
.item-comment .type-writer {
  padding: 6px 12px;
  background: rgba(239, 57, 78, .08);
  color: var(--accent);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
}
.item-comment .body-comment { margin-top: 12px; color: var(--ink2); font-size: .95rem; }
.item-comment .footer-comment {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  color: var(--ink2);
  font-size: .82rem;
}
.item-comment.more-comment { display: none; }
.item-comment.more-comment a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-weight: 700;
}
.item-comment.more-comment img { width: 22px; }

.btn-more-comment { margin-top: 24px; text-align: center; }
.btn-more-comment span { color: var(--accent); font-weight: 700; cursor: pointer; }

.box-btn-comment {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.box-btn-comment h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink2);
}
.box-btn-comment h6 img { width: 18px; height: 18px; }
.btn-modal-comment {
  min-width: 155px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

/* ================================================================
   11 — PRODUCT DETAIL · DIALOGS & OVERLAYS
   ================================================================ */
.overlay-cat {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 32, 37, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay-cat.show { opacity: 1; pointer-events: auto; }

.holder-dialog-comment,
.holder-dialog-comment-list,
.holder-dialog-mobile-img,
.holder-dialog-video {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.holder-dialog-comment.show,
.holder-dialog-comment:target,
.holder-dialog-comment-list.show,
.holder-dialog-comment-list:target,
.holder-dialog-mobile-img.show,
.holder-dialog-mobile-img:target,
.holder-dialog-video.show { display: flex; }

.holder-dialog-comment.show .overlay-comment,
.holder-dialog-comment:target .overlay-comment,
.holder-dialog-comment-list.show .overlay-comment,
.holder-dialog-comment-list:target .overlay-comment,
.holder-dialog-mobile-img.show .overlay-mobile-img,
.holder-dialog-mobile-img:target .overlay-mobile-img { opacity: 1; pointer-events: auto; }
.overlay-video { z-index: 205; }
.overlay-comment,
.overlay-mobile-img { z-index: 205; }

.dialog-comment,
.dialog-comment-list,
.dialog-video {
  position: relative;
  z-index: 211;
  width: min(700px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  margin: 10px auto;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(30, 32, 37, .28);
}
.dialog-mobile-img {
  position: relative;
  z-index: 211;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

.head-dialog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
}
.head-dialog h3 { font-size: 1.1rem; font-weight: 800; }
.close-dialog {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg2);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.close-dialog img { width: 16px; height: 16px; }
.body-dialog { padding: 16px; }
.body-dialog video { width: 100%; border-radius: 12px; }

/* comment dialog body */
.item-product-dialog {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.item-product-dialog .img { width: 116px; height: 116px; flex-shrink: 0; }
.item-product-dialog .img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.item-product-dialog .title-rate h2 { font-size: .98rem; font-weight: 700; line-height: 1.7; }
.item-product-dialog .title-rate .rate { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: .85rem; }
.item-product-dialog .title-rate .rate img { width: 15px; }

.form-comment { width: 50%; min-width: 0; padding: 0 8px; }
.policy-comment {
  width: 50%;
  max-height: 335px;
  overflow-y: auto;
  padding: 0 8px;
  color: var(--ink2);
}
.policy-comment h3 { font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.policy-comment h5 { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.policy-comment p { font-size: .88rem; line-height: 1.9; }

.rate-product label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.box-range { position: relative; direction: ltr; text-align: left; margin-top: 12px; }
.slider-range { position: relative; height: 8px; background: var(--bg2); border-radius: 8px; opacity: .9; }
.slider-range .progress {
  position: absolute;
  inset-inline-start: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 8px;
}
.box-range input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 8px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.box-range input[type="range"]::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 50%;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
}
.box-range input[type="range"]::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}
.rating-circle { display: flex; justify-content: space-between; padding: 0 12px; margin-top: 6px; }
.rating-circle span { width: 3px; height: 7px; background: var(--line2); border-radius: 0 0 7px 7px; }
.rating-number {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: .85rem;
  color: var(--ink2);
}
.desc-comment { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.desc-comment label { font-weight: 700; font-size: .9rem; }
.desc-comment input,
.desc-comment textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 12px;
  font: inherit;
  color: inherit;
  outline: none;
}
.desc-comment textarea { min-height: 150px; resize: vertical; }
.btn-box-comment { display: flex; justify-content: center; margin-top: 20px; }
.btn-box-comment button {
  min-width: 155px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* comment list dialog rows */
.dialog-comment-list .list-comment { display: flex; flex-direction: column; list-style: none; }
.dialog-comment-list .item-comment {
  display: block;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 8px;
}
.dialog-comment-list .item-comment:last-of-type { border-bottom: none; }
.dialog-comment-list .item-comment .detail-comment { width: 100%; }

/* ================================================================
   12 — PRODUCT DETAIL · MOBILE STICKY ADD-TO-CART BAR
   ================================================================ */
.price-add-basket {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(30, 32, 37, .12);
}
.price-add-basket .action-add { display: flex; align-items: center; gap: 11px; }
.price-add-basket .btn-add-basket {
  min-width: 125px;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}
.price-add-basket .count-plus-minus { gap: 10px; padding: 6px 10px; }
.price-add-basket .action-add .link { display: flex; flex-direction: column; font-size: .82rem; color: var(--ink2); }
.price-add-basket .action-add .link a { color: var(--accent); font-weight: 700; }
.price-add-basket .price-product {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 0;
  border: none;
}
.price-add-basket .price-product .price-org { margin: 0; font-size: 1.05rem; color: var(--ink); }
.price-add-basket .price-product .price-discount { font-size: .82rem; }

/* ================================================================
   13 — PRODUCT DETAIL · BOTTOM CATEGORY STRIP
   ================================================================ */
.section-category-mobile { display: none; }
.section-category-mobile .title-section { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.category-list-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.category-list-container::-webkit-scrollbar { display: none; }
.category-list-container .category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.category-list-container .category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 32, 37, .12);
}
.category-list-container .category-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
}
.category-list-container .title-category { font-size: .95rem; font-weight: 700; text-align: center; }

/* ================================================================
   14 — PRODUCT CARD BUTTON (legacy markup inside .item-product)
   ================================================================ */
.item-product .p-add-text { width: 100%; margin-top: 10px; }

/* ================================================================
   15 — RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .image-summary-price { grid-template-columns: minmax(0, 1fr); }
  .image-summary-price > * { min-width: 0; }
  .col-img-product { position: static; }
  .col-summary-price .price-condition-return { display: none; }

  .price-add-basket { display: flex; }
  body:has(.price-add-basket) { padding-bottom: 84px; }

  .section-category-mobile {
    display: block;
    padding-block: 18px 26px;
    border-top: 1px solid var(--line);
  }

  .row-price-similar { margin-top: 28px; gap: 0; }
  .row-price-similar .col-price { flex-basis: auto; max-width: none; }

  .item-comment { width: 100%; }
  .item-comment .rate-comment { display: none; }
  .item-comment.more-comment { display: block; width: 100%; }
  .btn-more-comment { display: none; }

  .dialog-comment,
  .dialog-comment-list {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  .holder-dialog-comment,
  .holder-dialog-comment-list { align-items: flex-start; }
  .item-product-dialog { display: flex; }
  .form-comment { width: 100%; padding: 0; }
  .policy-comment { display: none; }
  .btn-box-comment button { width: 100%; }

  .dialog-mobile-img { border-radius: 0; }
}

@media (max-width: 768px) {
  .banner-bottom { grid-template-columns: 1fr; }
  .container-image-mobile .like-share { justify-content: flex-end; }
  .col-title-row { display: none; }
  .col-specs-row { width: 100%; }
  .description-product .show-more { display: block; text-align: center; }
}
