/* ============================================================
   YumnAI — Makeup Analysis Result Screen CSS (V1)
   Primary Visual Reference: media_1789475753152.jpg
   Editorial Beauty Aesthetic, Warm Cream Palette, Premium Typography
   ============================================================ */

/* ── Container & Layout Reset ───────────────────────────────── */
.yn-makeup-result {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0;
  background-color: #FAF7F2;
  color: #2C2420;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

@media (min-width: 769px) {
  .yn-makeup-result {
    max-width: 580px;
    border-radius: 32px;
    margin: 24px auto;
    box-shadow: 0 16px 48px rgba(180, 140, 120, 0.12);
    overflow: hidden;
  }

  body[data-flow-state="result"] #hero-result,
  body[data-flow-state="result"] #hero-result.active,
  body[data-analysis-mode="makeup"] #hero-result,
  body[data-analysis-mode="makeup"] #hero-result.active {
    display: block !important;
  }

  body[data-analysis-mode="makeup"] #color-result-screen-root,
  body[data-analysis-mode="makeup"] .yn-color-result,
  body[data-analysis-mode="makeup"] #skincare-result-screen-root,
  body[data-analysis-mode="makeup"] .yn-skincare-result {
    display: none !important;
  }

  body[data-flow-state="result"] #makeup-result-screen-root,
  body[data-analysis-mode="makeup"] #makeup-result-screen-root {
    display: block !important;
  }
}

/* ── Result Flow State Isolation ───────────────────────────── */
body[data-analysis-mode="makeup"] #color-result-screen-root,
body[data-analysis-mode="makeup"] .yn-color-result,
body[data-analysis-mode="makeup"] #skincare-result-screen-root,
body[data-analysis-mode="makeup"] .yn-skincare-result {
  display: none !important;
}

/* ── Result Flow State Isolation ───────────────────────────── */
body[data-flow-state="result"] #yn-mobile-welcome,
body[data-flow-state="result"] .yn-mobile-welcome,
body[data-flow-state="result"] #hero-landing {
  display: none !important;
}

body[data-flow-state="result"] #hero-result,
body[data-flow-state="result"] #hero-result.active {
  display: block !important;
}

body[data-flow-state="result"] .yn-header,
body[data-flow-state="result"] #yn-mobile-bottom-nav,
body[data-flow-state="result"] .yn-feature-section,
body[data-flow-state="result"] .yn-section,
body[data-flow-state="result"] .yn-section-dark,
body[data-flow-state="result"] .yn-footer,
body[data-flow-state="result"] .yn-hero-bg {
  display: none !important;
}

/* ── Sticky Top Header (Matches Skincare Result) ───────────── */
.yn-mk-header {
  width: 100%;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 232, 223, 0.7);
  box-sizing: border-box;
}

.yn-mk-back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink, #1A1A1A);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  padding: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.yn-mk-back-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.yn-mk-back-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(0, 0, 0, 0.08);
}

.yn-mk-brand-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  margin: 0;
  margin-right: -0.38em;
  color: var(--ink, #1A1A1A);
  text-align: center;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
}

.yn-mk-share-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink, #1A1A1A);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  padding: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.yn-mk-share-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.yn-mk-share-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(0, 0, 0, 0.08);
}

/* ── Result Body Content Container ─────────────────────────── */
.yn-mk-content {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Hero Section (Editorial Framed Portrait) ──────────────── */
.yn-mk-hero-section {
  position: relative;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(160, 120, 100, 0.08);
  border: 1px solid #F0E8DF;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yn-mk-hero-portrait-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #F5EEE6;
  box-shadow: 0 6px 20px rgba(140, 78, 67, 0.10);
  aspect-ratio: 4 / 5;
}

.yn-mk-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Script Touch */
.yn-mk-hero-script {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 5;
}

/* MediaPipe Facial Overlay Indicators Layer */
.yn-mk-indicators-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.yn-mk-indicator-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.yn-mk-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #C07062;
  box-shadow: 0 0 0 3px rgba(192, 112, 98, 0.3);
  animation: ynMkPulse 2s infinite ease-in-out;
}

@keyframes ynMkPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(192, 112, 98, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(192, 112, 98, 0.15); }
}

.yn-mk-indicator-tag {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #382D27;
  border: 1px solid rgba(240, 232, 223, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

/* Facial Zones Summary Card (SKIN, EYES, CHEEKS, LIPS) */
.yn-mk-facial-zones-card {
  background: #FAF7F2;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid #ECE3D6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yn-mk-zone-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yn-mk-zone-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8C4E43;
}

.yn-mk-zone-desc {
  font-size: 11.5px;
  font-weight: 500;
  color: #3D332E;
  line-height: 1.35;
  margin: 0;
}

/* ── Section Title Standard ─────────────────────────────────── */
.yn-mk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.yn-mk-section-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #382D27;
  margin: 0;
}

.yn-mk-divider-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A6C63;
  margin: 6px 0 14px;
}

