/* dceylon customer dashboard — same palette as the Seller Hub, shopper layout. */
:root {
  --cu-bg: #fbf7f0;
  --cu-ink: #1f2a24;
  --cu-muted: #6b7a70;
  --cu-line: #e4ddcf;
  --cu-card: #ffffff;
  --cu-brand: #0f7b5a;
  --cu-brand-dark: #0b5f45;
  --cu-brand-soft: #e3f1eb;
  --cu-accent: #e8a13a;
  --cu-danger: #b23c2e;
  --cu-radius: 16px;
  --cu-font: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Auth pages reuse seller.css; only the extra link needs spacing. */
.cu-auth .cu-other-portal { margin-top: 4px; font-size: 14px; }

* { box-sizing: border-box; }

body.cu {
  margin: 0;
  min-height: 100vh;
  color: var(--cu-ink);
  background:
    radial-gradient(1100px 520px at 10% -12%, rgba(15, 123, 90, 0.09), transparent 60%),
    radial-gradient(900px 480px at 110% 0%, rgba(232, 161, 58, 0.12), transparent 55%),
    var(--cu-bg);
  font-family: var(--cu-font);
  font-size: 15px;
  line-height: 1.55;
}

.cu h1, .cu h2, .cu h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
.cu h1 { font-size: clamp(24px, 3vw, 32px); }
.cu h2 { font-size: 18px; }
.cu h3 { font-size: 15px; }
.cu p { margin: 0; }
.cu-muted { color: var(--cu-muted); }
.cu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* :where() keeps this at zero specificity so .cu-link / .cu-btn colours win. */
:where(.cu) a { color: inherit; }
.cu :focus-visible { outline: 3px solid rgba(15, 123, 90, .35); outline-offset: 2px; }

/* ---- buttons & links ---- */
.cu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px;
  padding: 9px 18px;
  border: 0; border-radius: 11px;
  color: #fff; background: var(--cu-brand);
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}
.cu-btn:hover { background: var(--cu-brand-dark); }
.cu-btn:active { transform: translateY(1px); }
.cu-btn:disabled { background: #b9c3bd; cursor: not-allowed; }
.cu-btn.is-flash { background: var(--cu-brand-dark); }
.cu-btn-block { width: 100%; margin-top: 6px; min-height: 48px; }
.cu-btn-ghost {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--cu-line); border-radius: 10px;
  color: var(--cu-ink); background: #fff;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.cu-btn-ghost:hover { border-color: var(--cu-brand); color: var(--cu-brand); }
.cu-btn-ghost.cu-danger:hover { border-color: var(--cu-danger); color: var(--cu-danger); }
.cu-link { color: var(--cu-brand); font-weight: 700; text-decoration: none; }
.cu-link:hover { text-decoration: underline; }
.cu-link-btn {
  padding: 0; border: 0; background: none;
  color: var(--cu-muted); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.cu-link-btn:hover { color: var(--cu-danger); text-decoration: underline; }

/* ---- top bar ---- */
.cu-top {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--cu-line);
  background: rgba(251, 247, 240, .9);
  backdrop-filter: blur(10px);
}
.cu-top-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
}
.cu-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; }
.cu-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  color: #fff; background: linear-gradient(135deg, var(--cu-brand), var(--cu-brand-dark));
}
.cu-badge {
  padding: 2px 8px; border-radius: 999px;
  color: var(--cu-brand-dark); background: var(--cu-brand-soft);
  font-size: 11px; letter-spacing: .08em;
}
.cu-nav { display: flex; gap: 4px; }
.cu-nav-link {
  padding: 8px 14px; border-radius: 10px;
  color: var(--cu-muted); font-weight: 700; text-decoration: none;
}
.cu-nav-link:hover { color: var(--cu-ink); background: rgba(31, 42, 36, .05); }
.cu-nav-link.is-active { color: var(--cu-brand-dark); background: var(--cu-brand-soft); }
.cu-top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cu-cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--cu-line); border-radius: 11px;
  background: #fff; font-weight: 700; text-decoration: none;
}
.cu-cart-btn:hover { border-color: var(--cu-brand); }
.cu-cart-ico {
  width: 18px; height: 16px;
  border: 2px solid currentColor; border-top: 0; border-radius: 0 0 5px 5px;
}
.cu-cart-count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  color: #fff; background: var(--cu-accent);
  font-size: 12px; text-align: center;
}
.cu-user { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cu-avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--cu-brand-dark); background: var(--cu-brand-soft);
  font-size: 13px;
}
.cu-logout { margin: 0; }

