
:root {
  color-scheme: light;
  --ink: #102235;
  --muted: #5d6875;
  --line: #ded7ca;
  --paper: #fffdf8;
  --warm: #fbf3df;
  --copper: #a96d47;
  --copper-dark: #774729;
  --green: #2f6f5e;
  --blue: #163c55;
  --blue-soft: #e6eff2;
  --shadow: 0 18px 50px rgba(16, 34, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8f5ee;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue);
  border: 2px solid #f5edd8;
  box-shadow: 0 0 0 2px var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

.site-nav a:hover {
  background: var(--blue-soft);
  color: var(--ink);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: clamp(54px, 10vw, 92px) clamp(20px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 243, 223, 0.98), rgba(251, 243, 223, 0.88), rgba(251, 243, 223, 0.34)),
    var(--hero-image, url("/static/shop/dan-brand-hero.png")) center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-panel {
  max-width: 680px;
}

.kicker {
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero p {
  max-width: 620px;
  color: #334455;
  font-size: clamp(1.02rem, 2.6vw, 1.28rem);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
}

.btn.primary:hover {
  background: #0f2c40;
}

.btn.secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--line);
}

.btn.secondary:hover {
  background: var(--blue-soft);
}

.btn.wide {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.hero-note {
  display: grid;
  gap: 5px;
  max-width: 560px;
  margin-top: 24px;
  border-left: 4px solid var(--green);
  background: rgba(255, 253, 248, 0.88);
  padding: 12px 14px;
}

.hero-note strong {
  color: var(--ink);
}

.hero-note span {
  color: var(--muted);
}

.bundle-discount-summary {
  display: grid;
  gap: 5px;
  border: 1px solid #d9c8ac;
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: #fff8e9;
  color: var(--muted);
  padding: 12px 14px;
  line-height: 1.6;
}

.bundle-discount-summary[hidden] {
  display: none;
}

.bundle-discount-summary strong {
  color: var(--copper-dark);
}

.bundle-discount-summary span {
  color: var(--ink);
  font-weight: 800;
}

.bundle-discount-summary small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.bundle-discount-summary.is-launcher,
.product-bundle-summary.is-launcher {
  border-left-color: var(--blue);
}

.feature-strip {
  padding: 18px clamp(20px, 6vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.strip-head span {
  font-weight: 800;
}

.strip-head small,
.section-head p {
  color: var(--muted);
}

.feature-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding: 14px 0 6px;
}

.feature-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  text-decoration: none;
}

.feature-item img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1eee7;
}

.feature-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.band {
  padding: clamp(42px, 7vw, 82px) clamp(20px, 6vw, 72px);
}

.product-band,
.guide-band {
  background: var(--paper);
}

.dedicated-band {
  background: var(--warm);
}

.route-bundles .hero,
.route-bundles .feature-strip,
.route-bundles .product-band,
.route-bundles .bundle-band,
.route-bundles .guide-band,
.route-bundles .mini-cart {
  display: none;
}

.route-legal .hero,
.route-legal .feature-strip,
.route-legal .product-band,
.route-legal .bundle-band,
.route-legal .guide-band,
.route-legal .dedicated-band,
.route-legal .mini-cart {
  display: none;
}

.search {
  display: flex;
  gap: 10px;
  width: min(100%, 460px);
}

.search input,
.field input,
.consult-inner textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 0;
}

.category-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}

.category-tabs button.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.product-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.product-pager span {
  flex: 1 1 100%;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.product-pager button {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.product-pager button.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.product-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dedicated-note {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin: 18px 0 22px;
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: #fff8e9;
  padding: 13px 15px;
}

.dedicated-note span {
  color: var(--muted);
}

.dedicated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.dedicated-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dedicated-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0eee7;
}

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

.dedicated-body h3 {
  margin-bottom: 0;
}

.dedicated-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dedicated-links {
  display: grid;
  gap: 8px;
}

.dedicated-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

.dedicated-link:hover {
  background: var(--blue-soft);
}

.dedicated-link small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  background: #f0eee7;
}

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