.yn-mk-divider-title::before,
.yn-mk-divider-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8DED4;
}

/* ── Makeup Palette & Face Shape Side-by-Side Row ─────────── */
.yn-mk-mid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 380px) {
  .yn-mk-mid-row {
    grid-template-columns: 1fr;
  }
}

/* Color Palette Card */
.yn-mk-palette-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px 14px;
  box-shadow: 0 4px 20px rgba(160, 120, 100, 0.06);
  border: 1px solid #F0E8DF;
  display: flex;
  flex-direction: column;
}

.yn-mk-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.yn-mk-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.yn-mk-swatch-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 46px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.yn-mk-swatch-box:hover {
  transform: scale(1.06);
}

.yn-mk-swatch-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7D6E66;
}

.yn-mk-swatch-name {
  font-size: 10px;
  font-weight: 600;
  color: #2C2420;
  line-height: 1.2;
  word-break: break-word;
}

/* Face Shape Card */
.yn-mk-faceshape-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px 14px;
  box-shadow: 0 4px 20px rgba(160, 120, 100, 0.06);
  border: 1px solid #F0E8DF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  text-align: center;
}

.yn-mk-faceshape-icon {
  width: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #382D27;
  margin: 4px 0 6px;
}

.yn-mk-faceshape-name {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2C2420;
  margin: 0;
}

.yn-mk-faceshape-name.is-undetermined {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #7A6C63;
  line-height: 1.25;
}

/* Curated Aesthetic Banner */
.yn-mk-overall-style-wrap {
  background: #FAF5F0;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px dashed #E6D8CE;
  text-align: center;
}

.yn-mk-style-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #A45B50);
  margin-bottom: 2px;
}

.yn-mk-style-desc {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 12px;
  font-weight: 500;
  color: #382D27;
  margin: 0;
  line-height: 1.35;
}

/* ── Step-by-Step Breakdown ─────────────────────────────────── */
.yn-mk-breakdown-section {
  display: flex;
  flex-direction: column;
}

.yn-mk-breakdown-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #E2D5CA transparent;
}

.yn-mk-breakdown-scroll::-webkit-scrollbar {
  height: 4px;
}

.yn-mk-breakdown-scroll::-webkit-scrollbar-thumb {
  background: #E2D5CA;
  border-radius: 4px;
}

.yn-mk-breakdown-card {
  flex: 0 0 172px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 18px rgba(160, 120, 100, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.yn-mk-step-number-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2C2420;
  margin: 0;
  line-height: 1.2;
}

/* Facial Presentation Crop Container */
.yn-mk-step-crop-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-color: #F8F2EC;
  border: 1px solid #EDE2D8;
}

.yn-mk-step-crop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle Editorial Guides Overlay on Crop */
.yn-mk-crop-guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yn-mk-step-bullets {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yn-mk-step-bullet {
  font-size: 11px;
  color: #5A4E46;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.yn-mk-step-bullet::before {
  content: '•';
  color: #C07062;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Tab Panes Architecture ─────────────────────────────────── */
.yn-mk-tab-pane {
  display: none;
}

.yn-mk-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Product Picks Section (Hero View: Strongest Real Picks) ─── */
.yn-mk-products-section {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px 14px 18px;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 20px rgba(160, 120, 100, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yn-mk-section-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7D6F66;
  margin-top: 2px;
}

.yn-mk-see-all-link {
  background: transparent;
  border: none;
  color: #8C4E43;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

.yn-mk-see-all-link:hover {
  background-color: #FDF3EE;
  color: #6C3A31;
}

.yn-mk-products-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.yn-mk-products-scroll::-webkit-scrollbar {
  display: none;
}

.yn-mk-hero-picks-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 8px;
}

.yn-mk-checking-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #EEDCD2;
  border-top-color: #8C4E43;
  border-radius: 50%;
  animation: yn-mk-spin 0.8s linear infinite;
}

@keyframes yn-mk-spin {
  to { transform: rotate(360deg); }
}

.yn-mk-hero-pick-card {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  background: #FAF7F2;
  border: 1px solid #EDE3D8;
  border-radius: 16px;
  padding: 8px 6px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.yn-mk-hero-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 120, 100, 0.12);
  border-color: #DFCFBE;
  background: #FFFDF9;
}

.yn-mk-hero-pick-img-wrap {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #F0E6DC;
}

.yn-mk-hero-pick-img-wrap img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.yn-mk-hero-pick-card:hover .yn-mk-hero-pick-img-wrap img {
  transform: scale(1.05);
}

.yn-mk-hero-pick-cat {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 20, 18, 0.85);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.yn-mk-hero-pick-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.yn-mk-hero-pick-shade {
  font-size: 10.5px;
  font-weight: 600;
  color: #2D2420;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.yn-mk-hero-pick-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8C4E43;
  text-transform: uppercase;
}

/* ── TAB 2: Makeup Products Screen Styling ───────────────────── */
.yn-mk-products-hero {
  text-align: center;
  padding: 20px 16px 14px;
}

.yn-mk-products-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8C4E43;
  margin-bottom: 6px;
}

