:root {
  --bg: #f3f5f1;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #6f7b73;
  --line: #dce3dc;
  --green: #1f6f4a;
  --green-dark: #13452f;
  --gold: #b06f2b;
  --blue: #285c7d;
  --soft: #e8eee8;
  --danger: #9b3d31;
  --shadow: 0 18px 50px rgba(28, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  min-width: 0;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 14px;
  margin-bottom: 4px;
  background: rgba(243, 245, 241, 0.96);
  border-bottom: 1px solid rgba(220, 227, 220, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--green-dark);
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(28, 42, 35, 0.12);
}

.brand p {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
}

.brand span,
.source-note {
  color: var(--muted);
  font-size: 13px;
}

.opening-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: min(620px, calc(100svh - 160px));
  min-height: 470px;
  margin-bottom: 18px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #15230c;
  background-image: url("assets/golf-prices-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.opening-copy {
  max-width: 760px;
  margin-bottom: 24px;
}

.opening-copy h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.opening-copy p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
}

.category-jump {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.category-jump a {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 6px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.category-jump a:hover,
.category-jump a:focus-visible {
  background: #fff3df;
  outline: 3px solid rgba(176, 111, 43, 0.32);
  outline-offset: 2px;
}

.category-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-view-bar[hidden] {
  display: none;
}

.category-view-bar div {
  display: grid;
  gap: 2px;
  text-align: right;
}

.category-view-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.category-view-bar strong {
  font-size: 22px;
}

.back-home-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

body.category-view .opening-hero {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.filters,
.detail-panel,
.results-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters,
.detail-panel {
  position: sticky;
  top: 18px;
}

.filters {
  padding: 14px;
}

.club-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.sort-wrap select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

.field input:focus,
.field select:focus,
.sort-wrap select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.16);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

#priceValue {
  color: var(--ink);
  font-size: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.quick-stats div {
  background: var(--soft);
  border-radius: 6px;
  padding: 12px;
}

.quick-stats span,
.meta span,
.spec-row span,
.bag-slot span,
.deal-meta {
  color: var(--muted);
  font-size: 12px;
}

.quick-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.bag-summary-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.bag-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 7px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.bag-summary-item > span {
  min-width: 0;
}

.bag-summary-item strong,
.bag-summary-item small {
  display: block;
  overflow-wrap: anywhere;
}

.bag-summary-item strong {
  font-size: 12px;
  line-height: 1.3;
}

.bag-summary-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.bag-summary-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 900;
  opacity: 0.18;
}

.bag-summary-item:hover .bag-summary-remove,
.bag-summary-remove:focus-visible {
  background: #f8e9e6;
  opacity: 1;
  outline: none;
}

.bag-summary-empty {
  margin: 0;
  padding: 8px 2px 2px;
  color: var(--muted);
  font-size: 12px;
}

.results-panel {
  padding: 18px;
}

.site-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 142px;
  padding: 24px 28px;
  border: 1px solid var(--green-dark);
  border-left: 7px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 18px;
  background: var(--green-dark);
  color: #ffffff;
}

.brand-banner strong {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.brand-banner span {
  color: #e8f0eb;
  font-size: 15px;
  font-weight: 700;
}

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

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

h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 720px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.sort-wrap {
  display: grid;
  gap: 6px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.club-grid {
  display: grid;
  gap: 22px;
}

.club-section {
  display: grid;
  gap: 16px;
  scroll-margin-top: 92px;
}

.club-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.club-section-head h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.club-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 900;
}

.brand-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.brand-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.brand-section-head h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.brand-section-head span {
  color: var(--muted);
  font-weight: 900;
}

.club-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 13px;
}

.club-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-height: 286px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.club-card:hover,
.club-card:focus-visible,
.club-card.active {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 74, 0.55);
  box-shadow: 0 12px 26px rgba(31, 111, 74, 0.12);
}

.club-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand-chip,
.link-chip {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.brand-chip {
  background: var(--soft);
  color: var(--green-dark);
}

.link-chip {
  background: #fff7ec;
  color: #6f3d12;
}

.club-card h3 {
  margin-bottom: 3px;
  font-size: 18px;
  line-height: 1.2;
}

.club-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.pill-row,
.deal-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green-dark);
  background: #f4f8f4;
  font-size: 12px;
  font-weight: 800;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.meta strong {
  display: block;
  margin-top: 3px;
}

.detail-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.selected-card,
.bag-builder,
.similar-box {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.similar-box {
  border-bottom: 0;
  padding-bottom: 0;
}

.selected-card h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.selected-card .subtitle {
  color: var(--muted);
  margin-bottom: 12px;
}

.price-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
}

