/* ============================================================
   skin-layout-d - "Lifestyle / Warm" structural CSS
   Loads ONLY on skin-layout-d (after base "coway"), so it
   restyles shared base classes directly, plus defines the warm
   home-only classes (.d-*). Base tokens are NOT redefined
   globally; warm values are new custom props applied to specific
   classes. Mirrors the approved prototype in
   coway-starter/prototypes/skin-layout-d/. Distinct from
   skin-c "Quiet Grid" (cooler, sharper) by design.
   ============================================================ */

:root {
  --warm-bg:      #faf6f0;   /* soft cream page wash */
  --warm-surface: #fffdf9;   /* card surface, warmer than base --surface */
  --warm-2:       #f3ebe0;   /* warm secondary wash (strips) */
  --warm-accent:  #c9822e;   /* warm secondary accent (amber/terracotta) */
  --warm-accent-soft: #f6e9d6;
  --warm-line:    #ece0d0;   /* warm hairline */
  --warm-ink-2:   #6b5b49;   /* warm muted text */
  --r-soft:       24px;      /* rounder than base --r-card (20px) */
  --shadow-warm:  0 18px 44px -20px rgb(120 84 40 / 0.26);
  --shadow-warm-sm: 0 10px 26px -14px rgb(120 84 40 / 0.20);
}

body { background: var(--warm-bg); }

/* Warm the shared eyebrow so the whole page reads warm, while the
   primary CTA stays Coway blue (brand constant). */
.eyebrow { color: var(--warm-accent); }

/* ---------- Authorized-agent disclosure bar (top of every page) ---------- */
.coway-disclosure { background: var(--ink); color: #fff; font-size: 0.78rem; line-height: 1.4; }
.coway-disclosure .wrap { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; padding-block: 8px; }
.coway-disclosure i { color: #ffd9a8; font-size: 0.95rem; flex-shrink: 0; }
@media (max-width: 600px) { .coway-disclosure { font-size: 0.72rem; } }

/* ---------- Home hero: warm split (copy + rounded lifestyle photo) ---------- */
.d-hero { background:
    radial-gradient(1200px 520px at 12% -10%, var(--warm-accent-soft) 0%, transparent 60%),
    var(--warm-bg);
  border-bottom: 1px solid var(--warm-line); }
.d-hero .wrap { padding-block: clamp(56px, 8vw, 104px); }
.d-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.d-hero-copy .eyebrow { margin-bottom: 18px; }
.d-hero-copy h1 { max-width: 15ch; }
.d-hero-copy .lead { margin-top: 22px; }
.d-hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.d-hero-media { position: relative; }
.d-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-soft); box-shadow: var(--shadow-warm); }
.d-hero-media .d-hero-chip { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 9px; background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: 999px; padding: 10px 16px; box-shadow: var(--shadow-warm-sm); font-weight: 600; font-size: 0.92rem; }
.d-hero-media .d-hero-chip i { color: #1f9d57; font-size: 1.15rem; }

/* Warm rounded auth/trust card under the hero copy */
.d-hero-auth { margin-top: 30px; padding: 18px 22px; background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: var(--r-soft); box-shadow: var(--shadow-warm-sm); }
.d-hero-auth-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--ink); }
.d-hero-auth-badge i { color: #1f9d57; font-size: 1.15rem; }
.d-hero-auth-id { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 9px 0 0; font-size: 0.9rem; color: var(--warm-ink-2); }
.d-hero-auth-id strong { color: var(--ink); }
.d-hero-auth-note { margin: 10px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--warm-ink-2); }

/* Pill buttons already; keep primary in Coway blue. Add a warm ghost variant. */
.btn-ghost { border-radius: 999px; }

@media (max-width: 900px) {
  .d-hero-grid { grid-template-columns: 1fr; }
  .d-hero-media { order: -1; }
  .d-hero-media img { aspect-ratio: 16 / 10; }
}

/* ---------- Trust stats strip: warm panel ---------- */
.stats { background: transparent; }
.stats .stats-panel { background: var(--warm-2); border: 1px solid var(--warm-line); border-radius: var(--r-soft); box-shadow: none; }
.stats .stat i { color: var(--warm-accent); }

/* ---------- Promo strip: soft warm frame ---------- */
.d-promo { padding-block: clamp(40px, 6vw, 72px); }
.d-promo-frame { border: 1px solid var(--warm-line); border-radius: var(--r-soft); overflow: hidden; box-shadow: var(--shadow-warm-sm); }
.d-promo-frame img { width: 100%; }

