/* A long editorial column beside a viewport-pinned purchase panel.
 * Scope overrides to this page; the generated inline design remains intact. */
html.wf-product-page,
.wf-product-page body {
  overflow-x: clip;
  overflow-y: visible;
}
.wf-product-layout {
  --purchase-top: 80px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: start;
  column-gap: clamp(32px, 5vw, 72px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px 0;
}
.wf-product-layout > * { min-width: 0; }
.wf-product-gallery,
.wf-product-tabs,
.wf-product-layout > section { grid-column: 1; }
.wf-product-gallery > [role="img"] { border-radius: 4px !important; }
.wf-product-layout > section {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 48px 0 0 !important;
  scroll-margin-top: 124px;
}
.wf-product-layout > section h2 { font-size: clamp(24px, 2.4vw, 30px) !important; }
.wf-product-tabs {
  position: sticky !important;
  top: 56px !important;
  z-index: 30 !important;
  margin-top: 36px !important;
  background: #fff !important;
}
.wf-product-tabs > div {
  padding: 0 !important;
  gap: 0 !important;
  justify-content: space-between;
}
.wf-product-tabs a {
  flex: 1 0 auto;
  justify-content: center;
  padding: 0 10px;
}
.wf-product-purchase {
  grid-column: 2;
  grid-row: 1 / span 7;
  position: sticky;
  top: var(--purchase-top);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--purchase-inset, var(--purchase-top)) - 16px);
  height: calc(100dvh - var(--purchase-inset, var(--purchase-top)) - 16px);
  min-height: 0;
  background: #fff;
}
.wf-product-options {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d6 transparent;
  scrollbar-gutter: stable;
  padding: 0 12px 20px 0;
}
.wf-product-options h1 {
  font-size: clamp(25px, 2vw, 30px) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.7px !important;
}
.wf-product-checkout {
  flex: 0 0 auto;
  padding-top: 4px;
  background: #fff;
  box-shadow: 0 -12px 18px -18px rgba(0, 0, 0, .2);
}
.wf-product-quantity {
  padding: 16px 0 !important;
  margin-bottom: 16px !important;
  border-bottom: 0 !important;
}
.wf-product-actions { flex-wrap: nowrap !important; }
.wf-product-actions button[data-act] {
  min-width: 0;
  min-height: 52px;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600;
}
.wf-product-actions button:not([data-act]) { border-radius: 8px !important; }
.wf-product-purchase :focus-visible,
.wf-product-tabs a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 3px;
}
@media (min-width: 1024px) {
  .wf-product-buybar,
  .wf-product-buybar-space { display: none !important; }
}
@media (max-width: 1023px) {
  .wf-product-layout {
    display: block;
    max-width: 760px;
    padding: 24px 20px 0;
  }
  .wf-product-purchase {
    position: static;
    height: auto;
    margin-top: 32px;
  }
  .wf-product-options { overflow: visible; padding: 0; }
  .wf-product-tabs { margin-top: 40px !important; }
  .wf-product-layout > section { padding-top: 36px !important; }
  .wf-product-options h1 { font-size: 28px !important; }
  .wf-product-tabs a { font-size: 13px !important; padding: 0 8px; }
  .wf-product-buybar > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px !important;
    box-sizing: border-box;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  .wf-product-buybar > div > div:first-child {
    display: grid !important;
    gap: 3px !important;
  }
  .wf-product-buybar [data-wf-sum] { font-size: 11px !important; }
  .wf-product-buybar button {
    min-width: 80px !important;
    padding: 0 12px;
    font-size: 14px !important;
  }
}
@media (max-width: 420px) {
  .wf-product-layout { padding-right: 16px; padding-left: 16px; }
  .wf-product-buybar > div > div:last-child { gap: 6px !important; }
  .wf-product-buybar button { min-width: 72px !important; padding: 0 10px; }
}
@media print {
  .wf-product-purchase { position: static; height: auto; }
  .wf-product-options { overflow: visible; }
  .wf-product-buybar { display: none !important; }
}
/* 대표 사진 — img 의 height="800" 이 aspect-ratio 를 이겨 휴대폰에서 세로로 길게 잘려 보였다 (사장님 2026-10-02) */
.wf-pd-photo{height:auto}
