/* Refinements on top of the original Goda Global styles (site.css / responsive.css / interactions.css).
   Keep the original look; only fix and extend here. */

/* Home "Find your next favorite": the old .collection-section rule painted this red,
   which hid the red headings and product names. The finder is designed for paper. */
.collection-section.collection-finder {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Why now: export momentum (paper) ---------- */
.momentum-section { background: var(--paper); color: var(--red); border-top: 1px solid var(--line); }
.momentum-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.momentum-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.momentum-head h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.momentum-head p { color: var(--ink); font-size: 16px; line-height: 1.8; max-width: 520px; }
.momentum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--red); }
.stat { padding: 28px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 6.4vw, 104px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 16px; max-width: 320px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.momentum-source { margin-top: 36px; font-size: 12px; color: var(--muted-text); }
.momentum-source a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .momentum-head { grid-template-columns: 1fr; }
  .momentum-stats { grid-template-columns: 1fr; border-top: 0; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top-color: var(--red); }
}

/* ---------- Private label / OEM-ODM (red band) ---------- */
.oem-section { background: var(--red); color: var(--paper); }
.oem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px); }
.oem-copy h2 { font-size: clamp(44px, 5.6vw, 86px); margin-bottom: 28px; }
.oem-copy > p { max-width: 520px; font-size: 16px; line-height: 1.8; }
.oem-note { margin-top: 18px; font-size: 14px; opacity: 0.85; }
.oem-note strong { font-family: var(--display); font-size: 20px; }
.oem-button { margin-top: 34px; background: var(--paper); border-color: var(--paper); color: var(--red); }
.oem-button:hover { background: #fff; }
.oem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ffffff66; }
.oem-list li { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid #ffffff40; }
.oem-list h3 { font-family: var(--display); font-size: 17px; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.oem-list p { font-size: 14px; line-height: 1.7; margin: 0; opacity: 0.92; }
.oem-steps { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: none; }
.oem-steps li { position: relative; padding: 26px 22px 0 0; border-top: 2px solid #ffffff59; }
.oem-steps li::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--paper); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--n, 0) * 140ms); }
.oem-steps.in-view li::before { width: 100%; }
.oem-step-no { display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 12px; }
.oem-steps h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin: 0 0 8px; }
.oem-steps p { font-size: 14px; line-height: 1.65; margin: 0; opacity: 0.9; }
@media (max-width: 1000px) {
  .oem-grid { grid-template-columns: 1fr; }
  .oem-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 560px) {
  .oem-list li { grid-template-columns: 1fr; }
  .oem-steps { grid-template-columns: 1fr; }
}