.yn-mk-products-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1412;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.yn-mk-products-subtitle {
  font-size: 12.5px;
  color: #6C5F57;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 380px;
}

.yn-mk-cat-section {
  margin-bottom: 40px;
}

.yn-mk-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.yn-mk-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FDF3EE;
  border: 1px solid #EEDCD2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.yn-mk-cat-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1412;
  margin: 0;
}

.yn-mk-cat-desc {
  font-size: 12.5px;
  color: #7D6F66;
  margin: 3px 0 0;
}

.yn-mk-products-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Product Card — Elevated, Generous & Highly Legible on Mobile */
.yn-mk-product-card {
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #EFE6DC;
  box-shadow: 0 6px 20px rgba(140, 90, 70, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.yn-mk-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(140, 90, 70, 0.12);
}

.yn-mk-product-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #F5EEE6;
  padding: 16px;
  box-sizing: border-box;
}

.yn-mk-product-img-wrap img {
  max-width: 86%;
  max-height: 185px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.yn-mk-product-card:hover .yn-mk-product-img-wrap img {
  transform: scale(1.04);
}

/* Quieter, refined match badge */
.yn-mk-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.yn-mk-product-badge.best {
  background: #FAF5F0;
  color: #5C4A42;
  border: 1px solid #E6DCD2;
}

.yn-mk-product-badge.recommended {
  background: #FAF7F4;
  color: #7D6B63;
  border: 1px solid #EFEAE5;
}

.yn-mk-product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yn-mk-product-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.yn-mk-product-cat-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8C4E43;
}

.yn-mk-product-shade-pill {
  font-size: 11px;
  font-weight: 600;
  color: #4A3E38;
  background: #FAF7F2;
  border: 1px solid #EDE3D8;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.yn-mk-product-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #1A1412;
  line-height: 1.42;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

/* Palette Connection Box (Gemini Target -> Actual Product) */
.yn-mk-product-palette-match {
  background: #FAF5F0;
  border: 1px solid #EFE4DA;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yn-mk-match-family {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8C4E43;
  line-height: 1.2;
}

.yn-mk-match-note {
  font-size: 12px;
  font-weight: 400;
  color: #5C4E46;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yn-mk-product-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A1412;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 9999px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
  margin-top: auto;
  box-shadow: 0 4px 14px rgba(26, 20, 18, 0.18);
  -webkit-tap-highlight-color: transparent;
}

.yn-mk-product-buy-btn:hover {
  background: #2D221F;
  opacity: 0.95;
  transform: translateY(-1px);
  color: #FFFFFF;
}

.yn-mk-product-buy-btn:active {
  transform: scale(0.98);
}

.yn-mk-bottom-action {
  display: none;
}

/* ── Pro Tip Card ───────────────────────────────────────────── */
.yn-mk-protip-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF6F0 100%);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #F2E4D8;
  box-shadow: 0 4px 18px rgba(192, 112, 98, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yn-mk-protip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yn-mk-protip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B55848;
}

.yn-mk-protip-heart {
  font-size: 14px;
  color: #C07062;
}

.yn-mk-protip-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #3D322C;
  line-height: 1.45;
  margin: 0;
}

/* ── Editorial Footer Line ──────────────────────────────────── */
.yn-mk-editorial-footer {
  text-align: center;
  padding: 12px 10px 8px;
}

.yn-mk-editorial-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A09085;
  margin: 0;
}

/* ── Fixed Sticky Bottom CTA (Exact Skincare Style) ─────────── */
.yn-mk-sticky-cta-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(250, 247, 242, 0.88) 35%, #FAF7F2 100%);
  pointer-events: none;
  box-sizing: border-box;
}

.yn-mk-sticky-btn {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A1412;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 20, 18, 0.28);
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.yn-mk-sticky-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 20, 18, 0.35);
}

.yn-mk-sticky-btn:active {
  transform: scale(0.98);
}
