        /* ตัวอย่างสไตล์สินค้า */
        .products-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px;
        }
        .product-card {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 15px;
            width: 240px;
            box-shadow: 0 0 8px rgba(0,0,0,0.1);
            text-align: center;
        }
        .product-card img {
            max-width: 100%;
            height: 150px;
            object-fit: contain;
            margin-bottom: 10px;
        }
        .product-name {
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 6px;
        }
        .product-price {
            color: #E67E22;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }
        .product-stock {
            font-size: 0.9rem;
            color: green;
        }
               .search-filter-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }
        
        .search-filter-form {
            display: flex;
            gap: 15px;
            align-items: center;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            flex-wrap: wrap;
        }
        
        .search-box {
            flex: 1;
            min-width: 250px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 2px solid #ddd;
            border-radius: 25px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: #007bff;
        }
        
        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
        }
        
        .filter-select {
            min-width: 180px;
        }
        
        .filter-select select {
            padding: 12px 15px;
            border: 2px solid #ddd;
            border-radius: 25px;
            font-size: 16px;
            background: white;
            cursor: pointer;
            transition: border-color 0.3s;
        }
        
        .filter-select select:focus {
            outline: none;
            border-color: #007bff;
        }
        
        .btn-search {
            background: linear-gradient(45deg, #007bff, #0056b3);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .btn-search:hover {
            transform: translateY(-2px);
        }
        
        .btn-clear {
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: transform 0.3s;
        }
        
        .btn-clear:hover {
            transform: translateY(-2px);
            color: white;
        }
        
        .results-info {
            text-align: center;
            margin: 20px 0;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .search-filter-form {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                min-width: auto;
            }
            
            .filter-select {
                min-width: auto;
            }
        }

        .btn-add-to-cart {
            display: inline-block;
            background-color: #f39c12;
            color: white;
            padding: 8px 12px;
            margin-top: 10px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 14px;
            transition: background-color 0.3s;
            }

        .btn-add-to-cart:hover {
            background-color: #e67e22;
            }

        input[type="number"] {
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
            width: 60px;
            margin-right: 5px;
            }


        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 0;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideIn 0.3s;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .modal-header {
            padding: 20px;
            background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
            color: white;
            border-radius: 10px 10px 0 0;
            position: relative;
        }

        .modal-body {
            padding: 20px;
        }

        .close {
            color: white;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            position: absolute;
            top: 15px;
            right: 20px;
        }

        .close:hover,
        .close:focus {
            opacity: 0.7;
        }

        .product-detail-image {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .product-detail-info {
            display: grid;
            gap: 15px;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 5px;
            border-left: 4px solid #4caf50;
        }

        .info-label {
            font-weight: bold;
            color: #495057;
        }

        .info-value {
            color: #212529;
        }

        .price-large {
            font-size: 1.5em;
            color: #4caf50;
            font-weight: bold;
        }

        .stock-status {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.9em;
        }

        .in-stock {
            background: #d4edda;
            color: #155724;
        }

        .low-stock {
            background: #fff3cd;
            color: #856404;
        }

        .out-stock {
            background: #f8d7da;
            color: #721c24;
        }

        .description-box {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            margin: 15px 0;
        }

        .modal-cart-form {
            background: white;
            padding: 20px;
            border-top: 1px solid #dee2e6;
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
        }

        .modal-cart-form input[type="number"] {
            width: 80px;
            padding: 8px;
            border: 2px solid #dee2e6;
            border-radius: 5px;
            text-align: center;
        }

        .modal-cart-form button {
            background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: transform 0.2s;
        }

        .modal-cart-form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .product-card {
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        @keyframes fadeIn {
            from {opacity: 0;}
            to {opacity: 1;}
        }

        @keyframes slideIn {
            from {transform: translateY(-50px); opacity: 0;}
            to {transform: translateY(0); opacity: 1;}
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                margin: 10% auto;
            }
            
            .info-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
        }
        /* Products Container Styles */
        .products-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .product-card {
            flex: 0 0 calc(25% - 15px);
            min-width: 250px;
            max-width: 280px;
        }
        
        /* Responsive Design */
        @media (max-width: 1200px) {
            .product-card {
                flex: 0 0 calc(33.333% - 14px);
            }
        }
        
        @media (max-width: 900px) {
            .product-card {
                flex: 0 0 calc(50% - 10px);
            }
        }
        
        @media (max-width: 600px) {
            .product-card {
                flex: 0 0 100%;
                max-width: 350px;
            }
            
            .products-container {
                padding: 20px 10px;
            }
        }
        
        /* Pagination Styles */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 30px 0;
            gap: 10px;
        }
        
        .pagination {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .pagination a, .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            text-decoration: none;
            border: 1px solid #ddd;
            border-radius: 50%;
            background-color: white;
            color: #333;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .pagination a:hover {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }
        
        .pagination .current {
            background-color: #28a745;
            color: white;
            border-color: #28a745;
        }
        
        .pagination .disabled {
            color: #ccc;
            cursor: not-allowed;
            border-color: #eee;
        }
        
        .pagination .nav-btn {
            width: auto;
            padding: 8px 12px;
            border-radius: 20px;
        }
        
        .results-summary {
            text-align: center;
            margin: 20px 0;
            color: #666;
            font-size: 14px;
        }
        
        /* Search and Filter Container */
        .search-filter-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Results Info */
        .results-info {
            text-align: center;
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }
        
        /* No Products Message */
        .no-products-message {
            text-align: center;
            max-width: 1200px;
            margin: 40px auto;
            padding: 40px 20px;
            color: #666;
            font-size: 16px;
        }