/* Product single - matched to tinhdaudua_sp.html demo */

:root {
  --mint-2: #f4fff6;
  --danger: #dd7c22;
  --soft-card: rgba(255, 255, 255, .76);
  --soft-line: rgba(234, 223, 206, .72);
  --soft-glow: 0 24px 70px rgba(23, 116, 58, .08), 0 12px 34px rgba(60, 43, 31, .045);
}

.breadcrumb {
  padding: 18px 0 14px;
  color: #7b6c5c;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb span {
  color: var(--green);
  margin: 0 6px;
}

.product-shell {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 28px;
  align-items: stretch;
  width: min(1500px, calc(100% - 48px));
  max-width: none;
  padding-inline: 0;
  margin-top: 28px;
}

.product-nav .wrap,
.section.wrap {
  width: min(1500px, calc(100% - 48px));
  max-width: none;
  padding-inline: 0;
}

.gallery-card,
.buy-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 250, 240, .72));
  border: 1px solid var(--soft-line);
  border-radius: 34px;
  box-shadow: var(--soft-glow);
  overflow: hidden;
  height: 100%;
  backdrop-filter: blur(10px);
}

.gallery-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.gallery-main {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e8, #eefbf1);
  height: clamp(420px, 36vw, 560px);
  display: grid;
  place-items: center;
}

.gallery-main img[data-product-lightbox-trigger] {
  cursor: zoom-in;
}

.gallery-main img[data-product-lightbox-trigger]:focus-visible,
.thumb:focus-visible {
  outline: 3px solid rgba(23, 116, 58, .32);
  outline-offset: 4px;
}

.gallery-main::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  left: -100px;
  top: -120px;
}

.gallery-main::after {
  content: "BEST SELLER";
  position: absolute;
  top: 22px;
  left: 22px;
  background: linear-gradient(135deg, var(--gold), #edbd55);
  color: #fff;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}

.gallery-main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.gallery-float {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(234, 223, 206, .9);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
  font-weight: 900;
  color: var(--green);
  max-width: 220px;
}

.gallery-float small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.4;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.thumb {
  aspect-ratio: 1.12 / 1;
  height: auto;
  min-height: 112px;
  border: 1px solid var(--soft-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 250, 241, .86), rgba(244, 255, 246, .74));
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
}

.thumb.active,
.thumb:hover {
  border-color: var(--green);
  box-shadow: 0 12px 26px rgba(23, 116, 58, .12);
  transform: translateY(-2px);
}

.thumb img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(48, 30, 14, .1));
}

.gallery-main.is-image-missing::before,
.thumb.is-image-missing::before {
  content: "Ảnh sản phẩm";
  position: relative;
  z-index: 2;
  color: var(--green);
  font-weight: 900;
  border: 1px dashed #b9d8c0;
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: 10px 14px;
}

.gallery-main.is-image-missing img,
.thumb.is-image-missing img {
  display: none;
}

.gallery-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery-support div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 12px;
  text-align: center;
}

.gallery-support b {
  display: block;
  color: var(--green);
  font-size: 13px;
  margin-bottom: 4px;
}

.gallery-support span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.gallery-note {
  margin-top: 12px;
  border: 1px dashed #b9d8c0;
  background: #f7fff8;
  color: #5f554b;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.gallery-note b {
  color: var(--green);
}

.buy-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
}

.pill.gold {
  background: #fff3d3;
  color: #a76d13;
}

.buy-card h1 {
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: -1.7px;
  margin: 0 0 12px;
  color: var(--brown);
}

.subline {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.review-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.stars {
  color: #f2a91d;
  letter-spacing: 1px;
}

.review-line a {
  color: var(--green);
  font-weight: 900;
}

.price-box {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8e8, #f2fff4);
  border: 1px solid var(--line);
  margin: 18px 0;
}

.price {
  font-size: 34px;
  color: var(--green);
  font-weight: 950;
  letter-spacing: -1px;
}

.old {
  text-decoration: line-through;
  color: #a89b8d;
  font-weight: 700;
}

.save {
  background: #fff;
  border: 1px solid #f1ddaa;
  color: #a76d13;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.deal {
  font-size: 13px;
  color: #6c5f51;
  width: 100%;
  font-weight: 700;
}

.deal b {
  color: var(--danger);
}

.option-block {
  margin: 20px 0;
}

.option-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.option-title small {
  color: var(--muted);
  font-weight: 700;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 850;
  color: #51463d;
  transition: .25s;
}

.opt.active,
.opt:hover {
  border-color: var(--green);
  background: var(--mint-2);
  color: var(--green);
  box-shadow: 0 12px 24px rgba(23, 116, 58, .09);
}

.purchase-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, .86fr);
  gap: 12px;
  margin: 22px 0 0;
}

