:root { color-scheme: light; --bg: #f6f4ef; --surface: #ffffff; --surface-strong: #111827; --text: #17202a; --muted: #667085; --line: #dedbd2; --green: #13795b; --green-dark: #0c5f47; --coral: #c84a31; --amber: #b7791f; --blue: #2563eb; --shadow: 0 18px 55px rgba(23, 32, 42, 0.11); --radius: 8px; } * { box-sizing: border-box; } html { min-width: 320px; } body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 244, 239, 0.92)), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } button, input, select, textarea { font: inherit; } button { cursor: pointer; } .app-shell { width: min(1460px, 100%); margin: 0 auto; padding: 18px; } .topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(130px, 1fr); align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid rgba(222, 219, 210, 0.86); border-radius: var(--radius); background: rgba(255, 255, 255, 0.93); box-shadow: 0 10px 32px rgba(23, 32, 42, 0.08); backdrop-filter: blur(14px); } .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; } .brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: var(--radius); background: #16251e; color: #f7d56c; font-weight: 800; } .brand strong, .brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand strong { font-size: 1rem; } .brand small { color: var(--muted); font-size: 0.78rem; } .tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #f0eee8; } .tab { min-width: 90px; border: 0; border-radius: 6px; background: transparent; color: #475467; padding: 9px 12px; font-weight: 700; } .tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 4px 16px rgba(23, 32, 42, 0.09); } .session-pill { justify-self: end; max-width: 100%; padding: 9px 12px; border-radius: 999px; background: #eef8f4; color: var(--green-dark); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; padding-top: 18px; } .workspace, .side-panel { min-width: 0; } .workspace-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; } .eyebrow { margin: 0 0 6px; color: var(--green); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; } h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 4.25rem); line-height: 0.98; } h2 { margin-bottom: 0; font-size: 1.15rem; } .metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; } .metrics span { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.84); color: #344054; font-size: 0.9rem; font-weight: 800; } .toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 230px); gap: 12px; margin-bottom: 14px; } label { display: grid; gap: 7px; color: #344054; font-size: 0.82rem; font-weight: 800; } input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 12px 13px; outline: none; } textarea { min-height: 104px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.13); } .view { display: none; } .view.is-active { display: block; } .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; } .product-card { display: grid; min-height: 402px; overflow: hidden; border: 1px solid rgba(222, 219, 210, 0.92); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 28px rgba(23, 32, 42, 0.07); } .product-card img { width: 100%; height: 168px; object-fit: cover; background: #ece8de; } .product-body { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 14px; } .product-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; } .product-title-row h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; } .price { flex: 0 0 auto; color: var(--green-dark); font-weight: 900; } .product-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; } .stock { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: #f6f0df; color: #6b4e16; font-size: 0.78rem; font-weight: 900; } .card-actions { display: grid; grid-template-columns: 84px 1fr; gap: 8px; } .card-actions input { padding: 10px 8px; } .primary-action, .secondary-action, .ghost-action, .danger-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); padding: 10px 13px; font-weight: 900; text-align: center; } .primary-action { border: 1px solid var(--green); background: var(--green); color: #fff; } .primary-action:hover { background: var(--green-dark); } .secondary-action { border: 1px solid #c9d8ff; background: #eef4ff; color: #1e4ab5; } .ghost-action { min-height: 36px; border: 1px solid var(--line); background: #fff; color: #475467; } .danger-action { border: 1px solid #f0b8ab; background: #fff3f0; color: var(--coral); } button:disabled { cursor: not-allowed; opacity: 0.52; } .side-panel { position: sticky; top: 90px; display: grid; gap: 14px; } .panel-block, .shop-form, .empty-state, .order-card { border: 1px solid rgba(222, 219, 210, 0.92); border-radius: var(--radius); background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); } .panel-block, .shop-form { padding: 16px; } .panel-title, .form-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; } .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; padding: 4px; border-radius: var(--radius); background: #f0eee8; } .auth-tabs button { border: 0; border-radius: 6px; background: transparent; padding: 9px; color: #475467; font-weight: 900; } .auth-tabs button.is-active { background: #fff; color: var(--text); box-shadow: 0 4px 16px rgba(23, 32, 42, 0.08); } .auth-form { display: grid; gap: 12px; } .account-card { display: grid; gap: 12px; } .account-name { display: flex; justify-content: space-between; gap: 10px; align-items: center; } .role-badge, .status-badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: 6px 9px; background: #eef8f4; color: var(--green-dark); font-size: 0.78rem; font-weight: 900; } .status-badge.pending { background: #fff7e8; color: var(--amber); } .status-badge.paid { background: #e9f8f1; color: var(--green); } .cart-list { display: grid; gap: 10px; min-height: 60px; } .cart-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf7; } .cart-row strong { display: block; overflow-wrap: anywhere; } .cart-row small { color: var(--muted); } .cart-controls { display: inline-flex; align-items: center; gap: 6px; } .icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); font-weight: 900; } .cart-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); } .cart-total strong { font-size: 1.35rem; color: var(--green-dark); } .empty-state { display: grid; min-height: 220px; place-items: center; padding: 24px; color: var(--muted); text-align: center; } .orders-list { display: grid; gap: 12px; } .order-card { padding: 16px; } .order-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; } .order-head h3 { margin: 0 0 4px; } .order-head small { color: var(--muted); } .order-items { display: grid; gap: 8px; margin: 12px 0; } .order-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eeeae1; color: #344054; } .order-item span:first-child { overflow-wrap: anywhere; } .order-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; } .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; } .form-grid .wide { grid-column: 1 / -1; } .shop-empty { display: none; } .shop-empty.is-visible { display: block; margin-top: 12px; } .toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: min(380px, calc(100vw - 40px)); transform: translateY(18px); opacity: 0; pointer-events: none; border-radius: var(--radius); background: #17202a; color: #fff; padding: 13px 15px; box-shadow: 0 18px 55px rgba(23, 32, 42, 0.26); transition: transform 180ms ease, opacity 180ms ease; } .toast.is-visible { transform: translateY(0); opacity: 1; } @media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } .side-panel { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 780px) { .app-shell { padding: 10px; } .topbar { position: static; grid-template-columns: 1fr; } .tabs, .session-pill { justify-self: stretch; } .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .tab { min-width: 0; padding-inline: 6px; } .workspace-head { display: grid; align-items: start; } h1 { font-size: 2.25rem; } .toolbar, .side-panel, .form-grid { grid-template-columns: 1fr; } .metrics { justify-content: start; } } @media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } .card-actions { grid-template-columns: 74px 1fr; } .order-footer, .order-head { display: grid; } }