/* Shared customer typography for the Cube storefront, quote, Local and product pages.
   The Local page is the baseline; the server injects this after each page's CSS. */
body[data-cube-shell] {
  --sans: "Noto Sans KR", "DM Sans", sans-serif;
  --serif: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --ph-font-sans: var(--sans);
  --ph-font-mono: var(--sans);
  background: #f7f3ed !important;
  color: #252722;
  font-family: "Noto Sans KR", "DM Sans", sans-serif !important;
  font-size: 14px;
  line-height: 1.7;
}

/* Legacy store/quote styles use their own font tokens. Keep every customer
   surface on the same body face as Cube Local, including step numbers. */
body[data-cube-shell] :is(.ph-storefront-root, .tp-page) {
  font-family: var(--sans) !important;
}

body[data-cube-shell] .tp-process strong {
  font-family: var(--serif) !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

body[data-cube-shell] .tp-process :is(span, small) {
  font-family: var(--sans) !important;
  font-size: 12px;
}

/* Quote's introduction follows Local's cream canvas, copy/actions column and
   sage process card. Keep the same desktop and phone spacing as Local. */
body[data-cube-shell] .tp-intro {
  width: min(1380px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 68px clamp(18px, 3.8vw, 68px) 48px;
  background: transparent;
}

body[data-cube-shell] .tp-intro > div { min-width: 0; }
body[data-cube-shell] .tp-intro .tp-eyebrow { margin: 0; }
body[data-cube-shell] .tp-intro h1 { margin: 16px 0 20px; }
body[data-cube-shell] .tp-intro-copy { max-width: 600px; margin: 0; }

body[data-cube-shell] .tp-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

body[data-cube-shell] .tp-intro-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(37, 39, 34, .14);
  border-radius: 999px;
  color: #252722;
  background: #fffdf8;
  font: 600 13px/1.5 var(--sans);
  text-align: center;
  text-decoration: none;
}

body[data-cube-shell] .tp-intro-action.is-primary {
  border-color: #cbdccf;
  background: #cbdccf;
}

body[data-cube-shell] .tp-intro-action:hover { border-color: #53675a; background: #e6eee7; }
body[data-cube-shell] .tp-intro-action.is-primary:hover { border-color: #b7cebc; background: #b7cebc; }
body[data-cube-shell] .tp-intro-action:focus-visible { outline: 3px solid #53675a; outline-offset: 3px; }

body[data-cube-shell] .tp-process {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(37, 39, 34, .14);
  border-radius: 2px;
  background: #eef1eb;
  box-shadow: none;
}

body[data-cube-shell] .tp-process li {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 20px 26px;
  border: 0;
  background: transparent;
}

body[data-cube-shell] .tp-process li + li { border-top: 1px solid rgba(37, 39, 34, .14); }
body[data-cube-shell] .tp-process li > div { min-width: 0; }
body[data-cube-shell] .tp-process li > span {
  flex: 0 0 auto;
  margin: 0;
  color: #53675a;
  font: 600 12px var(--sans);
}

body[data-cube-shell] .tp-process strong {
  display: inline;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body[data-cube-shell] .tp-process :is(small, p) {
  margin: 6px 0 0;
  color: #6f746d;
  font: 400 12px/1.7 var(--sans);
  letter-spacing: normal;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* The proxied product collection keeps its image, but shares Local's
   cream canvas, content grid and introduction rhythm. */
/* Clear every hero layer, including decorative gradients from older themes.
   The only filled surface here should be the concept photograph itself. */
body[data-cube-shell] .ph-store-hero,
body[data-cube-shell] .ph-store-hero > .ph-container,
body[data-cube-shell] .ph-store-hero-card {
  background: transparent !important;
  box-shadow: none !important;
}
body[data-cube-shell] .ph-store-hero-card::before,
body[data-cube-shell] .ph-store-hero-card::after {
  display: none !important;
  background: none !important;
}
body[data-cube-shell] .ph-store-hero-card {
  width: min(1380px, 100%);
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
  gap: clamp(32px, 6vw, 80px);
  padding: 68px clamp(18px, 3.8vw, 68px) 48px;
  border: 0;
}
body[data-cube-shell] .ph-store-hero-left {
  min-width: 0;
  max-width: none !important;
}
body[data-cube-shell] .ph-store-title {
  max-width: none;
  margin: 16px 0 20px;
}
body[data-cube-shell] .ph-store-desc { max-width: 600px; margin: 0; }
body[data-cube-shell] .ph-hero-shop-link {
  box-sizing: border-box;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 10px 22px;
  border: 1px solid #cbdccf;
  border-radius: 999px;
  color: #252722;
  background: #cbdccf;
  font: 600 13px/1.5 var(--sans);
}
body[data-cube-shell] .ph-hero-shop-link:hover {
  border-color: #b7cebc;
  color: #252722;
  background: #b7cebc;
}
body[data-cube-shell] .ph-hero-shop-link:focus-visible {
  outline: 3px solid #53675a;
  outline-offset: 3px;
}
body[data-cube-shell] .ph-catalog-section {
  box-sizing: border-box;
  width: min(1380px, 100%);
  margin-inline: auto;
  padding: 68px clamp(18px, 3.8vw, 68px) 88px;
}
body[data-cube-shell] .ph-catalog-section > .ph-container { width: 100%; max-width: none; }

@media (max-width: 1180px) {
  body[data-cube-shell] .tp-intro { gap: 32px; }
  body[data-cube-shell] .ph-store-hero-card { gap: 32px; }
}

body[data-cube-shell] .quantity button {
  font-family: var(--sans);
}

body[data-cube-shell] #hero-title,
body[data-cube-shell] #page-title,
body[data-cube-shell] .ph-store-hero .ph-store-title {
  color: #252722;
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(2rem, 4.2vw, 3.75rem) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.045em !important;
  word-break: keep-all;
}

body[data-cube-shell] .ph-catalog-main-title,
body[data-cube-shell] .workspace h2,
body[data-cube-shell] .tp-workspace h2 {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(1.8rem, 2.8vw, 2.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.04em !important;
  word-break: keep-all;
}

body[data-cube-shell] #product-name {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.04em !important;
  word-break: keep-all;
}

body[data-cube-shell] .checkout-form-panel h1,
body[data-cube-shell] main > h1 {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(2rem, 4.2vw, 3.75rem) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.045em !important;
  word-break: keep-all;
}

body[data-cube-shell] .result-card h1 {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.04em !important;
  word-break: keep-all;
}

body[data-cube-shell] :is(.checkout-form-panel legend, .order-summary h2, .dialog-heading h2) {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-weight: 400 !important;
}

body[data-cube-shell] .detail-story {
  background: #eef1eb;
}

body[data-cube-shell] .detail-story h2,
body[data-cube-shell] .related h2 {
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.04em !important;
  word-break: keep-all;
}

body[data-cube-shell] .hero-description,
body[data-cube-shell] .tp-intro-copy,
body[data-cube-shell] .ph-store-desc,
body[data-cube-shell] .product-summary {
  color: #6f746d;
  font-family: "Noto Sans KR", "DM Sans", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  word-break: keep-all;
}

body[data-cube-shell] :is(.eyebrow, .ph-store-tag, .tp-eyebrow) {
  color: #657d6d;
  font-family: "Noto Sans KR", "DM Sans", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.14em;
}

@media (max-width: 768px) {
  body[data-cube-shell] .tp-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 16px 24px;
  }
  body[data-cube-shell] .tp-intro h1 { margin-block: 12px 16px; }
  body[data-cube-shell] .tp-intro-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  body[data-cube-shell] .tp-intro-action { padding-inline: 8px; font-size: 12px; }
  body[data-cube-shell] .tp-process li { min-height: 66px; padding: 14px 18px; gap: 18px; }
  body[data-cube-shell] .tp-process :is(small, p) { margin-top: 3px; }
  /* Local uses 17px step labels on phones; keep quote's steps at that scale. */
  body[data-cube-shell] .tp-process strong {
    font-size: 17px;
  }

  body[data-cube-shell] .ph-store-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 16px 24px;
  }
  body[data-cube-shell] .ph-store-hero-left { grid-column: 1; grid-row: 1; }
  body[data-cube-shell] .ph-cube-concept-image { grid-column: 1; grid-row: 2; }
  body[data-cube-shell] .ph-store-title { margin-block: 12px 16px; }
  body[data-cube-shell] .ph-hero-shop-link { margin-top: 20px; font-size: 12px; }
  body[data-cube-shell] .ph-catalog-section { padding: 38px 16px 88px; }
  body[data-cube-shell] .ph-catalog-title-row { padding-inline: 0; }
}
