/* Paperlink shop — shared retail UI */
.page-content:has(.shop) {
  max-width: none;
  padding: 0;
  margin: 0;
  background: #f7f5f1;
}

.shop {
  --shop-ink: #171411;
  --shop-muted: #5c564e;
  --shop-line: #ddd8cf;
  --shop-surface: #fffcf8;
  --shop-accent: #1a1a1a;
  color: var(--shop-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shop-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.shop-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--shop-muted);
  line-height: 1.5;
}

.shop-crumb-sep {
  color: var(--shop-muted);
}

.shop-crumb-select {
  appearance: none;
  -webkit-appearance: none;
  field-sizing: content;
  margin: 0;
  max-width: 100%;
  padding: 2px 18px 2px 0;
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23171411' stroke-width='1.4' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px 6px;
  color: #000;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.shop-crumb-select:focus {
  outline: 2px solid #cfc8bb;
  outline-offset: 2px;
}

.shop-crumbs a {
  color: var(--shop-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.shop-crumbs a:hover {
  border-bottom-color: var(--shop-ink);
}

.shop-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--shop-ink);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: var(--shop-surface);
}

.shop-cart-link:hover {
  border-color: #b8b2a6;
}

.shop-cart-count {
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--shop-ink);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4em;
  text-align: center;
}

.shop-hero {
  /* Must not be a <header> — base.html makes all headers sticky. */
  position: static;
  z-index: auto;
  background: transparent;
  border-bottom: none;
  margin: 0 0 36px;
  max-width: 38rem;
}

.shop-hero h1 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--shop-ink);
}

.shop-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--shop-muted);
}

.shop-hero.is-split {
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 20px;
  row-gap: 14px;
  align-items: stretch;
  max-width: none;
}

.shop-hero.is-split .shop-hero-copy,
.shop-hero.is-split .shop-hero-stickers {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  justify-items: start;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 1px 2px rgba(23, 20, 17, 0.04);
}

.shop-hero.is-split .shop-hero-copy h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--shop-ink);
}

.shop-hero.is-split .shop-hero-copy > p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--shop-muted);
  max-width: 38rem;
}

.shop-hero.is-split .shop-hero-stickers h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--shop-ink);
  max-width: 16ch;
}

.shop-hero.is-split .shop-hero-stickers > p:not(.shop-sticker-hand) {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 28rem;
}

.shop-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--shop-ink, #1a1917);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: start;
}

.shop-hero-cta:hover {
  background: #2c2925;
  opacity: 1;
}

.shop-sticker-hand {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #6a645c;
  max-width: 18rem;
  align-self: start;
}

@media (max-width: 720px) {
  .shop-hero.is-split {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  .shop-hero.is-split .shop-hero-copy,
  .shop-hero.is-split .shop-hero-stickers {
    display: grid;
    grid-template-rows: none;
    grid-row: auto;
    gap: 14px;
  }
}

.shop-banner {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e4d7b8;
  background: #fbf6ea;
  color: #5a4d32;
  font-size: 0.92rem;
}

.shop-section-label {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

.shop-collections {
  scroll-margin-top: 96px;
  /* Enough height below the hero so #collections can scroll fully under the sticky nav. */
  min-height: calc(100vh - 120px);
}

.shop-type-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-type-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 2.2fr) auto;
  gap: 20px 18px;
  align-items: center;
  padding: 18px 18px 18px 22px;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  border-radius: 14px;
}

.shop-type-copy {
  min-width: 0;
}

