* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f4f6f8; color: #1f2937; }
.hidden { display: none !important; }
.page-shell { max-width: 1400px; margin: 0 auto; padding: 20px; }
.topbar, .panel, .modal-card, .drawer-card { background: #ffffff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.topbar { padding: 18px 20px; margin-bottom: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar-actions { display: flex; gap: 10px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; }
.topbar h1 { margin: 4px 0; font-size: 28px; }
.muted { color: #6b7280; }
.small-text { font-size: 12px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 20px; }
.panel { padding: 18px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-header h2 { margin: 0; font-size: 22px; }
.group-toolbar { margin-bottom: 16px; }
.group-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.group-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.group-chip.active { background: #111827; color: #fff; border-color: #111827; }
.group-chip-image, .group-chip-icon { width: 24px; height: 24px; object-fit: cover; border-radius: 999px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.product-image-wrap { height: 180px; background: #eef2f7; }
.product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-content { padding: 14px; }
.product-title { margin: 0 0 8px; font-size: 18px; }
.product-short, .product-tags { font-size: 14px; color: #4b5563; margin-bottom: 8px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-meta { padding: 12px; background: #f9fafb; border-radius: 10px; margin-bottom: 14px; border: 1px solid #e5e7eb; }
.round-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-bottom: 12px; background: #fafafa; }
.round-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.round-title { font-weight: bold; }
.round-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; padding: 8px 0; border-top: 1px solid #eceff3; font-size: 14px; }
.round-item:first-child { border-top: none; }
.btn { border: none; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.btn-primary { background: #111827; color: #ffffff; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-block { width: 100%; }
.btn-icon { background: #e5e7eb; color: #111827; width: 34px; height: 34px; padding: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; padding: 0 6px; margin-left: 6px; }
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 1000; }
.modal, .drawer { position: fixed; z-index: 1001; }
.modal { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); }
.modal-card, .drawer-card { overflow: hidden; }
.modal-header, .modal-body, .modal-footer, .drawer-header, .drawer-body, .drawer-footer { padding: 16px; }
.modal-body input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; }
.error-text { color: #b91c1c; margin-top: 10px; min-height: 20px; }
.drawer { top: 0; right: 0; width: min(460px, 100vw); height: 100vh; }
.drawer-card { height: 100%; display: flex; flex-direction: column; }
.drawer-header, .drawer-footer { border-bottom: 1px solid #e5e7eb; }
.drawer-footer { border-bottom: none; border-top: 1px solid #e5e7eb; margin-top: auto; }
.drawer-body { overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.cart-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cart-item-actions { display: flex; align-items: center; gap: 6px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.empty-state { padding: 16px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #6b7280; text-align: center; }
@media (max-width: 960px) { .layout-grid { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: flex-start; } }
