body:has(> .store-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.shop:has(+ .store-footer) { flex: 1; min-height: auto; }
.store-footer {
  border-top: 1px solid var(--line);
  background: var(--paper) url('./assets/cotton.jpg') left top / 390px auto repeat;
}
.store-footer > nav, .store-footer > a {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 8px clamp(12px, 5vw, 18px);
}
.store-footer a, .store-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.store-footer nav a { color: var(--muted); font-size: 13px; }

@media (min-width: 840px) {
  .store-footer > nav, .store-footer > a { justify-content: center; }
}

.product-description:has(.product-information) { gap: 18px; padding: 0; border: 0; }
.product-information, .store-guide section {
  display: grid;
  gap: 8px;
  padding-block: 14px 0;
  border-top: 1px solid var(--line);
}
.product-description .product-information p { white-space: normal; }
.product-description .product-information [data-description] { white-space: pre-wrap; }
.store-note { color: var(--muted); font-size: 13px; }
.store-facts { margin: 0; }
.store-facts > div {
  display: grid;
  grid-template-columns: minmax(76px, 26%) minmax(0, 1fr);
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}
.store-facts dt { font-weight: 700; }
.store-facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.store-facts [data-care] { white-space: pre-wrap; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }

.store-guide {
  --content-width: 720px;
  display: grid;
  gap: 18px;
  background: var(--softened-cotton);
}
.store-guide h1 { font-size: clamp(23px, 5vw, 31px); }
.store-guide h2 { font-size: 18px; }
.store-guide p { overflow-wrap: anywhere; }
.store-guide section { scroll-margin-top: 18px; }
.store-guide-notice {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgb(255 253 247 / 55%);
}

@media (horizontal-viewport-segments: 2) {
  .store-guide, .store-footer > nav, .store-footer > a {
    max-width: env(viewport-segment-width 0 0);
    margin-inline: 0 auto;
  }
}
