


/* ส่วนหัวข้อ */
/* ใช้ดีไซน์หัวข้อชุดเดียวกับทุก section */
.menu-page .heading-box{ 
  margin: 18px auto 14px;            /* เว้นด้านล่างมากขึ้นให้ไม่ติดกริด */
}
.menu-page .heading-box h2{
  font-weight: 400;                   /* ให้ตรงกับสไตล์ global */
  transform: none;
  transform:skewX(-6deg);
}

/* เว้นช่องไฟทั้ง section เมนู (บน/ล่าง) */
.section.menu-page{ padding: 12px 0 40px; }

/* container ซ้อนไม่จำเป็น – ถ้ายังมีซ้อน ช่องไฟจะดูแปลก */
.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  ===== */

/* คอลัมน์: Desktop 4 / Tablet 3 / Mobile 2 */
/* กริดสินค้า */
.product-grid{
  list-style:none; margin:0; padding:0;
  display:grid; gap:24px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;                 /* ให้ item สูงเท่ากันในแถว */
}
@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; } }

/* รูป 4:3 เต็มเฟรม */
/* ทำให้รูปในการ์ดมีสัดส่วนเท่ากันทุกใบ */
.product-card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;     /* เดสก์ท็อปใช้ 4:3 (ปรับเป็น 1/1, 16/9 ตามชอบได้) */
  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;  /* เล็งกึ่งกลาง, จะใช้ center top ก็ได้ */
}

/* มือถืออยากเป็นรูปสี่เหลี่ยมจัตุรัส */
@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;                                      /* กันเส้นขอบแปลก ๆ */
}

/* ซ่อน price เดิมถ้าหลงเหลือ */
.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 Your Bowl ===== */
.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; }

/* ป้ายมุมบนซ้าย ใช้ class chip เดิม แต่ระบุตำแหน่งเฉพาะการ์ดนี้ */
.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; }

/* ปุ่ม CTA แบบเม็ดยา */
.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); }