:root {
            --primary-color: #3d1e05;
            --secondary-color: #505b5e;
            --bg-soft: #f8fbff;
        }

        body {
            background-color: var(--bg-soft);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #444;
        }

        /* Hero Carousel styling */
        .carousel-item img {
            border-radius: 0 0 30px 30px; /* โค้งมนด้านล่างให้ดูทันสมัย */
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* Section Header */
        .section-header {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 30px;
        }
        .section-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
            border-radius: 2px;
        }
        
        /* Filter Buttons */
        .nav-pills .nav-link {
            color: #666;
            background-color: #fff;
            border: 1px solid #eee;
            margin: 0 5px;
            border-radius: 50px;
            padding: 8px 20px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        .nav-pills .nav-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            color: var(--primary-color);
        }
        .nav-pills .nav-link.active {
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
        }

        /* Product Card Design */
        .card-product {
            border: none;
            border-radius: 20px;
            background: white;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            height: 100%;
        }
        .card-product:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 114, 255, 0.15);
        }

        /* Image Container inside Card */
        .product-img-wrapper {
            height: 220px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            position: relative;
        }
        .card-img-top {
            max-height: 100%;
            max-width: 100%;
            width: auto; /* ป้องกันภาพยืด */
            object-fit: contain;
            transition: transform 0.5s ease;
        }
        .card-product:hover .card-img-top {
            transform: scale(1.08);
        }

        /* Card Content */
        .card-body {
            padding: 1.5rem;
            background-color: #fff;
            border-top: 1px solid #f8f9fa;
        }
        .category-label {
            font-size: 0.75rem;
            letter-spacing: 1px;
            color: #999;
            text-transform: uppercase;
            font-weight: 700;
            display: block;
            margin-bottom: 5px;
        }
        .product-title {
            font-size: 1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            height: 2.4em; /* จำกัดความสูงชื่อสินค้า 2 บรรทัด */
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .price-text {
            color: var(--primary-color);
            font-size: 1.25rem;
            font-weight: 800;
        }

        /* Badges */
        .badge-stock {
            font-weight: 500;
            padding: 5px 10px;
            border-radius: 8px;
            font-size: 0.8rem;
        }
        .bg-soft-success { background-color: #d1e7dd; color: #0f5132; }
        .bg-soft-danger { background-color: #f8d7da; color: #842029; }

        /* Action Button */
        .btn-cart {
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            padding: 10px;
            transition: all 0.3s;
        }
        .btn-cart:hover {
            opacity: 0.9;
            color: white;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }
        .nav-floating .nav-link {
    background: white;
    color: #444;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* เงาเบาๆ */
    transition: all 0.2s ease;
    border: 1px solid white;
}

.nav-floating .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    color: #0d6efd;
}

.nav-floating .nav-link.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    border-color: #0d6efd;
}
        