.qty {
  height: 54px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.qty button {
  border: none;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  color: var(--green);
  cursor: pointer;
}

.qty input {
  border: none;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 950;
  cursor: pointer;
  transition: .25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #2ca84f);
  color: white;
  box-shadow: 0 16px 34px rgba(23, 116, 58, .22);
}

.btn-dark {
  background: var(--brown);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-2px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.trust {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.trust b {
  display: block;
  color: var(--green);
  font-size: 13px;
}

.trust span {
  font-size: 12px;
  color: var(--muted);
}

.ship-box {
  margin-top: 18px;
  border: 1px dashed #b9d8c0;
  background: #f7fff8;
  border-radius: 20px;
  padding: 16px;
  color: #584d43;
  line-height: 1.65;
  font-size: 14px;
}

.ship-box b {
  color: var(--green);
}

.product-nav {
  margin: 34px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 79px;
  z-index: 35;
}

.product-nav .wrap {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-block: 10px;
}

.product-nav a {
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 900;
  color: #5a4f45;
}

.product-nav a.active,
.product-nav a:hover {
  background: var(--green);
  color: #fff;
}

.section {
  padding: 42px 0;
}

.section h2 {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--brown);
  margin: 0 0 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.content-card p,
.entry-copy {
  color: var(--muted);
  line-height: 1.85;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.feature i {
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 950;
  color: var(--green);
}

.feature b {
  display: block;
  color: var(--brown);
}

.feature span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 3px;
}

.empty-state {
  width: 100%;
  border: 1px dashed rgba(23, 116, 58, .22);
  border-radius: 18px;
  background: rgba(247, 255, 248, .74);
  color: #6b5d52;
  font-weight: 750;
  line-height: 1.6;
  padding: 18px 20px;
}

.image-card {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 380px;
  box-shadow: var(--shadow);
  background: #eee;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.usage-how {
  align-items: stretch;
}

.usage-how .image-card,
.usage-how .content-card {
  height: 100%;
}

.usage-how .image-card {
  aspect-ratio: auto;
  max-height: none;
  min-height: 100%;
}

.usage-how .image-card img {
  object-position: center;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.spec b {
  display: block;
  color: var(--green);
  font-size: 22px;
  margin-bottom: 6px;
}

.spec span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green), #35aa58);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.review-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
}

.score-card {
  background: linear-gradient(135deg, #fff8e8, #eaffef);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.score {
  font-size: 64px;
  font-weight: 950;
  color: var(--green);
  line-height: 1;
}

.score-card .stars {
  font-size: 22px;
  margin: 10px 0;
}

.bar-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: 40px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.bar {
  height: 9px;
  border-radius: 99px;
  background: #efe6d8;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #35aa58);
  border-radius: 99px;
}

.comment {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.avatar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 950;
  flex: 0 0 42px;
}

.verified-badge {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.verified-badge.not-verified {
  color: #a06912;
}

.comment p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.review-notice {
  border: 1px solid #f0c9c9;
  background: #fff5f4;
  color: #8d332b;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  margin-bottom: 18px;
}

.review-notice.success {
  border-color: #b9d8c0;
  background: #f1fff4;
  color: var(--green);
}

.section-head .btn-review-open {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.review-form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin-bottom: 22px;
}

.product-review-form h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.review-tags button {
  border: 1px solid #7f7f7f;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  color: #696969;
  font-size: 15px;
  cursor: pointer;
}

.review-tags button.active {
  color: #fff;
  border-color: #079fe3;
  background: #079fe3;
}

.product-review-form textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #ddd;
  border-radius: 6px 6px 0 0;
  padding: 14px;
  resize: vertical;
  font-size: 16px;
}

.review-tools {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f5f5f5;
  padding: 12px;
  color: #079fe3;
  font-weight: 800;
  margin-bottom: 24px;
}

.review-tools em {
  margin-left: auto;
  color: #999;
  font-style: normal;
  font-weight: 500;
}

.review-stars-field {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  margin: 18px 0 22px;
}

.review-stars-field > label {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.6;
}

.review-stars-field small {
  display: block;
}

.star-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.star-options label {
  display: grid;
  place-items: center;
  gap: 8px;
  cursor: pointer;
  color: #969696;
  text-align: center;
}

.star-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-options span {
  color: #ff8a1d;
  font-size: 34px;
  line-height: 1;
}

.star-options input:checked + span {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 10px rgba(255, 138, 29, .25));
}

.review-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.review-fields input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 13px 12px;
  font-size: 15px;
}

.review-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.product-review-form .btn-primary {
  min-width: 220px;
}

.section.wrap.faq {
  display: grid;
  gap: 14px;
  width: min(1300px, calc(100% - 48px));
  max-width: 1300px;
  padding-inline: 0;
  margin: 0 auto 54px;
  padding: 76px 0 84px;
}

.section.wrap.faq h2 {
  max-width: 820px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.faq-item {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 211, 185, .82);
  border-radius: 18px;
  padding: 0;
  margin-top: 0;
  box-shadow: 0 18px 46px rgba(23, 116, 58, .055);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  color: #332419;
  font: inherit;
  font-weight: 950;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  padding: 22px 28px;
}

.faq-q span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #e7f6ec;
  color: #08723a;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.faq-a {
  padding: 0 28px 24px;
  color: #6b5d52;
  font-size: 15px;
  line-height: 1.8;
}