.price {
  font-size: 28px;
  font-weight: 900;
}

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

.specs {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row strong {
  text-align: right;
}

.primary-button,
.ghost-button,
.deal-link,
.slot-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.primary-button {
  background: var(--green);
  color: white;
}

.added-button:disabled {
  border: 1px solid #9bc7aa;
  background: #e7f5ed;
  color: var(--green-dark);
  cursor: default;
  opacity: 1;
}

.ghost-button,
.slot-button {
  background: var(--soft);
  color: var(--ink);
}

.deal-link {
  display: inline-flex;
  align-items: center;
  background: #fff7ec;
  color: #6f3d12;
  border: 1px solid #edd5b5;
}

.best-card-link,
.best-deal-link {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.best-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: 100%;
  border-radius: 6px;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}

.best-card-link:hover,
.deal-link:hover {
  filter: brightness(0.96);
}

.club-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(15, 23, 18, 0.72);
  padding: 18px;
}

.club-modal.open {
  display: block;
}

.club-modal-shell {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  min-height: 40px;
  margin: 12px 12px 0 0;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

#clubModalContent {
  clear: both;
}

.modal-hero {
  display: block;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.spec-row a {
  color: var(--green-dark);
  font-weight: 900;
}

.modal-price-row span,
.verified-deal span,
.verified-deal em {
  color: var(--muted);
}

.modal-summary {
  display: grid;
  align-content: center;
  gap: 16px;
}

.modal-summary h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.modal-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.modal-price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal-price-row div,
.modal-block,
.verified-empty,
.verified-deal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.modal-price-row div {
  padding: 13px;
}

.modal-price-row strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.modal-block {
  padding: 16px;
}

.modal-block h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.review-score strong {
  font-size: 34px;
}

.review-score span {
  color: var(--muted);
}

.review-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff7ec;
  color: #6f3d12;
  font-weight: 850;
  margin-bottom: 14px;
}

.review-bars {
  display: grid;
  gap: 10px;
}

.review-bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.review-bar span {
  color: var(--muted);
  font-weight: 750;
}

.review-bar b {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.review-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.review-bar strong {
  text-align: right;
  font-size: 12px;
}

.review-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-list {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-list h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.review-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.review-list li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.review-pros {
  border-top: 3px solid var(--green);
}

.review-cons {
  border-top: 3px solid #b45a43;
}

.review-source {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.verified-empty {
  padding: 16px;
}

.verified-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.verified-deal {
  display: grid;
  gap: 4px;
  padding: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--ink);
}

.best-verified-deal {
  border-color: rgba(31, 111, 74, 0.5);
  background: #f1f8f3;
}

.best-deal-card {
  border-color: rgba(176, 111, 43, 0.45);
  background: #fff8ee;
}

.best-deal-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.verified-deal strong {
  font-size: 18px;
}

.verified-deal em {
  font-style: normal;
  font-size: 12px;
}

.availability-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.availability-in_stock,
.availability-likely_available {
  background: #e7f5ed;
  color: var(--green-dark);
}

.availability-check {
  background: #fff7ec;
  color: #6f3d12;
}

.availability-specs_only {
  background: var(--soft);
  color: var(--muted);
}

.availability-out_of_stock {
  background: #f8e8e5;
  color: var(--danger);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.section-title span {
  font-weight: 950;
  font-size: 20px;
}

.bag-slots,
.similar-list {
  display: grid;
  gap: 8px;
}

.bag-slot {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.bag-slot strong,
.similar-item strong {
  overflow-wrap: anywhere;
}

.slot-empty {
  color: var(--muted);
}

.similar-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  cursor: pointer;
  text-align: left;
}

.empty-state {
  padding: 34px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 10px;
  }

  .topbar,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    gap: 8px;
    padding: 10px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .opening-hero {
    height: min(580px, calc(100svh - 145px));
    min-height: 500px;
    padding: 20px;
    background-position: center;
  }

  .opening-copy {
    margin-bottom: 18px;
  }

  .category-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-view-bar {
    align-items: stretch;
  }

  .site-banner {
    min-height: 118px;
    padding: 20px;
  }

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

  .filters {
    position: static;
  }

  .club-visual {
    max-height: 220px;
  }

  .bag-slot {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .bag-slot .slot-button {
    grid-column: 1 / -1;
  }

  .club-modal {
    padding: 0;
  }

  .club-modal-shell {
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .modal-hero,
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .modal-price-row {
    grid-template-columns: 1fr;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}