.shop-type-copy h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.shop-type-copy p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.shop-type-previews {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.page-content a.shop-type-preview,
.shop-type-preview {
  flex: 0 0 auto;
  width: clamp(72px, 8.5vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.page-content a.shop-type-preview:hover,
.shop-type-preview:hover {
  text-decoration: none;
  opacity: 1;
}

.shop-type-preview-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shop-ink);
  line-height: 1.2;
  min-height: 2.4em;
  overflow: hidden;
}

.shop-type-preview-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #f3efe8;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  overflow: hidden;
  padding: 5px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shop-type-preview:hover .shop-type-preview-art {
  border-color: #b0aaa0;
  transform: translateY(-2px);
}

.shop-type-preview-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.page-content a.shop-type-browse,
.shop-type-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #000;
  border: 1px solid #000;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-content a.shop-type-browse:hover,
.shop-type-browse:hover {
  background: #2c2925;
  opacity: 1;
}

@media (max-width: 900px) {
  .shop-type-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .shop-type-browse {
    justify-self: start;
  }
}

.shop-shell-wide {
  max-width: 1180px;
}

.shop-range {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin: 8px 0 24px;
}

.shop-range-copy {
  position: sticky;
  top: 96px;
  padding-top: 4px;
}

.shop-range-label {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.shop-range-kicker {
  color: #c45c6a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.shop-range-type {
  color: var(--shop-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.shop-range-copy h1 {
  margin: 0 0 18px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--shop-ink);
  max-width: 14ch;
}

.shop-range-body {
  margin: 0 0 16px;
  color: var(--shop-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
}

.shop-range-closer {
  margin: 0;
  color: var(--shop-ink);
  font-size: 1.02rem;
  line-height: 1.55;
  font-style: italic;
  max-width: 36rem;
}

.shop-range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}

.page-content a.shop-range-cat,
.shop-range-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.page-content a.shop-range-cat:hover,
.shop-range-cat:hover {
  text-decoration: none;
  opacity: 1;
}

.shop-range-cat-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-ink);
  line-height: 1.25;
  min-height: 2.5em;
}

.shop-range-cat-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #f3efe8;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  overflow: hidden;
  padding: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shop-range-cat:hover .shop-range-cat-art {
  border-color: #b0aaa0;
  transform: translateY(-2px);
}

.shop-range-cat-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shop-range-cat-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 10px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.shop-range-cat:hover .shop-range-cat-view {
  background: #000;
  border-color: #000;
  color: #fff;
}

@media (max-width: 900px) {
  .shop-range {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shop-range-copy {
    position: static;
  }
  .shop-range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.shop-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.shop-cat-card:hover {
  border-color: #b0aaa0;
}

.shop-cat-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.shop-cat-card span {
  color: var(--shop-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px 16px;
}

.shop-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-product-media {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #f3efe8;
  border: 1px solid var(--shop-line);
  padding: 10px;
}

.shop-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shop-product-card:hover .shop-product-media {
  border-color: #b0aaa0;
}

.shop-product-meta {
  padding: 10px 2px 0;
}

.shop-product-meta h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.shop-product-meta .code {
  margin: 4px 0 0;
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.shop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .shop-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.shop-detail-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.shop-detail-art {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  transition: width 0.22s ease, height 0.22s ease;
}

.shop-detail-art img {
  display: block;
  width: 100%;
  height: auto;
}

.shop-detail-art img:not([src]),
.shop-detail-art img[src=""] {
  display: none;
}

.shop-detail-art.is-loading {
  min-height: 220px;
}

.shop-detail-art.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2.5px solid rgba(32, 28, 24, 0.15);
  border-top-color: rgba(32, 28, 24, 0.7);
  border-radius: 50%;
  animation: shop-preview-spin 0.7s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes shop-preview-spin {
  to { transform: rotate(360deg); }
}

.shop-panel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.shop-detail-art:hover .shop-panel-nav,
.shop-detail-art:focus-within .shop-panel-nav {
  opacity: 1;
}

.shop-panel-nav-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(32, 28, 24, 0.72);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}

.shop-panel-nav-btn:hover {
  background: rgba(32, 28, 24, 0.92);
  transform: scale(1.05);
}

@media (hover: none) {
  .shop-panel-nav {
    opacity: 1;
  }
}

.shop-panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.shop-panel-tab {
  margin: 0;
  padding: 8px 6px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #eceae4;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.shop-panel-tab span {
  display: block;
  font-weight: 500;
  color: var(--shop-muted);
  font-size: 0.7rem;
}

.shop-panel-tab:hover {
  background: #e4eef6;
  color: #1a5f9e;
}

.shop-panel-tab.is-on {
  background: #1a5f9e;
  color: #fff;
  border-color: #1a5f9e;
}

.shop-panel-tab.is-on span {
  color: rgba(255, 255, 255, 0.82);
}

.shop-form-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--shop-muted);
}

.shop-linktag {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shop-qr-style-wrap {
  margin: 0 0 16px;
}

.shop-qr-style-wrap[hidden] {
  display: none !important;
}

.shop-qr-style-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--shop-muted);
  line-height: 1.4;
}

.shop-line-style {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--shop-muted);
}

.shop-size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 16px;
}

.shop-size-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  min-width: 88px;
  color: inherit;
}

.shop-size-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-size-chip:hover {
  border-color: #9bb8d4;
  background: #f5f8fb;
}

.shop-size-chip.is-sel {
  border-color: #1a5f9e;
  background: #eef5fb;
  box-shadow: 0 0 0 1px #1a5f9e;
}

.shop-size-chip-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 88px;
  width: 100%;
  min-width: 64px;
}

.shop-size-chip-art svg {
  display: block;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.12));
}