.faq-a p {
  margin: 0;
}

.faq-item.active {
  border-color: rgba(226, 211, 185, .82);
  background: rgba(255, 255, 255, .92);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.view {
  color: var(--green);
  font-weight: 950;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .06);
  transition: .25s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(23, 116, 58, .14);
}

.heart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.product-img {
  height: 190px;
  border-radius: 18px;
  background: #faf6ed;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 16px 0 8px;
}

.product .p-price {
  font-weight: 950;
  color: var(--green);
  margin-bottom: 12px;
}

.product .btn {
  width: 100%;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 999px;
}

.quick-buy-open {
  overflow: hidden;
}

.product-lightbox-open {
  overflow: hidden;
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 72px 32px 32px;
}

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 18, 14, .72);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.product-lightbox-frame {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(920px, calc(100vw - 96px));
  max-height: calc(100vh - 132px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(234, 223, 206, .8);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
  padding: 14px;
}

.product-lightbox-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 164px);
  object-fit: contain;
  border-radius: 18px;
}

.product-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #fff;
  color: var(--brown);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.product-lightbox-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .7);
  outline-offset: 4px;
}

.quick-buy-modal[hidden],
.cart-toast[hidden] {
  display: none;
}

.quick-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quick-buy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 24, 17, .56);
  backdrop-filter: blur(6px);
}

.quick-buy-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(35, 24, 14, .28);
  padding: 28px;
}

.quick-buy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quick-buy-head {
  padding-right: 50px;
  margin-bottom: 18px;
}

.quick-buy-head h2 {
  margin: 12px 0 8px;
  color: var(--brown);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.8px;
}

.quick-buy-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.quick-buy-product {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8e8, #f4fff6);
  margin-bottom: 16px;
}

.quick-buy-thumb {
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.quick-buy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-buy-product b,
.quick-buy-product span {
  display: block;
}

.quick-buy-product b {
  color: var(--brown);
  font-size: 18px;
}

.quick-buy-product span {
  color: var(--green);
  font-weight: 950;
  margin-top: 5px;
}

.quick-buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-buy-grid label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-weight: 850;
}

.quick-buy-grid .full {
  grid-column: 1 / -1;
}

.quick-buy-grid input,
.quick-buy-grid select,
.quick-buy-grid textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--brown);
  padding: 0 16px;
  font: inherit;
  outline: none;
}

.quick-buy-grid textarea {
  min-height: 96px;
  padding: 14px 16px;
  resize: vertical;
}

.quick-buy-grid input:focus,
.quick-buy-grid select:focus,
.quick-buy-grid textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 116, 58, .1);
}

.quick-buy-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #f6fff7;
  border: 1px dashed #b8dcbf;
}

.quick-buy-bottom b,
.quick-buy-bottom span {
  display: block;
}

.quick-buy-bottom b {
  color: var(--green);
  margin-bottom: 4px;
}

.quick-buy-bottom span {
  color: var(--muted);
  line-height: 1.45;
}

.quick-buy-bottom .btn {
  min-width: 190px;
  border: 0;
}

.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 9998;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 18px 44px rgba(35, 24, 14, .24);
  font-weight: 850;
}

.cart-toast span {
  padding: 0 4px;
}

.cart-toast a,
.cart-toast button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  white-space: nowrap;
}

.cart-toast button {
  border: 1px solid var(--line);
  background: #fff8e8;
  color: var(--green);
  cursor: pointer;
}

