:root {
  --cx-bg: #f7f5ef;
  --cx-card: #fff;
  --cx-card-soft: #f0ede5;
  --cx-text: #171717;
  --cx-muted: #68645d;
  --cx-line: #ddd8cd;
  --cx-gold: #e6ad25;
  --cx-gold-dark: #6b4900;
  --cx-green: #16784a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cx-bg); color: var(--cx-text); font-family: Inter, Poppins, "Segoe UI", sans-serif; }
.client-extra-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--cx-line); background: rgba(247,245,239,.92); backdrop-filter: blur(16px); }
.client-extra-header #menuContainer { width: min(1180px, 100%); margin: auto; }
.client-extra-page { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 34px 0 64px; }
.client-extra-hero { display: grid; gap: 8px; margin-bottom: 24px; }
.client-extra-hero .eyebrow { color: var(--cx-gold-dark); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.client-extra-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: 0; }
.client-extra-hero p { max-width: 680px; margin: 0; color: var(--cx-muted); line-height: 1.55; }
.cx-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.cx-summary article, .cx-card, .cx-state, .cx-review-form { border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-card); box-shadow: 0 12px 28px rgba(32,27,17,.06); }
.cx-summary article { display: grid; gap: 6px; padding: 18px; }
.cx-summary span { color: var(--cx-muted); font-size: .82rem; }
.cx-summary strong { font-size: 1.45rem; }
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-card { overflow: hidden; }
.cx-card-body { display: grid; gap: 10px; padding: 16px; }
.cx-card h2, .cx-card h3, .cx-review-form h2 { margin: 0; letter-spacing: 0; }
.cx-card p { margin: 0; color: var(--cx-muted); line-height: 1.45; }
.cx-product-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cx-card-soft); }
.cx-price { color: var(--cx-gold-dark); font-size: 1.3rem; font-weight: 900; }
.cx-actions { display: flex; align-items: center; gap: 8px; }
.cx-quantity { width: 64px; min-height: 42px; border: 1px solid var(--cx-line); border-radius: 7px; padding: 0 8px; color: var(--cx-text); background: #fff; }
.cx-button { min-height: 42px; border: 1px solid #b47b00; border-radius: 7px; padding: 0 16px; color: #17130a; background: var(--cx-gold); font-weight: 850; cursor: pointer; }
.cx-button:disabled { opacity: .55; cursor: not-allowed; }
.cx-state { padding: 24px; color: var(--cx-muted); text-align: center; }
.cx-section { display: grid; gap: 14px; margin-top: 22px; }
.cx-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cx-section-head h2 { margin: 0; }
.cx-stamps { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 6px; }
.cx-stamp { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--cx-gold); border-radius: 50%; color: #17130a; background: #ffd25f; font-weight: 900; }
.cx-stamp.empty { border-color: var(--cx-line); color: #8d887f; background: var(--cx-card-soft); }
.cx-list { display: grid; gap: 10px; }
.cx-list article { display: flex; justify-content: space-between; gap: 14px; border: 1px solid var(--cx-line); border-radius: 8px; padding: 15px; background: #fff; }
.cx-list small, .cx-review-meta { color: var(--cx-muted); }
.cx-stars { color: #a46d00; font-size: 1.15rem; letter-spacing: 0; }
.cx-review-form { display: grid; gap: 14px; padding: 18px; }
.cx-review-form textarea { width: 100%; min-height: 120px; resize: vertical; border: 1px solid var(--cx-line); border-radius: 7px; padding: 12px; color: var(--cx-text); background: #fff; font: inherit; }
.cx-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.cx-rating input { position: absolute; opacity: 0; }
.cx-rating label { color: #aaa49a; font-size: 2rem; cursor: pointer; transition: color 0.16s ease, transform 0.16s ease; }
.cx-rating label.is-selected { color: #e4a400; }
.cx-rating label:hover { color: #f1b51d; transform: translateY(-1px) scale(1.06); }
.cx-rating input:focus-visible + label { outline: 2px solid #d69800; outline-offset: 3px; }
.cx-toast { position: fixed; right: 18px; bottom: 18px; z-index: 40; border-radius: 7px; padding: 12px 16px; color: #fff; background: #202020; box-shadow: 0 12px 30px rgba(0,0,0,.22); }

.cx-cart-fab { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 35; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #b47b00; border-radius: 50%; color: #17130a; background: #ffc21a; box-shadow: 0 14px 34px rgba(107,73,0,.3); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.cx-cart-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(107,73,0,.36); }
.cx-cart-fab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-cart-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border: 2px solid var(--cx-bg); border-radius: 999px; color: #fff; background: #171717; font-size: .72rem; font-weight: 900; line-height: 18px; }
.cx-orders-overlay[hidden] { display: none; }
.cx-orders-overlay { position: fixed; z-index: 11000; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px 0; background: rgba(12,12,12,.58); backdrop-filter: blur(4px); overscroll-behavior: contain; }
.cx-orders-sheet { display: flex; width: min(680px, 100%); max-height: min(84dvh, 760px); flex-direction: column; overflow: hidden; border: 1px solid #34302a; border-bottom: 0; border-radius: 16px 16px 0 0; color: #f7f3ea; background: #111315; box-shadow: 0 -20px 60px rgba(0,0,0,.38); animation: cx-sheet-up .28s cubic-bezier(.22,.8,.28,1); }
.cx-sheet-handle { width: 44px; height: 4px; flex: 0 0 auto; margin: 10px auto 4px; border-radius: 999px; background: #55585a; }
.cx-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px 14px; }
.cx-orders-head h2 { margin: 0; font-size: 1.35rem; }
.cx-orders-head p { margin: 3px 0 0; color: #aaa8a2; font-size: .86rem; }
.cx-sheet-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #383b3d; border-radius: 50%; color: #fff; background: #202326; font-size: 1.5rem; cursor: pointer; }
.cx-orders-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 18px 14px; }
.cx-orders-tabs button { min-width: 0; min-height: 42px; border: 1px solid #383b3d; border-radius: 8px; color: #f7f3ea; background: #24272a; font-weight: 800; cursor: pointer; }
.cx-orders-tabs button.is-active { border-color: #d59600; color: #17130a; background: #ffc21a; }
.cx-orders-tabs span { font-size: .75rem; }
.cx-orders-content { min-height: 150px; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 18px; }
.cx-order-empty { border: 1px solid #343739; border-radius: 8px; padding: 18px; color: #aaa8a2; background: #1d2022; text-align: center; }
.cx-order-list { display: grid; gap: 10px; }
.cx-order-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; align-items: center; border: 1px solid #35383a; border-radius: 8px; padding: 11px; background: #1c1f21; }
.cx-order-item.is-paid { border-color: rgba(38,181,111,.45); }
.cx-order-thumb { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; background: #292c2e; }
.cx-order-copy { min-width: 0; }
.cx-order-copy strong, .cx-order-copy small { display: block; }
.cx-order-copy small { margin-top: 4px; color: #aaa8a2; }
.cx-order-status { color: #ffc21a; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.cx-order-item.is-paid .cx-order-status { color: #58db91; }
.cx-order-controls { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; }
.cx-order-controls button { width: 34px; height: 34px; border: 1px solid #414548; border-radius: 7px; color: #fff; background: #292d30; font-size: 1rem; cursor: pointer; }
.cx-order-controls .cx-remove-order { width: auto; margin-left: auto; padding: 0 10px; color: #ffaaa4; }
.cx-pix-box { grid-column: 1 / -1; display: grid; gap: 9px; border: 1px solid rgba(255,194,26,.3); border-radius: 8px; padding: 11px; background: #151719; }
.cx-pix-box img { width: 132px; max-width: 100%; margin: auto; border-radius: 6px; background: #fff; }
.cx-pix-code { overflow: hidden; color: #d2d0ca; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.cx-copy-pix { min-height: 38px; border: 1px solid #a97400; border-radius: 7px; color: #17130a; background: #ffc21a; font-weight: 850; cursor: pointer; }
.cx-cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #343739; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); background: #111315; box-shadow: 0 -8px 22px rgba(0,0,0,.22); }
.cx-cart-footer span, .cx-cart-footer strong { display: block; }
.cx-cart-footer span { color: #989a9b; font-size: .72rem; }
.cx-cart-footer strong { margin-top: 2px; font-size: 1.12rem; }
body.cx-sheet-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
@keyframes cx-sheet-up { from { transform: translateY(36px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 760px) {
  .cx-summary, .cx-grid { grid-template-columns: 1fr; }
  .client-extra-page { width: min(100% - 24px, 680px); padding-top: 22px; }
  .cx-section-head { align-items: start; flex-direction: column; }
  .cx-orders-overlay { padding-inline: 0; }
  .cx-orders-sheet { max-height: 88dvh; }
  .cx-orders-tabs { gap: 5px; padding-inline: 12px; }
  .cx-orders-tabs button { padding-inline: 4px; font-size: .78rem; }
  .cx-orders-content { padding-inline: 12px; }
  .cx-order-item { grid-template-columns: 46px minmax(0,1fr); }
  .cx-order-thumb { width: 46px; height: 46px; }
  .cx-order-status { grid-column: 2; white-space: normal; }
  .cx-order-controls { grid-column: 1 / -1; }
}
