/* LyChenFood UI v2 — vàng sáng */
:root{
  --bg:#FFFDF8;
  --fg:#333333;
  --muted:#6B7280;
  --brand:#FFC94D;         /* nút */
  --brand-strong:#FFB347;  /* hover */
  --accent:#FFE68A;        /* nhấn nhẹ */
  --panel:#FFF5D1;         /* nền vàng nhạt */
  --stroke:#EEE8D9;
  --radius:16px;
  --shadow:0 8px 22px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font-family:"Be Vietnam Pro",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.55}
img{max-width:100%;display:block;border-radius:12px}
a{color:inherit;text-decoration:none}
.container{max-width:1140px;margin:0 auto;padding:16px}
.row{display:flex;gap:12px}
.row.between{justify-content:space-between}
.row.center{align-items:center}
.grid{display:grid;gap:16px}
.grid-2{display:grid;gap:16px;grid-template-columns:1fr 1fr}
.grid-3{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
.tiny{font-size:.875rem}
.dim{color:var(--muted)}
.hide-sm{display:none}

/* Header */
.app-header{position:sticky;top:0;z-index:50;background:#FFFDF8CC;backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--stroke)}
.app-header .brand{display:flex;align-items:center;gap:8px;font-weight:700;color:#C28B00}
.app-header .logo{font-size:20px}
.app-header .search{flex:1;display:flex;gap:8px;margin:0 12px}
.app-header .search input{flex:1;padding:12px 14px;border:1px solid var(--stroke);border-radius:999px;background:#fff}
.app-header .search button{padding:12px 14px;border:0;border-radius:999px;background:var(--brand);color:#222;cursor:pointer}
.top-actions .pill{padding:10px 14px;border:1px solid var(--stroke);border-radius:999px;background:#fff}

/* Bottom nav (mobile) */
.mobile-nav{position:sticky;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--stroke);background:#fff}
.mobile-nav a{padding:10px 4px;text-align:center;font-size:.9rem;color:#2a2f3a}
.mobile-nav span{display:block;font-size:.7rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--stroke);background:#fff;cursor:pointer}
.btn.primary{background:var(--brand);border-color:transparent}
.btn:hover{background:var(--brand-strong);color:#222}

/* Inputs */
.input{width:100%;padding:12px 14px;border:1px solid var(--stroke);border-radius:12px;background:#fff}

/* Cards & grids */
.card{background:#fff;border:1px solid var(--stroke);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.grid-products{display:grid;gap:16px}
.grid-products .card img{aspect-ratio:1/1;object-fit:cover}
.grid-products .name{font-weight:600}
.price{font-weight:700;color:#B45309}

/* Hero */
.hero{display:grid;gap:16px;margin:12px 0}
.banner h1{margin:0 0 6px}
.banner p{margin:0;color:var(--muted)}

/* Product detail */
.pdp h1{margin:.25rem 0}
.gallery{display:grid;gap:10px;grid-template-columns:1fr 1fr}

/* Popup (Tiki style) */
.popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(.96);opacity:0;transition:all .22s ease;z-index:1000;background:#fff;border:1px solid var(--stroke);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.18);padding:22px;min-width:280px;max-width:90vw;text-align:center}
.popup.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
.popup .actions{margin-top:10px;display:flex;gap:8px;justify-content:center}

/* Footer */
.app-footer{border-top:1px solid var(--stroke);margin-top:28px;padding:18px 0;background:#FFF5D1}

/* Responsive */
@media (max-width: 900px){
  .hide-sm{display:inline}
  .mobile-nav{display:grid}
  .grid-products{grid-template-columns:repeat(2,1fr)} /* ✅ mobile 2 cột */
  .gallery{grid-template-columns:1fr}
}
@media (min-width: 901px){
  .mobile-nav{display:none}
  .grid-products{grid-template-columns:repeat(4,1fr)} /* ✅ desktop 4 cột */
  .hero{grid-template-columns:2fr 1fr}
  .banner h1{font-size:1.8rem}
}

/* ---- Chip danh mục (scroll-x) ---- */
.chipbar{display:flex;gap:10px;overflow:auto;padding:6px 2px;margin:10px 0}
.chip{flex:0 0 auto;padding:10px 14px;border:1px solid var(--stroke);border-radius:999px;background:#fff;box-shadow:var(--shadow);font-weight:600}
.chip.active{background:var(--brand);border-color:transparent}


/* ==== Chip danh mục: luôn thấy đủ 6 cái ==== */
.chipbar{
  display:flex;
  gap:10px;
  padding:8px 2px;
  margin:10px 0;
  flex-wrap:wrap;              /* ✅ desktop: tự xuống dòng */
}
@media (max-width: 900px){
  .chipbar{
    flex-wrap:nowrap;          /* ✅ mobile: trượt ngang */
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .chipbar::-webkit-scrollbar{display:none}
}
.chip{
  flex:0 0 auto;
  padding:10px 14px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:600;
  white-space:nowrap;
}
.chip.active{background:var(--brand);border-color:transparent}



/* ==== Card sản phẩm thấp ngang (3:1) ==== */
.product .thumb img{
  aspect-ratio:1.5/1;          /* ✅ thấp hơn, hình ngang dài */
  object-fit:cover;
  border-radius:12px;
  transition:transform .25s ease;
}
.product:hover .thumb img{transform:scale(1.02)}
.product .info{padding:8px 4px 2px}
.product .name{
  font-weight:600;
  font-size:0.95rem;
  display:-webkit-box;
  -webkit-line-clamp:1;      /* ✅ chỉ 1 dòng */
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product .meta{
  display:flex;
  align-items:center;
  gap:6px;
  color:#9CA3AF;
  font-size:0.8rem;
}
.product .cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
}
.price-lg{
  font-size:1rem;
  font-weight:800;
  color:#B45309;
}
.product .buy{
  border-radius:10px;
  background:var(--brand);
  border:0;
  padding:8px 10px;
  cursor:pointer;
  font-size:0.9rem;
}
.product .buy:hover{background:var(--brand-strong)}
/* === Category 6 ô vuông — đúng y mẫu === */
.cat6-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:12px;
}
.cat6{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:22px 10px;
  background:#ffffff;
  border:1px solid #EFEFEF;
  border-radius:16px;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align:center;
}
.cat6:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  background:#FFFBEA; /* vàng rất nhạt khi hover */
}
.cat6-ic{
  width:64px; height:64px;
  color:#222;              /* nét đen */
  display:block;
}
.cat6-name{
  font-weight:700;
  font-size:1rem;
  color:#2B2B2B;
}
@media (max-width: 768px){
  .cat6-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .cat6-ic{ width:56px; height:56px; }
}
/* ==== Category 6 ô vuông – bản gọn, cố định khung ==== */
/* Khung tổng: giới hạn chiều ngang và canh giữa */
.cat6-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);   /* luôn 3 cột */
  gap:16px;
  max-width: 560px;                        /* ✅ KHUNG GỌN */
  margin:12px auto 0;                      /* canh giữa trong card */
  padding:4px;
}

/* Mỗi ô là một "vuông" thật sự, không giãn */
.cat6{
  aspect-ratio:1 / 1;                      /* ✅ luôn vuông */
  width: 170px;                             /* desktop: kích thước ô */
  max-width: 100%;                          /* co nếu hẹp hơn */
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:10px;
  background:#fff;
  border:1px solid #EFEFEF;
  border-radius:16px;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  text-align:center;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cat6:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,0.08); background:#FFFBEA; }

.cat6-ic{ width:44px; height:44px; color:#222; }
.cat6-name{ font-weight:700; font-size:0.98rem; color:#2B2B2B; }

/* Mobile: vẫn gọn – 2 cột, ô nhỏ hơn chút */
@media (max-width: 768px){
  .cat6-grid{
    grid-template-columns:repeat(2, 1fr);
    max-width: 380px;                       /* ✅ vẫn gọn ở mobile */
  }
  .cat6{ width: 160px; }
  .cat6-ic{ width:40px; height:40px; }
}
/* --- Category compact để ngang banner --- */
.hero .card .cat6-grid.compact{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  max-width: 360px;          /* ✅ khung nhỏ để nằm ngang với banner */
  margin:8px 0 0 auto;       /* đẩy sát bên phải card nếu cần */
}

.cat6.compact{
  width: 104px;              /* ✅ ô nhỏ gọn */
  aspect-ratio:1/1;
  padding:12px 6px;
  border:1px solid #EFEFEF;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cat6.compact:hover{transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.08); background:#FFFBEA;}
.cat6.compact .cat6-ic{width:30px;height:30px;color:#222}
.cat6.compact .cat6-name{font-weight:700;font-size:.9rem;color:#2b2b2b;text-align:center}

/* Mobile vẫn gọn: 3 cột -> 2 cột */
@media (max-width: 900px){
  .hero{grid-template-columns:1fr!important;} /* giữ layout dọc khi mobile */
  .hero .card .cat6-grid.compact{
    grid-template-columns:repeat(2,1fr);
    max-width: 320px;
    margin-left:auto;margin-right:auto;
  }
  .cat6.compact{width: 128px;}
}
/* --- Hero banner có ảnh nền --- */
.banner {
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 36px 40px;
  color: #222;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* Chữ trong banner dễ đọc */
.banner h1, .banner p {
  color: #333;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
/* --- Hero banner: ảnh nền co giãn vừa khung, luôn cân đối --- */
.banner {
  position: relative;
  border-radius: 20px;
  padding: 40px 48px;
  color: #222;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);

  /* 👉 ảnh nền + lớp phủ vàng sáng */
  background-image:
    url("/public/images/banner-bg.webp"); /* link ảnh bạn */
  background-size: cover;       /* ✅ vừa khung, không bị méo */
  background-position: center;  /* ✅ căn giữa khung */
  background-repeat: no-repeat; /* không lặp ảnh */
}

/* --- Đảm bảo chữ không chạm mép --- */
.banner h1 {
  margin-top: 0;
  font-size: 1.8rem;
  line-height: 1.3;
}
.banner p {
  margin: 10px 0 20px;
  color: #333;
}

/* --- Responsive (mobile) --- */
@media (max-width: 768px) {
  .banner {
    padding: 28px 24px;
    background-position: center top;
    border-radius: 16px;
  }
  .banner h1 { font-size: 1.4rem; }
}
/* === Responsive header fix for mobile === */
@media (max-width: 768px) {
  .app-header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .app-header .search {
    order: 3;
    width: 100%;
  }

  .app-header .top-actions {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .app-header .top-actions a.pill {
    font-size: 14px;
    padding: 6px 10px;
  }

  .app-header .brand {
    order: 1;
    align-self: center;
    font-size: 18px;
  }

  /* tránh bị tràn bên phải */
  body, html {
    overflow-x: hidden;
  }
}
/* === Logo replacement === */
.app-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
}

/* === Logo hiển thị to hơn === */
.app-header .brand .logo-img {
  width: 100px;         /* gấp đôi kích thước desktop */
  height: auto;
  display: inline-block;
}

@media (max-width: 768px) {
  .app-header .brand .logo-img {
    width: 100px;       /* to hơn mobile nhưng vẫn cân đối */
  }
}

/* === FOOTER === */
.app-footer {
    background: #fffaf0;
    border-top: 1px solid #f3e9c9;
    color: #3b3b3b;
    font-family: 'Be Vietnam Pro', sans-serif;
    margin-top: 40px;
    padding-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.footer-brand .slogan {
    font-size: 14px;
    line-height: 1.6;
    color: #6b6b6b;
}

.footer-links h4,
.footer-subscribe h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color .2s;
}

.footer-links ul li a:hover {
    color: #f1b100;
}

.footer-subscribe form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-subscribe input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.footer-subscribe button {
    background: #f9d35f;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.footer-subscribe button:hover {
    background: #f7c846;
}

.footer-subscribe .socials {
    font-size: 13px;
    color: #777;
}

.footer-bottom {
    border-top: 1px solid #f0e0b2;
    text-align: center;
    padding: 18px 0;
    font-size: 13px;
    color: #999;
}

/* === Mobile layout === */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .footer-subscribe form {
        flex-direction: column;
        gap: 6px;
    }

    .footer-subscribe button {
        width: 100%;
    }

    .footer-links ul li {
        display: inline-block;
        margin: 4px 8px;
    }

    .footer-logo {
        width: 100px;
        margin: 0 auto 10px;
    }
}
/* === User Dashboard === */
.user-dashboard {
    margin-top: 40px;
    line-height: 1.7;
    color: #333;
}

.user-dashboard h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.user-dashboard .subtext {
    color: #777;
    margin-bottom: 24px;
}

.user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.user-cards .card {
    background: #fffef6;
    border: 1px solid #f3e9c9;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.user-cards .card h3 {
    color: #222;
    margin-bottom: 10px;
}

.user-cards .card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
}

.user-stats {
    background: #fff9e1;
    border: 1px solid #f3e9c9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.progress-wrap {
    background: #f7f3d1;
    border-radius: 10px;
    height: 10px;
    margin: 10px 0;
}

.progress-bar {
    height: 10px;
    background: #f1b100;
    border-radius: 10px;
}

.user-extra .suggest-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.user-extra .suggest-item {
    background: #fffef6;
    border: 1px solid #f3e9c9;
    border-radius: 10px;
    overflow: hidden;
    width: calc(50% - 8px);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
}

.user-extra .suggest-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.user-extra .suggest-item p {
    font-size: 14px;
    color: #444;
}

@media (max-width: 768px) {
    .user-extra .suggest-item {
        width: 100%;
    }

    .user-dashboard h1 {
        font-size: 20px;
    }
}
.user-dashboard .progress-wrap {
    background: #f7f3d1;
    border-radius: 10px;
    height: 10px;
    margin: 10px 0;
}

.user-dashboard .progress-bar {
    height: 10px;
    background: #f1b100;
    border-radius: 10px;
}

.table-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table-list th,
.table-list td {
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-align: left;
    font-size: 15px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.status-on {
    background: #dcfce7;
    color: #166534;
}

.status-off {
    background: #fee2e2;
    color: #991b1b;
}

.address-card {
    background: #fffef6;
    border: 1px solid #f3e9c9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    position: relative;
}

.address-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1b100;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    padding: 2px 6px;
}
.empty-state {
  background: #fffef6;
  border: 1px solid #f3e9c9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}
.empty-state p {
  color: #666;
  margin-bottom: 10px;
}
.status-on { background: #dcfce7; color: #166534; }
.status-off { background: #fef9c3; color: #854d0e; }
.status-cancel { background: #fee2e2; color: #991b1b; }
.status-badge {
  display:inline-block; padding:3px 8px; border-radius:6px;
  font-size:0.875rem; font-weight:500;
}
.order-detail {
    margin-top: 2rem;
}

.order-summary p {
    margin: 4px 0;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.order-item img.thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.order-totals {
    margin-top: 1rem;
}

.order-totals .row {
    margin: 4px 0;
}

.order-totals .total {
    font-size: 1.1rem;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-on {
    background: #dcfce7;
    color: #166534;
}

.status-off {
    background: #fef9c3;
    color: #854d0e;
}

.status-cancel {
    background: #fee2e2;
    color: #991b1b;
}
.voucher-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.voucher-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px dashed #f3c23a;
    background: #fffdf5;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voucher-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.voucher-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.voucher-actions input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: monospace;
    width: 120px;
    text-align: center;
    background: #fff;
}

.copy-btn {
    background: #f8d94b;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.copy-btn:hover {
    background: #f6c400;
}
.card {
    border-radius: 10px;
    background: #fffef9;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.grid-2 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.btn.primary {
    background: #f8d94b;
    color: #000;
    font-weight: 600;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
}

.input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8rem;
}
.user-profile {
    margin-top: 2rem;
    max-width: 600px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.profile-block {
    grid-column: span 1;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.notice {
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}