


.menu-page .heading-box{ 
  margin: 18px auto 14px;            
}
.menu-page .heading-box h2{
  font-weight: 400;                   
  transform: none;
  transform:skewX(-6deg);
}

.section.menu-page{ padding: 12px 0 40px; }

.section.menu-page > .container{ width: min(1320px,92vw); margin: 0 auto; }

/* แถบตัวกรอง */
.filters{
  display: grid;
  grid-template-columns: 1fr minmax(380px, 520px) 220px; /* แท็บ | ค้นหา(ยืด) | เรียง */
  gap: 12px;
  align-items: center;
  margin: 14px 0 18px;
}
.filter-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-tabs .tab{
  height: 38px; padding: 0 14px; border-radius: 999px; border:1px solid var(--border);
  background:#fff; cursor:pointer; font: inherit;
}
.filter-tabs .tab.is-active{ background:var(--blue); color:#fff; box-shadow:0 6px 18px rgba(9,112,250,.18); border-color:transparent; }
.search{ height:38px; border:1px solid var(--border); border-radius:10px; padding:0 12px; width:100%; }
.sort  { height:38px; border:1px solid var(--border); border-radius:10px; padding:0 10px; background:#fff; }
@media (max-width: 900px){
  .filters{ grid-template-columns: 1fr; }
}

/* ===== PRODUCT GRID  ===== */

/* กริดสินค้า */
.product-grid{
  list-style:none; margin:0; padding:0;
  display:grid; gap:24px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;                 
}
@media (max-width:1280px){ .product-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1024px){ .product-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
@media (max-width:480px){  .product-grid{ gap:16px; } }

/* การ์ดโปร่ง */
.product-card{
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  overflow:hidden;
  background:#fff;
  display:flex; flex-direction:column;
  min-height:520px;                    
}
@media (max-width:1280px){ .product-card{ min-height:500px; } }
@media (max-width:1024px){ .product-card{ min-height:400px; } }

.product-card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;     
  overflow: hidden;
  background: #f8fafc;
  border-radius: 14px 14px 0 0; 
}

.product-card .thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;  
}

@media (max-width: 640px){
  .product-card .thumb{ aspect-ratio: 1 / 1; }
}
.product-card .chip{
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange); 
}
.product-card .chip-dog{ background: var(--blue); }
.product-card .chip-cat{ background: var(--orange); }

.product-card .content{
  padding:14px 16px 16px;
  display:flex; flex-direction:column;
  flex:1;                              
}
.product-card .title{ font-size:18px; font-weight:700; margin:0; line-height:1.35; }
.product-card .meta{ font-size:14px; color:#64748b; margin:6px 0 0; }
.product-card .desc{
  margin:8px 0 0; color:#334155; font-size:14px; line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.product-card .add{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; height:48px; padding:0 12px 0 8px;
  border:0; border-radius:999px; cursor:pointer;
  background:var(--orange); color:#fff; font-weight:700;
  box-shadow:0 10px 26px rgba(9,112,250,.24);
  margin-top:auto;                      
  margin-bottom:2px;                   
  transition:filter .15s ease, transform .05s ease;
}
.product-card .add:hover{ filter:brightness(1.05); }
.product-card .add:active{ transform:translateY(1px); }

.product-card .add-price{ display:inline-flex; align-items:center; line-height:1; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.22); font-weight:800; }
.product-card .add-old{ margin-left:8px; opacity:.85; text-decoration:line-through; font-weight:600; }

.product-card .add-label{ flex:1; text-align:center; }
.product-card .add-icon{ width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border:2px solid rgba(255,255,255,.9); border-radius:10px; opacity:.95; }
.product-card .add-icon svg{ width:18px; height:18px; }
.product-card .add-icon { color:#fff; }              
.product-card .add-icon svg circle{
  fill: currentColor !important;                     
  stroke: none;                                      
}

.product-card .price{ display:none !important; }

@media (max-width: 767.98px){
  .product-card .add-label{
    display: none !important;
  }
  .product-card .add{
    justify-content: space-between;
    padding: 0 12px;        
  }
  .product-card .add-price{
    padding: 4px 10px;
    font-size: 12px;
  }
  .product-card .add-icon{
    width: 24px; height: 24px;
    border-width: 1.6px;
  }
  .product-card .add-icon svg{
    width: 20px; height: 15px;
  }
}


.build-bowl { padding: 8px 0 44px; } 

.bowl-grid{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}
@media (max-width: 900px){
  .bowl-grid{ grid-template-columns: 1fr; }
}

.bowl-card{
  display: block;
  color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.bowl-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.06);
}

.bowl-thumb{ aspect-ratio: 16/9; background:#f6f8fb; position: relative; overflow: hidden; }
.bowl-thumb img{ width:100%; height:100%; object-fit: cover; object-position: center; }

.bowl-card .chip{
  position: absolute; left: 12px; top: 12px;
  font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 999px; color: #fff;
}
.bowl-card .chip-dog{ background: var(--yellow);color: #3b2419; }
.bowl-card .chip-cat{ background: var(--yellow);color: #3b2419;}

.bowl-content{ padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.bowl-card h3{ margin: 0; font-size: 18px; font-weight: 400; line-height: 1.35; }
.bowl-card p{ margin: 0; color: var(--muted); font-size: 14px; }

.bowl-cta{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 500; color: #fff;
  box-shadow: 0 10px 26px rgba(9,112,250,.24);
}
.is-dog .bowl-cta{ background: var(--blue); }
.is-cat .bowl-cta{ background: var(--orange); }
.bowl-cta:hover{ filter: brightness(1.05); }

/* --- REAL-TIME AUTH STYLES --- */
.user-menu-wrap {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 4px 14px 4px 5px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Kanit', sans-serif;
}
.user-trigger:hover { border-color: #0970fa; background: #f8fafc; }
.user-avatar {
  width: 32px;
  height: 32px;
  background: #0970fa;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.user-name { font-size: 14px; font-weight: 500; color: #334155; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: none;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}
.user-dropdown.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: 0.2s;
}
.dropdown-item:hover { background: #f1f5f9; color: #0970fa; }
.dropdown-divider { height: 1px; background: #f1f5f9; margin: 6px 0; }
.logout-item { color: #ef4444 !important; }
.logout-item:hover { background: #fef2f2 !important; }
#login-link.is-hidden { display: none !important; }

@media (max-width: 640px) {
  .user-name { display: none; }
}