/* ==========================================================================
   EUNER Wellness & Beauty — storefront + shared component styles
   Simple, clean, mobile-first. Warm brand palette carried from the logo.
   ========================================================================== */

:root {
  --brown: #4b2608;
  --brown-2: #6d3f16;
  --gold: #c99a4b;
  --gold-soft: #eccb8f;
  --cream: #faf7f4;
  --cream-2: #f4ece6;
  --ink: #2c1c12;
  --muted: #8a7568;
  --line: #ecdfd4;
  --white: #fff;
  --green: #0f7a4a;
  --amber: #b7791f;
  --red: #b4232a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(75, 38, 8, .06);
  --shadow: 0 16px 38px rgba(75, 38, 8, .10);
  --shadow-lg: 0 28px 60px rgba(75, 38, 8, .16);
  --max: 1220px;
  --header-h: 116px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.ic { flex: 0 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.eyebrow.light { color: rgba(255, 255, 255, .78); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  background: var(--white); color: var(--ink); transition: .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brown); color: #fff; }
.btn.primary:hover { background: var(--brown-2); }
.btn.gold { background: var(--gold); color: #3a2005; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--cream-2); }
.btn.danger { background: var(--red); color: #fff; }
.btn.full { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--cream-2); }

/* -------------------------------- Header -------------------------------- */
.announce {
  background: linear-gradient(90deg, var(--brown), var(--brown-2));
  color: #fdf6ec; font-size: 13px; text-align: center;
  padding: 9px 16px; letter-spacing: .02em;
}
.announce b { color: var(--gold-soft); }

.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 244, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text strong { display: block; font-size: 17px; letter-spacing: .11em; color: var(--brown); }
.brand-text small { display: block; font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); }

.search-bar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 16px; max-width: 520px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.search-bar svg { color: var(--muted); }
.search-bar input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; padding: 8px 0; color: var(--ink); }
.search-bar button {
  border: 0; background: var(--brown); color: #fff; border-radius: 999px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.head-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.head-btn:hover { background: var(--cream-2); }
.head-btn.cart { background: var(--brown); color: #fff; border-color: var(--brown); }
.head-btn.cart:hover { background: var(--brown-2); }
.head-count {
  background: var(--gold); color: #3a2005; border-radius: 999px;
  min-width: 21px; height: 21px; padding: 0 5px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.bell-dot {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800;
  display: none; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--cream);
}
.bell-dot.show { display: inline-flex; }
.menu-toggle { display: none; }

/* Notification panel */
.notif-panel {
  position: fixed; top: 84px; right: 20px; width: min(380px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 70; max-height: min(70vh, 560px); overflow: hidden;
  display: none; flex-direction: column;
}
.notif-panel.open { display: flex; }
.notif-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.notif-head h3 { margin: 0; font-size: 16px; }
.notif-list { overflow-y: auto; padding: 6px; }
.notif-item { display: flex; gap: 10px; padding: 12px; border-radius: 14px; position: relative; }
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: #fffaf1; }
.notif-item strong { font-size: 14px; }
.notif-item p { margin: 3px 0 4px; font-size: 13px; color: #5c473c; }
.notif-item small { color: var(--muted); font-size: 11px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex: 0 0 auto; }
.notif-item:not(.unread) .notif-dot { background: var(--line); }
.notif-link { align-self: center; font-size: 12px; font-weight: 700; color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--gold); }
.notif-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.empty-note { color: var(--muted); font-size: 13px; padding: 20px; text-align: center; margin: 0; }

/* ---------------------------- Category nav ------------------------------ */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.cat-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  border: 0; background: none; padding: 15px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.cat-link:hover { color: var(--brown); }
.cat-link.active { color: var(--brown); border-bottom-color: var(--gold); }

/* --------------------------------- Hero --------------------------------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, #fff8ee 0%, #f7ece1 55%, #f2e2d3 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 46px; margin: 26px 0 30px; overflow: hidden; position: relative;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.06; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 span { color: var(--brown-2); font-style: italic; }
.hero p.lead { font-size: 16px; color: #5c473c; max-width: 50ch; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: #5c473c; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; bottom: -14px; left: -14px; background: var(--white);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.hero-badge strong { display: block; font-size: 14px; }
.hero-badge small { color: var(--muted); font-size: 11.5px; }

/* ------------------------------ Value strip ----------------------------- */
.value-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px;
}
.value-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm);
}
.value-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); color: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.value-item strong { display: block; font-size: 13.5px; }
.value-item small { color: var(--muted); font-size: 11.5px; }

/* --------------------------- Category tiles ----------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 4px 0 2px; font-size: 24px; letter-spacing: -.01em; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; }
.cat-tile {
  text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: .18s ease;
}
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile.active { border-color: var(--brown); background: #fffaf3; }
.cat-tile .tile-icon {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-2), #f9f0e6); color: var(--brown);
}
.cat-tile strong { font-size: 14.5px; }
.cat-tile small { color: var(--muted); font-size: 11.5px; }

/* --------------------------- Toolbar / filters --------------------------- */
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 18px;
}
.filter-bar .spacer { flex: 1; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--brown); color: #fff; border-color: var(--brown); }
select, input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; width: 100%;
  outline: none; transition: .15s ease;
}
select:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 75, .16); }
select { width: auto; min-width: 170px; }