/* ---------- From Busan to your market (navy) ---------- */
.markets-section { background: var(--brand-navy); color: var(--paper); overflow: hidden; }
.markets-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.markets-head h2 { font-size: clamp(44px, 5.6vw, 86px); }
.markets-head p { max-width: 460px; font-size: 16px; line-height: 1.8; opacity: 0.88; margin-bottom: 18px; }
.markets-map { margin: clamp(32px, 5vw, 64px) 0 0; }
.route-map { display: block; width: 100%; height: auto; overflow: visible; }
.map-land path { fill: #ffffff1a; stroke: var(--brand-navy); stroke-width: 0.6; }
.map-land path.is-market { fill: #b52c23cc; }
.route { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 5; opacity: 0.9; }
.markets-map.is-ready .route { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.markets-map.is-drawn .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(0.45, 0, 0.2, 1); transition-delay: calc(var(--i) * 0.22s); }
.pin circle { fill: var(--paper); }
.pin text { fill: var(--paper); font: 600 15px/1 var(--body); paint-order: stroke; stroke: var(--brand-navy); stroke-width: 4px; }
.markets-map.is-ready .pin:not(.origin) { opacity: 0; transition: opacity 0.4s; transition-delay: calc(var(--i) * 0.22s + 1.4s); }
.markets-map.is-drawn .pin:not(.origin) { opacity: 1; }
.pin.origin circle { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.pin.origin .pulse { fill: none; stroke: var(--paper); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(32px, 5vw, 56px) 0 0; border-top: 1px solid #ffffff40; }
.trust-strip div { padding: 22px 22px 0 0; }
.trust-strip div + div { padding-left: 22px; border-left: 1px solid #ffffff26; }
.trust-strip dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.trust-strip dd { margin: 8px 0 0; }
.trust-strip strong { display: block; font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; text-transform: uppercase; }
.trust-strip span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; opacity: 0.75; }
@media (max-width: 900px) {
  .markets-head { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip div, .trust-strip div + div { padding: 18px 12px 18px 0; border-left: 0; border-bottom: 1px solid #ffffff1f; }
}
@media (max-width: 600px) {
  .markets-map { margin-inline: -20px; }
  .pin text { font-size: 30px; stroke-width: 7px; }
  .pin circle { r: 9; }
}
@media (prefers-reduced-motion: reduce) {
  .markets-map.is-ready .route { stroke-dashoffset: 0; }
  .markets-map.is-ready .pin { opacity: 1; }
  .pin.origin .pulse { animation: none; }
  .oem-steps li::before { width: 100%; transition: none; }
}

/* ---------- CTA: second link (WhatsApp) ---------- */
.cta-links { display: inline-flex; flex-wrap: wrap; gap: 14px 32px; }

/* ---------- Products: "Don't see what you need?" tile ---------- */
.custom-tile { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 100%; padding: 32px 28px; border: 1px dashed var(--red); color: var(--red); background: transparent; }
.custom-tile-mark { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--red); border-radius: 50%; }
.custom-tile h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; text-transform: uppercase; margin: 6px 0 0; }
.custom-tile p { color: var(--ink); font-size: 14px; line-height: 1.7; margin: 0; }
.custom-tile .textlink { align-self: flex-start; }

/* ---------- Product dialog: secondary actions ---------- */
.detail-more { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--red); }
.detail-more .textlink { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: var(--body); color: inherit; }

/* ---------- Contact: inquiry type ---------- */
.inquiry-type { border: 0; margin: 0 0 26px; padding: 0; }
.inquiry-type legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.inquiry-type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.inquiry-type label { position: relative; cursor: pointer; }
.inquiry-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.inquiry-type span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.inquiry-type input:checked + span { border-color: var(--red); background: var(--red); color: var(--paper); }
.inquiry-type input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Print: one-page spec sheet (product dialog or product page) ---------- */
/* Product spec sheet: the print button, or the browser's own Print / Save as PDF on a product page, prints the product only (no site header, menu or footer) */
@media print {
  :is(html.print-sheet, html:has(.product-page)) body > :not(main):not([data-slot='dialog-content']) { display: none !important; }
  :is(html.print-sheet, html:has(.product-page)) main > :not(.product-page) { display: none !important; }
  html.print-sheet.print-from-dialog main { display: none !important; }
  :is(html.print-sheet, html:has(.product-page)) .breadcrumbs { display: none !important; }
  :is(html.print-sheet, html:has(.product-page)) .product-page { padding: 0 !important; }
  :is(html.print-sheet, html:has(.product-page)) .product-page .wrap { width: 100% !important; }
  :is(html.print-sheet, html:has(.product-page)) body { background: #fff !important; }
  :is(html.print-sheet, html:has(.product-page)) :is([data-slot='dialog-content'], .product-sheet) {
    position: static !important; inset: auto !important; translate: none !important; transform: none !important; animation: none !important;
    width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; overflow: visible !important;
    display: grid !important; grid-template-columns: 34% 1fr !important; gap: 8mm !important; padding: 0 !important; margin: 0 !important;
    border: 0 !important; box-shadow: none !important; background: #fff !important; font-size: 10pt;
  }
  :is(html.print-sheet, html:has(.product-page)) .dialog-gallery { display: grid !important; grid-template-columns: 1fr !important; gap: 4mm; align-content: start; overflow: visible !important; height: auto !important; position: static !important; padding: 0 !important; background: none !important; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-gallery figure { margin: 0; break-inside: avoid; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-gallery figcaption { display: none; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-gallery img { width: 100%; height: auto; max-height: 70mm; object-fit: contain; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-copy { overflow: visible !important; height: auto !important; max-height: none !important; padding: 0 !important; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-copy [data-slot='dialog-title'] { font-size: 22pt !important; }
  :is(html.print-sheet, html:has(.product-page)) .product-allergens { margin: 3mm 0 !important; padding: 2mm 3mm !important; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-copy dl { margin: 3mm 0 !important; }
  :is(html.print-sheet, html:has(.product-page)) .product-detail-section { margin-top: 3mm !important; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-copy :is(dl > div, .product-specs > div) { font-size: 9pt !important; line-height: 1.4 !important; }
  :is(html.print-sheet, html:has(.product-page)) :is([data-slot='dialog-content'], .product-sheet) :is(button, .button, .detail-more, [data-slot='dialog-close']) { display: none !important; }
  :is(html.print-sheet, html:has(.product-page)) .dialog-copy::after { content: 'Goda Global Co., Ltd.  |  goda@godaglobal.com  |  +82-51-969-9193  |  godaglobal.com'; display: block; margin-top: 5mm; padding-top: 3mm; border-top: 1px solid #ccc; font-size: 8pt; color: #555; }
  @page { size: A4; margin: 12mm; }
}

/* ---------- Product pages ---------- */
.product-page { padding-top: clamp(28px, 4vw, 48px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--muted-text); }
.breadcrumbs a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.product-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); align-items: start; }
.product-sheet .dialog-gallery { align-self: stretch; }
.product-sheet .dialog-gallery.all-product-photos { position: sticky; top: calc(var(--site-header-height) + 16px); }
.product-sheet .dialog-copy [data-slot='dialog-title'] { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; }
@media (max-width: 860px) { .product-sheet { grid-template-columns: 1fr; } .product-sheet .dialog-gallery.all-product-photos { position: static; } }
.related-products { padding-top: 0; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; color: var(--red); }
.related-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.landing-range { background: var(--paper); }
.landing-lede { max-width: 620px; margin: -8px 0 32px; font-size: 16px; line-height: 1.8; color: var(--ink); }
.landing-lede.fine-print { margin: 36px 0 0; font-size: 13px; color: var(--muted-text); }
.landing-faq { padding-top: 0; }

/* category pages: facts under the grid; category filters are links now */
.category-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 48px 0 0; border-top: 1px solid var(--red); color: var(--red); }
.landing-range .category-facts { margin: 0 0 40px; }
.category-facts div { padding: 16px 16px 0 0; }
.category-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-text); }
.category-facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; text-transform: uppercase; }
a.filter { text-decoration: none; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Horizontal tab rows on small screens: no visible scrollbar, soft fade at the cut edge ---------- */
.discovery-category-controls,
.finder-categories,
.catalog-controls .filters {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.discovery-category-controls::-webkit-scrollbar,
.finder-categories::-webkit-scrollbar,
.catalog-controls .filters::-webkit-scrollbar { display: none; }
[data-more='right'] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
[data-more='left'] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
[data-more='both'] { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* ---------- Feature badges: OEM/ODM filled red (matches the PDF catalogue) ---------- */
.product-badges > span.is-oem { background: var(--red); border-color: var(--red); color: var(--paper); font-weight: 600; }
.finder-features { align-items: center; }
.finder-features .is-oem { display: inline-block; background: var(--red); color: var(--paper); font-weight: 600; padding: 2px 6px; border-radius: 2px; line-height: 1.4; }

/* Feature colours (same as the PDF catalogue): OEM/ODM red · Halal navy · Vegan green · Vegetarian light green · Non-GMO amber */
.product-badges > span.is-halal, .finder-features .is-halal { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--paper); font-weight: 600; }
.product-badges > span.is-vegan, .finder-features .is-vegan { background: #1f6b45; border-color: #1f6b45; color: var(--paper); font-weight: 600; }
.product-badges > span.is-veg, .finder-features .is-veg { background: #e2efe6; border-color: #1f6b45; color: #1f6b45; font-weight: 600; }
.product-badges > span.is-nongmo, .finder-features .is-nongmo { background: #8a5a0b; border-color: #8a5a0b; color: var(--paper); font-weight: 600; }
.finder-features :is(.is-halal, .is-vegan, .is-veg, .is-nongmo) { display: inline-block; padding: 1px 6px; border: 1px solid; border-radius: 2px; line-height: 1.4; }
