:root {
  --green: #286332;
  --green-dark: #1f5228;
  --ink: #282c2f;
  --muted: #6d7478;
  --line: #dde1dd;
  --paper: #ffffff;
  --page: #e8e8e6;
  --gold: #f8b833;
  --teal: #2d9aa0;
  --red: #c84c4c;
  --shadow: 0 18px 45px rgba(22, 35, 26, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.rating-inline a {
  color: inherit;
}

.prototype-bar {
  position: sticky;
  top: 0;
  z-index: 19;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(26, 34, 28, 0.08);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.prototype-bar h1 {
  margin: 0;
  font-size: 23px;
}

.prototype-bar h1 small,
.purchase-card h2 small {
  color: var(--muted);
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.control-group {
  display: flex;
  padding: 3px;
  background: #eef0ec;
  border: 1px solid var(--line);
}

.mode-button,
.panel-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 38px;
  padding: 0 16px;
  font-weight: 800;
}

.mode-button.is-active,
.panel-button {
  background: var(--green);
  color: white;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}

.switch input {
  accent-color: var(--green);
}

.page-shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 42px;
}

.compare-note {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--green);
  background: white;
}

.product-stage {
  display: grid;
}

.product-page {
  min-width: 0;
}

.breadcrumb {
  margin: 0 auto 6px;
  max-width: 1200px;
  color: #60666a;
  font-size: 12px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
  max-width: 1200px;
  margin: 0 auto 30px;
  background: white;
}

.gallery-card,
.purchase-card,
.tab-card {
  position: relative;
  background: var(--paper);
}

.gallery-card {
  min-height: 760px;
  padding: 44px 34px 34px;
  text-align: center;
  border-right: 18px solid var(--page);
}

.sale-flag {
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #262b2c;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.main-disc {
  display: block;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 22px;
}

.gallery-card p {
  margin-bottom: 12px;
  font-size: 13px;
}

.purchase-card {
  padding: 30px 24px;
}

.purchase-card h2 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.price {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.product-before .price {
  padding: 9px;
  border: 1px solid #e7e7e7;
  text-align: center;
}

.rating-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  margin: 12px 0;
  padding: 18px 28px;
  border: 1px solid #e7e7e7;
  color: var(--muted);
  font-size: 12px;
}

.star-badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 62% 30%, 95% 20%, 75% 50%, 95% 80%, 62% 70%, 50% 100%, 38% 70%, 5% 80%, 25% 50%, 5% 20%, 38% 30%);
  color: #683d00;
  font-weight: 900;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.reward {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
}

select,
.notes-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 12px;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 13px;
}

.stock-table th {
  padding: 13px 9px;
  background: var(--green);
  color: white;
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
}

.stock-table th:not(:first-child),
.stock-table td:not(:first-child) {
  text-align: center;
}

.stock-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #f0f1f0;
}

.stock-table input {
  width: 48px;
  height: 36px;
  border: 1px solid var(--line);
  text-align: center;
}

.add-button,
.outline-button {
  display: block;
  width: min(100%, 300px);
  min-height: 54px;
  margin: 20px auto 0;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  text-transform: uppercase;
  font-weight: 900;
}

.outline-button {
  min-height: 48px;
  margin-top: 14px;
  background: white;
  color: #555;
  border-color: #767a75;
}

.tab-card {
  max-width: 1200px;
  min-height: 520px;
  margin: 0 auto;
  padding: 24px 34px 44px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 22px;
  border-bottom: 1px solid #9ca09d;
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: white;
  color: #a5aaa6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tab-button.is-active {
  color: var(--ink);
  border-bottom-color: #535756;
}

.tab-panel {
  display: none;
  padding-top: 30px;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.tab-panel p,
.tab-panel li {
  font-size: 17px;
}

.reviews-list {
  padding-top: 32px;
}

.review-summary {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.review-summary strong {
  color: #111;
  font-size: 58px;
  line-height: 1;
  font-weight: 400;
}

.review-summary span,
.review-card span {
  color: var(--gold);
}

.review-card {
  margin-bottom: 18px;
  padding: 16px;
  background: #f3f3f3;
  border: 1px solid #ececec;
}

.product-after {
  display: none;
}

[data-view="after"] .product-before {
  display: none;
}

[data-view="after"] .product-after {
  display: block;
}

[data-view="compare"] .compare-note {
  display: block;
}

[data-view="compare"] .product-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

[data-view="compare"] .product-before,
[data-view="compare"] .product-after {
  display: block;
}

[data-view="compare"] .product-grid {
  grid-template-columns: 1fr;
}

[data-view="compare"] .gallery-card {
  border-right: 0;
}

[data-view="compare"] .purchase-card {
  border-top: 18px solid var(--page);
}

[data-view="compare"] .product-page {
  transform-origin: top center;
}

.improved.gallery-card {
  padding-top: 28px;
  border-right-width: 14px;
  border-right-color: var(--page);
}

.sale-pill {
  position: absolute;
  top: 22px;
  left: 24px;
  padding: 8px 12px;
  background: #fff4d4;
  color: #725000;
  border: 1px solid #f2d785;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
}

.thumbnail-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 6px auto 20px;
  flex-wrap: wrap;
}

.thumb {
  width: 66px;
  height: 66px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  padding: 0;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-selected,
.thumb:hover,
.thumb:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 99, 50, 0.12);
}

