.product-document { min-height: 100vh; }
.detail-back { height: 36px; font-size: 12px; }
.detail-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; color: #949494; font-size: 12px; animation: rise-in .45s ease both; }
.breadcrumbs a { color: #acacac; text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: #e9e9e9; }
.breadcrumbs span { color: #676767; }
.breadcrumbs strong { color: #ebebeb; font-weight: 500; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.12fr); align-items: stretch; gap: 22px; }
.detail-left { display: grid; align-content: start; gap: 16px; }
.detail-image-card, .detail-card { border: 1px solid #292825; border-radius: 13px; background: #111110ed; box-shadow: 0 16px 50px #0004; }
.detail-image-card { position: relative; display: block; width: 100%; aspect-ratio: 1.15 / 1; overflow: hidden; padding: 0; cursor: zoom-in; animation: rise-in .58s .03s ease both; }
.detail-image-card::before { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 6px 9px; border: 1px solid #ffffff28; border-radius: 6px; background: #0a0a0ae8; color: #f2f2f2; content: "RAVEN STORE"; font: 600 9px "Prompt", sans-serif; letter-spacing: .14em; pointer-events: none; }
.detail-image-card::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0505059c); content: ""; opacity: 0; transition: opacity .25s; }
.detail-image-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.detail-image-card:hover img { transform: scale(1.045); }
.detail-image-card:hover::after { opacity: 1; }
.image-expand { position: absolute; z-index: 1; right: 14px; bottom: 13px; color: #f6f6f6; font-size: 11px; opacity: 0; transform: translateY(5px); transition: opacity .22s, transform .22s; }
.detail-image-card:hover .image-expand { opacity: 1; transform: none; }
.detail-card { padding: 21px; }
.product-facts { animation: rise-in .58s .12s ease both; }
.product-facts h2, .detail-description h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.fact-icon { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border-radius: 7px; background: #232323; color: #cccccc; }
.fact-icon .ui-icon { width: 15px; height: 15px; }
.product-facts dl { margin: 0; }
.product-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #292825; font-size: 12px; }
.product-facts dt { color: #a2a2a2; }
.product-facts dd { margin: 0; color: #e7e7e7; text-align: right; }
.detail-stock { display: inline-flex; padding: 3px 8px; border: 1px solid #216d52; border-radius: 999px; background: #0e3026; color: #61d1a5; font-size: 10px; }
.detail-stock.is-out { border-color: #6a383e; background: #321a1d; color: #f3919a; }
.detail-stock.is-low { border-color: #6b5129; background: #2b2314; color: #e3b05d; }
.detail-summary { display: flex; flex-direction: column; min-height: 100%; padding: 27px 28px; animation: rise-in .58s .1s ease both; }
.detail-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-heading-row h1 { margin: 9px 0 12px; font: 600 clamp(24px, 3vw, 34px)/1.25 "Prompt", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.035em; }
.favorite-button { display: flex; width: 43px; height: 43px; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin-top: 2px; border: 1px solid #3c3c3c; border-radius: 9px; background: #181818; color: #c6c6c6; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.favorite-button .favorite-mark { display: grid; place-items: center; line-height: 1; }
.favorite-button .favorite-mark .ui-icon { width: 18px; height: 18px; }
.favorite-button small { font: 9px "IBM Plex Sans Thai", sans-serif; }
.favorite-button:hover { border-color: #9e9e9e; background: #262626; }
.favorite-button.is-saved { border-color: #7b7b7b; background: #242424; color: #cacaca; }
.favorite-button.is-saved .favorite-mark .ui-icon { fill: currentColor; }
.product-eyebrow { color: #c2c2c2; font-size: 9px; font-weight: 600; letter-spacing: .2em; }
.detail-summary h1 { margin: 9px 0 12px; font: 600 clamp(24px, 3vw, 34px)/1.25 "Prompt", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.035em; }
.detail-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 6px 10px; border: 1px solid #255f4b; border-radius: 7px; background: #10261f; color: #63d6a8; font-size: 11px; }
.detail-status > i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.detail-status.is-out { border-color: #63383c; background: #291719; color: #ed9299; }
.detail-status.is-low { border-color: #66502a; background: #292313; color: #e3b05d; }
.detail-description { margin-top: 21px; padding: 16px; border: 1px solid #2a2928; border-radius: 9px; background: #181817; }
.detail-description h2 { margin-bottom: 8px; font-size: 12px; }
.detail-description p { margin: 0; color: #bcbcbc; font-size: 12px; line-height: 1.8; }
.detail-description .description-note { margin-top: 8px; color: #909090; font-size: 11px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding: 15px 0 13px; border-top: 1px solid #2c2c2c; color: #acacac; font-size: 12px; }
.price-row strong { color: #f3f3f3; font: 600 25px "Prompt", sans-serif; }
.delivery-note { margin: 0 0 17px; color: #a4a4a4; font-size: 11px; }
.delivery-note span { margin-right: 5px; color: #cacaca; }
.total-row { display: flex; justify-content: space-between; padding: 14px; border: 1px solid #2c2c2c; border-radius: 8px; background: #191819; color: #cdcdcd; font-size: 12px; }
.total-row strong { color: #e8e8e8; font: 600 16px "Prompt", sans-serif; }
.purchase-row { display: flex; gap: 10px; margin-top: 12px; }
.quantity-control { display: inline-flex; height: 42px; align-items: center; border: 1px solid #3c3c3c; border-radius: 7px; background: #151515; }
.quantity-control button { width: 36px; height: 100%; border: 0; background: transparent; color: #dcdcdc; cursor: pointer; font-size: 17px; transition: background .2s; }
.quantity-control button:hover { background: #2c2c2c; }
.quantity-control output { min-width: 23px; text-align: center; font-size: 12px; }
.purchase-button { display: flex; min-width: 0; height: 42px; flex: 1; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; background: #c0c0c0; color: #161616; cursor: pointer; font: 600 12px "IBM Plex Sans Thai", sans-serif; transition: transform .18s, background .2s, box-shadow .2s; }
.purchase-button:hover { transform: translateY(-1px); background: #d4d4d4; box-shadow: 0 7px 22px #9c9c9c3d; }
.purchase-button:disabled { background: #383838; color: #8b8b8b; cursor: not-allowed; transform: none; box-shadow: none; }
.quantity-control button:disabled { color: #5c5c5c; cursor: not-allowed; }
.quantity-control button:disabled:hover { background: transparent; }
.quantity-control output, .total-row strong { display: inline-block; }
.value-pop { animation: value-pop .26s ease; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #292825; color: #9d9d9d; font-size: 11px; }
.share-row > div { display: flex; gap: 7px; }
.share-row button { padding: 7px 11px; border: 1px solid #3c3c3c; border-radius: 6px; background: #181818; color: #e2e2e2; cursor: pointer; font: inherit; transition: background .2s, border-color .2s; }
.share-row button:hover { border-color: #919191; background: #262626; }
.product-tabs { margin-top: 22px; overflow: hidden; border: 1px solid #292825; border-radius: 11px; background: #111110ed; box-shadow: 0 14px 44px #0003; }
.product-tab-list { display: flex; gap: 5px; padding: 9px 12px 0; border-bottom: 1px solid #292825; }
.product-tab { position: relative; padding: 11px 14px; border: 0; border-radius: 7px 7px 0 0; background: transparent; color: #989898; cursor: pointer; font: 500 12px "IBM Plex Sans Thai", sans-serif; transition: color .2s, background .2s; }
.product-tab:hover { background: #1c1c1c; color: #eaeaea; }
.product-tab.is-active { background: #222222; color: #e8e8e8; }
.product-tab.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: #c0c0c0; content: ""; }
.product-tab-panel { min-height: 118px; padding: 20px 22px; }
.product-tab-panel[hidden] { display: none; }
.product-tab-panel h2 { margin: 0 0 7px; font: 500 15px "Prompt", sans-serif; }
.product-tab-panel p { max-width: 760px; margin: 0; color: #acacac; font-size: 12px; line-height: 1.8; }
.related-section { margin-top: 58px; }
.detail-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.detail-section-heading h2 { margin: 5px 0 0; font: 600 21px "Prompt", sans-serif; }
.detail-section-heading > a { color: #d0d0d0; text-decoration: none; font-size: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { overflow: hidden; border: 1px solid #292825; border-radius: 10px; background: #111110ed; color: inherit; text-decoration: none; transition: transform .24s, border-color .24s, box-shadow .24s; animation: rise-in .45s ease both; }
.related-card:hover { transform: translateY(-4px); border-color: #7e7e7e; box-shadow: 0 15px 35px #0005; }
.related-card img { display: block; width: 100%; height: 138px; object-fit: cover; transition: transform .45s; }
.related-card:hover img { transform: scale(1.04); }
.related-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.related-info strong { font-size: 12px; font-weight: 500; }
.related-info span { color: #d8d8d8; font: 600 13px "Prompt", sans-serif; white-space: nowrap; }
.detail-footer { display: flex; width: min(1120px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 20px 0 34px; border-top: 1px solid #292825; }
.detail-footer > span { color: #888888; font-size: 10px; }
.image-viewer { position: relative; width: min(1000px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; overflow: visible; border: 1px solid #464646; border-radius: 12px; background: #0c0c0c; }
.image-viewer[open] { animation: viewer-enter .32s cubic-bezier(.2,.8,.2,1) both; }
.image-viewer::backdrop { background: #000d; backdrop-filter: blur(9px); }
.image-viewer img { display: block; width: 100%; max-height: 85vh; border-radius: 12px; object-fit: contain; }
.viewer-close { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #ffffff44; border-radius: 50%; background: #0a0a0ad9; color: white; cursor: pointer; }
.viewer-close .ui-icon { width: 18px; height: 18px; }
.pulse-container { position: relative; overflow: hidden; }
.product-document .toast { z-index: 70; }
@keyframes viewer-enter { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 780px) {
  .detail-back, .product-document .desktop-nav { display: none; }
  .detail-shell { width: calc(100% - 24px); padding-top: 18px; }
  .breadcrumbs { gap: 7px; margin-bottom: 15px; font-size: 10px; }
  .detail-layout { grid-template-columns: 1fr; gap: 11px; }
  .detail-left { gap: 10px; }
  .detail-image-card { aspect-ratio: 1.55 / 1; }
  .detail-card { padding: 16px; border-radius: 10px; }
  .detail-summary { min-height: 0; padding: 18px 16px; }
  .detail-heading-row h1 { font-size: 25px; }
  .detail-description { margin-top: 16px; padding: 13px; }
  .price-row strong { font-size: 22px; }
  .related-section { margin-top: 40px; }
  .product-tabs { margin-top: 13px; }
  .product-tab-list { gap: 1px; padding-inline: 7px; }
  .product-tab { padding: 10px 9px; font-size: 11px; }
  .product-tab-panel { min-height: 108px; padding: 16px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .related-card img { height: 112px; }
  .related-info { align-items: flex-start; flex-direction: column; gap: 4px; padding: 10px; }
  .related-info strong { font-size: 11px; }
  .detail-footer { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .purchase-row { gap: 6px; }
  .quantity-control button { width: 31px; }
  .purchase-button { font-size: 11px; }
  .breadcrumbs { font-size: 9px; }
}

@media (max-width: 640px) {
  .coupon-input-row { flex-direction: column; align-items: stretch; }
  .coupon-actions { justify-content: space-between; }
  .variant-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

html[data-theme="light"] .breadcrumbs { color: #6e6e6e; }
html[data-theme="light"] .breadcrumbs a { color: #5f5f5f; }
html[data-theme="light"] .breadcrumbs a:hover, html[data-theme="light"] .breadcrumbs strong { color: #2f2f2f; }
html[data-theme="light"] .breadcrumbs span { color: #9c9c9c; }
html[data-theme="light"] .detail-image-card, html[data-theme="light"] .detail-card, html[data-theme="light"] .product-tabs, html[data-theme="light"] .related-card { border-color: #e2e2e2; background-color: #fff; box-shadow: 0 16px 50px #2d2d2d0b; }
html[data-theme="light"] .product-facts h2, html[data-theme="light"] .detail-description h2, html[data-theme="light"] .detail-heading-row h1, html[data-theme="light"] .product-tab-panel h2 { color: #2f2f2f; }
html[data-theme="light"] .product-facts dl > div { border-top-color: #e8e8e8; }
html[data-theme="light"] .product-facts dt, html[data-theme="light"] .price-row > span, html[data-theme="light"] .total-row > span, html[data-theme="light"] .share-row > span { color: #6d6d6d; }
html[data-theme="light"] .product-facts dd, html[data-theme="light"] .price-row strong, html[data-theme="light"] .total-row strong { color: #323232; }
html[data-theme="light"] .detail-description { border-color: #e5e5e5; background: #f8f8f8; }
html[data-theme="light"] .detail-description p { color: #565656; }
html[data-theme="light"] .detail-description .description-note, html[data-theme="light"] .delivery-note { color: #6b6b6b; }
html[data-theme="light"] .price-row, html[data-theme="light"] .total-row, html[data-theme="light"] .share-row { border-top-color: #e8e8e8; }
html[data-theme="light"] .total-row { border-color: #e2e2e2; background: #f4f4f4; }
html[data-theme="light"] .quantity-control { border-color: #dcdcdc; background: #f9f9f9; }
html[data-theme="light"] .quantity-control button { color: #3f3f3f; }
html[data-theme="light"] .quantity-control output { color: #2b2b2b; }
html[data-theme="light"] .favorite-button { border-color: #e0e0e0; background: #f8f8f8; color: #5a5a5a; }
html[data-theme="light"] .favorite-button.is-saved { border-color: #c7c7c7; background: #fff3f5; color: #ac5267; }
html[data-theme="light"] .share-row button { border-color: #dcdcdc; background: #f9f9f9; color: #565656; }
html[data-theme="light"] .share-row button:hover { border-color: #ababab; background: #f2f2f2; color: #373737; }
html[data-theme="light"] .product-tab-list { border-bottom-color: #e4e4e4; }
html[data-theme="light"] .product-tab { color: #6e6e6e; }
html[data-theme="light"] .product-tab:hover { background: #f0f0f0; color: #222222; }
html[data-theme="light"] .product-tab.is-active { background: #ededed; color: #222222; }
html[data-theme="light"] .product-tab.is-active::after { background: #333333; }
html[data-theme="light"] .product-tab-panel { background: #fff; }
html[data-theme="light"] .product-tab-panel p { color: #5f5f5f; }
html[data-theme="light"] .detail-section-heading h2, html[data-theme="light"] .related-info strong { color: #2f2f2f; }
html[data-theme="light"] .detail-section-heading > a { color: #5e5e5e; }
html[data-theme="light"] .related-info span { color: #585858; }
html[data-theme="light"] .detail-footer { border-top-color: #e2e2e2; }
html[data-theme="light"] .detail-footer > span { color: #6e6e6e; }
html[data-theme="light"] .product-error p { color: #606060; }
html[data-theme="light"] .route-transition { background: radial-gradient(ellipse at 50% 100%, #e8e8e8, #fbfbfb 62%, #f6f6f6); }
html[data-theme="light"] .route-transition::after { color: #363636; }

/* ---------- Monochrome product page ---------- */
.purchase-button { background: var(--blue); color: var(--bg); }
.purchase-button:hover { background: #ffffff; color: #0b0b0b; box-shadow: none; }
.purchase-button:disabled { background: #343434; color: #8f8f8f; }
.favorite-button.is-saved { border-color: #7d7d7d; background: #232323; color: #ececec; }
html[data-theme="light"] .purchase-button:not(:disabled) { background: #111111; color: #f7f7f7; }
html[data-theme="light"] .purchase-button:not(:disabled):hover { background: #2c2c2c; color: #f7f7f7; }
html[data-theme="light"] .favorite-button.is-saved { border-color: #888888; background: #eeeeee; color: #222222; }

/* ---------- Credit purchase ---------- */
.credit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #151515;
  font-size: 11px;
}
.credit-label { color: #a3a3a3; }
.credit-row strong { color: #f2f2f2; font: 600 13px "Prompt", sans-serif; }
.credit-link { margin-left: auto; color: #e8e8e8; text-decoration: none; white-space: nowrap; }
.credit-link:hover { text-decoration: underline; }
.credit-row.is-low { border-color: #5b3b3b; background: #1d1515; }
.credit-row.is-low .credit-label,
.credit-row.is-low strong { color: #f0a0a6; }
.product-feedback {
  min-height: 16px;
  margin: 8px 0 0;
  color: #b8b8b8;
  font-size: 11px;
  line-height: 1.6;
}
.product-feedback.is-error { color: #f0a0a6; }
.product-feedback.is-success { color: #9fe0bb; }
.product-receipt {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #171717;
}
.product-receipt[hidden] { display: none; }
.product-receipt h2 { margin: 0; font: 600 16px/1.3 "Prompt", sans-serif; }
.product-receipt p { margin: 0; color: #b8b8b8; font-size: 11px; line-height: 1.6; }
.product-receipt p strong { color: #f2f2f2; }
.product-receipt .button { justify-self: start; margin-top: 4px; }
.credit-hint { margin: 10px 0 0; color: #8f8f8f; font-size: 10px; }
.credit-hint a { color: #e8e8e8; }
.guide-next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme="light"] .credit-row { border-color: #dedede; background: #f7f7f7; }
html[data-theme="light"] .credit-row strong { color: #202020; }
html[data-theme="light"] .credit-link { color: #202020; }
html[data-theme="light"] .credit-row.is-low { border-color: #e4c4c4; background: #fdf5f5; }
html[data-theme="light"] .credit-row.is-low .credit-label,
html[data-theme="light"] .credit-row.is-low strong { color: #9b2c35; }
html[data-theme="light"] .product-feedback { color: #5f5f5f; }
html[data-theme="light"] .product-feedback.is-error { color: #a12b35; }
html[data-theme="light"] .product-feedback.is-success { color: #1f6b42; }
html[data-theme="light"] .product-receipt { border-color: #dedede; background: #fafafa; }
html[data-theme="light"] .product-receipt h2,
html[data-theme="light"] .product-receipt p strong { color: #222222; }
html[data-theme="light"] .product-receipt p { color: #5f5f5f; }
html[data-theme="light"] .credit-hint { color: #707070; }
html[data-theme="light"] .credit-hint a { color: #222222; }

/* ---------- Product options and video ---------- */
.product-video-card { padding: 16px; animation: rise-in .58s .08s ease both; }
.product-video-card[hidden] { display: none; }
.product-video-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; font-size: 13px; font-weight: 600; }
.product-video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #333333;
  border-radius: 9px;
  background: #0d0d0d;
  color: #f4f4f4;
  cursor: pointer;
}
.product-video-facade[hidden] { display: none; }
.product-video-facade img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity .25s, transform .5s; }
.product-video-facade:hover img { opacity: 1; transform: scale(1.02); }
.product-video-playmark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
  background: #0a0a0ad9;
  color: #ffffff;
  font-size: 17px;
  transform: translate(-50%, -50%);
  transition: background .2s, transform .2s;
}
.product-video-facade:hover .product-video-playmark { background: #242424e6; transform: translate(-50%, -50%) scale(1.06); }
.product-video-caption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #080808d6;
  color: #ededed;
  font-size: 10px;
}
.product-video-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid #333333; border-radius: 9px; background: #000000; aspect-ratio: 16 / 9; }
.product-video-frame[hidden] { display: none; }
.product-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.variant-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid #2c2c2c; }
.variant-section[hidden] { display: none; }
.variant-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #a8a8a8; font-size: 11px; }
.variant-heading small { color: #e3e3e3; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.variant-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #373737;
  border-radius: 8px;
  background: #161616;
  color: #dddddd;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .2s, background .2s, color .2s, transform .16s;
}
.variant-option:hover { border-color: #8b8b8b; background: #1d1d1d; }
.variant-option:focus-visible { outline: 2px solid #cfcfcf; outline-offset: 2px; }
.variant-option.is-selected { border-color: #d6d6d6; background: #262626; color: #ffffff; }
.variant-option:disabled { border-color: #2b2b2b; background: #121212; color: #6b6b6b; cursor: not-allowed; opacity: .72; }
.variant-option-label { font-size: 12px; font-weight: 500; line-height: 1.35; }
.variant-option-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.variant-option-meta strong { font: 600 13px "Prompt", sans-serif; }
.variant-option-meta small { color: #999999; font-size: 9px; white-space: nowrap; }
.variant-option-meta small.is-out { color: #e59aa1; }
.variant-option.is-selected .variant-option-meta small { color: #c9c9c9; }

.receipt-breakdown { display: grid; gap: 4px; margin: 2px 0; }
.receipt-breakdown:empty { display: none; }
.receipt-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #a9a9a9; font-size: 11px; }
.receipt-breakdown > div strong { color: #eeeeee; font-weight: 600; }
.receipt-breakdown > div.is-discount strong { color: #9fe0bb; }
.receipt-breakdown > div.is-total { padding-top: 5px; border-top: 1px solid #303030; }

.receipt-keyauth { display: grid; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid #323232; border-radius: 8px; background: #171717; }
.receipt-keyauth[hidden] { display: none; }
.receipt-keyauth-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.receipt-keyauth-head strong { color: #eeeeee; font-size: 12px; }
.receipt-keyauth-head button,
.receipt-keyauth-list button {
  padding: 4px 9px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #222222;
  color: #dddddd;
  font: 500 10px "IBM Plex Sans Thai", "Prompt", sans-serif;
  cursor: pointer;
}
.receipt-keyauth-head button:hover,
.receipt-keyauth-list button:hover { border-color: #7a7a7a; color: #ffffff; }
.receipt-keyauth-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.receipt-keyauth-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border: 1px solid #303030; border-radius: 6px; background: #101010; }
.receipt-keyauth-list code { color: #f2f2f2; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.receipt-keyauth-note { margin: 0; color: #a9a9a9; font-size: 11px; line-height: 1.6; }
.receipt-keyauth-note a { color: #e3c47f; text-decoration: underline; }
.receipt-keyauth-note[hidden] { display: none; }
html[data-theme="light"] .receipt-keyauth { border-color: #e2e2e2; background: #fafafa; }
html[data-theme="light"] .receipt-keyauth-head strong { color: #222222; }
html[data-theme="light"] .receipt-keyauth-head button,
html[data-theme="light"] .receipt-keyauth-list button { border-color: #d8d8d8; background: #ffffff; color: #333333; }
html[data-theme="light"] .receipt-keyauth-list li { border-color: #e4e4e4; background: #ffffff; }
html[data-theme="light"] .receipt-keyauth-list code { color: #1d1d1d; }
html[data-theme="light"] .receipt-keyauth-note { color: #666666; }
html[data-theme="light"] .receipt-keyauth-note a { color: #8a6a17; }

html[data-theme="light"] .product-video-card { background-color: #fff; }
html[data-theme="light"] .product-video-facade { border-color: #e0e0e0; background: #f4f4f4; }
html[data-theme="light"] .variant-section { border-top-color: #e8e8e8; }
html[data-theme="light"] .variant-heading { color: #6d6d6d; }
html[data-theme="light"] .variant-heading small { color: #2b2b2b; }
html[data-theme="light"] .variant-option { border-color: #dedede; background: #fafafa; color: #3a3a3a; }
html[data-theme="light"] .variant-option:hover { border-color: #9a9a9a; background: #f0f0f0; }
html[data-theme="light"] .variant-option.is-selected { border-color: #2e2e2e; background: #ededed; color: #111111; }
html[data-theme="light"] .variant-option:disabled { border-color: #e6e6e6; background: #f7f7f7; color: #9a9a9a; }
html[data-theme="light"] .variant-option-meta small { color: #6f6f6f; }
html[data-theme="light"] .variant-option.is-selected .variant-option-meta small { color: #4f4f4f; }
html[data-theme="light"] .receipt-breakdown > div { color: #6a6a6a; }
html[data-theme="light"] .receipt-breakdown > div strong { color: #222222; }
html[data-theme="light"] .receipt-breakdown > div.is-discount strong { color: #1f6b42; }
html[data-theme="light"] .receipt-breakdown > div.is-total { border-top-color: #e4e4e4; }

/* ---------- Coupon code row ---------- */
.coupon-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid #2c2c2c; }
.coupon-section[hidden] { display: none; }
.coupon-input-row { display: flex; gap: 8px; align-items: center; }
#coupon-code-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #373737;
  border-radius: 6px;
  background: #161616;
  color: #f4f4f4;
  font-size: 11px;
}
#coupon-code-input:focus-visible { outline: 2px solid #cfcfcf; outline-offset: 2px; }
#coupon-code-input::placeholder { color: #7b7b7b; }
.coupon-actions { display: flex; gap: 6px; }
.coupon-actions button { height: 36px; padding: 0 12px; border: 1px solid #373737; border-radius: 6px; background: #161616; color: #dcdcdc; cursor: pointer; font-size: 11px; transition: border-color .2s, background .2s; }
.coupon-actions button:hover { border-color: #919191; background: #1d1d1d; }
.coupon-ok { color: #9fe0bb; font-size: 10px; }
.discount-line { color: #a3a3a3; font-size: 10px; }
.coupon-status { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 10px; }
.html[data-theme="light"] .coupon-section { border-top-color: #e8e8e8; }
.html[data-theme="light"] #coupon-code-input { border-color: #dedede; background: #fafafa; color: #333; }
.html[data-theme="light"] #coupon-code-input::placeholder { color: #9a9a9a; }
.html[data-theme="light"] .coupon-actions button { border-color: #dedede; background: #fafafa; color: #3a3a3a; }
.html[data-theme="light"] .coupon-actions button:hover { border-color: #9a9a9a; background: #f0f0f0; }

@media (max-width: 780px) {
  .variant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-video-card { padding: 13px; }
}

@media (max-width: 640px) {
  .variant-list { grid-template-columns: 1fr; }
}

/* ---------- Rich product description ---------- */
.product-rich-text { display: grid; gap: 3px; }
.product-rich-text p { margin: 0; color: #bcbcbc; font-size: 12px; line-height: 1.8; }
.product-rich-text h3 { margin: 9px 0 1px; color: #ededed; font: 600 13px "Prompt", "IBM Plex Sans Thai", sans-serif; }
.product-rich-text ul { display: grid; gap: 2px; margin: 3px 0; padding-left: 18px; }
.product-rich-text li { color: #bcbcbc; font-size: 12px; line-height: 1.7; }
.product-rich-text strong { color: #f0f0f0; font-weight: 600; }
html[data-theme="light"] .product-rich-text p,
html[data-theme="light"] .product-rich-text li { color: #565656; }
html[data-theme="light"] .product-rich-text h3,
html[data-theme="light"] .product-rich-text strong { color: #2f2f2f; }
