:root {
  --orange: #f57c00;
  --orange-dark: #d86400;
  --orange-soft: #fff1df;
  --orange-pale: #fff8f0;
  --brown: #3a2618;
  --brown-2: #6d4c41;
  --cream: #fffaf4;
  --ink: #26211d;
  --muted: #776f68;
  --line: #e9e2db;
  --panel: #ffffff;
  --background: #f6f3ef;
  --success: #1f8a5b;
  --success-soft: #e9f7f0;
  --warning: #c27b13;
  --warning-soft: #fff4df;
  --danger: #c84a4a;
  --danger-soft: #ffeded;
  --info: #3e78a8;
  --shadow: 0 14px 40px rgba(60, 37, 19, .08);
  --shadow-sm: 0 5px 18px rgba(60, 37, 19, .08);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--brown); }
p { line-height: 1.6; }
small { color: var(--muted); }

.eyebrow { margin: 0 0 6px; color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.text-link { color: var(--orange-dark); font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; font-size: 13px; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--orange), #ff9f2f); box-shadow: 0 8px 22px rgba(245,124,0,.23); }
.btn-primary:hover { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); }
.btn-secondary { color: var(--brown); background: #fff; border-color: var(--line); box-shadow: 0 2px 8px rgba(60,37,19,.04); }
.btn-secondary:hover { border-color: #d9c8ba; background: var(--orange-pale); }
.btn-ghost { color: var(--brown-2); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 12px; }

.flash-stack { display: grid; gap: 9px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-radius: 12px; border: 1px solid; font-size: 13px; font-weight: 650; transition: opacity .4s, transform .4s; }
.flash button { border: 0; background: none; font-size: 20px; color: inherit; cursor: pointer; }
.flash-success { color: #176b47; background: var(--success-soft); border-color: #c7ebd9; }
.flash-danger { color: #9b3131; background: var(--danger-soft); border-color: #f4cccc; }
.flash-warning { color: #8d5c11; background: var(--warning-soft); border-color: #f2ddb4; }
.flash-info { color: #315f83; background: #edf6fd; border-color: #cfe2f1; }
.flash.fade-out { opacity: 0; transform: translateY(-5px); }

/* Login */
.login-page { min-height: 100vh; background: #fff; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(430px, .85fr); }
.login-showcase { position: relative; overflow: hidden; min-height: 100vh; background: linear-gradient(145deg, rgba(71,34,6,.94), rgba(245,124,0,.88)), radial-gradient(circle at 15% 10%, #ffc071 0, transparent 38%), #a84f00; }
.login-showcase::before, .login-showcase::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); }
.login-showcase::before { width: 600px; height: 600px; right: -260px; top: -230px; }
.login-showcase::after { width: 420px; height: 420px; left: -220px; bottom: -170px; }
.showcase-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 38px 38px; }
.showcase-content { position: relative; z-index: 1; min-height: 100vh; padding: 46px 64px; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.login-logo-light { width: 310px; }
.showcase-kicker { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff8ee; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.08); }
.showcase-content h1 { color: #fff; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; margin: 22px 0 20px; }
.showcase-content > div p { max-width: 620px; color: rgba(255,255,255,.83); font-size: 17px; }
.showcase-points { display: flex; gap: 12px; flex-wrap: wrap; }
.showcase-points span { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); font-size: 12px; font-weight: 700; }
.login-panel { display: grid; place-items: center; padding: 44px; background: #fff; }
.login-card { width: min(100%, 480px); }
.login-logo-mobile { display: none; width: 250px; margin-bottom: 35px; }
.login-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 38px; }
.login-card > .muted { margin-bottom: 28px; }
.form-stack { display: grid; gap: 17px; }
.form-stack label, .form-grid label, .custom-prep, .checkout-notes { display: grid; gap: 7px; color: var(--brown); font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: .18s; }
input, select { min-height: 45px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,124,0,.1); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--orange-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.check-line { display: flex !important; align-items: center; gap: 8px !important; color: var(--muted) !important; font-weight: 600 !important; }
.check-line input { width: 16px; min-height: auto; accent-color: var(--orange); }
.demo-credentials { margin-top: 28px; }
.divider { display: flex; align-items: center; gap: 12px; color: #998e84; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.credentials { margin-top: 14px; color: #91867c; font-size: 11px; text-align: center; }
.credentials strong { color: var(--brown); }

/* Panel shell */
.panel-page { min-height: 100vh; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 252px; display: flex; flex-direction: column; padding: 20px 16px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: block; padding: 0 4px 16px; border-bottom: 1px solid var(--line); }
.brand img { width: 215px; height: auto; }
.profile-chip { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 10px; border-radius: 12px; background: var(--orange-pale); }
.profile-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--orange), #ffad4f); font-weight: 900; }
.profile-chip > span:last-child { min-width: 0; display: grid; }
.profile-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brown); font-size: 12px; }
.profile-chip small { font-size: 10px; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; border-radius: 10px; color: #786e66; font-size: 13px; font-weight: 700; transition: .15s; }
.side-nav a span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #f7f4f1; color: #8a7667; font-size: 14px; }
.side-nav a:hover { color: var(--brown); background: var(--orange-pale); }
.side-nav a.active { color: var(--orange-dark); background: var(--orange-soft); }
.side-nav a.active span { color: #fff; background: var(--orange); }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; padding: 14px 8px 2px; border-top: 1px solid var(--line); }
.demo-tag { display: inline-flex; justify-content: center; padding: 7px; border-radius: 8px; background: #f5f2ef; color: #9a8e84; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-footer a { color: #887c73; font-size: 12px; font-weight: 700; }
.main-panel { grid-column: 2; min-width: 0; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 23px; }
.topbar .eyebrow { margin-bottom: 3px; }
.topbar-actions { display: flex; gap: 10px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; cursor: pointer; }
.page-content { padding: 26px 30px 40px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(60,37,19,.035); }
.panel-heading { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 19px 20px 14px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.metric-grid { display: grid; gap: 13px; margin-bottom: 18px; }
.metric-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 12px rgba(60,37,19,.035); }
.metric-card.accent { color: #fff; background: linear-gradient(145deg, var(--orange-dark), var(--orange)); border-color: transparent; box-shadow: 0 12px 30px rgba(245,124,0,.2); }
.metric-card.accent small, .metric-card.accent strong { color: #fff; }
.metric-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--orange-soft); color: var(--orange-dark); font-size: 17px; font-weight: 900; }
.metric-card.accent .metric-icon { background: rgba(255,255,255,.17); color: #fff; }
.metric-card > div { display: grid; gap: 3px; }
.metric-card small { font-size: 10px; font-weight: 700; }
.metric-card strong { color: var(--brown); font-size: 26px; line-height: 1; }

.dashboard-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 18px; background: #faf8f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #93877d; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 14px 18px; border-bottom: 1px solid #f0ebe6; color: #554b44; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffaf5; }
td > strong, td > small { display: block; }
td > strong { color: var(--brown); font-size: 12px; }
td > small { margin-top: 3px; font-size: 10px; }
.empty-cell { padding: 40px; color: var(--muted); text-align: center; }
.icon-link { width: 31px; height: 31px; display: grid; place-items: center; margin-left: auto; border-radius: 8px; color: var(--orange-dark); background: var(--orange-soft); font-weight: 900; }
.status { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border-radius: 999px; color: #745c47; background: #f2ede8; font-size: 9px; font-weight: 850; white-space: nowrap; }
.status-novo { color: #326b98; background: #eaf4fb; }
.status-em-analise { color: #9a640e; background: #fff1d7; }
.status-aguardando-pagamento { color: #97599f; background: #f7eafa; }
.status-aprovado { color: #17774d; background: #e5f7ee; }
.status-em-separacao { color: #a45e13; background: #fff0df; }
.status-saiu-para-entrega { color: #315f93; background: #eaf2fd; }
.status-concluido { color: #17774d; background: #e5f7ee; }
.status-cancelado { color: #ad3e3e; background: #ffeaea; }
.status-summary { display: grid; padding: 0 20px 18px; }
.status-summary a { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f1ece8; font-size: 12px; }
.status-summary a:last-child { border-bottom: 0; }
.status-summary strong { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--orange-dark); background: var(--orange-soft); }
.compact-list { display: grid; padding: 0 20px 18px; }
.compact-list > div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1ece8; }
.compact-list > div:last-child { border-bottom: 0; }
.compact-list span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.compact-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brown); font-size: 11px; }
.compact-list small { font-size: 9px; }
.compact-list em { color: #a65a39; font-size: 9px; font-style: normal; font-weight: 800; }
.product-mini-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--orange-pale); font-size: 18px; }
.product-mini-icon.large { width: 43px; height: 43px; font-size: 21px; }
.product-mini-icon.xlarge { width: 62px; height: 62px; font-size: 28px; }
.quick-actions-card { grid-column: 1 / -1; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 20px 20px; }
.quick-actions a { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; transition: .18s; }
.quick-actions a:hover { border-color: #f1bf87; background: var(--orange-pale); transform: translateY(-2px); }
.quick-actions span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--orange); font-size: 18px; font-weight: 900; }
.quick-actions strong { color: var(--brown); font-size: 12px; }
.quick-actions small { font-size: 10px; }

/* Forms and filters */
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 14px; }
.filter-bar select { width: 220px; }
.search-box { flex: 1; position: relative; }
.search-box span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9c9188; }
.search-box input { padding-left: 37px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; }
.form-layout > .span-2 { grid-column: span 1; }
.form-layout > .span-3 { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 20px 22px; }
.form-grid .span-2 { grid-column: span 2; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 20px; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row > span { display: grid; gap: 3px; }
.switch-row strong { color: var(--brown); font-size: 12px; }
.switch-row small { font-size: 10px; }
.switch-row input { display: none; }
.switch-row i, .toggle-button { position: relative; width: 45px; height: 25px; flex: 0 0 auto; border-radius: 999px; background: #d9d3cd; transition: .2s; }
.switch-row i::after, .toggle-button i { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .2s; }
.switch-row input:checked + i, .toggle-button.on { background: var(--orange); }
.switch-row input:checked + i::after, .toggle-button.on i { left: 23px; }
.inline-switch { margin-top: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px; }
.choice-card { cursor: pointer; }
.choice-card input { display: none; }
.choice-card span { display: grid; gap: 4px; min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: .18s; }
.choice-card input:checked + span { border-color: var(--orange); background: var(--orange-pale); box-shadow: 0 0 0 2px rgba(245,124,0,.08); }
.choice-card strong { color: var(--brown); font-size: 12px; }
.choice-card small { font-size: 10px; }
.custom-prep { margin: 16px 20px 22px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-help { margin: 14px 20px 20px; color: var(--muted); font-size: 11px; }
.access-preview { padding: 24px; text-align: center; background: linear-gradient(150deg, #fffaf4, #fff); }
.access-preview h3 { margin: 15px 0 8px; }
.access-preview p, .access-preview li { color: var(--muted); font-size: 12px; line-height: 1.6; }
.access-preview ul, .access-preview ol { padding-left: 20px; text-align: left; }
.big-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto; border-radius: 20px; background: var(--orange-soft); color: var(--orange-dark); font-size: 30px; font-weight: 900; }
.big-icon.orange { color: #fff; background: var(--orange); }

/* Products admin */
.product-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.admin-product-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px rgba(60,37,19,.035); }
.admin-product-card.disabled { opacity: .68; }
.product-visual { min-height: 115px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #fff1db, #ffe2bc); overflow: hidden; }
.product-visual::before { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; right: -55px; top: -65px; }
.product-visual-1 { background: linear-gradient(145deg, #f2efe6, #ded7c8); }
.product-visual-2 { background: linear-gradient(145deg, #fbe8df, #f2c8b5); }
.product-visual-3 { background: linear-gradient(145deg, #e9f1eb, #cfe0d2); }
.product-visual span { font-size: 48px; filter: drop-shadow(0 8px 10px rgba(60,37,19,.12)); }
.product-visual em { position: absolute; left: 12px; bottom: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--brown); font-size: 9px; font-style: normal; font-weight: 850; backdrop-filter: blur(5px); }
.admin-product-body { padding: 16px; }
.product-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-title-line small { display: block; margin-bottom: 2px; color: var(--orange-dark); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.product-title-line h3 { margin: 0; font-size: 16px; }
.availability-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #d0c8c1; box-shadow: 0 0 0 4px #f4f0ed; }
.availability-dot.on { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.admin-product-body > p { min-height: 48px; margin: 10px 0; color: var(--muted); font-size: 11px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; min-height: 28px; }
.tag-row span { padding: 5px 7px; border-radius: 7px; color: #81674f; background: #f5f0eb; font-size: 9px; font-weight: 750; }
.price-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.price-line > span { color: var(--brown); font-size: 17px; font-weight: 900; }
.price-line small { font-size: 9px; }
.price-line em { color: var(--success); font-size: 9px; font-style: normal; font-weight: 800; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.card-actions form, .card-actions button { width: 100%; }

/* Availability */
.notice-card { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #f1d2a8; border-radius: 14px; color: #7c4f18; background: #fff7e9; }
.notice-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 20px; }
.notice-card strong { display: block; color: #7b4709; font-size: 12px; }
.notice-card p { margin: 4px 0 0; font-size: 11px; }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.dot.on { background: var(--success); }
.dot.off { background: #b9afa7; }
.availability-list { border-top: 1px solid var(--line); }
.availability-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #f1ece8; }
.availability-item:last-child { border-bottom: 0; }
.availability-name { min-width: 0; display: grid; gap: 3px; }
.availability-name strong { color: var(--brown); font-size: 12px; }
.availability-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.availability-label { min-width: 70px; font-size: 9px; font-weight: 850; text-align: right; }
.availability-label.on { color: var(--success); }
.availability-label.off { color: #9e8373; }
.toggle-button { border: 0; cursor: pointer; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0 20px 20px; }
.person-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.person-card.inactive { opacity: .65; }
.person-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--orange), #ffae55); font-weight: 900; }
.person-info { min-width: 0; }
.person-info h3 { margin: 0; font-size: 13px; }
.person-info p { margin: 2px 0; color: var(--muted); font-size: 10px; }
.person-info span { color: #65584f; font-size: 10px; }
.person-meta { display: grid; justify-items: end; gap: 3px; }
.person-meta > strong { color: var(--brown); font-size: 18px; }
.person-meta > small { font-size: 8px; }
.person-card > .btn { grid-column: 2 / 4; justify-self: end; min-height: 34px; }

/* Orders */
.order-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.75fr); gap: 18px; }
.order-layout > .span-2 { grid-column: span 1; }
.order-layout > .span-3 { grid-column: 1 / -1; }
.order-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 22px 17px; border-bottom: 1px solid var(--line); }
.order-headline.compact { padding: 22px; }
.order-headline h2 { margin: 10px 0 3px; font-size: 22px; }
.order-headline p { margin: 0; color: var(--muted); font-size: 11px; }
.order-total { display: grid; justify-items: end; gap: 3px; text-align: right; }
.order-total strong { color: var(--brown); font-size: 22px; }
.order-total span { color: var(--muted); font-size: 9px; }
.order-items { display: grid; padding: 0 22px; }
.order-items article { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid #f1ece8; }
.order-items article:last-child { border-bottom: 0; }
.order-items article > div { min-width: 0; display: grid; gap: 3px; }
.order-items article > div strong { color: var(--brown); font-size: 11px; }
.order-items article > div small { font-size: 9px; }
.order-items article > span:not(.product-mini-icon) { color: #64574f; font-size: 11px; font-weight: 750; }
.order-items article > strong { min-width: 78px; color: var(--brown); font-size: 11px; text-align: right; }
.note-box { margin: 12px 22px 22px; padding: 14px; border-left: 4px solid var(--orange); border-radius: 0 11px 11px 0; background: var(--orange-pale); }
.note-box strong { color: var(--brown); font-size: 11px; }
.note-box p { margin: 5px 0 0; color: #6f5d50; font-size: 11px; }
.timeline { display: grid; gap: 0; padding: 0 22px 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 11px; padding-bottom: 19px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: #e3d8cf; }
.timeline-item:last-child::before { display: none; }
.timeline-item i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px #e5c19c; }
.timeline-item strong { color: var(--brown); font-size: 11px; }
.timeline-item p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.timeline-item small { font-size: 9px; }
.seller-order-list { display: grid; border-top: 1px solid var(--line); }
.seller-order-row { display: grid; grid-template-columns: 1.1fr 1.2fr auto 30px; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f1ece8; transition: .15s; }
.seller-order-row:hover { background: var(--orange-pale); }
.seller-order-row:last-child { border-bottom: 0; }
.seller-order-row > span:not(.status) { display: grid; gap: 3px; }
.seller-order-row strong { color: var(--brown); font-size: 11px; }
.seller-order-row small { font-size: 9px; }
.seller-order-row b { color: var(--orange-dark); }
.search-order-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 18px; }
.search-order-card { padding: 36px; text-align: center; }
.search-order-card h2 { margin: 18px auto 8px; max-width: 540px; font-size: 25px; }
.search-order-card > p:not(.eyebrow) { max-width: 500px; margin: 0 auto 25px; color: var(--muted); font-size: 12px; }
.order-code-form { display: flex; gap: 9px; max-width: 610px; margin: 0 auto 14px; }
.order-code-form input { min-height: 52px; font-size: 17px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.search-order-card > small { font-size: 9px; }
.seller-update-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 18px; }
.seller-update-layout > .span-2 { grid-column: 1 / -1; }
.seller-update-card { align-self: start; }
.seller-update-card form { padding: 0 20px 20px; }

/* Empty states */
.empty-state { display: grid; justify-items: center; padding: 30px; text-align: center; }
.empty-state > span { font-size: 32px; }
.empty-state h3 { margin: 8px 0 4px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.empty-state.small { padding: 15px 0; }
.large-empty { min-height: 420px; place-content: center; background: #fff; }
.large-empty > span { font-size: 55px; }
.large-empty h2 { margin: 16px 0 6px; font-size: 28px; }
.large-empty .btn { margin-top: 14px; }

/* Store */
.store-page { background: #fffaf5; }
.store-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.store-header-inner { width: min(1180px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.store-brand img { width: 245px; }
.store-nav { display: flex; align-items: center; gap: 5px; }
.store-nav > a { min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 9px; color: #776b62; font-size: 12px; font-weight: 750; }
.store-nav > a:hover, .store-nav > a.active { color: var(--orange-dark); background: var(--orange-pale); }
.cart-link span { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 9px; }
.client-user { display: grid; gap: 2px; margin-left: 10px; padding-left: 15px; border-left: 1px solid var(--line); }
.client-user strong { color: var(--brown); font-size: 10px; }
.client-user a { color: var(--orange-dark); font-size: 9px; font-weight: 800; }
.store-menu-button { display: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 42px; height: 42px; font-size: 19px; }
.store-main { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 240px); margin: 0 auto; padding: 25px 0 50px; }
.store-hero { min-height: 290px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); align-items: center; gap: 30px; margin-bottom: 22px; padding: 44px 50px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, rgba(74,34,5,.96), rgba(245,124,0,.92)), radial-gradient(circle at 80% 20%, #ffbd63 0, transparent 38%); box-shadow: 0 20px 55px rgba(113,54,8,.2); overflow: hidden; position: relative; }
.store-hero::before { content: ""; position: absolute; width: 380px; height: 380px; right: -160px; top: -180px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.store-hero > * { position: relative; z-index: 1; }
.store-hero h1 { margin: 18px 0 10px; color: #fff; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 61px); line-height: 1; }
.store-hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-stat { display: grid; gap: 8px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.hero-stat span { color: #ffe3bf; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-stat strong { color: #fff; font-size: 19px; }
.hero-stat small { color: rgba(255,255,255,.72); font-size: 10px; }
.catalog-toolbar { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.catalog-search { display: flex; align-items: center; position: relative; }
.catalog-search > span { position: absolute; left: 14px; color: #9e9389; }
.catalog-search input { min-height: 49px; padding-left: 40px; border-radius: 11px 0 0 11px; }
.catalog-search button { align-self: stretch; padding: 0 22px; border: 0; border-radius: 0 11px 11px 0; color: #fff; background: var(--orange); font-weight: 850; cursor: pointer; }
.category-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.category-pills a { padding: 7px 11px; border-radius: 999px; color: #776b62; background: #f6f2ee; font-size: 10px; font-weight: 750; }
.category-pills a.active { color: #fff; background: var(--orange); }
.catalog-section { padding-top: 27px; }
.section-heading, .store-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .store-page-heading h1 { margin: 0; font-family: Georgia, serif; font-size: 28px; }
.section-heading > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.store-page-heading { align-items: center; padding: 8px 0 3px; }
.store-page-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 5px 20px rgba(60,37,19,.05); transition: .2s; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.catalog-visual { min-height: 165px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #fff0d8, #ffd49d); }
.catalog-visual-1 { background: linear-gradient(145deg, #f1eee6, #ddd4c3); }
.catalog-visual-2 { background: linear-gradient(145deg, #fbe4dc, #efbda7); }
.catalog-visual-3 { background: linear-gradient(145deg, #e8f0e9, #cbdccf); }
.catalog-visual span { font-size: 66px; filter: drop-shadow(0 12px 12px rgba(60,37,19,.13)); }
.catalog-visual em { position: absolute; left: 14px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--brown); font-size: 9px; font-style: normal; font-weight: 850; }
.catalog-body { padding: 17px; }
.catalog-body > small { color: var(--orange-dark); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.catalog-body h3 { margin: 4px 0 7px; font-size: 17px; }
.catalog-body > p { min-height: 51px; margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.catalog-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 13px; }
.catalog-price strong { color: var(--brown); font-size: 20px; }
.catalog-price span { color: var(--muted); font-size: 10px; }
.add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.add-form label { display: grid; gap: 5px; color: #695d54; font-size: 9px; font-weight: 750; }
.add-form select, .add-form input { min-height: 37px; padding: 0 9px; font-size: 10px; }
.add-form button { grid-column: 1 / -1; min-height: 39px; }
.store-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px max(30px, calc((100vw - 1180px)/2)); background: #352218; color: #fff; }
.store-footer img { width: 215px; }
.store-footer p { margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: 10px; }
.store-footer small { color: rgba(255,255,255,.45); font-size: 9px; }

/* Cart and checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.5fr); gap: 20px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: auto minmax(0,1fr) 160px 100px 30px; gap: 15px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cart-product small { color: var(--orange-dark); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.cart-product h3 { margin: 3px 0; font-size: 14px; }
.cart-product span { color: var(--muted); font-size: 9px; }
.quantity-form label { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.quantity-form label input { grid-column: 1; min-height: 38px; padding: 0 8px; }
.quantity-form button { grid-column: 2; grid-row: 2; border: 0; border-radius: 8px; color: var(--orange-dark); background: var(--orange-soft); font-size: 9px; font-weight: 800; cursor: pointer; }
.cart-price { display: grid; justify-items: end; }
.cart-price strong { color: var(--brown); font-size: 14px; }
.cart-price small { font-size: 8px; }
.remove-button { width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 19px; cursor: pointer; }
.order-summary { position: sticky; top: 102px; padding: 22px; border: 1px solid #f0c99b; border-radius: 17px; background: linear-gradient(160deg, #fff9f1, #fff); box-shadow: var(--shadow-sm); }
.order-summary h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 22px; }
.order-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #eee4da; font-size: 11px; }
.order-summary > div strong { color: var(--brown); text-align: right; }
.order-summary > p:not(.eyebrow) { margin: 15px 0; color: var(--muted); font-size: 10px; }
.order-summary hr { border: 0; border-top: 1px solid #e9ded4; }
.order-summary .grand-total strong { font-size: 21px; color: var(--orange-dark); }
.order-summary > small { display: block; margin-top: 10px; text-align: center; font-size: 8px; }
.checkout-items { padding-bottom: 18px; }
.checkout-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid #f1ece8; }
.checkout-row > span { font-size: 24px; }
.checkout-row div { display: grid; gap: 3px; }
.checkout-row div strong { color: var(--brown); font-size: 11px; }
.checkout-row div small { font-size: 9px; }
.checkout-row > strong { color: var(--brown); font-size: 11px; }
.checkout-notes { margin: 16px 20px 0; }

/* Success and client orders */
.success-card { max-width: 760px; margin: 35px auto; padding: 45px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #1d9c65, #53bd8c); font-size: 34px; font-weight: 900; box-shadow: 0 12px 28px rgba(31,138,91,.22); }
.success-card h1 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: 38px; }
.success-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.success-code { display: grid; gap: 4px; max-width: 420px; margin: 25px auto; padding: 17px; border: 1px dashed #e3a65e; border-radius: 13px; background: var(--orange-pale); }
.success-code strong { color: var(--brown); font-size: 22px; letter-spacing: .06em; }
.success-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.success-details div { display: grid; gap: 4px; padding: 13px; border-radius: 11px; background: #f8f5f2; }
.success-details span { color: var(--muted); font-size: 9px; }
.success-details strong { color: var(--brown); font-size: 12px; }
.whatsapp-button { min-height: 50px; color: #fff; background: #25d366; box-shadow: 0 9px 24px rgba(37,211,102,.22); }
.whatsapp-button:hover { background: #1fb958; }
.success-actions { display: flex; justify-content: center; gap: 22px; margin-top: 19px; }
.success-actions a { color: var(--orange-dark); font-size: 10px; font-weight: 800; }
.client-orders-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.client-order-card { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.client-order-card h3 { margin: 10px 0 2px; font-size: 17px; }
.client-order-card > div:first-child p { margin: 0; color: var(--muted); font-size: 9px; }
.client-order-data { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.client-order-data span { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #f8f5f2; }
.client-order-data small { font-size: 8px; }
.client-order-data strong { color: var(--brown); font-size: 10px; }
.order-message { padding: 12px; border-left: 3px solid var(--orange); background: var(--orange-pale); }
.order-message strong { color: var(--brown); font-size: 10px; }
.order-message p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 1250px) {
  .metric-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .product-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-showcase { display: none; }
  .login-logo-mobile { display: block; }
  .login-panel { min-height: 100vh; padding: 30px 20px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-102%); transition: .22s; box-shadow: 14px 0 35px rgba(60,37,19,.16); }
  .sidebar.open { transform: translateX(0); }
  .main-panel { grid-column: 1; }
  .menu-button { display: block; }
  .topbar { justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .dashboard-grid, .order-layout, .seller-update-layout, .search-order-layout { grid-template-columns: 1fr; }
  .dashboard-grid > .span-2, .order-layout > .span-2, .order-layout > .span-3, .seller-update-layout > .span-2 { grid-column: span 1; }
  .quick-actions-card { grid-column: span 1; }
  .metric-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .form-layout > .span-3 { grid-column: span 1; }
  .people-grid { grid-template-columns: 1fr; }
  .store-menu-button { display: block; }
  .store-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
  .store-nav.open { display: grid; }
  .client-user { margin: 5px 0 0; padding: 10px 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .store-hero { grid-template-columns: 1fr; }
  .hero-stat { max-width: 390px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .cart-item { grid-template-columns: auto minmax(0,1fr) 120px 90px 30px; }
}

@media (max-width: 720px) {
  .page-content { padding: 18px 14px 30px; }
  .topbar { min-height: 76px; padding: 13px 14px; }
  .topbar h1 { font-size: 18px; }
  .topbar .eyebrow { display: none; }
  .topbar-actions .btn { min-height: 38px; padding: 0 12px; font-size: 10px; }
  .metric-grid-6, .metric-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 90px; padding: 13px; }
  .metric-card strong { font-size: 22px; }
  .dashboard-grid { gap: 13px; }
  .quick-actions { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar select { width: 100%; }
  .product-admin-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .availability-item { grid-template-columns: auto minmax(0,1fr) auto; }
  .availability-label { display: none; }
  .people-grid { padding: 0 12px 12px; }
  .person-card { grid-template-columns: auto minmax(0,1fr); }
  .person-meta { grid-column: 1 / 3; grid-template-columns: auto auto auto; align-items: center; justify-content: start; gap: 8px; }
  .person-card > .btn { grid-column: 1 / 3; justify-self: stretch; }
  .order-headline { flex-direction: column; }
  .order-total { justify-items: start; text-align: left; }
  .order-items article { grid-template-columns: auto minmax(0,1fr) auto; }
  .order-items article > strong { grid-column: 2 / 4; text-align: left; }
  .seller-order-row { grid-template-columns: 1fr auto; }
  .seller-order-row > span:nth-child(2) { grid-column: 1; }
  .seller-order-row > .status { grid-column: 2; grid-row: 1 / 3; }
  .seller-order-row b { display: none; }
  .order-code-form { flex-direction: column; }
  .store-header-inner, .store-main { width: min(100% - 24px, 1180px); }
  .store-brand img { width: 205px; }
  .store-hero { min-height: 0; padding: 34px 23px; border-radius: 18px; }
  .store-hero h1 { font-size: 40px; }
  .store-hero p { font-size: 12px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .store-page-heading { align-items: flex-start; flex-direction: column; }
  .cart-item { grid-template-columns: auto minmax(0,1fr) auto; }
  .quantity-form { grid-column: 2 / 4; }
  .cart-price { grid-column: 2; justify-items: start; }
  .cart-item > form:last-child { grid-column: 3; grid-row: 1; }
  .success-card { margin: 15px auto; padding: 28px 18px; }
  .success-details { grid-template-columns: 1fr; }
  .success-actions { flex-direction: column; gap: 10px; }
  .client-orders-grid { grid-template-columns: 1fr; }
  .client-order-data { grid-template-columns: 1fr; }
  .store-footer { align-items: flex-start; flex-direction: column; padding: 25px 20px; }
}

@media (max-width: 430px) {
  .metric-grid-6, .metric-grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 78px; }
  .metric-icon { width: 31px; height: 31px; }
  .metric-card small { font-size: 8px; }
  .metric-card strong { font-size: 19px; }
  .choice-grid { grid-template-columns: 1fr; }
  .catalog-search { display: grid; }
  .catalog-search input { border-radius: 11px 11px 0 0; }
  .catalog-search button { min-height: 42px; border-radius: 0 0 11px 11px; }
}
