/* ============================================================
   K-Lab — Shared site chrome
   Responsive announce bar, header, footer.
   Used by every page in pages/ (PDP, Checkout, Account, Glass Skin).
   ============================================================ */

/* ---------- container ---------- */
.kl-page{ max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px){ .kl-page{ padding: 0 32px; } }

/* ---------- announce bar ---------- */
.kl-announce{
  background: linear-gradient(90deg, #1D0E2C 0%, #2D1B4E 30%, #6B1F66 60%, #E11D8C 90%, #FF3B9A 100%);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; white-space: nowrap; overflow: hidden;
  position: relative; z-index: 1001;
}
/* Fix: floating page badges (.badges, .price-tag, .orb-tag) leaking to viewport
   when parent .pcard / .pic / .orb computed as static. Force relative. */
.pcard, .gs-promo .pic, .hero .orb, .gs-promo, .hero{ position: relative !important; }
.kl-announce .sep{ opacity: .5; margin: 0 8px; }
.kl-announce .item{ display: inline-flex; align-items: center; gap: 6px; }
.kl-announce .item.hide-sm{ display: none; }
@media (min-width: 768px){
  .kl-announce{ font-size: 13px; gap: 14px; }
  .kl-announce .item.hide-sm{ display: inline-flex; }
}

/* ---------- header ---------- */
.kl-header{
  background: #fff;
  border-bottom: 1px solid var(--klab-blush);
  position: sticky; top: 0; z-index: 50;
}
.kl-header .row{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  max-width: 1280px; margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
.kl-header .brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.kl-header .brand img{ width: 38px; height: 38px; border-radius: 50%; }
.kl-header .brand .wm{ font-weight: 900; font-size: 18px; color: var(--klab-plum); letter-spacing: -.4px; }
.kl-header nav{ display: none; flex: 1; gap: 22px; margin-left: 24px; }
.kl-header nav a{ color: var(--klab-plum); text-decoration: none; font-weight: 700; font-size: 14px; }
.kl-header nav a:hover{ color: var(--klab-pink); }
.kl-header .icons{ display: flex; gap: 6px; margin-left: auto; }
.kl-header .icons .ibtn{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--klab-blush);
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--klab-plum); position: relative;
}
.kl-header .icons .ibtn:hover{ background: var(--klab-pink-soft); }
.kl-header .icons .ibtn .badge{
  position: absolute; top: -2px; right: -2px;
  background: var(--klab-pink); color: #fff;
  min-width: 18px; height: 18px; border-radius: 999px;
  font-size: 10px; font-weight: 900; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.kl-header .menu-btn{ width: 38px; height: 38px; border-radius: 50%; background: var(--klab-blush); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--klab-plum); }
.kl-header .lang{ display: none; gap: 2px; background: var(--klab-blush); padding: 3px; border-radius: 999px; margin-left: 4px; }
.kl-header .lang button{ padding: 4px 10px; border-radius: 999px; border: 0; font-size: 10px; font-weight: 800; letter-spacing: 1px; cursor: pointer; background: transparent; color: var(--klab-muted); font-family: inherit; }
.kl-header .lang button.on{ background: var(--klab-plum); color: #fff; }
@media (min-width: 768px){
  .kl-header .row{ padding: 14px 32px; }
  .kl-header nav{ display: flex; }
  .kl-header .menu-btn{ display: none; }
  .kl-header .lang{ display: flex; }
}

/* ---------- breadcrumb ---------- */
.kl-crumb{ padding: 14px 0; font-size: 12px; color: var(--klab-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kl-crumb a{ color: var(--klab-muted); text-decoration: none; }
.kl-crumb a:hover{ color: var(--klab-pink); }
.kl-crumb .sep{ opacity: .5; }
.kl-crumb .here{ color: var(--klab-plum); font-weight: 700; }

/* ---------- footer ---------- */
.kl-footer{ background: var(--klab-gradient-urgency); padding: 48px 20px 24px; margin-top: 64px; color: #fff; }
.kl-footer .grid{ max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; }
.kl-footer .col-brand .disk{ width: 56px; height: 56px; background: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kl-footer .col-brand .disk img{ width: 50px; height: 50px; border-radius: 50%; }
.kl-footer .col-brand .tag{ font-size: 13px; opacity: .85; line-height: 1.55; max-width: 320px; }
.kl-footer .col-brand .socials{ display: flex; gap: 8px; margin-top: 14px; }
.kl-footer .col-brand .socials a{ width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; text-decoration: none; }
.kl-footer .col h4{ font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--klab-butter); text-transform: uppercase; margin: 0 0 12px; }
.kl-footer .col a{ display: block; color: #fff; opacity: .85; font-size: 13px; margin-bottom: 8px; text-decoration: none; }
.kl-footer .col a:hover{ opacity: 1; }
.kl-footer .legal{ max-width: 1280px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; opacity: .7; text-align: center; }
@media (min-width: 640px){ .kl-footer .grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- shared button ---------- */
.kl-btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 13px;
  letter-spacing: .8px; transition: transform .2s, box-shadow .2s;
}
.kl-btn:hover{ transform: translateY(-2px); }
.kl-btn--primary{ background: var(--klab-gradient); color: #fff; box-shadow: var(--shadow-cta); }
.kl-btn--primary:hover{ box-shadow: var(--shadow-cta-hover); }
.kl-btn--outline{ background: transparent; color: var(--klab-plum); border: 2px solid var(--klab-plum); padding: 12px 26px; }
.kl-btn--ghost{ background: var(--klab-blush); color: var(--klab-plum); }

/* ---------- shared kicker / labels ---------- */
.kl-kicker{
  display: inline-block;
  font-weight: 800; font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--klab-muted);
}
.kl-section-head{ text-align: center; margin: 48px 0 28px; }
.kl-section-head h2{ font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -1px; margin: 8px 0 0; color: var(--klab-plum); }
.kl-section-head h2 .ital{ font-family: var(--font-accent); font-style: italic; font-weight: 400; background: var(--klab-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }

/* ---------- shared product card ---------- */
.kl-card{
  background: #fff; border: 1px solid var(--klab-blush);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit;
}
.kl-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--klab-lavender); }
.kl-card .pic{ aspect-ratio: 1 / 1; background: linear-gradient(135deg, #FFF9FB, var(--klab-pink-soft)); display: flex; align-items: center; justify-content: center; padding: 12px; }
.kl-card .pic img{ width: 88%; height: 88%; object-fit: contain; }
.kl-card .body{ padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kl-card .brand{ font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--klab-muted); text-transform: uppercase; }
.kl-card .name{ font-size: 13px; font-weight: 700; color: var(--klab-plum); line-height: 1.3; min-height: 34px; }
.kl-card .price{ color: var(--klab-pink); font-weight: 900; font-size: 17px; margin-top: 4px; }
.kl-card .price .old{ color: var(--klab-muted); font-size: 12px; font-weight: 600; text-decoration: line-through; margin-left: 6px; }

/* ---------- helpers ---------- */
.kl-pill{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--klab-blush); color: var(--klab-plum); font-weight: 700; font-size: 12px; }
.kl-pill--mint{ background: var(--klab-mint); color: #065F46; }
.kl-pill--butter{ background: var(--klab-butter); color: #8B6F00; }
.kl-pill--candy{ background: var(--klab-candy); color: #8B1A5C; }

.kl-ital{ font-family: var(--font-accent); font-style: italic; font-weight: 400; background: var(--klab-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.5px; }
