/* Updated CSS for Category Section with Grid, Icons, Hover Effects, and Responsive Swiper */

* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 2% 0;
}

.img-responsive {
    width: 100%;
}

.img-curve {
    border-radius: 15px;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: white; }

.clearfix {
    clear: both;
    float: none;
}

a {
    color: #ff6b81;
    text-decoration: none;
}
a:hover {
    color: #ff4757;
}

.btn {
    padding: 1%;
    border: none;
    font-size: 1rem;
    border-radius: 5px;
}
.btn-primary {
    background-color: #ff6b81;
    color: white;
    cursor: pointer;
}
.btn-primary:hover {
    color: white;
    background-color: #ff4757;
}

h2 {
    color: #2f3542;
    font-size: 2rem;
    margin-bottom: 2%;
}
h3 {
    font-size: 1.5rem;
}

.success {
    padding: 2%;
    color: #2ed573;
}
.error {
    padding: 2%;
    color: #ff4757;
}

.logo {
    width: 10%;
    float: left;
}
.menu {
    line-height: 60px;
}
.menu ul {
    list-style-type: none;
}
.menu ul li {
    display: inline;
    padding: 1%;
    font-weight: bold;
}

.food-search {
    background-image: url(../images/bg.jpg);
    background-size: cover;
    background-position: center;
    height: 300px;
}

.food-search input[type="search"] {
    width: 50%;
    padding: 1%;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
}

.categories {
    padding: 4% 0;
    background: #f9f9f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
    filter: blur(0.5px) brightness(0.95);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.category-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: inline-block;
    color: #ff6b81;
}

.swiper {
    width: 100%;
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

@media only screen and (max-width:768px) {
    .logo {
        width: 80%;
        float: none;
        margin: 1% auto;
    }
    .menu ul {
        text-align: center;
    }
    .food-search input[type="search"] {
        width: 90%;
        padding: 2%;
        margin-bottom: 3%;
    }
    .btn {
        width: 91%;
        padding: 2%;
    }
    .food-search {
        padding: 10% 0;
    }
    h2 {
        margin-bottom: 10%;
    }
    .social {
        padding: 5% 0;
    }
    .order {
        width: 100%;
    }
}