/* ---- layout ---- */
.cu-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; }
.cu-notice {
  margin-bottom: 20px; padding: 12px 16px;
  border: 1px solid #bfe0d1; border-radius: 12px;
  color: var(--cu-brand-dark); background: var(--cu-brand-soft);
  font-weight: 600;
}
.cu-notice[data-tone="error"] { border-color: #ecc4bd; color: var(--cu-danger); background: #fbecea; }

.cu-panel {
  padding: 22px;
  border: 1px solid var(--cu-line); border-radius: var(--cu-radius);
  background: var(--cu-card);
  box-shadow: 0 1px 2px rgba(31, 42, 36, .04);
}
.cu-panel > h2 { margin-bottom: 16px; }
.cu-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cu-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cu-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cu-page-head p { margin-top: 6px; }
.cu-empty { padding: 18px 0; color: var(--cu-muted); text-align: center; }
.cu-empty .cu-link { display: inline-block; margin-top: 6px; }
.cu-empty-lg { padding: 48px 20px; }

/* ---- overview ---- */
.cu-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 20px; padding: 28px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(232, 161, 58, .35), transparent 60%),
    linear-gradient(135deg, #0f7b5a, #0a4d39);
}
.cu-hero p { max-width: 560px; margin-top: 8px; opacity: .88; }
.cu-hero .cu-btn { color: var(--cu-brand-dark); background: #fff; }
.cu-hero .cu-btn:hover { background: var(--cu-brand-soft); }
.cu-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .8; }
.cu-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.cu-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--cu-line); border-radius: 14px;
  background: #fff;
}
.cu-stat span { color: var(--cu-muted); font-size: 13px; font-weight: 600; }
.cu-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.cu-mini-order {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--cu-line);
}
.cu-mini-order > div { display: flex; flex-direction: column; }
.cu-mini-order .cu-muted { font-size: 13px; }
.cu-mini-right { align-items: flex-end; gap: 4px; }
.cu-mini-grid { display: grid; gap: 10px; }
.cu-mini-product {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--cu-line); border-radius: 12px;
  text-decoration: none;
}
.cu-mini-product:hover { border-color: var(--cu-brand); }
.cu-mini-product > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.cu-mini-product .cu-muted { font-size: 13px; }
.cu-thumb {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--cu-brand-dark); background: var(--cu-brand-soft);
  font-weight: 800;
}

