/* OEM/ODM page v4 (พระราม 2 เคมีภัณฑ์) — standalone stylesheet, red gradient theme (matches the article hero sample) */
:root {
  --k4-red: #c3202d;
  --k4-red-deep: #7a0f1c;
  --k4-red-dark: #1b0709;
  --k4-glow: #ff5a5f;
  --k4-blush: #fdf1f1;
  --k4-cream: #fff8f7;
  --k4-ink: #2a1a1d;
  --k4-mute: #6e5c60;
  --k4-line: #f0d6d9;
  --k4-green: #06c755;
  --k4-radius: 14px;
  --k4-shadow: 0 12px 32px rgba(122, 15, 28, .14);
  --k4-dark-grad: radial-gradient(circle at 84% 14%, rgba(255, 90, 95, .32), transparent 44%), radial-gradient(circle at 8% 92%, rgba(255, 60, 70, .16), transparent 42%), linear-gradient(120deg, #140708 0%, #3a0b13 46%, #7a0f1c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.k4-page {
  margin: 0;
  background: #fff;
  color: var(--k4-ink);
  font-family: "Anuphan", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.k4-page img { max-width: 100%; height: auto; display: block; }
:where(body.k4-page) a { color: inherit; text-decoration: none; }
body.k4-page h1, body.k4-page h2, body.k4-page h3, body.k4-page h4, body.k4-page p { margin: 0; }
body.k4-page ul, body.k4-page ol { margin: 0; padding: 0; list-style: none; }
body.k4-page h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; font-weight: 700; color: var(--k4-red-deep); }

.k4-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.k4-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.k4-skip { position: absolute; left: -999px; top: 0; }
.k4-skip:focus { left: 16px; top: 8px; background: var(--k4-red-deep); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.k4-mono { font-variant-numeric: tabular-nums; }
.k4-eyebrow { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--k4-red); text-transform: uppercase; margin-bottom: 6px; }
.k4-eyebrow-light { color: #ffb3b3; }
.k4-script { font-family: "Caveat", "Segoe Script", cursive; font-style: italic; color: var(--k4-red-deep); }

/* Top bar (matches the reference screenshot: maroon strip, contact line on the right) */
.k4-topbar { background: #4a0f1e; color: #f3e6ea; font-size: 13px; }
.k4-topbar-row { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.k4-topbar b { color: #fff; font-weight: 700; }
@media (max-width: 560px) {
  .k4-topbar-row { justify-content: center; text-align: center; font-size: 12px; }
}

/* Buttons */
.k4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.k4-btn:hover { transform: translateY(-1px); }
.k4-btn .k4-i { width: 18px; height: 18px; }
.k4-btn-primary { background: linear-gradient(135deg, #e0343f 0%, #9b1624 100%); color: #fff; box-shadow: 0 8px 22px rgba(195, 32, 45, .35); }
.k4-btn-primary:hover { box-shadow: 0 10px 28px rgba(195, 32, 45, .5); }
.k4-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.k4-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.k4-btn-line { background: var(--k4-green); color: #fff; }
.k4-btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.k4-link { display: inline-flex; align-items: center; gap: 6px; color: var(--k4-red); font-weight: 600; }
.k4-link:hover { text-decoration: underline; }

/* Header */
.k4-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--k4-line); }
.k4-header-row { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.k4-logo { display: flex; align-items: center; gap: 12px; line-height: 1.1; margin-right: auto; }
.k4-logo-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.k4-logo-text { display: flex; flex-direction: column; }
.k4-logo-name { font-size: 26px; font-weight: 800; color: var(--k4-red-deep); letter-spacing: .01em; white-space: nowrap; }
.k4-logo small { font-size: 10px; letter-spacing: .14em; color: var(--k4-mute); margin-top: 4px; }
.k4-footer .k4-logo-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; background: #fff; }
.k4-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.k4-nav a { position: relative; padding: 6px 0; }
.k4-nav a:hover { color: var(--k4-red); }
.k4-header-actions { display: flex; align-items: center; gap: 12px; }
.k4-icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; border: 0; color: var(--k4-red-deep); cursor: pointer; }
.k4-icon-btn:hover { background: var(--k4-blush); }
.k4-menu-btn { display: none; }

/* Hero — dark red gradient with glow */
.k4-hero { background: var(--k4-dark-grad); color: #fff; padding: 52px 0 60px; overflow: hidden; }
.k4-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 32px; align-items: center; }
.k4-hero h1 { display: flex; flex-direction: column; gap: 6px; }
.k4-h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; line-height: 1.08; color: #fff; }
.k4-h1-sub { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; line-height: 1.25; color: #ff9d9d; }
.k4-tagline { margin-top: 18px; font-size: 16px; font-weight: 600; color: #ffd6d6; }
.k4-lead { margin-top: 12px; max-width: 52ch; color: #f2d9da; }
.k4-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; max-width: 560px; }
.k4-chips li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.35; font-weight: 600; color: #fff; backdrop-filter: blur(4px); }
.k4-chip-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.k4-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.k4-hero-art { position: relative; }
.k4-hero-art > img { width: 100%; border-radius: 24px; object-fit: cover; aspect-ratio: 1 / 1; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.k4-hero-art .k4-script { position: absolute; left: 4%; top: 6%; font-size: 26px; line-height: 1.1; background: rgba(255, 255, 255, .88); color: var(--k4-red-deep); padding: 6px 10px; border-radius: 10px; }
.k4-badge { position: absolute; right: -4px; bottom: 6%; width: 168px; aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; border: 6px solid rgba(255, 90, 95, .22); color: var(--k4-ink); }
.k4-badge .k4-i { color: var(--k4-red); width: 26px; height: 26px; }
.k4-badge b { font-size: 20px; color: var(--k4-red-deep); line-height: 1.1; }
.k4-badge small { font-size: 9px; letter-spacing: .12em; color: var(--k4-mute); }
.k4-badge span { font-size: 12px; font-weight: 600; color: var(--k4-red-deep); line-height: 1.3; margin-top: 4px; }

/* About */
.k4-about { padding: 72px 0 56px; background: #fff; }
.k4-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.k4-about-img { border-radius: var(--k4-radius); overflow: hidden; margin: 0; }
.k4-about-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.k4-about-copy h2 { margin-bottom: 14px; }
.k4-about-copy p { color: var(--k4-ink); margin-bottom: 22px; }
.k4-about-copy .k4-btn-primary { color: #fff; }

/* Why choose — dark red gradient band */
.k4-why { background: var(--k4-dark-grad); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
body.k4-page .k4-why h2 { color: #fff; margin-bottom: 36px; }
.k4-why-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.k4-why-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.k4-why-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 150, 150, .35); box-shadow: 0 0 24px rgba(255, 90, 95, .25); }
.k4-why-icon .k4-i { width: 28px; height: 28px; color: #fff; }
.k4-why-list b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.k4-why-quote { margin-top: 36px; text-align: right; font-family: "Caveat", "Segoe Script", cursive; font-size: 26px; line-height: 1.25; font-style: italic; color: #ffc9c9; }

/* Product categories */
.k4-categories { padding: 64px 0; background: var(--k4-cream); }
.k4-categories h2 { margin-bottom: 28px; }
.k4-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.k4-cat { display: flex; flex-direction: column; background: #fff; border-radius: var(--k4-radius); overflow: hidden; border: 1px solid var(--k4-line); transition: transform .15s ease, box-shadow .15s ease; }
.k4-cat:hover { transform: translateY(-3px); box-shadow: var(--k4-shadow); }
.k4-cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.k4-cat b { font-size: 16px; color: var(--k4-red-deep); padding: 14px 14px 2px; line-height: 1.35; }
.k4-cat span { font-size: 13px; color: var(--k4-mute); padding: 0 14px 16px; }

/* Process */
.k4-process { padding: 64px 0 40px; background: #fff; }
.k4-process h2 { margin-bottom: 36px; }

/* Ready formula + quality cards */
.k4-cards { padding: 32px 0 56px; background: #fff; }
.k4-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.k4-card { border: 1px solid var(--k4-line); border-radius: 18px; background: linear-gradient(160deg, #fff 0%, var(--k4-blush) 100%); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; overflow: hidden; box-shadow: var(--k4-shadow); }
.k4-card-copy p { margin: 10px 0 18px; color: var(--k4-ink); }
.k4-card-copy h2 { font-size: clamp(22px, 2.6vw, 28px); }
.k4-card > img { width: 180px; height: 150px; object-fit: cover; border-radius: 14px; }

/* Sample products */
.k4-products { padding: 56px 0; background: var(--k4-cream); }
.k4-products h2 { margin-bottom: 26px; }
.k4-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.k4-product { background: #fff; border: 1px solid var(--k4-line); border-radius: var(--k4-radius); overflow: hidden; display: flex; flex-direction: column; }
.k4-product-pic { display: block; background: var(--k4-blush); }
.k4-product-pic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.k4-product-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.k4-product-info h3 { font-size: 16px; line-height: 1.4; color: var(--k4-ink); font-weight: 600; }
.k4-product-price { color: var(--k4-red-deep); font-weight: 700; margin-top: auto; }
.k4-product-info .k4-btn { align-self: flex-start; }
.k4-product-info .k4-btn-small { color: #fff; }

/* CTA band */
.k4-cta-band { background: linear-gradient(90deg, var(--k4-blush) 0%, #fff 100%); padding: 56px 0; border-top: 1px solid var(--k4-line); }
.k4-cta-band .k4-eyebrow-light { color: var(--k4-red); }
.k4-cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.k4-cta-copy h2 { margin: 4px 0 12px; }
.k4-cta-copy p { color: var(--k4-ink); }
.k4-cta-copy .k4-cta { margin-top: 22px; }
.k4-cta-copy .k4-btn-primary { color: #fff; }
.k4-hours { margin-top: 14px; font-size: 14px; color: var(--k4-mute); }
.k4-hours-line { display: block; }
.k4-cta-cols { display: grid; grid-template-columns: repeat(2, max-content); gap: 18px 28px; margin-top: 22px; align-items: start; }
.k4-cta-col { display: flex; flex-direction: column; gap: 10px; }
.k4-cta-col .k4-btn { align-self: flex-start; }
.k4-cta-col .k4-hours { margin-top: 0; }
@media (max-width: 560px) {
  .k4-cta-cols { grid-template-columns: 1fr; }
  .k4-cta-col .k4-btn { width: 100%; }
}
.k4-cta-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--k4-shadow); }

.k4-visit { padding: 18px 0; background: #fff; border-top: 1px solid var(--k4-line); }
.k4-visit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--k4-mute); }
.k4-visit p { display: flex; align-items: center; gap: 8px; }
.k4-visit .k4-i { width: 18px; height: 18px; color: var(--k4-red); }

/* Footer — dark red gradient */
.k4-footer { background: var(--k4-dark-grad); color: #f3d6d9; padding: 48px 0 24px; }
.k4-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr; gap: 28px; }
.k4-footer .k4-logo-name { color: #fff; font-size: 26px; }
.k4-footer small { display: block; font-size: 10px; letter-spacing: .14em; color: #e0a4aa; margin-top: 4px; }
.k4-footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14px; }
.k4-footer h4 { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 700; }
.k4-footer li { margin-bottom: 8px; font-size: 14px; }
.k4-footer a:hover { color: #fff; text-decoration: underline; }
.k4-social { display: flex; gap: 10px; }
.k4-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.k4-social .k4-i { width: 18px; height: 18px; }
.k4-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; font-size: 13px; color: #e0a4aa; }

/* Responsive */
@media (max-width: 1024px) {
  .k4-nav { display: none; }
  .k4-menu-btn { display: inline-grid; }
  .k4-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 16px 18px; border-bottom: 1px solid var(--k4-line); box-shadow: var(--k4-shadow); gap: 4px; }
  .k4-nav.is-open a { padding: 10px 4px; }
  .k4-header-cta { display: none; }
  .k4-why-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .k4-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .k4-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .k4-hero-grid, .k4-about-grid, .k4-cta-grid, .k4-cards-grid { grid-template-columns: 1fr; }
  .k4-hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .k4-product-grid { grid-template-columns: repeat(2, 1fr); }
  .k4-card { grid-template-columns: 1fr; }
  .k4-card > img { width: 100%; height: 180px; }
  .k4-why-quote { text-align: center; }
}

@media (max-width: 560px) {
  .k4-wrap { width: calc(100% - 32px); }
  .k4-header-row { min-height: 64px; }
  .k4-logo-name { font-size: 24px; }
  .k4-logo small { font-size: 9px; }
  .k4-hero { padding: 28px 0 40px; }
  .k4-chips { grid-template-columns: 1fr; max-width: none; }
  .k4-cta .k4-btn { flex: 1 1 100%; }
  .k4-badge { width: 132px; right: 0; bottom: 2%; }
  .k4-badge b { font-size: 16px; }
  .k4-hero-art .k4-script { font-size: 20px; }
  .k4-why-list { grid-template-columns: repeat(2, 1fr); }
  .k4-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .k4-cat:last-child { grid-column: 1 / -1; }
  .k4-footer-grid { grid-template-columns: 1fr; }
  .k4-cat-grid .k4-cat b { font-size: 14px; }
}

/* Process: three service cards (replaces the six-step list) */
.k4-svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.k4-svc { background: #fff; border: 1px solid var(--k4-line); border-radius: 18px; padding: 28px; box-shadow: var(--k4-shadow); display: flex; flex-direction: column; gap: 12px; }
.k4-svc-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--k4-blush); color: var(--k4-red-deep); box-shadow: 0 0 0 1px var(--k4-line); margin-bottom: 4px; }
.k4-svc-icon .k4-i { width: 26px; height: 26px; }
body.k4-page .k4-svc h3 { font-size: 20px; font-weight: 700; color: var(--k4-ink); line-height: 1.35; }
.k4-svc p { color: var(--k4-mute); font-size: 15px; line-height: 1.65; }
.k4-svc ul { display: grid; gap: 8px; margin-top: 4px; }
.k4-svc li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--k4-ink); }
.k4-svc li .k4-i { width: 16px; height: 16px; color: var(--k4-red); margin-top: 4px; stroke-width: 2.4; }
@media (max-width: 860px) {
  .k4-svc-cards { grid-template-columns: 1fr; }
}

/* Section headings: centered with a short accent bar (replaces the English eyebrow labels) */
.k4-why h2, .k4-categories h2, .k4-process h2, .k4-products h2 { text-align: center; }
.k4-why h2::after, .k4-categories h2::after, .k4-process h2::after, .k4-products h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #e0343f 0%, #9b1624 100%); margin: 14px auto 0; }
.k4-why h2 { margin-bottom: 40px; }
.k4-process h2, .k4-products h2 { margin-bottom: 36px; }
.k4-categories h2 { margin-bottom: 32px; }
.k4-products h2 { margin-bottom: 30px; }
.k4-cta-copy h2 { margin-top: 0; }

/* Photo grading: soften light and shadow so the product photos sit on the red theme */
.k4-hero-art, .k4-cta-art { position: relative; }
.k4-hero-art > img { aspect-ratio: auto; }
.k4-cta-art img { aspect-ratio: 1 / 1; }
.k4-hero-art > img, .k4-cta-art img { filter: saturate(1.06) contrast(1.03) brightness(1.02); box-shadow: 0 22px 50px rgba(60, 4, 12, .35); }
.k4-hero-art::after, .k4-cta-art::after { content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; background: radial-gradient(120% 80% at 50% 118%, rgba(122, 15, 28, .26) 0%, rgba(122, 15, 28, 0) 58%), linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(122, 15, 28, .07) 100%); mix-blend-mode: multiply; }
.k4-cta-art::after { border-radius: 20px; }
.k4-hero-art .k4-badge, .k4-hero-art .k4-script { z-index: 2; }

/* Hero: cream backdrop with the package lineup flush right (replaces the red gradient).
   The red-bottle card is hidden so the packages carry the right side; markup is kept for easy restore. */
.k4-hero { background: url("../images/oem/hero-bg-cream.webp") right center / cover no-repeat, #e4d6cc; color: var(--k4-ink); padding: 64px 0 72px; min-height: 560px; display: flex; align-items: center; }

.k4-hero-grid { grid-template-columns: 1fr; }
.k4-hero-art { display: none; }
.k4-hero-copy { max-width: 560px; }
.k4-h1 { color: var(--k4-red-deep); }
.k4-h1-sub { color: var(--k4-red); }
.k4-tagline { color: var(--k4-red-deep); }
.k4-lead { color: var(--k4-ink); }
.k4-chips li { background: rgba(255, 255, 255, .78); border-color: var(--k4-line); color: var(--k4-red-deep); backdrop-filter: none; }
.k4-chip-icon { background: var(--k4-blush); color: var(--k4-red-deep); }
.k4-btn-ghost { color: var(--k4-red-deep); border-color: var(--k4-red-deep); }
.k4-btn-ghost:hover { background: rgba(255, 255, 255, .6); }
@media (max-width: 860px) {
  .k4-hero { background: linear-gradient(180deg, rgba(246, 238, 232, .97) 0%, rgba(246, 238, 232, .9) 60%, rgba(246, 238, 232, .7) 100%), url("../images/oem/hero-bg-cream.webp") 78% center / cover no-repeat, #e4d6cc; min-height: 0; padding: 40px 0 48px; }
}
.k4-chips { max-width: 560px; }
@media (max-width: 860px) {
  .k4-chips li { background: rgba(255, 255, 255, .94); }
}