.notice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.notice-row p {
  margin: 0;
  padding: 12px;
  background: #f7f8f6;
  border-left: 3px solid var(--green);
}

.purchase-card.improved {
  padding: 28px;
}

.purchase-tabs {
  padding-top: 0;
}

.side-tabs {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr 0.85fr;
  margin: -28px -28px 24px;
  border-bottom: 1px solid var(--line);
}

.side-tab {
  min-height: 54px;
  padding: 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #f8f9f7;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.side-tab.is-active {
  background: white;
  color: var(--ink);
  border-bottom-color: var(--green);
}

.side-panel {
  display: none;
}

.side-panel.is-active {
  display: block;
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.purchase-card.improved h2 {
  margin: 0;
  text-align: left;
  font-size: 26px;
  font-weight: 800;
}

.icon-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.bottom-actions {
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.icon-button[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef6ed;
}

.sidebar-add-button {
  margin-top: 18px;
}

.action-feedback {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rating-inline {
  color: var(--gold);
  font-weight: 800;
}

.rating-inline span,
.rating-inline a {
  color: var(--ink);
}

.flight-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.flight-numbers span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: #f2f5ef;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-numbers b {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.disc-selection {
  margin-top: 16px;
}

.disc-picker-button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  text-align: center;
  box-shadow: 0 8px 18px rgba(40, 99, 50, 0.18);
}

.disc-picker-button span {
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 56px;
}

.disc-picker-button small,
.selection-summary span,
.track-copy {
  color: var(--muted);
}

.selection-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  background: #f5f6f4;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.selection-summary b {
  color: var(--green);
}

.selection-summary:hover {
  border-color: var(--green);
}

.spec-table div {
  padding: 16px;
  background: #f7f8f6;
  border: 1px solid #ecefeb;
}

.spec-table span,
.spec-table b {
  display: block;
}

.spec-table span {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.video-launch {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--green);
  background: white;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.video-launch span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 10px;
}

.track-copy {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
}