/* ---------- Category grid: soft warm rounded cards ---------- */
.d-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(30px, 4vw, 48px); }
.d-cat { display: block; background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: var(--r-soft); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-warm-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.d-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); border-color: var(--warm-accent); }
.d-cat-media { aspect-ratio: 4 / 3; background: var(--warm-2); }
.d-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.d-cat-label { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-cat-label h3 { font-size: 1.16rem; }
.d-cat-label p { color: var(--warm-ink-2); font-size: .92rem; margin-top: 3px; }
.d-cat-label i { color: var(--warm-accent); font-size: 1.25rem; flex: none; }
@media (max-width: 960px) { .d-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .d-catgrid { grid-template-columns: 1fr; } }

/* ---------- Product card: soft warm rounded tile (restyle of base card) ----------
   Keeps the base media treatment (product-on-white PNGs at 78% contain); only the
   surface, border, radius and shadow are warmed. */
.product-card { background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: var(--r-soft); box-shadow: var(--shadow-warm-sm); }
.product-card:hover { box-shadow: var(--shadow-warm); }
.product-media { background: var(--warm-2); }
.product-price strong { color: var(--ink); }

/* ---------- Interior page hero: warm light scrim (restyle of base .page-hero) ---------- */
.page-hero .page-hero-bg::after { background: linear-gradient(90deg, rgba(250,246,240,.94) 0%, rgba(250,246,240,.82) 50%, rgba(250,246,240,.60) 100%); }
.page-hero .wrap { color: var(--ink); }
.page-hero h1 { color: var(--ink); }
.page-hero .lead { color: var(--warm-ink-2); }

/* ---------- Single product: warm sticky spec card (restyle of base .pd-info) ---------- */
.pd-info { background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: var(--r-soft); box-shadow: var(--shadow-warm-sm); }

/* ---------- Contact section: keep the base photo bg + dark scrim; warm the form card ---------- */
.contact-section .contact-form { background: var(--warm-surface); border: 1px solid var(--warm-line); border-radius: var(--r-soft); box-shadow: var(--shadow-warm-sm); }

/* ---------- Contact-led footer (white, markup from skin footer.php) ---------- */
.footer { background: #ffffff; border-top: 1px solid var(--warm-line); }
.footer .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); }
.footer-brand p { color: var(--warm-ink-2); }
.footer h4 { color: var(--warm-ink-2); }
.footer ul a { color: var(--ink); }
.footer ul a:hover { color: var(--warm-accent); }
.footer-legal { color: var(--warm-ink-2); border-top: 1px solid var(--warm-line); }
.foot-contact ul { display: grid; gap: 11px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--warm-ink-2); }
.foot-contact li i { color: var(--warm-accent); font-size: 1.05rem; margin-top: 2px; flex: none; }
.foot-contact li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-contact li a:hover { color: var(--warm-accent); }
.foot-contact .btn { margin-top: 18px; }
@media (max-width: 1080px) and (min-width: 681px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .footer .footer-grid { grid-template-columns: 1fr; } .foot-contact .btn { width: 100%; justify-content: center; } }

/* ---------- Single product: warm gallery + elevated detail card ---------- */
.pd-gallery .pd-main { background: var(--warm-2); border-color: var(--warm-line); border-radius: var(--r-soft); }
.pd-thumb { background: var(--warm-2); border-color: var(--warm-line); border-radius: 14px; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--warm-accent); }
.pd-info { padding: clamp(26px, 3vw, 40px); }
.pd-sku { color: var(--warm-ink-2); }
.pd-tagline { margin-top: 12px; font-weight: 500; font-size: 1rem; color: var(--warm-ink-2); }
.pd-plans { gap: 0; margin-top: 22px; background: var(--warm-2); border: 1px solid var(--warm-line); border-radius: var(--r-media); overflow: hidden; }
.pd-plan { padding: 15px 18px; background: transparent; border: 0; border-bottom: 1px solid var(--warm-line); border-radius: 0; }
.pd-plan:last-child { border-bottom: 0; }
.pd-plan:first-child { background: var(--warm-accent-soft); box-shadow: inset 3px 0 0 var(--warm-accent); }
.pd-plan b { font-weight: 650; }
.pd-plan small { color: var(--warm-ink-2); }
.pd-plan .pd-plan-price { color: var(--ink); font-size: 1.08rem; }
.pd-meta { color: var(--warm-ink-2); margin-top: 18px; }
.pd-meta i { color: var(--warm-accent); }