/* ---- status pill ---- */
.cu-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  color: #8a5a12; background: #fbefd9;
  font-size: 12px; font-weight: 800;
}
.cu-status[data-tone="info"] { color: #1d4f91; background: #e4edfa; }
.cu-status[data-tone="success"] { color: var(--cu-brand-dark); background: var(--cu-brand-soft); }
.cu-status[data-tone="muted"] { color: var(--cu-muted); background: #eeece6; }

/* ---- shop ---- */
.cu-shop { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cu-catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cu-catalog-head p { margin-top: 4px; }
.cu-search { display: flex; gap: 8px; }
.cu-search .cu-input { width: 260px; }
.cu-search-note { margin: -6px 0 14px; font-size: 14px; }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cu-product {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cu-line); border-radius: var(--cu-radius);
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.cu-product:hover { border-color: #c9dccf; box-shadow: 0 8px 24px rgba(31, 42, 36, .07); }
.cu-product-media {
  display: grid; place-items: center;
  height: 120px;
  color: rgba(15, 123, 90, .55);
  background: linear-gradient(135deg, #e3f1eb, #f6ecd9);
  font-size: 44px; font-weight: 800;
}
.cu-product-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }
.cu-product-store { color: var(--cu-brand); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cu-product-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--cu-muted); font-size: 13px;
}
.cu-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.cu-price { font-variant-numeric: tabular-nums; }
.cu-stock { color: var(--cu-brand); font-size: 12px; font-weight: 700; }
.cu-stock[data-tone="low"] { color: #a4640f; }
.cu-stock[data-tone="out"] { color: var(--cu-danger); }
.cu-add { width: 100%; margin-top: 8px; min-height: 38px; font-size: 14px; }

/* ---- basket & checkout ---- */
.cu-checkout { position: sticky; top: 84px; scroll-margin-top: 84px; }
.cu-cart-lines { display: flex; flex-direction: column; }
.cu-cart-line {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--cu-line);
}
.cu-cart-info { display: flex; flex-direction: column; }
.cu-cart-info .cu-muted { font-size: 13px; }
.cu-cart-right { display: flex; align-items: center; gap: 12px; }
.cu-cart-line-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.cu-qty { display: inline-flex; align-items: center; border: 1px solid var(--cu-line); border-radius: 9px; }
.cu-qty-btn {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  color: var(--cu-ink); background: transparent;
  font-family: system-ui, sans-serif; font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.cu-qty-btn:hover:not(:disabled) { color: var(--cu-brand); background: var(--cu-brand-soft); }
.cu-qty-btn:disabled { color: #c2c7c3; cursor: not-allowed; }
.cu-qty-val { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cu-cart-empty { padding: 10px 0 14px; font-size: 14px; }
.cu-cart-total {
  display: flex; justify-content: space-between;
  padding: 14px 0 6px; border-top: 1px solid var(--cu-line);
  font-size: 17px;
}
.cu-fine { margin-bottom: 18px; font-size: 12px; }

/* ---- forms ---- */
.cu-form { display: flex; flex-direction: column; gap: 14px; }
.cu-form h3 { padding-top: 16px; border-top: 1px solid var(--cu-line); }
.cu-form .cu-btn:not(.cu-btn-block) { align-self: flex-start; }
.cu-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.cu-field label:not(.cu-radio), .cu-legend { font-size: 13px; font-weight: 700; }
.cu-input {
  width: 100%; min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--cu-line); border-radius: 10px;
  color: var(--cu-ink); background: #fff;
  font: inherit;
}
.cu-input:focus { border-color: var(--cu-brand); outline: 3px solid rgba(15, 123, 90, .15); }
.cu-input:disabled { color: var(--cu-muted); background: #f5f2ec; }
textarea.cu-input { resize: vertical; }
.cu-pay .cu-legend { margin-bottom: 0; }
.cu-radio {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; padding: 10px 12px;
  border: 1px solid var(--cu-line); border-radius: 10px;
  font-weight: 600; cursor: pointer;
}
.cu-radio:has(input:checked) { border-color: var(--cu-brand); background: var(--cu-brand-soft); }
.cu-radio input {
  appearance: none; flex: none;
  width: 18px; height: 18px; margin: 0;
  border: 2px solid #b9c3bd; border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.cu-radio input:checked { border-color: var(--cu-brand); box-shadow: inset 0 0 0 3px #fff; background: var(--cu-brand); }

/* ---- orders ---- */
.cu-orders { display: flex; flex-direction: column; gap: 16px; }
.cu-order { overflow: hidden; border: 1px solid var(--cu-line); border-radius: var(--cu-radius); background: #fff; }
.cu-order-head, .cu-order-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
}
.cu-order-head > div { display: flex; flex-direction: column; }
.cu-order-head .cu-muted { font-size: 13px; }
.cu-order-id { font-size: 16px; }
.cu-order-foot { border-top: 1px solid var(--cu-line); background: #fcfaf6; font-size: 14px; }
.cu-order-total { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cu-order-total strong { font-size: 16px; }
.cu-order-total form { margin: 0; }
.cu-table { font-size: 14px; }
.cu-tr {
  display: grid; grid-template-columns: minmax(0, 1fr) 60px 120px 120px; gap: 12px;
  padding: 9px 18px; border-top: 1px solid var(--cu-line);
}
.cu-th { color: var(--cu-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cu-table .cu-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .cu-shop { grid-template-columns: 1fr; }
  .cu-checkout { position: static; }
  .cu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cu-top-inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .cu-nav { order: 3; width: 100%; overflow-x: auto; }
  .cu-user-name { display: none; }
  .cu-main { padding: 20px 16px 48px; }
  .cu-split { grid-template-columns: 1fr; }
  .cu-hero, .cu-page-head, .cu-catalog-head { flex-direction: column; align-items: flex-start; }
  .cu-search, .cu-search .cu-input { width: 100%; }
  .cu-order-foot { flex-direction: column; align-items: flex-start; }
  .cu-tr { grid-template-columns: minmax(0, 1fr) 40px 100px; padding: 9px 14px; }
  .cu-tr > :nth-child(3) { display: none; }
}

/* Uploaded company logo in place of the lettermark (Admin → Settings → General). */
img.brand-logo-img { display: block; object-fit: contain; padding: 3px; background: #fff !important; color: transparent; box-sizing: border-box; }