.shop-size-chip.is-sel .shop-size-chip-art svg .shop-card-face {
  fill: #d6e8f6;
  stroke: #1a5f9e;
}

.shop-size-chip.is-sel .shop-size-chip-art svg .shop-card-fold {
  stroke: #1a5f9e;
}

.shop-size-chip-meta {
  text-align: center;
  line-height: 1.25;
}

.shop-size-chip-meta strong {
  display: block;
  font-size: 0.85rem;
}

.shop-size-chip-meta small {
  display: block;
  color: var(--shop-muted);
  font-size: 0.72rem;
}

.shop-detail-copy h1 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.shop-detail-copy .code {
  margin: 0 0 22px;
  color: var(--shop-muted);
  font-size: 0.92rem;
}

.shop-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--shop-muted);
}

.shop-form select,
.shop-form input[type="number"],
.shop-form input[type="text"],
.shop-form input[type="email"],
.shop-form input[type="tel"] {
  width: 100%;
  max-width: 320px;
  padding: 11px 12px;
  margin: 0 0 16px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: var(--shop-surface);
  color: var(--shop-ink);
  font-size: 0.98rem;
}

.shop-form select:focus,
.shop-form input:focus {
  outline: 2px solid #cfc8bb;
  outline-offset: 1px;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.shop-btn-primary,
a.shop-btn-primary,
button.shop-btn-primary,
.page-content a.shop-btn-primary,
.page-content a.shop-btn.shop-btn-primary {
  background: var(--shop-ink);
  color: #fff !important;
  border-color: var(--shop-ink);
  text-decoration: none;
}

.shop-btn-primary:hover,
a.shop-btn-primary:hover,
button.shop-btn-primary:hover,
.page-content a.shop-btn-primary:hover,
.page-content a.shop-btn.shop-btn-primary:hover {
  background: #2a2622;
  color: #fff !important;
}

.shop-btn-ghost {
  background: var(--shop-surface);
  color: var(--shop-ink);
  border-color: var(--shop-line);
}

.shop-btn-ghost:hover {
  border-color: #b0aaa0;
}

.shop-err {
  margin: 0 0 14px;
  color: #8a3b1d;
  font-size: 0.92rem;
}

.shop-empty {
  padding: 36px 0;
  color: var(--shop-muted);
}

.shop-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-line img {
  width: 72px;
  height: 108px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--shop-line);
  background: #ebe7e0;
}

.shop-line h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.shop-line p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.88rem;
}

.shop-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.shop-line-actions input[type="number"] {
  width: 64px;
  padding: 7px 8px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: var(--shop-surface);
}

.shop-line-actions button {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--shop-line);
  background: var(--shop-surface);
  cursor: pointer;
  font-size: 0.82rem;
}

.shop-line-price {
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}

.shop-totals {
  margin: 24px 0 0;
  margin-left: auto;
  max-width: 280px;
  text-align: right;
}

.shop-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0;
  color: var(--shop-muted);
  font-size: 0.95rem;
}

.shop-totals-row.is-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--shop-line);
  color: var(--shop-ink);
  font-size: 1.1rem;
  font-weight: 650;
}

.shop-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}

.shop-summary {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--shop-line);
  background: var(--shop-surface);
}

.shop-summary .total {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 650;
}

.shop-note {
  margin: 10px 0 0;
  color: var(--shop-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.shop-checkout-form label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--shop-muted);
}

.shop-checkout-form input,
.shop-checkout-form select {
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: var(--shop-surface);
  font-size: 0.98rem;
}

.tcg-delivery {
  margin-top: 22px;
  padding: 0 16px 8px;
  border-radius: 12px;
  background: #f4f7fc;
  border: 1px solid #d5deef;
  overflow: hidden;
}

.tcg-head {
  display: flex;
  align-items: center;
  margin: 0 -16px 14px;
  padding: 8px 16px;
  background: #2e4691;
}

.tcg-logo {
  display: block;
  height: 41px;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.tcg-lead {
  margin: 6px 0 4px;
  color: #24324a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tcg-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 8px;
}

.tcg-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 2px solid #d5deef;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font: inherit;
  color: #24324a;
}

.tcg-option.is-selected {
  border-color: #ed7d31;
  box-shadow: inset 0 0 0 1px #ed7d31;
}

.tcg-option.is-disabled {
  cursor: default;
  color: #6b7280;
}

.tcg-retailer-heading {
  margin: 16px 0 0;
  color: #000;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
}