/* ------------------------------ Product grid ---------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e3d3c3; }
.card-media {
  position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fbf5ee, #f3e8dc);
  display: flex; align-items: center; justify-content: center; overflow: hidden; border: 0; width: 100%; padding: 14px;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder { color: #cbb6a3; font-size: 34px; font-weight: 700; letter-spacing: .1em; }
.badge-sale {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em;
}
.badge-featured {
  position: absolute; top: 12px; right: 12px; background: var(--white); color: var(--brown);
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 5px;
}
.wish-btn {
  position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.wish-btn.active { color: var(--red); border-color: #f2c6c8; }
.wish-btn:hover { color: var(--red); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card-name { font-size: 15px; margin: 0; line-height: 1.35; min-height: 40px; }
.card-price { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 700; color: var(--brown); }
.card-price s { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.stock-pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.stock-pill.ok { background: #e8f6ee; color: var(--green); }
.stock-pill.low { background: #fdf3e3; color: var(--amber); }
.stock-pill.out { background: #fdeaea; color: var(--red); }
.add-btn {
  border: 0; background: var(--brown); color: #fff; border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.add-btn:hover { background: var(--brown-2); }
.add-btn[disabled] { background: #d9cec5; cursor: not-allowed; }
.skeleton {
  height: 340px; border-radius: var(--radius-lg); background: linear-gradient(100deg, #f3ece5 30%, #faf5f0 50%, #f3ece5 70%);
  background-size: 220% 100%; animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ------------------------------ Empty state ----------------------------- */
.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state .es-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--cream-2); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }

/* -------------------------------- Drawer -------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(44, 28, 18, .42); z-index: 60; opacity: 0; pointer-events: none; transition: .25s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100vw);
  background: var(--cream); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-line .cl-img { width: 68px; height: 68px; border-radius: 12px; background: var(--cream-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h4 { margin: 0 0 3px; font-size: 14px; }
.cart-line .cl-price { font-weight: 700; color: var(--brown); font-size: 14px; }
.cart-line .cl-note { font-size: 11.5px; color: var(--red); margin: 4px 0 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.qty button { border: 0; background: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--brown); }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.cl-remove { border: 0; background: none; color: var(--muted); padding: 4px; }
.cl-remove:hover { color: var(--red); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; background: var(--white); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: #5c473c; }
.sum-row.total { font-size: 19px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 10px; }
.sum-row .free { color: var(--green); font-weight: 700; }
.pending-banner {
  background: #fff4e3; border: 1px solid #f0d9b0; color: #8a5a12; border-radius: 14px;
  padding: 11px 13px; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px;
}
.pending-banner b { color: #6d4610; }

/* -------------------------------- Modal --------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(44, 28, 18, .52); z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(760px, 100%); padding: 26px; position: relative; max-height: 92vh; overflow-y: auto;
  animation: pop .22s ease;
}
.modal-card.small { width: min(460px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { margin: 0 0 6px; font-size: 21px; }
.modal-text { color: var(--muted); margin: 0 0 18px; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: #5c473c; }
.field .help { font-size: 11.5px; color: var(--muted); }
.msg { font-size: 13px; margin: 12px 0 0; min-height: 18px; color: var(--red); }
.msg.success { color: var(--green); }

/* Product detail */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-gallery .main-img {
  aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fbf5ee, #f3e8dc); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 18px; border: 1px solid var(--line);
}
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 62px; height: 62px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); overflow: hidden; padding: 4px; }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-price { font-size: 26px; font-weight: 800; color: var(--brown); display: flex; gap: 10px; align-items: baseline; margin: 8px 0; }
.detail-price s { font-size: 15px; color: var(--muted); font-weight: 500; }
.detail-desc { color: #5c473c; font-size: 14.5px; }
.detail-add { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

/* -------------------------------- Account ------------------------------- */
.page-wrap { max-width: 1060px; margin: 0 auto; padding: 28px 20px 70px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.tab.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.tab .count { background: var(--cream-2); color: var(--brown); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; }
.tab.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--white); }
.order-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.order-top h4 { margin: 0; font-size: 15px; }
.order-meta { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.order-items { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.order-thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--cream-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; flex-wrap: wrap; }
.order-total { font-weight: 800; font-size: 16px; color: var(--brown); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.status-pill.pending { background: #fdf3e3; color: var(--amber); }
.status-pill.successful { background: #e8f6ee; color: var(--green); }
.status-pill.canceled { background: #fdeaea; color: var(--red); }
.timeline { display: flex; gap: 6px; margin-top: 12px; }
.timeline i { height: 5px; border-radius: 999px; flex: 1; background: var(--line); }
.timeline i.done { background: var(--gold); }
.timeline i.ok { background: var(--green); }
.timeline i.bad { background: var(--red); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: #2f1a09; color: #f4e7d8; margin-top: 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .05em; color: #fff; }
.site-footer p, .site-footer li { font-size: 13.5px; color: #d9c6b2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #f4e7d8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 20px; text-align: center; font-size: 12.5px; color: #bda895; }
.social-row { display: flex; gap: 10px; margin-top: 12px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .09); display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------- Toasts --------------------------------- */
.toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast-item {
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px);
  transition: .25s ease; pointer-events: auto; max-width: min(92vw, 520px);
}
.toast-item.show { opacity: 1; transform: none; }
.toast-item.success { background: #0f6b43; }
.toast-item.error { background: #8f1f26; }
.toast-action { border: 0; background: rgba(255, 255, 255, .18); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.toast-icon { display: inline-flex; }

/* ----------------------------- Idle pill ------------------------------- */
.idle-pill {
  position: fixed; bottom: 22px; right: 22px; z-index: 95;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 12px 11px 16px;
  font-size: 13px; display: none; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
}
.idle-pill.show { display: inline-flex; }
.idle-pill b { color: var(--gold-soft); }
.idle-stay { border: 0; background: var(--gold); color: #3a2005; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 800; }

/* ------------------------------- Responsive ---------------------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .hero-art { order: -1; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .head-btn span.label { display: none; }
  .head-btn { padding: 9px 11px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-name { font-size: 14px; min-height: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 20px; border-radius: 20px; }
  main { padding: 0 16px 50px; }
  .value-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .idle-pill { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
}
