:root {
  --coffee: #5b2c20;
  --coffee-dark: #351811;
  --caramel: #c57a3d;
  --cream: #f8f1e7;
  --paper: #fffdf9;
  --ink: #2b211d;
  --muted: #74655e;
  --line: #e7d9cb;
  --green: #237a49;
  --red: #b33b37;
  --shadow: 0 16px 45px rgba(55, 30, 18, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--coffee); text-decoration: none; }
a:hover { color: var(--caramel); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
.container{
    width:min(1400px, calc(100% - 32px));
    margin:0 auto;
}
.section { padding-block: 64px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.brand-logo{
    width:65px;
    height:65px;
    object-fit:contain;
    flex-shrink:0;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1;
}

.brand-top{
    font-size:13px;
    font-weight:700;
    letter-spacing:3px;
    color:#7d5b4c;
    text-transform:uppercase;
}

.brand-bottom{
    margin-top:4px;
    font-size:28px;
    font-weight:900;
    font-family:Georgia, serif;
    color:var(--coffee-dark);
    letter-spacing:1px;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 700; font-size: 14px; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 25px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--coffee);
  border-radius: 10px;
  background: var(--coffee);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { background: var(--coffee-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--coffee); }
.btn-outline:hover { background: var(--coffee); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.hero { overflow: hidden; padding: 78px 0; background: radial-gradient(circle at 75% 30%, #efd4b6 0, #f8f1e7 35%, #efe1d0 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 460px; }
.hero-copy h1 { max-width: 760px; margin: 14px 0 18px; font: 800 clamp(44px, 7vw, 82px)/.98 Georgia, serif; letter-spacing: -3px; color: var(--coffee-dark); }
.hero-copy p { max-width: 670px; font-size: 18px; color: var(--muted); }
.eyebrow { color: var(--caramel); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; font-size: 12px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; background: #fff8; border-radius: 999px; font-weight: 700; }
.status-pill span { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.status-pill.open span { background: var(--green); box-shadow: 0 0 0 4px #237a4922; }
.coffee-visual { position: relative; height: 390px; min-width: 330px; }
.cup { position: absolute; left: 21%; top: 29%; width: 230px; height: 180px; border-radius: 12px 12px 76px 76px; background: #fffaf2; box-shadow: inset -18px -12px 0 #ead9c8, var(--shadow); border: 5px solid #fff; }
.cup::after { content: ""; position: absolute; right: -74px; top: 35px; width: 82px; height: 82px; border: 22px solid #fffaf2; border-left: 0; border-radius: 0 50% 50% 0; }
.coffee { position: absolute; inset: 8px 10px auto; height: 23px; border-radius: 50%; background: #4d2418; }
.saucer { position: absolute; left: 13%; bottom: 53px; width: 320px; height: 46px; border-radius: 50%; background: #e6c9a9; box-shadow: 0 18px 30px #6b3f2225; }
.steam { position: absolute; top: 42px; width: 24px; height: 120px; border: 7px solid #ffffffa0; border-color: transparent #ffffffa0 transparent transparent; border-radius: 50%; }
.steam-one { left: 40%; transform: rotate(8deg); }
.steam-two { left: 52%; top: 25px; transform: rotate(-7deg); }

.section-heading { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.section-heading h2 { margin: 8px 0; font: 800 clamp(32px, 5vw, 52px)/1 Georgia, serif; color: var(--coffee-dark); }
.section-heading p { color: var(--muted); }


.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.product-card {
    width: 250px;
    min-width: 250px;
    max-width: 250px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(83, 50, 28, 0.08);
}
.product-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 225px;
    height: 225px;
    min-width: 225px;
    min-height: 225px;

    margin: 20px auto 0;
    overflow: hidden;
    flex-shrink: 0;

    border-radius: 14px;
    background: #e9c59d;
}

.product-art.tone-2 {
    background: #d7b69b;
}

.product-art.tone-3 {
    background: #c9d0bd;
}

.product-art img {
    display: block;
    width: 225px !important;
    height: 225px !important;
    min-width: 225px;
    min-height: 225px;
    max-width: 225px !important;
    max-height: 225px !important;

    object-fit: cover;
    object-position: center;
}   

.product-art > span:not(.rank) {
    font-size: 62px;
}

.rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--coffee);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.product-body {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--paper);
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.product-title-row h3 {
    margin: 0 0 8px;
    color: var(--coffee-dark);
    font-size: 20px;
    overflow-wrap: anywhere;
}

.product-title-row strong {
    color: var(--coffee);
    font-size: 17px;
    white-space: nowrap;
}

.product-body p {
    flex: 1;
    min-height: 46px;
    margin: 0 0 15px;
    color: var(--muted);
    line-height: 1.55;
}

.product-body small {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--coffee);
    font-weight: 800;
}
.feature-strip { padding: 56px 0; background: var(--coffee-dark); color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-grid article { padding: 18px; }
.feature-grid article > span { font-size: 34px; }
.feature-grid h3 { margin: 10px 0 6px; }
.feature-grid p { color: #eadbd1; }

.auth-section { min-height: calc(100vh - 145px); padding: 60px 16px; display: grid; place-items: center; background: linear-gradient(135deg, #efe0cf, #faf5ee); }
.auth-card { width: min(930px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card-wide { width: min(1050px, 100%); }
.auth-side { padding: 48px; color: #fff; background: linear-gradient(145deg, var(--coffee), var(--coffee-dark)); }
.auth-side h1 { margin: 12px 0 18px; font: 700 44px/1.08 Georgia, serif; }
.auth-side p { color: #eeddd3; }
.auth-form { padding: 46px; }
.auth-form > h2 { margin-bottom: 5px; font-size: 30px; }
label { display: block; margin-bottom: 15px; color: #3a2b25; font-weight: 800; font-size: 13px; }
input, select, textarea {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d9c8ba;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 105px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #c57a3d2c; border-color: var(--caramel); }
.password-wrap { display: flex; margin-top: 6px; }
.password-wrap input { margin: 0; border-radius: 9px 0 0 9px; }
.password-wrap button { padding: 0 14px; border: 1px solid #d9c8ba; border-left: 0; border-radius: 0 9px 9px 0; background: #f3e9df; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { margin-top: 18px; text-align: center; }
.demo-box, .check-list { display: grid; gap: 7px; margin-top: 28px; padding: 16px; border-radius: 12px; background: #ffffff13; font-size: 13px; }
.check-list { padding-left: 36px; }

.flash-wrap { margin-top: 16px; }
.alert { padding: 13px 15px; margin-bottom: 16px; border: 1px solid; border-radius: 10px; }
.alert-success { color: #135d35; background: #e9f8ef; border-color: #b8e4c8; }
.alert-danger { color: #812925; background: #fff0ef; border-color: #efc0bd; }
.empty-state { padding: 38px; text-align: center; border: 1px dashed #ccb7a7; border-radius: 16px; background: #fff9; }
.empty-state > span { font-size: 45px; }
.offline-card { width: min(620px, 100%); padding: 44px; text-align: center; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.offline-card h1 { font: 700 38px Georgia, serif; }
.offline-icon { font-size: 70px; }

.page-shell { padding: 38px 0 70px; min-height: calc(100vh - 145px); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.page-head h1 { margin: 5px 0; font: 800 42px/1 Georgia, serif; color: var(--coffee-dark); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 28px #5538220a; }
.card + .card { margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--coffee), #7d4430); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #9f622f, #c78b4a); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #35634b, #56876c); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #4a5368, #68748d); }
.stat-card span { opacity: .8; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-link { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf5; font-weight: 800; }
.quick-link span { display: block; font-size: 28px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #eee3d9; vertical-align: top; }
th { color: #57443b; background: #f4ebe2; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.table-actions form { display: inline; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #eee5dc; color: #57443b; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.badge.approved, .badge.completed, .badge.paid, .badge.ready, .badge.active { background: #dff3e7; color: #17623a; }
.badge.pending, .badge.preparing { background: #fff1cf; color: #805911; }
.badge.rejected, .badge.cancelled, .badge.disabled { background: #fee3e1; color: #8b2e29; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.menu-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.menu-card p { color: var(--muted); flex: 1; }
.menu-card .price { color: var(--coffee); font-size: 21px; font-weight: 900; }
.menu-card .stock { font-size: 12px; color: var(--muted); }
.inline-fields { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.inline-fields label { margin: 0; }
.cart-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.summary-total { margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 20px; font-weight: 900; }
.stars { color: #d28a22; letter-spacing: 2px; }
.progress { height: 12px; overflow: hidden; border-radius: 99px; background: #eaded3; }
.progress > span { display: block; height: 100%; background: var(--caramel); }
.bar-list { display: grid; gap: 14px; }
.bar-head { display: flex; justify-content: space-between; margin-bottom: 5px; }

.receipt { width: 80mm; margin: 20px auto; padding: 8mm; background: #fff; color: #111; font: 12px/1.4 monospace; }
.receipt h1, .receipt p { text-align: center; }
.receipt table { font-size: 11px; }
.receipt th, .receipt td { padding: 6px 2px; border-bottom: 1px dashed #777; }
.print-actions { text-align: center; margin: 18px; }

.site-footer { padding: 25px 0; background: var(--coffee); color: #eadbd1; text-align: center; }
.site-footer p { margin: 0; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .print-actions { display: none !important; }
  .receipt { margin: 0; box-shadow: none; }
}


.menu-layout{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:24px;
    align-items:start;
}

.menu-main{
    min-width:0;
}

.recommend-sidebar{
    width:320px;
    position:sticky;
    top:90px;
}

.menu-main{
    width: 100%;
    min-width: 0;
}

.recommend-sidebar{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 28px rgba(85,56,34,.08);
    position:sticky;
    top:90px;
    width:320px;
}

.recommend-sidebar h3{
    margin-bottom:6px;
    color:var(--coffee-dark);
    font:800 24px/1 Georgia, serif;
}

.recommend-sidebar .muted{
    margin-bottom:18px;
}

.recommend-card{
    padding:14px 0;
    border-bottom:1px solid var(--line);
}

.recommend-card:last-child{
    border-bottom:none;
}

.recommend-card h4{
    margin:0 0 8px;
    color:var(--coffee);
}

.recommend-card p{
    margin-bottom:10px;
    color:var(--muted);
    font-size:14px;
}

.recommend-card strong{
    display:block;
    margin-bottom:6px;
    color:var(--coffee-dark);
    font-size:18px;
}

.recommend-card .stock{
    font-size:12px;
    color:var(--muted);
}



.customer-dashboard-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.best-seller-sidebar,
.quick-actions-sidebar {
    position: sticky;
    top: 92px;
}

.best-seller-heading h2 {
    margin: 6px 0 8px;
}

.best-seller-heading p {
    margin-bottom: 18px;
}

.best-seller-list {
    display: grid;
    gap: 14px;
}

.best-seller-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.best-seller-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.best-seller-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--coffee);
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.best-seller-content {
    min-width: 0;
}

.best-seller-content h3 {
    margin: 0 0 5px;
    color: var(--coffee-dark);
    font-size: 16px;
}

.best-seller-content p {
    display: -webkit-box;
    margin-bottom: 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.best-seller-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}

.best-seller-meta strong {
    color: var(--coffee);
    font-size: 15px;
}

.best-seller-meta span {
    color: var(--muted);
    white-space: nowrap;
}

.best-seller-empty {
    padding: 25px 10px;
    text-align: center;
    color: var(--muted);
}

.best-seller-empty span {
    display: block;
    margin-bottom: 8px;
    font-size: 38px;
}

.recent-orders-card {
    min-width: 0;
    min-height: 402px;
}

.quick-actions-sidebar .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-title {
    margin-top: 24px;
}

.dashboard-notice {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-notice:last-child {
    border-bottom: 0;
}

.dashboard-notice strong,
.dashboard-notice small {
    display: block;
}

.dashboard-notice small {
    margin-top: 4px;
    color: var(--muted);
}


.menu-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1e5d9;
}
.menu-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.25;
}

.menu-card p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.menu-card .price {
    font-size: 18px;
}

.menu-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
    font-size: 52px;
}

.recommend-product-image {
    width: 100%;
    height: 130px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1e5d9;
}

.recommend-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-image-placeholder {
    display: grid;
    place-items: center;
    font-size: 38px;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
}

.sales-report-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}

.report-summary span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #6b625d;
}

.report-summary strong {
    color: #2f211c;
    font-size: 1.15rem;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.cart-product-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f1e5d9;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
}

.cart-product-info {
    min-width: 0;
}

.cart-product-info strong,
.cart-product-info small {
    display: block;
}

.cart-product-info strong {
    color: var(--coffee-dark);
    font-size: 15px;
}

.cart-product-info small {
    margin-top: 4px;
    color: var(--muted);
}

.cart-quantity {
    width: 75px;
    min-width: 75px;
    margin-top: 0;
}


@media (max-width: 1200px) {
    .customer-dashboard-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .quick-actions-sidebar {
        position: static;
        grid-column: 1 / -1;
    }

    .quick-actions-sidebar .quick-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

    .container {
        width: calc(100% - 24px);
    }

    .nav-wrap {
        position: relative;
        min-height: 72px;
    }

    .brand {
        gap: 10px;
        min-width: 0;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-top {
        font-size: 10px;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .brand-bottom {
        font-size: 19px;
        white-space: nowrap;
    }

    .nav-toggle {
        display: block;
        flex-shrink: 0;
        cursor: pointer;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        z-index: 100;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 0 0 14px 14px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .hero-grid,
    .auth-card,
    .dashboard-grid,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .coffee-visual {
        display: none;
    }

    .feature-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-layout {
        grid-template-columns: 1fr;
    }

    .recommend-sidebar {
        position: static;
        width: 100%;
    }

    .customer-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .best-seller-sidebar,
    .quick-actions-sidebar {
        position: static;
    }

    .best-seller-sidebar,
    .recent-orders-card,
    .quick-actions-sidebar {
        grid-column: auto;
    }

    .quick-actions-sidebar .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 720px;
    }
}

@media (max-width: 600px) {

    .menu-card {
    padding: 9px;
    border-radius: 12px;
}

.menu-product-image {
    margin-bottom: 9px;
    border-radius: 8px;
}

.menu-card h3 {
    font-size: 14px;
}

.menu-card p {
    font-size: 11px;
    line-height: 1.35;
}

.menu-card .price {
    font-size: 16px;
}

.menu-card .stock {
    font-size: 10px;
}
    .container {
        width: calc(100% - 20px);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand {
        gap: 7px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-top {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .brand-bottom {
        font-size: 15px;
        letter-spacing: 0;
    }

    .main-nav {
        top: 68px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: 44px;
        line-height: 1;
        letter-spacing: -2px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 130px;
    }

    .section {
        padding-block: 45px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
}

    .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

    .product-art {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin: 0 auto;
}

    .product-art img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

    .product-body {
        padding: 15px;
    }

    .product-title-row {
        gap: 8px;
    }

    .product-title-row h3 {
        font-size: 17px;
    }

    .product-title-row strong {
        font-size: 15px;
    }

    .stats-grid,
.form-grid {
    grid-template-columns: 1fr;
}

    .form-grid .full {
        grid-column: auto;
    }

    .auth-side,
    .auth-form {
        padding: 28px 20px;
    }

    .auth-side h1 {
        font-size: 34px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head h1 {
        font-size: 34px;
    }

    .inline-fields {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
    }

    .quick-links,
    .quick-actions-sidebar .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-report-content {
        align-items: stretch;
        flex-direction: column;
    }

    .sales-report-content .btn {
        width: 100%;
    }

    .report-summary {
        flex-wrap: wrap;
    }

    .site-footer {
        padding: 22px 12px;
    }
    .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 600px) {
    .cart-product {
        min-width: 165px;
        gap: 8px;
    }

    .cart-product-image {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .cart-product-info strong {
        font-size: 13px;
    }

    .cart-product-info small {
        font-size: 10px;
    }

    .cart-quantity {
        width: 58px;
        min-width: 58px;
        padding: 7px;
    }
}


.feature-strip {
    padding: 28px 0;
}

.feature-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
}

.feature-grid article {
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, .06);
}

.feature-grid article > span {
    font-size: 24px;
}

.feature-grid h3 {
    margin: 8px 0 4px;
    font-size: 15px;
}

.feature-grid p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}


.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.stat-card {
    min-width: 0;
    padding: 13px 12px;
    border-radius: 12px;
}

.stat-card span {
    display: block;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .04em;
}

.stat-card strong {
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
}


@media (max-width: 600px) {

    .cart-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-layout > .card {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .cart-layout .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .cart-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: grid;
        gap: 12px;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }

    .cart-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0;
        border: 0;
        text-align: right;
    }

    .cart-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }

    .cart-table td:first-child {
        grid-column: 1 / -1;
        display: block;
        text-align: left;
    }

    .cart-table td:first-child::before {
        display: none;
    }

    .cart-product {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-width: 0;
        width: 100%;
    }

    .cart-product-image {
        width: 68px;
        height: 68px;
        flex-basis: auto;
        border-radius: 10px;
    }

    .cart-product-info {
        min-width: 0;
    }

    .cart-product-info strong {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .cart-product-info small {
        margin-top: 3px;
        font-size: 10px;
    }

    .cart-quantity {
        width: 58px;
        min-width: 58px;
        min-height: 38px;
        margin: 0;
        padding: 6px;
        text-align: center;
    }

    .cart-layout .table-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 14px !important;
    }

    .cart-layout .table-actions .btn,
    .cart-layout > .card > form > .btn-danger {
        width: 100%;
    }

    .cart-layout aside.card {
        padding: 16px;
    }

    .cart-layout aside.card h2 {
        font-size: 24px;
    }

    .cart-layout .summary-total {
        font-size: 18px;
    }

    @media (max-width: 700px) {
    .prediction-product-item {
        grid-template-columns: 28px 48px minmax(0, 1fr);
        gap: 8px;
        min-height: 68px;
        padding: 8px;
    }

    .prediction-product-rank {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .prediction-product-image img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .prediction-image-placeholder {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
}


.admin-recent-orders {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.admin-recent-order-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.admin-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #f5ece3;
    border-bottom: 1px solid var(--line);
}

.admin-order-header small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.admin-order-number {
    color: var(--coffee-dark);
    font-size: 15px;
}

.admin-order-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

.admin-order-customer span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-order-products {
    display: grid;
}

.admin-order-product {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.admin-order-product:last-child {
    border-bottom: 0;
}

.admin-order-product-image {
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f1e5d9;
}

.admin-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-order-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 25px;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
}

.admin-order-product-info {
    min-width: 0;
}

.admin-order-product-info strong,
.admin-order-product-info small {
    display: block;
}

.admin-order-product-info strong {
    color: var(--coffee-dark);
    font-size: 14px;
}

.admin-order-product-info small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.admin-product-category {
    color: var(--caramel) !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-order-product-price {
    color: var(--coffee);
    font-weight: 900;
    white-space: nowrap;
}

.admin-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    background: #fffaf5;
}

.admin-order-footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-order-footer span:not(.badge) {
    color: var(--muted);
    font-size: 12px;
}

.admin-order-total strong {
    color: var(--coffee-dark);
    font-size: 18px;
}


.admin-best-sellers{
    display:grid;
    gap:14px;
}

.admin-best-item{
    display:grid;
    grid-template-columns:42px 68px 1fr;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}

.best-rank{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--coffee);
    color:#fff;
    font-weight:900;
}

.best-image{
    width:68px;
    height:68px;
    overflow:hidden;
    border-radius:12px;
    border:1px solid var(--line);
    background:#f1e5d9;
}

.best-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.best-image-placeholder{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    font-size:28px;
    background:linear-gradient(135deg,#ead6c2,#f8f1e7);
}

.best-content{
    min-width:0;
}

.best-content strong{
    display:block;
    color:var(--coffee-dark);
    margin-bottom:4px;
}

.best-content small{
    display:block;
    margin-bottom:10px;
    color:var(--muted);
}

.best-content .progress{
    height:8px;
}



.inventory-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.inventory-product-image {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f1e5d9;
}

.inventory-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.inventory-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 27px;
    background: linear-gradient(
        135deg,
        #ead6c2,
        #f8f1e7
    );
}

.inventory-product-info {
    min-width: 0;
}

.inventory-product-info strong,
.inventory-product-info small {
    display: block;
}

.inventory-product-info strong {
    color: var(--coffee-dark);
    font-size: 14px;
}

.inventory-product-info small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}



.order-product-list {
    display: grid;
    gap: 10px;
    min-width: 320px;
}

.order-product-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fffaf5;
}

.order-product-image {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f1e5d9;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.order-product-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    background: linear-gradient(
        135deg,
        #ead6c2,
        #f8f1e7
    );
}

.order-product-info {
    min-width: 0;
}

.order-product-info strong,
.order-product-info small {
    display: block;
}

.order-product-info strong {
    color: var(--coffee-dark);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.order-product-info small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.order-product-category {
    color: var(--caramel) !important;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.order-product-subtotal {
    color: var(--coffee);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}



.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.analytics-stats-grid .stat-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    line-height: 1.35;
}

.analytics-peak-time {
    font-size: 21px !important;
    line-height: 1.2 !important;
}

.analytics-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-highlight {
    margin-top: 0 !important;
}

.analytics-highlight h2 {
    margin: 8px 0 5px;
    color: var(--coffee-dark);
    font: 800 29px/1.1 Georgia, serif;
}

.analytics-wide-card {
    margin-bottom: 20px;
}

.analytics-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-two-column > .card,
.analytics-three-column > .card {
    min-width: 0;
    margin-top: 0;
}

.analytics-three-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.analytics-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.analytics-section-heading h2 {
    margin: 5px 0 0;
}

.analytics-chart-wrap {
    position: relative;
    width: 100%;
    height: 360px;
}

.analytics-chart-medium {
    height: 320px;
}

.analytics-chart-small {
    height: 290px;
}

.analytics-best-sellers {
    display: grid;
    gap: 12px;
}

.analytics-best-item {
    display: grid;
    grid-template-columns: 40px 65px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffaf5;
}

.analytics-best-rank {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--coffee);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.analytics-best-image {
    width: 65px;
    height: 65px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f1e5d9;
}

.analytics-best-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analytics-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 26px;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
}

.analytics-best-content {
    min-width: 0;
}

.analytics-best-heading,
.analytics-best-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.analytics-best-heading strong,
.analytics-best-heading small {
    display: block;
}

.analytics-best-heading strong {
    color: var(--coffee-dark);
    font-size: 14px;
}

.analytics-best-heading small {
    margin-top: 2px;
    color: var(--caramel);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.analytics-best-heading > span {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.analytics-best-content .progress {
    height: 8px;
    margin: 9px 0;
}

.analytics-best-footer {
    color: var(--muted);
    font-size: 10px;
}

.analytics-best-footer strong {
    color: var(--coffee);
    font-size: 12px;
}



.prediction-notice {
    margin-bottom: 20px;
}

.prediction-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.prediction-stats-grid .stat-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    line-height: 1.35;
}

.prediction-small-value {
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.prediction-wide-card {
    margin-bottom: 20px;
}



.prediction-notice {
    margin-bottom: 20px;
}

.prediction-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.prediction-stats-grid .stat-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    line-height: 1.35;
}

.prediction-small-value {
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.prediction-wide-card {
    margin-bottom: 20px;
}

.prediction-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.prediction-section-head h2 {
    margin: 5px 0 0;
    color: var(--coffee-dark);
    font-size: 25px;
    line-height: 1.2;
}

.prediction-chart-large {
    position: relative;
    width: 100%;
    height: 360px;
}

.prediction-chart-medium {
    position: relative;
    width: 100%;
    height: 280px;
}

.prediction-chart-large canvas,
.prediction-chart-medium canvas {
    width: 100% !important;
    height: 100% !important;
}

.prediction-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-two-column > .card {
    display: flex;
    min-width: 0;
    height: 100%;
    margin-top: 0;
    flex-direction: column;
}

.prediction-two-column .table-wrap,
.prediction-two-column .prediction-product-list {
    flex: 1;
}
.prediction-two-column .prediction-product-list {
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.prediction-two-column .table-wrap {
    display: flex;
    overflow: hidden;
}

.prediction-two-column .table-wrap table {
    width: 100%;
    height: 100%;
    min-width: 0;
}

.prediction-two-column .table-wrap tbody tr {
    height: calc(100% / 7);
}

.prediction-single-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-single-column > .card {
    min-width: 0;
    margin-top: 0;
}



.prediction-product-list {
    display: grid;
    gap: 10px;
}

.prediction-product-item {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf5;
}

.prediction-product-rank {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--coffee);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.prediction-product-image {
    width: 58px;
    height: 58px;
    min-width: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f1e5d9;
}

.prediction-product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

.prediction-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    background: linear-gradient(135deg, #ead6c2, #f8f1e7);
}

.prediction-product-info {
    min-width: 0;
}

.prediction-product-info strong,
.prediction-product-info small {
    display: block;
}

.prediction-product-info strong {
    color: var(--coffee-dark);
    font-size: 13px;
    line-height: 1.3;
}

.prediction-product-info small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.prediction-category {
    color: var(--caramel) !important;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}


.prediction-slow-list {
    display: grid;
    gap: 10px;
}

.prediction-slow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf5;
}

.prediction-slow-item > div {
    min-width: 0;
}

.prediction-slow-item strong,
.prediction-slow-item small {
    display: block;
}

.prediction-slow-item strong {
    color: var(--coffee-dark);
    font-size: 14px;
}

.prediction-slow-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.prediction-slow-item > span {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1cf;
    color: #805911;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}


.prediction-insight-list {
    display: grid;
    gap: 10px;
}

.prediction-insight {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf5;
}

.prediction-insight > span {
    font-size: 21px;
}

.prediction-insight p {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}

.compact-empty-state {
    padding: 24px;
}

@media (max-width: 900px) {
    .prediction-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prediction-two-column,
    .prediction-single-column {
        grid-template-columns: 1fr;
    }

    .prediction-chart-large {
        height: 320px;
    }

    .prediction-chart-medium {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .prediction-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .prediction-stats-grid .stat-card {
        min-width: 0;
        padding: 12px 10px;
    }

    .prediction-stats-grid .stat-card span {
        font-size: 9px;
    }

    .prediction-stats-grid .stat-card strong {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .prediction-stats-grid .stat-card small {
        font-size: 9px;
    }

    .prediction-section-head h2 {
        font-size: 21px;
    }

    .prediction-chart-large {
        height: 260px;
    }

    .prediction-chart-medium {
        height: 220px;
    }

    .prediction-product-item {
        grid-template-columns: 30px 48px minmax(0, 1fr);
        gap: 8px;
        min-height: 66px;
        padding: 8px;
    }

    .prediction-product-rank {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .prediction-product-image {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .prediction-product-info strong {
        font-size: 11px;
    }

    .prediction-product-info small {
        font-size: 8px;
    }

    .prediction-slow-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .prediction-slow-item > span {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .prediction-two-column {
        grid-template-columns: 1fr;
    }

    .prediction-two-column > .card {
        height: auto;
    }

    .prediction-two-column .prediction-product-list {
        grid-template-rows: none;
    }

    .prediction-two-column .table-wrap {
        display: block;
        overflow-x: auto;
    }

    .prediction-two-column .table-wrap table {
        height: auto;
    }
}



.business-revenue-section {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.revenue-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.revenue-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf5;
}

.revenue-card span,
.revenue-card strong,
.revenue-card small {
    display: block;
}

.revenue-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.revenue-card strong {
    margin-top: 8px;
    color: var(--coffee-dark);
    font-size: 25px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.revenue-card small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 1000px) {
    .revenue-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .business-revenue-section {
        padding: 16px;
    }

    .revenue-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .revenue-card {
        padding: 12px 10px;
    }

    .revenue-card span {
        font-size: 9px;
        line-height: 1.3;
    }

    .revenue-card strong {
        font-size: 18px;
    }

    .revenue-card small {
        font-size: 9px;
    }
}
.offline-sync-indicator {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f1e5d9;
    color: #603d2f;
    font-size: .78rem;
    font-weight: 700;
}

.offline-sync-indicator[data-state="online"] {
    background: #e8f5e9;
    color: #256029;
}

.offline-sync-indicator[data-state="offline"] {
    background: #fff3cd;
    color: #664d03;
}

.offline-sync-indicator[data-state="syncing"] {
    background: #e7f1ff;
    color: #084298;
}