.tcg-option-logo {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.tcg-option-copy {
  flex: 1;
  min-width: 0;
}

.tcg-option-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tcg-pin {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e23b2f;
  cursor: pointer;
}

.tcg-pin svg {
  display: block;
  width: 22px;
  height: 22px;
}

.tcg-option strong {
  display: block;
  color: #000;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
}

.tcg-option-name {
  text-decoration: underline;
  cursor: pointer;
}

.tcg-option span {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.35;
}

.tcg-option strong.tcg-distance {
  display: block;
  margin-top: 4px;
  color: #24324a;
  font-size: 0.84rem;
  font-weight: 700;
}

.tcg-price {
  flex: none;
  color: #ed7d31;
  font-weight: 750;
  font-size: 1.05rem;
}

.tcg-select {
  flex: none;
  align-self: center;
  border: 0;
  border-radius: 8px;
  background: #264796;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.tcg-option.is-selected .tcg-select {
  background: #ed7d31;
}

.shop-checkout-form .shop-btn {
  margin-top: 22px;
}

.checkout-step[hidden] {
  display: none;
}

.checkout-step .tcg-delivery {
  margin-top: 0;
}

.checkout-heading {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.checkout-heading.is-next {
  margin-top: 28px;
}

.checkout-choice {
  margin: 10px 0 0;
  color: #24324a;
  font-size: 0.92rem;
  line-height: 1.4;
}

#back-to-delivery {
  margin-top: 12px;
  margin-bottom: 4px;
}

.checkout-step .shop-totals {
  max-width: none;
}

.addr-find {
  position: relative;
  margin-top: 16px;
}

.addr-suggestions {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.12);
}

.addr-suggestions button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  color: #1c1c1c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.addr-suggestions button:last-child {
  border-bottom: 0;
}

.addr-suggestions button:hover,
.addr-suggestions button.is-active {
  background: #f4f7fc;
}

.float-heading {
  margin: 18px 0 2px;
  color: #1a1a1a;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.float-heading.is-contact {
  margin-top: 28px;
}

.shop-checkout-form label.float-field {
  position: relative;
  display: block;
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 400;
  color: inherit;
}

.shop-checkout-form label.float-field input,
.shop-checkout-form label.float-field select {
  width: 100%;
  height: 56px;
  padding: 16px 14px 0;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  font-size: 1rem;
}

.shop-checkout-form label.float-field input::placeholder {
  color: transparent;
}

.shop-checkout-form label.float-field > span:last-child {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  color: #8a8a8a;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  background: #fff;
}

.shop-checkout-form label.float-field input:focus + span,
.shop-checkout-form label.float-field input:not(:placeholder-shown) + span,
.shop-checkout-form label.float-field.is-filled > span:last-child,
.shop-checkout-form label.float-field-phone.is-filled > span:last-child,
.shop-checkout-form label.float-field-phone:focus-within > span:last-child {
  top: 0;
  font-size: 0.78rem;
  color: #6b6b6b;
}

.shop-checkout-form label.float-field-auto {
  display: inline-block;
  width: auto;
  min-width: 148px;
}

.shop-checkout-form label.float-field-auto select {
  width: auto;
  min-width: 148px;
  padding-right: 32px;
  color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23222' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.shop-checkout-form label.float-field-auto.is-filled select,
.shop-checkout-form label.float-field-auto select:focus {
  color: #1c1c1c;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 16px;
}

.contact-grid .float-field {
  margin-top: 0;
}

.contact-rule {
  margin: 18px 0 0;
  border: 0;
  border-top: 1px solid #e6e6e6;
}

.phone-prefix {
  display: none;
  position: absolute;
  left: 12px;
  top: 58%;
  align-items: center;
  gap: 6px;
  color: #1c1c1c;
  font-size: 1rem;
  pointer-events: none;
}

.shop-checkout-form label.float-field-phone.is-filled .phone-prefix,
.shop-checkout-form label.float-field-phone:focus-within .phone-prefix {
  display: inline-flex;
}

.shop-checkout-form label.float-field-phone.is-filled input,
.shop-checkout-form label.float-field-phone:focus-within input {
  padding-left: 108px;
}

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

.shop-status {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.shop-status h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.shop-status p {
  margin: 0 0 12px;
  color: var(--shop-muted);
  line-height: 1.55;
}

.shop-status a {
  color: var(--shop-ink);
}

.shop-confirm {
  margin: 28px 0 8px;
  text-align: left;
}

.shop-confirm h2 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.shop-confirm-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.shop-confirm-line img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3f3f1;
}

/* Moment's site chrome stays; the shop block keeps the Paperlink shop canvas. */
main:has(.shop) {
  background: #f7f5f1;
}

.shop button,
.shop input,
.shop select {
  font-family: inherit;
}
