/* U San Ko + Daw Khin Tar Grocery Store — responsive menu */
:root {
  color-scheme: light;
  --green: #176b50;
  --green-dark: #10543e;
  --green-soft: #e9f4ee;
  --ink: #18251f;
  --muted: #718078;
  --line: #e7ece8;
  --surface: #ffffff;
  --page: #f6f8f6;
  --shadow: 0 8px 28px rgba(20, 55, 39, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--page);
  font-family: "DM Sans", "Noto Sans Myanmar", sans-serif;
  font-size: 15px; line-height: 1.55;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1160px; min-height: 76px; margin: auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 14px; color: white; background: var(--green); font-weight: 800; letter-spacing: -1px;
}
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 15px; line-height: 1.45; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.language-button {
  border: 1px solid #dce7df; background: var(--green-soft); color: var(--green-dark);
  border-radius: 12px; padding: 9px 15px; font-weight: 800; min-width: 52px;
}
.page { max-width: 1160px; margin: 0 auto; padding: 34px 24px 52px; }
.welcome { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.8px; line-height: 1.3; }
.welcome-copy { color: var(--muted); margin: 9px 0 0; }
.store-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; padding-bottom: 5px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39a66f; box-shadow: 0 0 0 4px #e4f4ea; }
.toolbar { padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fbfcfb; border-radius: 12px; padding: 0 13px; min-height: 48px; }
.search-icon { color: var(--green); font-size: 25px; line-height: 1; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.clear-search { border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.filter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 11px; }
.filter-row select {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  background: white; color: var(--ink); padding: 11px 32px 11px 12px; outline-color: var(--green);
}
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 2px 12px; }
.result-line p { margin: 0; color: var(--muted); font-size: 13px; }
.refresh-button { border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; padding: 7px 3px; }
.refresh-button:disabled { opacity: .55; cursor: wait; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: white; color: #59675f; padding: 7px 13px; font-size: 12px; }
.category-chip.active { border-color: var(--green); background: var(--green); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 3px 14px rgba(20,55,39,.035); display: flex; flex-direction: column; gap: 10px; }
.product-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.product-category { color: var(--green); background: var(--green-soft); border-radius: 7px; padding: 4px 8px; font-size: 10px; font-weight: 700; max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock { color: #218052; font-size: 10px; font-weight: 700; white-space: nowrap; }
.stock.unavailable { color: #a35a45; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.product-name-en { color: var(--muted); font-size: 12px; margin-top: -7px; }
.product-brand { color: #69766e; font-size: 12px; }
.product-variant { color: #53635a; background: #f6f8f6; border-radius: 8px; padding: 6px 8px; font-size: 11px; }
.product-bottom { margin-top: auto; padding-top: 5px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.product-price { color: var(--green-dark); font-size: 19px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.product-unit { color: var(--muted); font-size: 11px; text-align: right; }
.loading-card { grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loader { width: 25px; height: 25px; border: 3px solid #dce9e0; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: 8px 0 4px; }
.empty-state p { margin: 0 0 16px; }
.empty-icon { font-size: 42px; color: #9aaba0; }
.reset-button { border: 0; border-radius: 10px; background: var(--green); color: white; padding: 10px 15px; }
.last-updated { text-align: right; color: #9aa69f; font-size: 11px; margin-top: 18px; }
.site-footer { border-top: 1px solid var(--line); background: white; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px; color: var(--muted); font-size: 12px; text-align: center; }
.site-footer strong { color: var(--ink); font-size: 13px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .header-inner { min-height: 66px; padding: 10px 15px; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .brand-copy strong { font-size: 13px; }
  .page { padding: 25px 14px 38px; }
  .welcome { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .store-status { padding: 0; }
  .toolbar { padding: 12px; border-radius: 14px; }
  .filter-row { grid-template-columns: 1fr; gap: 8px; }
  .filter-row select { padding: 10px 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { padding: 12px; border-radius: 13px; gap: 8px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 16px; }
  .product-bottom { align-items: start; flex-direction: column; }
  .product-unit { text-align: left; }
  .result-line { margin-top: 15px; }
}
@media (max-width: 360px) { .product-grid { grid-template-columns: 1fr; } }

/* Store Contact Bar */
.contact-bar {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 24px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #475569;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.contact-item:hover {
    color: #2563eb;
}

.phone-link {
    flex-shrink: 0;
}

/* Mobile Responsive - Always One Line */
@media (max-width: 600px) {
    .contact-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        padding: 7px 10px;
    }

    .contact-item {
        font-size: clamp(8px, 2.5vw, 11px);
        gap: 3px;
        white-space: nowrap;
    }

    .contact-item:first-child {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .phone-link {
        flex-shrink: 0;
    }
}