.product-media.is-sold img,
.detail-media.is-sold img {
  filter: grayscale(0.25) brightness(0.78);
}

.sold-ribbon {
  position: absolute;
  top: 12px;
  left: -40px;
  z-index: 2;
  width: 132px;
  background: #d84858;
  color: #fff;
  padding: 5px 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(16, 34, 53, 0.22);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-bundle-summary {
  display: grid;
  gap: 2px;
  margin: 0;
  border-left: 4px solid var(--copper);
  border-radius: 7px;
  background: #fff8e9;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-bundle-summary strong,
.product-bundle-summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.product-bundle-summary strong {
  color: var(--copper-dark);
  -webkit-line-clamp: 1;
}

.product-bundle-summary span {
  -webkit-line-clamp: 2;
}

.tag {
  border-radius: 999px;
  background: #edf4ef;
  color: var(--green);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tag.warn {
  background: #fff1d7;
  color: #8b5b13;
}

.tag.sold {
  background: #eceff3;
  color: #6a7280;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 1.2rem;
  font-weight: 900;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
  text-align: center;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-link:hover {
  background: var(--blue-soft);
}

.product-card .btn[data-add-bundle] {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(22, 60, 85, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--blue);
  padding: 0;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 5px 14px rgba(16, 34, 53, 0.18);
}

.product-card .btn[data-add-bundle]::before,
.product-card .btn[data-add-bundle]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.product-card .btn[data-add-bundle]::before {
  width: 12px;
  height: 2px;
}

.product-card .btn[data-add-bundle]::after {
  width: 2px;
  height: 12px;
}

.product-card .btn[data-add-bundle][aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.product-card .btn[data-add-bundle][aria-pressed="true"]::before {
  width: 12px;
  height: 7px;
  border-right: 0;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  transform: translate(-50%, -62%) rotate(-45deg);
}

.product-card .btn[data-add-bundle][aria-pressed="true"]::after {
  display: none;
}

.product-card .btn[data-add-bundle]:disabled {
  display: none;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 4vw, 30px);
  box-shadow: var(--shadow);
}

.detail-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #f0eee7;
}

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

.detail-links {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-section {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-section-head {
  display: grid;
  gap: 4px;
}

.detail-section-head h3,
.detail-section-head p {
  margin-bottom: 0;
}

.detail-section-head p {
  color: var(--muted);
}

.detail-purchase-links {
  display: grid;
  gap: 10px;
}

.detail-purchase-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--blue);
  text-decoration: none;
}

.detail-purchase-link:hover {
  background: var(--blue-soft);
}

.detail-purchase-link span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.detail-purchase-link small {
  color: var(--muted);
  font-weight: 800;
}

.detail-purchase-link b {
  white-space: nowrap;
}

.detail-cart-panel {
  border: 1px solid #cbded4;
  border-radius: 8px;
  background: #fbfffc;
  padding: 14px;
}

.detail-cart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.detail-qty-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.detail-qty-field select,
.detail-qty-field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
}

  .detail-shop-head,
  .detail-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(86px, 0.8fr) minmax(108px, 0.85fr) minmax(92px, 0.75fr);
  align-items: center;
  gap: 10px;
}

.detail-shop-head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.detail-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.detail-row strong {
  white-space: nowrap;
}

.detail-row a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-qty-select {
  display: flex;
  justify-content: flex-end;
}

.detail-qty-select select {
  width: min(100%, 86px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
}

.detail-warning {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  border: 2px solid #d49c57;
  border-left: 6px solid var(--copper);
  border-radius: 8px;
  background: #fff8e9;
  padding: 12px 14px;
}

.detail-warning strong {
  color: #7d3f19;
  font-size: 1.02rem;
}

.detail-warning span {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bundle-band {
  background: #edf4ef;
}

.bundle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  margin-top: 24px;
}

.bundle-list-panel,
.bundle-form {
  border: 1px solid #cbded4;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.bundle-list {
  display: grid;
  gap: 10px;
}

.bundle-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.bundle-main {
  min-width: 0;
}

.bundle-main strong,
.bundle-main small {
  overflow-wrap: anywhere;
}

.bundle-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0eee7;
}

.qty {
  display: grid;
  grid-template-columns: 30px auto minmax(1.8em, auto) 30px 54px;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.qty span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.qty button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.qty [data-remove] {
  width: auto;
  min-width: 54px;
  padding: 0 8px;
  white-space: nowrap;
}

.bundle-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.field small {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.field.compact {
  max-width: 340px;
}

.channel-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.channel-option {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.channel-option.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(47, 111, 94, 0.16);
}

.channel-option strong {
  font-size: 1.2rem;
}

.channel-option small,
.form-status,
.note span,
.empty span,
.product-card p,
.detail-card p,
.info-list span,
.site-footer p {
  color: var(--muted);
}

.note {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--copper);
  background: #fff8e9;
  padding: 10px 12px;
}

.turnstile-box {
  min-height: 65px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 64px);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.legal-band {
  background: var(--paper);
}

.legal-head p {
  max-width: 620px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: start;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 12px 34px rgba(16, 34, 53, 0.06);
}

.legal-panel h3 {
  margin-bottom: 16px;
  color: var(--blue);
}

.legal-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legal-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-list dt {
  color: var(--ink);
  font-weight: 900;
}

.legal-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-note-panel {
  display: grid;
  gap: 14px;
  border-left: 5px solid var(--green);
  background: #fbfff8;
}

.legal-note-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-note-panel small {
  color: var(--muted);
  font-weight: 800;
}

.legal-request-form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.legal-request-form h3 {
  margin-bottom: 0;
}

.legal-request-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.legal-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.6;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.post-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.post-date {
  color: var(--copper-dark);
  font-weight: 900;
}

.event-band {
  background: var(--warm);
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.event-row strong {
  color: var(--copper-dark);
}

.consult-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  text-decoration: none;
}

.mini-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 18;
  display: grid;
  width: min(360px, calc(100vw - 28px));
  gap: 10px;
  border: 1px solid #cbded4;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  box-shadow: var(--shadow);
}

.mini-cart[hidden] {
  display: none;
}

.mini-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mini-cart-title {
  font-size: 0.98rem;
  line-height: 1.25;
}

.mini-cart-count {
  flex: none;
  border-radius: 999px;
  background: #e4f2ed;
  color: var(--green);
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.mini-cart-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-cart-list li {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mini-cart-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cart-qty-control {
  display: inline-grid;
  grid-template-columns: 28px 22px 28px;
  align-items: center;
  gap: 4px;
  flex: none;
}

.mini-cart-qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.mini-cart-qty-control button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mini-cart-qty-control strong {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.mini-cart-more,
.mini-cart-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-cart-note {
  margin: 0;
  border-left: 3px solid var(--copper);
  background: #fff8e9;
  padding: 7px 9px;
}

.mini-cart-apply {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.consult-dialog {
  width: min(94vw, 520px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.consult-dialog::backdrop {
  background: rgba(16, 34, 53, 0.42);
}

.consult-inner {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(251, 243, 223, 0.98), rgba(251, 243, 223, 0.78)),
      var(--hero-image, url("/static/shop/dan-brand-hero.png")) center / cover no-repeat;
  }

  .strip-head,
  .section-head,
  .consult-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-card,
  .bundle-layout,
  .split,
  .legal-layout,
  .legal-list div {
    grid-template-columns: 1fr;
  }

  .detail-shop-head {
    display: none;
  }

  .detail-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .detail-qty-select {
    justify-content: flex-start;
  }

  .detail-purchase-link,
  .detail-cart-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .detail-cart-controls {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 9px;
  }

  .product-body {
    gap: 6px;
    padding: 8px;
  }

  .product-meta {
    gap: 4px;
  }

  .product-bundle-summary {
    padding: 5px 6px;
    font-size: 0.66rem;
    line-height: 1.22;
  }

  .tag {
    padding: 2px 5px;
    font-size: 0.62rem;
  }

  .product-card h3 {
    min-height: 2.6em;
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price-row {
    align-items: start;
    flex-direction: column;
    gap: 2px;
    font-size: 0.68rem;
  }

  .price {
    font-size: 0.92rem;
  }

  .link-row {
    display: none;
  }

  .product-card .btn {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .sold-ribbon {
    top: 8px;
    left: -42px;
    width: 124px;
    padding: 4px 0;
    font-size: 0.68rem;
  }

  .mini-cart {
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 24px));
  }
}

@media (max-width: 520px) {
  .site-header {
    justify-content: center;
    padding: 10px 16px 12px;
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    width: min(100%, 320px);
    overflow-x: visible;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 0;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .site-nav-legal {
    display: none;
  }

  .search,
  .channel-options {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bundle-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .qty {
    grid-column: 1 / -1;
    grid-template-columns: 36px auto minmax(1.6em, auto) 36px minmax(54px, 1fr);
    justify-self: stretch;
  }

  .qty button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 1rem;
  }

  .band {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .product-card,
  .dedicated-card {
    position: relative;
  }

  .product-media,
  .dedicated-card img {
    aspect-ratio: 1 / 0.86;
  }

  .product-body,
  .dedicated-body {
    gap: 5px;
    padding: 7px;
  }

  .product-meta,
  .dedicated-body .product-meta {
    display: none;
  }

  .product-bundle-summary {
    gap: 2px;
    padding: 4px 6px;
    border-left-width: 3px;
    border-radius: 5px;
    font-size: 0.62rem;
    line-height: 1.16;
  }

  .product-bundle-summary strong {
    display: none;
  }

  .product-card h3 {
    min-height: 2.6em;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .dedicated-body h3 {
    min-height: 3.9em;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    font-size: 0.76rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .dedicated-body p {
    display: none;
  }

  .dedicated-links {
    gap: 6px;
  }

  .dedicated-link {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px;
  }

  .dedicated-link small {
    font-size: 0.68rem;
  }

  .dedicated-link b {
    font-size: 0.86rem;
  }

  .price-row {
    font-size: 0;
  }

  .price-row span:not(.price) {
    display: none;
  }

  .price {
    font-size: 0.86rem;
    line-height: 1.1;
  }

  .product-card .btn[data-add-bundle] {
    top: 6px;
    right: 6px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    box-shadow: 0 4px 12px rgba(16, 34, 53, 0.2);
  }

  .product-card .btn[data-add-bundle]::before {
    width: 12px;
    height: 2px;
  }

  .product-card .btn[data-add-bundle]::after {
    width: 2px;
    height: 12px;
  }

  .product-card .btn[data-add-bundle][aria-pressed="true"]::before {
    width: 12px;
    height: 7px;
  }

  .product-card .btn[data-add-bundle]:disabled {
    display: none;
  }

  .sold-ribbon {
    top: 6px;
    left: -39px;
    width: 108px;
    padding: 3px 0;
    font-size: 0.58rem;
  }

  .mini-cart {
    right: 10px;
    left: 10px;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    gap: 8px;
    padding: 10px;
  }

  .mini-cart-head {
    align-items: center;
  }

  .mini-cart-title {
    font-size: 0.88rem;
  }

  .mini-cart-count,
  .mini-cart-list li,
  .mini-cart-more,
  .mini-cart-note {
    font-size: 0.72rem;
  }

  .mini-cart-apply {
    min-height: 38px;
    padding: 9px 10px;
  }

  .mini-cart-item {
    gap: 6px;
  }

  .mini-cart-qty-control {
    grid-template-columns: 32px 20px 32px;
    gap: 4px;
  }

  .mini-cart-qty-control button {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 380px) {
  .product-grid,
  .dedicated-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