.related-panel h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.related-spec-table {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.related-spec-table div {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: #f7f8f6;
  border: 1px solid var(--line);
}

.related-spec-table span,
.direction-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.related-spec-table b,
.direction-row b {
  color: var(--ink);
}

.related-spec-table a {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.related-direction-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.direction-row {
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
}

.direction-row div {
  display: grid;
  gap: 2px;
}

.direction-row button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--green);
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.direction-row button:hover {
  background: #eef6ed;
}

.related-group a {
  color: var(--muted);
}

.related-group {
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-group + .related-group {
  margin-top: 18px;
}

.related-group h4 {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
}

.related-group a {
  text-decoration: none;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto 44px;
  padding: 22px 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  background: #f6f7f5;
  border-top: 1px solid var(--line);
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.learn-more-grid {
  display: grid;
  gap: 16px;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  min-height: 128px;
  border: 1px solid var(--line);
  background: #fbfbfa;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  min-height: 128px;
}

.green-card {
  background: linear-gradient(135deg, #275f31, #8cbf67);
}

.yellow-card {
  background: linear-gradient(135deg, #f8b833, #e6658c);
}

.teal-card {
  background: linear-gradient(135deg, #2d9aa0, #f0f4f1);
}

.blog-card span:last-child {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
}

.blog-card b {
  font-size: 18px;
}

.blog-card small {
  color: var(--muted);
  font-size: 14px;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 25, 19, 0.78);
  padding: 20px;
}

.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 26, 21, 0.58);
}

.picker-overlay.is-open {
  display: flex;
}

.picker-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: white;
  box-shadow: var(--shadow);
}

.picker-head,
.picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.picker-head h2 {
  margin: 0;
}

.picker-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  font-size: 28px;
}

.stock-grid {
  display: grid;
  grid-template-columns: minmax(142px, 1.2fr) repeat(6, minmax(76px, 1fr));
  gap: 1px;
  padding: 18px;
  background: #e2e5e1;
  align-items: stretch;
}

.stock-corner,
.stock-weight,
.stock-color,
.stock-cell {
  min-height: 54px;
  background: white;
}

.stock-corner,
.stock-weight {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-corner {
  justify-items: start;
  padding-left: 12px;
}

.stock-weight {
  color: var(--green);
  background: #f6f8f5;
}

.stock-color {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 13px;
  grid-column: 1;
  border-right: 1px solid #d8ddd7;
}

.swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch.blue { background: #16b8d8; }
.swatch.green { background: #84d48a; }
.swatch.orange { background: #ff852f; }
.swatch.red { background: #e71142; }
.swatch.teal { background: #81d3d4; }
.swatch.white { background: #fff; }

.stock-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 7px;
  border: 0;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.stock-cell > span {
  font-size: 11px;
  text-transform: uppercase;
}

.stock-cell[data-stock]:hover,
.stock-cell.has-quantity {
  background: #eaf4e8;
  box-shadow: inset 0 0 0 3px var(--green);
}

.stock-cell.is-empty {
  background: #f7f8f6;
}

.stock-cell input {
  width: 44px;
  min-height: 30px;
  border: 1px solid #cbd6ca;
  background: white;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
  margin: 0 auto;
}

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

.stock-cell input[type="number"] {
  -moz-appearance: textfield;
}

.picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--green);
  font-weight: 900;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.picker-foot div {
  display: grid;
  gap: 4px;
}

.picker-foot b {
  color: var(--green);
  font-size: 20px;
}

.picker-add-button {
  width: auto;
  min-width: 190px;
  margin: 0;
}

.video-overlay.is-open {
  display: flex;
}

.video-dialog {
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.video-head,
.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}

.video-head {
  border-bottom: 1px solid var(--line);
}

.video-head h2 {
  margin: 0;
  font-size: 24px;
}

.video-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.has-multiple .video-content {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.video-stage {
  min-height: min(56vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f7f4;
}

.video-stage video {
  width: 100%;
  max-height: 62vh;
  background: #101410;
}

.video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding: 36px;
}

.video-empty img {
  width: min(46%, 300px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
}

.video-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.video-empty p {
  margin: 0;
  color: var(--muted);
}

.video-close,
.video-nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.video-close:hover,
.video-nav:hover {
  border-color: var(--green);
  color: var(--green);
}

.video-foot {
  min-height: 62px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.video-dots {
  display: flex;
  gap: 8px;
}

.video-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d0c9;
}

.video-dot.is-active {
  background: var(--green);
}

.change-panel {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 30;
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100vh - 160px);
  display: none;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.change-panel.is-open {
  display: block;
}

.panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
}

.panel-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: white;
  font-size: 26px;
  line-height: 1;
}

.change-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.change-item {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fbfbfa;
}

.change-item.is-active {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.change-item button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.change-item h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 15px;
}

.change-number,
.change-marker {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.change-item p {
  margin: 0;
  color: var(--muted);
}

.change-marker {
  position: absolute;
  z-index: 12;
  border: 3px solid white;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.change-marker.is-active {
  background: var(--green);
  outline: 3px solid rgba(40, 99, 50, 0.2);
}

.change-marker::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: 220px;
  padding: 10px;
  background: #232927;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(5px);
  transition: 0.18s ease;
}

.change-marker:hover::after,
.change-marker:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.hide-annotations .change-marker {
  display: none;
}

body.hide-annotations .change-panel {
  display: none;
}

@media (max-width: 1180px) {
  .prototype-bar {
    grid-template-columns: 1fr auto;
  }

  .switch,
  .panel-button {
    justify-self: end;
  }

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

  .gallery-card {
    border-right: 0;
    border-bottom: 18px solid var(--page);
  }

  [data-view="compare"] .product-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .prototype-bar {
    top: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .control-group,
  .panel-button,
  .switch {
    width: 100%;
  }

  .mode-button {
    flex: 1;
  }

  .page-shell {
    padding-inline: 10px;
  }

  .gallery-card,
  .purchase-card,
  .tab-card {
    padding-inline: 16px;
  }

  .gallery-card {
    min-height: auto;
  }

  .notice-row,
  .spec-table {
    grid-template-columns: 1fr;
  }

  .variant-row {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .price-line,
  .quantity-line {
    align-items: stretch;
    flex-direction: column;
  }

  .related-spec-table div,
  .direction-row {
    grid-template-columns: 1fr;
  }

  .related-spec-table a,
  .direction-row button {
    white-space: normal;
  }

  .change-panel {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 58vh;
  }

  .site-footer {
    margin-inline: 10px;
    flex-direction: column;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .stock-grid {
    grid-template-columns: minmax(104px, 1.1fr) repeat(6, minmax(54px, 1fr));
    overflow-x: auto;
    padding: 10px;
  }

  .stock-color,
  .stock-corner,
  .stock-weight,
  .stock-cell {
    min-height: 54px;
    font-size: 12px;
  }

  .stock-cell input {
    width: 40px;
  }

  .video-overlay {
    padding: 10px;
  }

  .has-multiple .video-content {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
    padding: 12px;
  }

  .video-nav {
    width: 34px;
    height: 34px;
  }

  .video-empty {
    flex-direction: column;
    padding: 24px 12px;
    text-align: center;
  }

  .video-empty img {
    width: min(60%, 210px);
  }
}

/* Prototype controls and phone-sized interactive preview */
.prototype-bar {
  grid-template-columns: minmax(180px, 1fr) auto auto auto auto auto;
  gap: 12px;
}

.device-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.device-button.is-active {
  background: var(--green);
  color: white;
}

.ribbon-controls {
  position: relative;
  z-index: 22;
}

.ribbon-controls summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ribbon-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 10px;
  min-width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.ribbon-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ribbon-options input {
  accent-color: var(--green);
}

.phone-preview {
  display: none;
  justify-items: center;
  gap: 12px;
  padding: 22px 12px 36px;
}

.phone-preview-mode > .page-shell,
.phone-preview-mode > .site-footer {
  display: none;
}

.phone-preview-mode > .phone-preview {
  display: grid;
}

.phone-device {
  position: relative;
  width: min(406px, calc(100vw - 20px));
  height: min(820px, max(580px, calc(100dvh - 125px)));
  overflow: hidden;
  border: 8px solid #242b28;
  border-top-width: 18px;
  border-bottom-width: 14px;
  border-radius: 34px;
  background: white;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22);
}

.phone-device::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 74px;
  height: 5px;
  border-radius: 10px;
  background: #565f59;
  transform: translateX(-50%);
}

.phone-device iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--page);
}

.phone-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.phone-embedded > .prototype-bar,
.phone-embedded > .phone-preview {
  display: none !important;
}

.phone-embedded > .page-shell,
.phone-embedded > .site-footer {
  display: block;
}

/* Gallery tags and thumbnail navigation */
.gallery-ribbons {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100% - 155px);
}

.image-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px 6px 8px;
  border-left: 4px solid currentColor;
  border-radius: 4px 9px 9px 4px;
  box-shadow: 0 4px 12px rgba(25, 30, 25, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.image-ribbon img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ribbon-sale {
  background: #fff0ee;
  color: #ad3c2e;
}

.ribbon-unicorn {
  background: #f2ecff;
  color: #7045a7;
}

.ribbon-promo {
  background: #fff4d4;
  color: #725000;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  width: min(100%, 720px);
  margin: 6px auto 20px;
}

.gallery-strip .thumbnail-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-strip .thumbnail-row::-webkit-scrollbar {
  display: none;
}

.gallery-strip .thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: var(--green);
  background: #eef6ed;
}

/* Sidebar refinements */
.side-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.short-description {
  margin: -4px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: #f6f8f4;
  text-align: left;
}

.short-description h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.short-description p {
  margin: 0;
  color: #4e5851;
  font-size: 13px;
}

.bottom-actions {
  justify-content: center;
  gap: 0;
}

.bottom-actions .icon-button {
  flex: 0 1 112px;
  border-radius: 0;
  border-right: 0;
}

.bottom-actions .icon-button:first-child {
  border-radius: 8px 0 0 8px;
}

.bottom-actions .icon-button:last-of-type {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.spec-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--line);
}

.spec-table tr:nth-child(odd) {
  background: #f7f8f6;
}

.spec-table th,
.spec-table td {
  width: 50%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-table td {
  font-weight: 700;
}

.related-subheading {
  margin: 20px 0 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.related-flight-list {
  display: grid;
  gap: 9px;
}

.related-flight-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.related-flight-box {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 74px;
  background: #f2f5ef;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.related-flight-box b {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.related-flight-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.related-flight-options button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 74px;
  padding: 4px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.related-flight-options button:hover,
.related-flight-options button[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef6ed;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.related-feedback {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .prototype-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .prototype-bar > div:first-child,
  .prototype-bar > .control-group:first-of-type {
    grid-column: 1 / -1;
  }

  .device-group,
  .ribbon-controls,
  .switch,
  .panel-button {
    width: 100%;
    justify-self: stretch;
  }

  .device-button {
    flex: 1;
    padding-inline: 6px;
  }

  .ribbon-controls summary {
    justify-content: center;
  }

  .phone-embedded .page-shell {
    padding-top: 12px;
  }

  .gallery-ribbons {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 120px);
  }

  .image-ribbon {
    min-height: 30px;
    padding: 4px 7px 4px 5px;
    font-size: 10px;
  }

  .gallery-strip {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 3px;
  }

  .gallery-strip .thumb {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .gallery-arrow {
    width: 34px;
    height: 34px;
  }
}

.phone-preview-mode .prototype-bar {
  position: relative;
}
