/* swanktulip — styles implemented from the "swanktulip.com" design canvas */
:root {
  --ink: #1B1B2F;
  --ink-2: #3B3B4F;
  --muted: #5C5C70;
  --brand: #B02A5B;
  --brand-dark: #7E1D41;
  --brand-soft: #FCE8EF;
  --brand-ring: #F3C9D8;
  --hover: #F3ECEF;
  --hover-2: #EBDDE3;
  --line: #ECE8EA;
  --line-2: #D9D3D7;
  --surface: #FBF9FA;
  --on-dark-muted: #D9D6E2;

  --tint-pink: #FCE8EF;
  --tint-green: #E4F2EA;
  --tint-blue: #E3ECFA;
  --tint-amber: #FBEFD9;
  --tint-purple: #EFEAF8;
  --tint-gray: #E8E6EE;

  --font-body: Inter, system-ui, sans-serif;
  --font-display: 'Space Grotesk', Inter, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--font-body); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-display); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }

.rail {
  flex: 1 1 104px; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center;
  gap: 6px; padding: 20px 8px; border-right: 1px solid var(--line); background: var(--surface);
}
.rail a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 88px; padding: 12px 4px;
  border-radius: 14px; text-decoration: none; color: var(--ink-2); font-size: 12px; font-weight: 600;
  text-align: center; line-height: 1.2;
}
.rail a:hover { background: var(--hover); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }
.cart-icon { position: relative; display: flex; }
.badge {
  position: absolute; top: -6px; right: -11px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--brand); color: #FFFFFF; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 32px; border-bottom: 1px solid var(--line); }
.topbar--home { justify-content: space-between; border-bottom: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.avatar {
  margin-left: auto; width: 44px; height: 44px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; text-decoration: none;
}
.avatar:hover { color: var(--brand-dark); background: var(--brand-ring); }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: #FFFFFF; margin: 0;
}
.search:focus-within { box-shadow: 0 0 0 4px var(--brand-ring); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-family: var(--font-body); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button { flex: none; border: 0; border-radius: 999px; background: var(--brand); color: #FFFFFF; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--brand-dark); }
.search svg { flex: none; }

.search--compact { flex: 1 1 320px; max-width: 620px; padding: 4px 4px 4px 16px; }
.search--compact input { height: 40px; font-size: 16px; }
.search--compact button { height: 40px; padding: 0 20px; font-size: 15px; }

.search--hero { width: 100%; max-width: 720px; padding: 8px 8px 8px 20px; border-width: 2px; }
.search--hero input { height: 52px; font-size: 18px; padding: 0 8px; }
.search--hero button { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Home ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 64px 32px; text-align: center; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; max-width: 13ch; }
.recents { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-height: 36px; }
.recents-label { font-size: 14px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--hover);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.chip:hover { background: var(--hover-2); color: var(--ink); }

.explore { padding: 0 32px 56px; }
.explore h2 { margin: 0 0 20px; font-size: 26px; font-weight: 700; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.xcard {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; text-decoration: none; color: var(--ink);
  min-height: 188px; border: 1.5px solid transparent;
}
.xcard:hover { color: var(--ink); border-color: var(--ink); }
.xcard h3 { margin: 0; font-size: 22px; }
.xcard p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.xcard-icon { width: 48px; height: 48px; border-radius: 14px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.xcard--dark { background: var(--ink); color: #FFFFFF; }
.xcard--dark:hover { color: #FFFFFF; border-color: var(--brand); }
.xcard--dark h3 { color: #FFFFFF; }
.xcard--dark p { color: var(--on-dark-muted); }
.xcard--dark .xcard-icon { background: var(--brand); }

/* ---------- Inner pages ---------- */
.page { padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 28px; }
.page--narrow { max-width: 880px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head h1, .page > h1 { margin: 0; font-size: clamp(34px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 17px; color: var(--muted); }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: #FFFFFF; }
.art { height: 160px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pname { margin: 0; font-size: 19px; font-weight: 700; }
.price { margin: 0; font-size: 14px; color: var(--muted); }
.fav {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex: none; padding: 0;
}
.fav:hover { border-color: var(--brand); color: var(--brand); }
.fav[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.add { height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #FFFFFF; font-weight: 600; font-size: 15px; cursor: pointer; }
.add:hover { background: var(--brand); }
.add.is-added { background: var(--brand); }
.morebtn {
  height: 48px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--ink); background: #FFFFFF; color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.morebtn:hover { background: var(--hover); }
.center { display: flex; justify-content: center; }

/* More to build rows */
.rows { display: flex; flex-direction: column; gap: 14px; }
.row {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border: 1.5px solid var(--line); border-radius: 22px;
  background: #FFFFFF; color: var(--ink); text-decoration: none; text-align: left; width: 100%;
}
.row:hover { border-color: var(--ink); color: var(--ink); }
.row-ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.row-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.row-sub { font-size: 15px; color: var(--muted); }

/* Your stuff */
.cartbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px;
  border-radius: 22px; background: var(--ink); color: #FFFFFF;
}
.cartbar-info { display: flex; align-items: center; gap: 14px; }
.cartbar-text { display: flex; flex-direction: column; gap: 2px; }
.cartbar-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.cartbar-sub { font-size: 14px; color: var(--on-dark-muted); }
.cartlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cartlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,0.08); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); background: transparent;
  color: #FFFFFF; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty button:hover { background: rgba(255,255,255,0.12); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 0;
}
.pill--brand { background: var(--brand); color: #FFFFFF; }
.pill--brand:hover { background: var(--brand-dark); color: #FFFFFF; }
.pill--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: #FFFFFF; }
.pill--ghost:hover { background: var(--hover); color: var(--ink); }

.panels { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #FFFFFF; min-width: 0; }
.panel--recent { flex: 3 1 420px; }
.panel--fav { flex: 2 1 300px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel h2 { margin: 0; font-size: 24px; }
.linkbtn { border: 0; background: none; padding: 10px 4px; color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; }
.linkbtn:hover { color: var(--brand-dark); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.recent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 112px; padding: 8px;
  border-radius: 16px; background: var(--tint-blue); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  text-align: center; overflow-wrap: anywhere;
}
.recent:hover { color: var(--ink); outline: 1.5px solid var(--ink); }
.slot { height: 112px; border-radius: 16px; border: 1.5px dashed var(--line-2); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 16px;
  border-radius: 16px; background: var(--surface); text-align: center;
}
.empty-ico { width: 64px; height: 64px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.empty-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.empty-sub { margin: 0; font-size: 15px; color: var(--muted); max-width: 28ch; }
.favlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.favlist li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; }
.favlist .mini-art { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.favlist .mini-art svg { width: 28px; height: 28px; }
.favlist .fav-name { flex: 1; font-weight: 600; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 600; box-shadow: 0 8px 24px rgba(27,27,47,0.2);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .rail { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .rail a { flex: none; width: 76px; padding: 10px 2px; font-size: 11px; }
  .topbar, .hero, .explore, .page { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .search--compact { order: 3; flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .search--hero button { padding: 0 18px; }
  .row { gap: 14px; padding: 16px; }
}