.cart-toast a {
  background: var(--green);
  color: #fff;
}

/* Soft polish pass for product detail cards. */
.gallery-support div,
.gallery-note,
.price-box,
.opt,
.qty,
.trust,
.ship-box,
.content-card,
.image-card,
.spec,
.step,
.review-form-panel,
.score-card,
.comment,
.product {
  background-color: var(--soft-card);
  border-color: var(--soft-line);
  box-shadow: var(--soft-glow);
}

.gallery-support div,
.trust,
.spec,
.step,
.comment,
.product,
.content-card,
.image-card {
  backdrop-filter: blur(8px);
}

.gallery-note,
.ship-box {
  background: linear-gradient(145deg, rgba(247, 255, 248, .86), rgba(255, 255, 255, .72));
}

.price-box {
  background: linear-gradient(135deg, rgba(255, 248, 232, .88), rgba(242, 255, 244, .82));
}

.sticky-mobile {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
}

.sticky-mobile .inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  align-items: center;
}

.sticky-mobile b {
  color: var(--green);
  display: block;
}

.sticky-mobile small {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .product-shell,
  .two-col,
  .review-wrap {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: 440px;
  }

  .spec-grid,
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide {
    grid-template-columns: 1fr;
  }

  .product-nav {
    top: 78px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .product-shell {
    width: calc(100% - 24px);
    gap: 16px;
    margin-top: 18px;
  }

  .product-nav .wrap,
  .section.wrap {
    width: calc(100% - 24px);
    padding-inline: 0;
  }

  .gallery-card,
  .buy-card {
    border-radius: 24px;
    padding: 16px;
  }

  .gallery-main {
    height: 300px;
    border-radius: 20px;
  }

  .gallery-main img {
    width: 100%;
    height: 100%;
  }

  .gallery-float {
    display: none;
  }

  .thumb {
    min-width: 86px;
    width: 86px;
    min-height: 78px;
    aspect-ratio: 1 / 1;
    flex: 0 0 86px;
  }

  .thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .thumbs::-webkit-scrollbar {
    height: 0;
  }

  .thumb img {
    width: 84%;
    height: 84%;
  }

  .thumb.active,
  .thumb:hover {
    transform: none;
    scroll-snap-align: start;
  }

  .gallery-support {
    grid-template-columns: 1fr;
  }

  .buy-card h1 {
    font-size: 31px;
  }

  .price {
    font-size: 28px;
  }

  .purchase-row,
  .trust-grid,
  .spec-grid,
  .products,
  .review-fields,
  .review-stars-field {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }

  .section.wrap.faq {
    width: calc(100% - 24px);
    margin-bottom: 42px;
    padding: 54px 0 60px;
  }

  .section h2 {
    font-size: 30px;
  }

  .faq h2 {
    font-size: 31px;
  }

  .faq-q {
    min-height: 64px;
    padding: 18px;
    font-size: 15px;
  }

  .faq-q span {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .faq-a {
    padding: 0 18px 20px;
    font-size: 14px;
  }

  .content-card {
    padding: 22px;
    border-radius: 22px;
  }

  .image-card {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .usage-how .image-card {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .product-nav {
    display: none;
  }

  .review-tools {
    flex-wrap: wrap;
    gap: 12px;
  }

  .review-tools em {
    margin-left: 0;
    width: 100%;
  }

  .quick-buy-modal {
    align-items: end;
    padding: 12px;
  }

  .product-lightbox {
    padding: 64px 14px 18px;
  }

  .product-lightbox-frame {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    border-radius: 22px;
    padding: 10px;
  }

  .product-lightbox-frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 132px);
    border-radius: 16px;
  }

  .product-lightbox-close {
    top: -14px;
    right: -8px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .quick-buy-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 24px;
  }

  .quick-buy-head {
    padding-right: 42px;
  }

  .quick-buy-head h2 {
    font-size: 27px;
  }

  .quick-buy-product,
  .quick-buy-grid,
  .quick-buy-bottom {
    grid-template-columns: 1fr;
  }

  .quick-buy-product {
    text-align: center;
  }

  .quick-buy-thumb {
    width: 96px;
    margin: 0 auto;
  }

  .quick-buy-bottom .btn {
    width: 100%;
  }

  .cart-toast {
    left: 14px;
    right: 14px;
    bottom: 92px;
    grid-template-columns: 1fr;
    border-radius: 18px;
    text-align: center;
  }

  .star-options {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .sticky-mobile {
    display: block;
  }
}
