/* --- ไฟล์: /assets/css/style.css (rev.2 - Added View Toggle Styles) --- */
/* สไตล์ CSS ที่กำหนดเองทั้งหมดสำหรับหน้าเว็บลูกค้า */

/* --- 1. General & Typography --- */
body {
    font-family: 'Sarabun', sans-serif;
    background-color: #FFF8F2;
    color: #4A2E2A;
}

.section-title {
    color: #C8433A;
}

body.modal-open header {
    --tw-backdrop-blur: 0;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}


/* --- 2. Hero Section --- */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero/kruanicha.jpg');
    background-size: cover;
    background-position: center;
}

/* --- 3. Menu & Filtering --- */
.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #f3f4f6;
}

.filter-btn.active {
    background-color: #C8433A;
    color: white;
    border-color: #C8433A;
}

/* --- ★ [ใหม่] 4. View Toggle Buttons (ปุ่มสลับมุมมอง) --- */
.view-toggle-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  color: #4b5563; /* text-gray-600 */
  background-color: transparent;
}

.view-toggle-btn:hover {
  color: #111827; /* text-gray-900 */
}

.view-toggle-btn.active {
  color: #C8433A;
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* --- 5. Menu Item Card (การ์ดเมนู) --- */
.menu-item {
    @apply bg-white rounded-lg shadow-lg overflow-hidden flex flex-col transform hover:-translate-y-1 transition-transform duration-300;
}

.menu-item-img {
    @apply w-full h-32 sm:h-48 object-cover pointer-events-none;
}

/* --- 6. Cart & Modals --- */
.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cart-item {
    @apply flex items-center justify-between gap-4 py-4 border-b;
}

.quantity-btn {
    @apply w-8 h-8 rounded-full border bg-gray-100 hover:bg-gray-200 transition;
}

.remove-from-cart-btn {
    @apply text-red-500 hover:text-red-700 transition;
}

.option-choice-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.option-choice-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.option-choice-btn.active {
    background-color: #C8433A;
    color: white;
    border-color: #C8433A;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- 7. Toast Notification (กล่องแจ้งเตือน) --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background-color: #28a745;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5000;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    font-weight: 500;
    max-width: 90%;
    width: auto;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background-color: #dc3545;
}
