@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #161210;
  --ink-2: #3a322c;
  --paper: #f6efe4;
  --paper-2: #efe4d4;
  --white: #fffdf8;
  --gold: #b8883b;
  --gold-2: #d4af61;
  --gold-d: #8d6424;
  --line: rgba(22, 18, 16, 0.1);
  --muted: #7a7066;
  --maroon: #6b2a28;
  --ok: #2f6b52;
  --shadow: 0 24px 60px rgba(22, 18, 16, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; overflow-x: hidden; }
body {
  font-family: Outfit, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); max-width: 100%; margin: 0 auto; }
#app, .shop-layout, .shop-main { min-width: 0; max-width: 100%; }

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-auth { display: flex; gap: 8px; align-items: center; }
.top-hi { letter-spacing: 0.04em; text-transform: none; font-size: 13px; opacity: 0.9; }
.top-auth .btn { padding: 8px 16px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.topbar span { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; opacity: 0.85; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  min-width: 0;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(22, 18, 16, 0.04);
  cursor: pointer;
}
.nav-links a:hover {
  background: #f3eadb;
  color: var(--ink);
  border-color: #cbb79a;
}
.nav-links a.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
}
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: 0.2s transform, 0.2s background, 0.2s box-shadow;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(184, 136, 59, 0.28);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
}
.btn-full { width: 100%; }

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
}
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.92;
  margin: 12px 0 18px;
}
.hero p { max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; opacity: 0.88; }
.hero-card figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
}
.hero-card small { letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0 56px;
  background: var(--white);
  width: 100%;
}
.stats div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
}
.stats span { color: var(--muted); font-size: 13px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(26px, 6vw, 42px); line-height: 1.05; word-break: break-word; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-2);
}
.chip.active, .chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search {
  width: 100%;
  margin: 0 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  outline: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding-bottom: 70px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: 0.25s transform, 0.25s box-shadow;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pic {
  height: 150px;
  background: var(--paper-2);
  overflow: hidden;
  min-width: 0;
}
.card .pic img { width: 100%; height: 100%; max-width: 100%; min-width: 0; object-fit: cover; }
.card .meta { padding: 12px; min-width: 0; }
.card .cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.price { display: flex; gap: 8px; align-items: baseline; }
.price b { font-size: 16px; }
.price s { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  margin-top: 8px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0 80px;
  min-width: 0;
  max-width: 100%;
}
.product-layout .pic {
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  min-height: 480px;
  border: 1px solid var(--line);
}
.product-layout .pic img { width: 100%; height: 520px; object-fit: cover; }
.back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.product-layout .cat { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--gold-d); }
.product-layout h1 { font-size: 56px; line-height: 0.95; margin: 8px 0 16px; }
.desc { color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.qty-row button {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer;
}
.qty-row span { min-width: 28px; text-align: center; font-weight: 600; }

.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 36px 0 80px;
  min-width: 0;
  max-width: 100%;
}
form.box, .summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliveries { display: grid; gap: 10px; margin-top: 8px; }
.dopt {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
}
.dopt.selected {
  border-color: var(--gold);
  background: #fbf4e5;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.dopt b { display: block; }
.dopt small { color: var(--muted); }
input[readonly] { opacity: 0.75; background: #efe8da; }
.addr-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--paper);
}
.addr-card.on {
  border-color: var(--gold);
  background: #fbf4e5;
}
.addr-card input[type="radio"] {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto;
}
.addr-body {
  flex: 1;
  min-width: 0;
}
.addr-body b {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  padding-bottom: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.addr-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.add-addr {
  width: 100%;
  border: 1px dashed var(--gold);
  background: transparent;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-d);
}
.pay-card {
  border: 1px solid var(--gold);
  background: #fbf4e5;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pay-card b { display: block; margin-bottom: 4px; }
.pay-card small { color: var(--muted); display: block; line-height: 1.45; }
.pay-card.off {
  border-color: rgba(107, 42, 40, 0.25);
  background: #f7ece8;
  opacity: 0.9;
}
.pay-card.off b { color: var(--maroon); text-decoration: line-through; }
.pay-card.selected {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(184, 136, 59, 0.18);
}
.pay-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--gold-d);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.pay-card.off .pay-ico { color: var(--maroon); }
.pay-ico svg { display: block; }
.ship-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ship-block b { display: block; margin-bottom: 6px; }
.ship-block p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ship-pin {
  display: inline-flex;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--gold-d);
}
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.pay-pill.paid { background: #e7f3ec; color: var(--ok); }
.pay-pill.pending { background: #fff3d6; color: #8a5a12; }
.pay-pill.failed { background: #f7ece8; color: var(--maroon); }
.order-card { align-items: start; }
.order-card .oc-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.order-ship {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fbf4e5;
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.order-ship b { display: block; color: var(--ink); margin-bottom: 2px; }
.wait-card {
  max-width: 520px;
  margin: 40px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.wait-card .spin {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border: 3px solid #eee7dc;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.addr-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}
.addr-block h3 { font-size: 18px; margin-bottom: 6px; }
.item-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.item-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.item-row:last-child { border-bottom: 0; }
.rule { color: var(--ink-2); margin-bottom: 12px; font-size: 14px; }
.refer-box {
  margin-top: 16px;
  padding: 14px;
  background: #fbf4e5;
  border-radius: 14px;
}
.refer-link {
  margin-top: 6px;
  word-break: break-all;
  font-weight: 700;
  font-size: 14px;
}
.summary img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.summary h2 { font-size: 34px; margin: 12px 0 6px; }
.line { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-2); }
.total { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.success {
  text-align: center;
  padding: 80px 0;
  max-width: 560px;
  margin: 0 auto;
}
.success .mark {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f3ec;
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 36px;
}
.success h1 { font-size: 52px; }
.success p { color: var(--ink-2); margin: 10px 0 24px; }

footer.site {
  background: var(--ink);
  color: #cbbfae;
  padding: 40px 0 28px;
}
footer .logo { color: #fff; }
footer p { margin-top: 10px; max-width: 46ch; }
.copy { margin-top: 28px; font-size: 12px; opacity: 0.7; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  z-index: 80;
}
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.prof-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
  font-weight: 600;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  object-fit: cover;
}
img.avatar { padding: 0; background: #2a241f; }
.avatar.lg {
  width: 88px;
  height: 88px;
  font-size: 34px;
  border: 3px solid rgba(212,175,97,.7);
}

.prof-page { padding: 10px 0 50px; }
.prof-hero {
  background: linear-gradient(160deg, #1b1612 0%, #2c2318 55%, #3a2a16 100%);
  color: var(--paper);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.prof-hero h2 { font-size: 34px; line-height: 1.1; color: #fff; }
.prof-pic {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.prof-pic .cam {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid #1b1612;
  cursor: pointer;
}
.prof-pic.big-edit { display: block; width: 88px; margin: 0 auto; }
.acct-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}
.acct-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 16px;
  cursor: pointer;
  color: inherit;
}
.acct-row:last-child { border-bottom: 0; }
.acct-row:hover { background: #faf6ee; }
.acct-row b { display: block; font-size: 15px; }
.acct-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.acct-row.danger b { color: #9b3a32; }
.acct-ic { font-size: 18px; }
.chev { color: var(--muted); font-size: 22px; }
.name-form { padding: 16px; }
.name-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; }
.name-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 16, 0.55);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.overlay.hidden { display: none; }
.sheet {
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.sheet h2 { font-size: 36px; margin: 4px 0 8px; }
.autofill-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.pass-field {
  position: relative;
}
.pass-field input {
  padding-right: 48px;
}
.eye-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.eye-btn:hover { color: var(--ink); background: rgba(22, 18, 16, 0.06); }
.steps { display: flex; gap: 6px; margin: 12px 0 18px; }
.steps i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--paper-2);
}
.steps i.on { background: var(--gold); }
.gate {
  margin-top: 22px;
  background: #fbf4e5;
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; }
.track-head {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
}
.awb {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  font-size: 18px;
  margin-top: 8px;
}
.route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.route span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.route span.now { background: var(--ink); color: var(--paper); }
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li.done { border-left-color: var(--ok); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d1c6;
}
.timeline li.done::before { background: var(--ok); }
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.order-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.track-bar {
  height: 6px;
  background: #eee7dc;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.track-bar.big {
  height: 8px;
  background: rgba(246,239,228,.18);
  margin-top: 14px;
}
.track-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4af61, #63c193);
  border-radius: 999px;
}

.collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 40px;
  width: 100%;
}
.col-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: 0.2s transform;
}
.col-card:hover { transform: translateY(-4px); }
.col-card img { width: 100%; height: 140px; min-width: 0; object-fit: cover; }
.col-card div { padding: 12px 14px; font-weight: 600; overflow-wrap: anywhere; }

.shop-layout {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 40px;
}
.cat-dd {
  position: relative;
  width: min(420px, 100%);
  margin-bottom: 14px;
  z-index: 12;
}
.cat-dd-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.cat-dd-toggle:hover, .cat-dd[open] .cat-dd-toggle { border-color: var(--gold); }
.cat-dd-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cat-dd-value {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-dd-caret { color: var(--muted); }
.cat-dd-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
  padding: 6px;
}
.cat-dd.open .cat-dd-panel { display: block; }
.cat-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 600;
}
.cat-opt:hover { background: #f3eadb; }
.cat-opt.on {
  background: var(--ink);
  color: var(--paper);
}
.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.pill.on, .pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-head { margin-bottom: 12px; }
.grid-more { text-align: center; padding: 8px 0 24px; }
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--gold); }

.support-page { padding-bottom: 40px; }
.support-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.support-head h2 { font-size: 36px; line-height: 1.1; }
.support-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #efe4d4;
}
.support-tag.human { background: #e7f3ec; color: var(--ok); }
.chat-scroll {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 320px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: min(86%, 420px);
  border-radius: 16px;
  padding: 10px 12px;
  line-height: 1.45;
}
.bubble small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
}
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble.them { background: #fbf4e5; align-self: flex-start; }
.bubble.me { background: var(--ink); color: var(--paper); align-self: flex-end; }
.bubble.me small { color: var(--gold-2); }
.bubble.system { background: #eee7dc; }
.chat-pic { display: block; margin: 6px 0; }
.chat-pic img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; }
.chat-tools { margin: 10px 0; }
.chat-compose {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.chat-compose textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  min-height: 52px;
}
.chat-bar { display: flex; gap: 8px; justify-content: flex-end; }
.chat-attach { cursor: pointer; }
.s-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fbf4e5;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.s-preview button { border: 0; background: transparent; cursor: pointer; }
.human-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--gold-d);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  padding: 10px;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .product-layout { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .checkout { grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid, .collections { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card .pic { height: 200px; }
}
@media (min-width: 1100px) {
  .grid, .collections { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .logo { font-size: 22px; letter-spacing: 0.08em; }
  .prof-btn span { display: none; }
  .nav-right { gap: 6px; flex: 0 0 auto; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding-top: 36px; }
  .product-layout .pic { min-height: 0; }
  .product-layout .pic img { height: 280px; }
  .product-layout h1 { font-size: 32px; line-height: 1.1; overflow-wrap: anywhere; }
  .row-2 { grid-template-columns: 1fr; }
  .cat-dd { width: 100%; max-width: 100%; }
  .card:hover { transform: none; }
}
@media (max-width: 600px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .wrap { width: calc(100% - 16px); max-width: 100%; }
  .topbar-row { flex-wrap: wrap; }
  .shop-layout, .shop-main, .pay-card, .ship-block, .addr-card, .checkout, .product-layout, .grid, .card, .collections, .stats, .hero { width: 100%; max-width: 100%; min-width: 0; }
  .grid, .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .thumbs, .pill-row { width: 100%; max-width: 100%; }
  .addr-body b { display: block; margin: 0 0 12px; line-height: 1.5; }
  .addr-body p { line-height: 1.65; }
}
