/* Category Buttons Styling */
        .category-buttons {
            display: flex;
            flex-wrap: wrap; /* Allow wrapping on small screens */
            justify-content: center;
            gap: 15px; /* Space between buttons */
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        .category-button {
            padding: 12px 25px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            border: 2px solid #007bff; /* Primary blue */
            border-radius: 25px;
            background-color: #fff;
            color: #007bff;
            transition: all 0.3s ease;
            white-space: nowrap; /* Prevent button text from wrapping */
        }
        .category-button:hover {
            background-color: #007bff;
            color: #fff;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
        }
        .category-button.active {
            background-color: #0056b3; /* Darker blue when active */
            color: #fff;
            border-color: #0056b3;
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
            transform: translateY(-2px);
        }

        /* Product Display Area */
        #product-display {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
            gap: 25px;
            padding: 20px 0;
            min-height: 300px; /* เพื่อให้เห็นพื้นที่แสดงผล */
            align-items: start; /* Align items to the top */
        }

        /* Product Card Styling */
        .product-card {
            background-color: #fdfdfd;
            border: 1px solid #eee;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Push price/button to bottom */
            height: 100%; /* Ensure cards fill grid height */
        }
        .product-card img {
            max-width: 100%;
            height: 180px; /* Fixed height for images */
            object-fit: contain; /* Ensure full image is visible */
            border-radius: 5px;
            margin-bottom: 15px;
        }
        .product-card h3 {
            font-size: 1.25em;
            color: #2c3e50;
            margin-bottom: 10px;
            min-height: 40px; /* Consistent height for titles */
            display: flex; /* For centering text vertically if needed */
            align-items: center;
            justify-content: center;
        }
        .product-card p.description {
            font-size: 0.9em;
            color: #666;
            line-height: 1.5;
            margin-bottom: 15px;
            flex-grow: 1; /* Allow description to take up space */
            overflow: hidden; /* Hide overflowing text */
            text-overflow: ellipsis; /* Add ellipsis for long text */
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Show up to 3 lines */
            -webkit-box-orient: vertical;
        }
        .product-card p.price {
            font-size: 1.4em;
            font-weight: bold;
            color: #e67e22; /* Orange for price */
            margin-top: 10px; /* Ensure space above price */
            margin-bottom: 20px;
        }
        .product-card button {
            background-color: #28a745; /* Green for buy button */
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s ease;
        }
        .product-card button:hover {
            background-color: #218838;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .category-button {
                padding: 10px 20px;
                font-size: 1em;
            }
            .category-buttons {
                gap: 10px;
            }
            #product-display {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
            }
            .product-card h3 {
                font-size: 1.1em;
            }
            .product-card p.description {
                font-size: 0.85em;
            }
            .product-card p.price {
                font-size: 1.2em;
            }
        }
        @media (max-width: 480px) {
            .category-button {
                padding: 8px 15px;
                font-size: 0.9em;
                border-radius: 20px;
            }
            .category-buttons {
                justify-content: flex-start; /* Align left for more compact view */
                overflow-x: auto; /* Enable horizontal scrolling if buttons overflow */
                white-space: nowrap; /* Prevent buttons from wrapping to new line */
                -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
            }
            /* Make buttons within scrollable area inline-block */
            .category-buttons .category-button {
                display: inline-block;
                flex-shrink: 0; /* Prevent shrinking */
            }

            .container {
                padding: 15px;
            }
            #product-display {
                grid-template-columns: 1fr; /* Single column on very small screens */
                gap: 15px;
            }
        }
  