/* ==========================================================================
   yupoo.lifestyle — base design system
   Warm "market-stall" palette inspired by kakobuy.com: orange primary,
   cream canvas, ink text, generous rounding, product-first imagery.
   ========================================================================== */

:root {
  --brand: #ff5a00;
  --brand-dark: #e04a00;
  --brand-soft: #fff1e6;
  --brand-ring: rgba(255, 90, 0, .28);
  --amber: #ffb020;
  --ink: #16110c;
  --ink-2: #3d352d;
  --muted: #6f655c;
  --line: #efe3d7;
  --canvas: #fff9f3;
  --card: #ffffff;
  --wash: #fdf2e9;
  --ok: #17845a;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow-s: 0 1px 2px rgba(63, 39, 20, .06), 0 4px 12px rgba(63, 39, 20, .05);
  --shadow-m: 0 8px 28px rgba(63, 39, 20, .09);
  --shadow-l: 0 18px 54px rgba(63, 39, 20, .14);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI Semibold", -apple-system, BlinkMacSystemFont, "Noto Sans", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.06rem; }
h5 { font-size: .96rem; }
h6 { font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0 0 .4em; }

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-tight { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Announcement strip ---------- */
.announce {
  background: var(--ink);
  color: #f8ece2;
  font-size: .82rem;
  letter-spacing: .01em;
}
.announce .wrap {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem 0; text-align: center; flex-wrap: wrap;
}
.announce strong { color: #ffd7b8; }
.announce a { color: #ffb27d; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 243, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .7rem 0; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem;
  color: var(--ink); letter-spacing: -.02em; text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, #ff8a3d 55%, var(--amber) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 90, 0, .28);
}
.brand small {
  display: block; font-size: .62rem; font-weight: 600; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: .45rem .7rem; border-radius: 9px;
  color: var(--ink-2); font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }

.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: .45rem .6rem; font-size: .85rem; font-weight: 700; color: var(--ink);
  cursor: pointer; align-items: center; gap: .4rem;
}

/* The single most important CTA on every page. */
.cta-nav {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand); color: #fff !important;
  padding: .6rem 1.05rem; border-radius: 12px;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 90, 0, .3);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.cta-nav:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255, 90, 0, .34); }
.cta-nav::after { content: "→"; font-size: 1rem; line-height: 1; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem 1.25rem 1rem; box-shadow: var(--shadow-m);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .2rem; border-radius: 8px; }
  .nav .cta-nav { margin-top: .6rem; justify-content: center; }
  .header-inner { position: relative; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.35rem; border-radius: 13px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 0, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c241c; transform: translateY(-1px); }

/* ---------- Generic blocks ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: .34rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section { padding: clamp(2.4rem, 5vw, 4.2rem) 0; }
.section-head { margin-bottom: 1.7rem; }
.section-head p { margin-bottom: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-s);
}

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #ffd3b3; }
.p-media {
  position: relative; display: block; aspect-ratio: 1 / 1; background: var(--wash); overflow: hidden;
}
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.p-card:hover .p-media img { transform: scale(1.045); }
.p-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: rgba(22, 17, 12, .82); color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 6px;
}
.p-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.p-name { font-size: .87rem; font-weight: 600; line-height: 1.35; color: var(--ink); margin: 0; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.p-link {
  font-size: .78rem; font-weight: 800; color: var(--brand-dark); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .25rem;
}
.p-brandchip {
  font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em;
  background: var(--wash); padding: .18rem .45rem; border-radius: 5px;
}

/* ---------- Keyword chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  display: inline-block; padding: .38rem .75rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: .84rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: .95rem 1.1rem; margin-bottom: .7rem; box-shadow: var(--shadow-s);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .97rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: .75rem 0 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- Promo band (conversion block) ---------- */
.promo-band {
  background: linear-gradient(120deg, #1b1510 0%, #2f2419 52%, #4a2f16 100%);
  color: #fdf1e5; border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden;
}
.promo-band::after {
  content: ""; position: absolute; inset: auto -80px -120px auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, .32), transparent 68%);
  pointer-events: none;
}
.promo-band h2, .promo-band h3 { color: #fff5ec; }
.promo-band p { color: #e9d9c9; margin-bottom: 1.2rem; }
.promo-band .btn-primary { box-shadow: 0 10px 24px rgba(255, 90, 0, .38); }
.promo-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.promo-note { font-size: .8rem; color: #c8b3a0; margin: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .8rem; color: var(--muted); padding: 1rem 0 .2rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: #c9b8a6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.data caption { text-align: left; padding: .9rem 1rem .4rem; font-size: .82rem; color: var(--muted); }
table.data th, table.data td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--wash); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem; background: #171210; color: #d8c8ba;
  padding: 2.8rem 0 1.6rem; font-size: .89rem;
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #e6d5c6; text-decoration: none; }
.site-footer a:hover { color: #ffb27d; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-about { color: #b8a696; max-width: 34ch; }
.footer-cta { margin-top: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  font-size: .8rem; color: #a59484;
}

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: .6rem; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.1rem; } .mb-2 { margin-bottom: 1.1rem; }
.mt-3 { margin-top: 1.8rem; } .mb-3 { margin-bottom: 1.8rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.inline-note { font-size: .82rem; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
