.guide-chapter { scroll-margin-top: 18px; }
.guide-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.guide-gallery--start { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.guide-gallery--upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-gallery--upload .guide-shot--wide { grid-column: 1 / -1; }

.guide-shot {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.guide-shot h3 { margin-bottom: 4px; color: var(--forest); font-size: 19px; }
.guide-shot figcaption p { color: var(--muted); }
.guide-shot strong { color: var(--ink); }

.guide-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: zoom-in;
}

.guide-preview:hover { border-color: var(--gold); }
.guide-preview img { max-width: 100%; height: auto; }

.guide-enlarge {
  justify-self: end;
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-bright);
  font-size: 14px;
  font-weight: 700;
}

.guide-faq details { padding: 12px 0; border-top: 1px solid var(--line); }
.guide-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.guide-faq summary { min-height: 32px; color: var(--forest); font-weight: 700; cursor: pointer; }
.guide-faq details p { margin: 6px 0 0 19px; color: var(--muted); }
.guide-help { display: flex; flex-wrap: wrap; gap: 15px; }

.guide-viewer {
  width: min(1200px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.guide-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.guide-viewer::backdrop { background: rgba(17, 27, 43, .78); }
body:has(.guide-viewer[open]) { overflow: hidden; }
.viewer-top, .viewer-controls { display: flex; align-items: center; gap: 8px; }
.viewer-top { justify-content: space-between; }
.viewer-top h2 { font-size: clamp(16px, 3vw, 21px); }
.viewer-top form { flex: none; }
.viewer-controls { flex-wrap: wrap; justify-content: center; }
.viewer-controls button:disabled { opacity: .55; cursor: default; }

.viewer-scroll {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.viewer-scroll img { width: auto; height: auto; margin-inline: auto; }
.guide-viewer.is-zoomed .viewer-scroll img { max-width: none; margin-inline: 0; }
.viewer-count { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .guide-gallery--start { grid-template-columns: minmax(0, 1fr); }
  .guide-shot { padding: 14px; }
}

@media (max-width: 500px) {
  .guide-gallery--upload { grid-template-columns: minmax(0, 1fr); }
  .guide-preview { padding-bottom: 6px; }
  .guide-viewer { padding: 10px; }
  .guide-viewer .btn { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion .reveal:not(.is-in), .motion .reveal.is-in {
    opacity: 1;
    animation: none;
  }
}

.order-entry { align-self: center; white-space: nowrap; }
.guide-contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.guide-contact-panel .note { margin-top: 4px; }
.guide-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1300px) {
  .order-entry { order: -1; align-self: stretch; min-height: 46px; }
  .order-header .gnb-item { padding-block: 0; }
  .order-header .gnb-link { padding-block: 14px; }
}

.order-hero {
  --sv: url('/assets/order-packing-hero.webp');
  background-image: linear-gradient(rgba(14, 24, 42, .40), rgba(14, 24, 42, .44)), var(--sv);
  background-position: center, 50% 57%;
}

@media (max-width: 720px) {
  .order-hero {
    background-image: linear-gradient(rgba(14, 24, 42, .58), rgba(14, 24, 42, .48)), var(--sv);
    background-position: center, 77% 54%;
  }
}

.order-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.order-hero-actions .btn { min-height: 56px; padding: 12px 22px; font-size: 17px; }
.order-primary { background: var(--green); }
.order-secondary { border-color: rgba(255, 255, 255, .85); background: rgba(14, 24, 42, .52); }
.order-secondary:hover { border-color: #fff; background: var(--forest); }

.order-chapter-nav .lnb-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1060px;
  padding-block: 14px;
  overflow: visible;
}
.order-chapter-nav a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--paper);
}
.order-chapter-nav a:hover, .order-chapter-nav a:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-bright);
}
.order-chapter-nav a span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-bright);
  font-size: 14px;
}
.order-content { padding-top: 36px; }
.guide-intro .lead-center { margin: 0 auto; }
.guide-intro + .guide-chapter .sub-title { margin-top: 30px; }

@media (max-width: 600px) {
  .order-chapter-nav .lnb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-hero-actions .btn { padding-inline: 16px; }
}

.guide-intro .product-shortcut {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin: 4px auto 0;
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-products { scroll-margin-top: 16px; }

.product-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin: 64px 0 20px;
}
.product-heading .sub-title { margin: 0; }
.product-heading p { margin: 8px 0 0 18px; color: var(--muted); }
.product-heading .btn { min-height: 48px; white-space: nowrap; }

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.product-filters[hidden] { display: none; }
.product-filters .btn { min-height: 48px; }
.product-filters .btn[aria-pressed="true"] { background: var(--green); color: var(--white); }

.product-grid {
  overflow-anchor: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}
.product-card-copy { padding: 12px 14px 16px; }
.product-card h3 { color: var(--forest); font-size: 18px; line-height: 1.35; }
.product-card p { margin-top: 5px; color: var(--muted); }
.product-availability { margin-top: 18px; color: var(--muted); }

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-heading .btn { min-height: 56px; }
  .product-filters .btn { min-height: 56px; }
}

.guide-preview-image {
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
  overflow: hidden;
}

.product-picture { overflow: hidden; }

.motion .reveal:focus-within {
  opacity: 1;
  animation: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guide-preview-image img, .product-picture img { transition: transform .4s; }
  .guide-preview:hover .guide-preview-image img { transform: scale(1.05); }
  .product-card:hover .product-picture img { transform: scale(1.06); }
}
