:root {
  --bg: #ffffff; /* Brighter background */
  --surface: #f8fafc;
  --surface-strong: #1e293b; /* Deep navy */
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1e293b; /* More professional accent color */
  --accent-dark: #0f172a;
  --success: #087443;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand::before {
  display: none;
}

.site-header nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--text);
}

.section-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 100px 0; /* More air/spacing */
  scroll-margin-top: 76px;
}

.hero {
  position: relative;
  min-height: 430px;
  padding: 0; /* Remove old padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), url('hero-optimized.jpg');
  background-size: cover;
  background-position: center;
  color: white; /* Ensure all text in hero is white */
  overflow: hidden;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.8); /* Slightly muted white for lead */
}

/* Ensure buttons stand out */
.hero .secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero .secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.trust-badge-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.trust-badge-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.trust-badge-link .stars {
  color: #fbbf24; /* Ensure gold color is maintained */
}

.trust-badge .score,
.trust-badge .review-count {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.trust-badge .review-count {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.lead {
  margin-left: auto;
  margin-right: auto;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.18;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 30px;
}

.primary-button,
.secondary-button,
.product-card-footer button,
.tx-row button,
.address-box button,
.category-filters button {
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  color: white;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.full-width {
  width: 100%;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.checkout-section .section-heading h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(40px, 5vw, 64px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.product-detail-media {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-detail-media img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.product-detail-content h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 68px);
}

.product-detail-price {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
}

.product-detail-content > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.checkout-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 4px;
  list-style: none;
}

.checkout-steps li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-steps li.is-active {
  color: white;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.section-heading p,
.terms-grid p,
.product-card p,
.cart-panel p,
.live-status,
.form-status {
  color: var(--muted);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.toggle-sold-items {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.toggle-sold-items input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.search-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-field input:focus,
.buyer-form input:focus,
.buyer-form textarea:focus,
.tx-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.12);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filters button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 11px 13px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
}

.category-filters button span {
  color: var(--text);
  font-size: 12px;
}

.category-filters button.is-active {
  color: white;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.category-filters button.is-active span {
  color: white;
}

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

.featured-section {
  padding-bottom: 48px;
}

.category-spotlight-grid,
.steps-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-spotlight,
.steps-grid article,
.trust-grid article {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-spotlight {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-spotlight:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.category-spotlight span,
.steps-grid span,
.trust-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-spotlight strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.08;
}

.category-spotlight p,
.steps-grid p,
.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.how-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.steps-grid article {
  background: var(--surface);
}

.trust-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.trust-page .section-heading {
  max-width: 860px;
}

.trust-page h1 {
  color: var(--text);
}

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

.trust-grid article {
  background: var(--surface);
}

.certification-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 18px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.certification-note strong {
  flex: 0 0 auto;
  font-family: var(--font-display);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover,
.product-card.is-selected {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-card.is-sold {
  border-color: #cbd5e1;
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: #f8fafc;
  border: 0;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 10px;
  background: #f8fafc;
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  width: fit-content;
  padding: 5px 8px;
  color: var(--accent-dark);
  background: rgba(30, 41, 59, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.sold-pill {
  color: #7f1d1d;
  background: #fee2e2;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 68px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card p {
  display: -webkit-box;
  min-height: 64px;
  margin-bottom: 0;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.product-card-footer strong,
.cart-panel-header strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.product-card-footer button {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: white;
  background: var(--surface-strong);
}

.product-card-footer .watch-button {
  color: var(--surface-strong);
  background: white;
  border: 1px solid var(--line);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
  align-items: start;
}

.cart-panel,
.invoice-portal,
.tx-form,
.terms-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 22px;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-header p {
  color: var(--muted);
}

.cart-panel-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.cart-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.cart-empty {
  margin: 0;
  padding: 22px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 84px;
  aspect-ratio: 1 / 1.1;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
}

.cart-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.cart-item p {
  margin-bottom: 10px;
  font-size: 13px;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cart-item-controls button {
  min-width: 32px;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.shipping-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.cart-item-controls button:last-child {
  color: var(--accent-dark);
}

.cart-item-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 900;
}

.order-totals {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-totals div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.order-totals dt {
  color: var(--muted);
}

.order-totals dd {
  margin: 0;
  font-size: 18px;
}

.order-totals div:last-child dd {
  color: var(--text);
  font-size: 28px;
}

.invoice-portal {
  padding: 26px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.invoice-header span {
  color: var(--muted);
}

.invoice-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}

.invoice-header p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.buyer-form {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.buyer-form fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.buyer-form legend {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.buyer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyer-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.buyer-form input,
.buyer-form textarea,
.tx-row input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.buyer-form textarea {
  min-height: 84px;
}

.checkout-assurance {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-assurance span {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkout-assurance span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.live-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 13px;
}

.live-status.is-warning {
  color: var(--accent-dark);
}

.manual-fallback {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  opacity: 0.88;
}

.manual-fallback p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.address-box {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: #f5f6f8;
  border-radius: 8px;
}

.address-box code,
.site-footer code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.address-box code {
  min-width: 0;
  flex: 1;
}

.address-box button {
  padding: 8px 10px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.tx-form {
  padding: 18px;
  margin-bottom: 18px;
}

.tx-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.tx-row {
  display: flex;
  gap: 10px;
}

.tx-row button {
  padding: 12px 16px;
  color: white;
  background: var(--surface-strong);
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
}

.form-status.is-error {
  color: var(--accent-dark);
}

.form-status.is-success {
  color: var(--success);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terms-grid article {
  padding: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 38px clamp(18px, 4vw, 56px);
  color: #94a3b8;
  background: var(--surface-strong);
  font-size: 14px;
}

.footer-trustmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.footer-trustmark:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
}

.footer-trustmark-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: white;
  background: var(--success);
  border-radius: 999px;
  font-size: 11px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.product-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.product-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 22px;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.product-modal-panel > img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.product-modal-content > p:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-modal-content h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.product-modal-content strong {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 30px;
}

.product-modal-content p {
  color: var(--muted);
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1050px) {
  .hero,
  .catalog-toolbar,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .section-shell {
    width: min(100% - 28px, 1220px);
    padding: 48px 0;
  }

  .checkout-heading,
  .invoice-header,
  .product-detail-layout {
    align-items: stretch;
    flex-direction: column;
  }

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

  .invoice-header p {
    max-width: none;
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding: 34px 0;
  }

  .trust-badge {
    max-width: min(100%, 340px);
    flex-wrap: wrap;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
  }

  .lead {
    font-size: 18px;
  }

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

  .category-spotlight-grid,
  .steps-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .certification-note {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card h3 {
    min-height: auto;
  }

  .product-card p {
    display: none;
  }

  .product-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tx-row,
  .address-box,
  .site-footer {
    flex-direction: column;
  }

  .buyer-form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.trust-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 16px 0;
}

.trust-bar .section-shell {
  padding: 0;
}

.trust-bar-items {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-item .check {
  color: var(--accent);
  font-weight: 400;
}

@media (max-width: 760px) {
  .trust-bar-items {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

.text-center {
  text-align: center;
  margin: 0 auto;
}

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 12px;
}

.overall-rating .stars {
  color: #fbbf24;
  font-size: 24px;
}
.overall-rating .rating-text {
  font-size: 18px;
  color: var(--muted);
}

.reviews-viewport {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

.review-card {
  flex: 0 0 400px; /* Fixed width for cards in track */
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 600px) {
  .review-card { flex: 0 0 300px; }
}

.review-card .stars {
  color: #fbbf24;
}
.review-card p {
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}
.review-author {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 900px) {
  .reviews-viewport {
    padding: 20px 0;
  }
}

/* Sold Banner / "Big Line" */
.product-card.is-sold .product-image-button {
  position: relative;
  overflow: hidden;
}

.product-card.is-sold img {
  filter: grayscale(0.5) brightness(0.8);
}

.sold-banner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%) rotate(-5deg); /* Slight tilt for "tape" look */
  background: #dc2626;
  color: white;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  padding: 12px 0;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  pointer-events: none;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Ensure modal image also gets the treatment */
.modal-product-image-container {
  position: relative;
}

.modal-product-image-container.is-sold img {
  filter: grayscale(0.5) brightness(0.8);
}

/* Hero Social Strip */
.hero-social-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  transition: background 0.2s ease;
}

.hero-social-strip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.strip-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.divider {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.review-snippet {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-social-strip {
    display: none; /* Hide strip on small mobile to save space */
  }
}
