﻿body {
    margin: 0 !important;
    background: #f8fafc;
    background-image: url("https://www.transparenttextures.com/patterns/food.png");
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* HERO */

.market-hero {
    width: 100%;
    padding: 120px 30px;
    background: linear-gradient(120deg,#dcfce7,#f0fdf4);
}

.hero-badge {
    background: #22c55e;
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

    .hero-title span {
        color: #22c55e;
    }

.hero-text {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-search {
    display: flex;
    gap: 10px;
}

.hero-input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 14px;
}

.hero-btn {
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
}

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0,0,0,.2);
}

/* ================================
MAIN WRAPPER
================================ */

.restaurants-wrapper {
    width: 100%;
    background: white;
    padding: 60px 40px;
}

/* ================================
CONTAINER
================================ */

.restaurants-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.restaurants-grid {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}


/* ================================
HEADER
================================ */

.restaurants-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.restaurants-title {
    font-size: 34px;
    font-weight: 700;
}

.restaurants-subtitle {
    color: #64748b;
    margin-top: 6px;
}

.restaurant-address {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
NAV ARROWS
================================ */

.restaurants-nav {
    display: flex;
    gap: 10px;
}

.restaurants-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}


/* ================================
CAROUSEL
================================ */

.restaurants-carousel {
    display: flex;
    gap: 36px;
    scrollbar-width: none;
}

    .restaurants-carousel::-webkit-scrollbar {
        display: none;
    }


/* ====================
CATEGORIES CAROUSEL
==================== */

.categories-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0 20px;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-card:first-child {
    margin-left: 20px;
}

.category-card:last-child {
    margin-right: 20px;
}


/* ====================
CARDS
==================== */

.category-card {
    flex: 0 0 180px;
}

/* tablet */
@media (max-width: 992px) {
    .category-card {
        flex: 0 0 160px;
    }
}

/* mobile */
@media (max-width: 576px) {
    .category-card {
        flex: 0 0 140px;
    }
}


/* ====================
TEXT
==================== */

.category-name {
    text-align: center;
}
.category-name:hover {
    color: #21c35d;
}


/* ================================
CARD
================================ */

.restaurant-card {
    width: 360px;
    flex: 0 0 360px;

    background: white;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    transition: .35s;
    margin: 0 !important;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0,0,0,.15);
}


/* ================================
IMAGE
================================ */

.restaurant-image {
    height: 210px;
    position: relative;
    overflow: hidden;
}

.restaurant-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ================================
RATING
================================ */

.restaurant-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #16a34a;
    color: white;
    padding: 7px 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}


/* ================================
BODY
================================ */

.restaurant-body {
    padding: 70px 24px 26px;
    position: relative;
}


/* ================================
LOGO
================================ */

.restaurant-logo {
    position: absolute;
    top: -40px;
    left: 24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    padding: 6px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}


/* ================================
NAME
================================ */

.restaurant-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}


/* ================================
TAGS
================================ */

.restaurant-tags {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}


/* ================================
META
================================ */

.restaurant-meta {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: #475569;
}

    .restaurant-meta i {
        color: #16a34a;
        margin-right: 4px;
    }

/* =========================
   CATEGORIES SECTION
========================= */

.categories-section {
    width: 100%;
    background: #ffffff;
    padding: 60px 0;
}

.categories-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.categories-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #1f2937;
}

/* GRID */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: 28px;
}

/* CARD */

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s ease;
}

    .category-card:hover {
        transform: translateY(-4px);
        color: #21c35d;
    }

.category-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 10px;
    transition: all .25s ease;
}

.category-icon {
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover .category-icon {
    transform: translateY(-4px);
}

/* COLORS */

.asian {
    background: #f1e8ff;
    color: #6a4bc2;
}

.burger {
    background: #ffe7d6;
    color: #d35400;
}

.fastfood {
    background: #ffe6e6;
    color: #d64545;
}

.dinner {
    background: #e8ecff;
    color: #4c63d2;
}

.grill {
    background: #ffe3e3;
    color: #c0392b;
}

.lunch {
    background: #fff3d6;
    color: #c98b1a;
}

.pasta {
    background: #f9efd9;
    color: #c57a2c;
}

.salads {
    background: #e6f6ea;
    color: #2f8f4e;
}

.sushi {
    background: #f4f4f4;
    color: #555;
}

.drinks {
    background: #e6f3ff;
    color: #2f78c4;
}

.dessert {
    background: #efe7ff;
    color: #7a5cc9;
}

.breakfast {
    background: #fff2d9;
    color: #c58a1f;
}

.healthy {
    background: #e5f7ea;
    color: #3b9b63;
}

.seafood {
    background: #e6f1ff;
    color: #3a6edb;
}

.pizza {
    background: #ffe8dc;
    color: #d35400;
}

.category-icon {
    font-size: 30px;
}

/* RESPONSIVE */

@media(max-width:1100px) {

    .categories-grid {
        grid-template-columns: repeat(4,1fr);
        row-gap: 30px;
    }
}

@media(max-width:640px) {

    .categories-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

/* OFFERS */

/* SECTION */

.offers-section {
    width: 100%;
    background: #f5f7f6;
    padding: 60px 0;
}

/* WRAPPER */

.offers-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* HEADER */

.offers-header {
    top: 70px;
    background: #f5f7f6;
    padding: 20px;
    border-radius: 15px;
    z-index: 5;
}

.offers-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.offers-header p {
    color: #6b7280;
    margin-bottom: 32px;
}

/* HEADER LAYOUT */

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

/* LEFT TEXT */

.offers-header-left h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.offers-header-left p {
    margin: 4px 0 0;
    color: #6c757d;
    font-size: 15px;
}

/* SORT BLOCK */

.offers-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LABEL */

.sort-label {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* SELECT */

.sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

    /* HOVER */

    .sort-select:hover {
        border-color: #9dcf9b;
    }

    /* FOCUS */

    .sort-select:focus {
        outline: none;
        border-color: #6fbf73;
        box-shadow: 0 0 0 2px rgba(111,191,115,0.2);
    }

/* GRID */

.offers-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-items: center;
}

/* CARD */

.offer-card {
    width: 300px;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition: transform .2s ease;
    margin: 0 !important;
}

    .offer-card:hover {
        transform: translateY(-4px);
    }

/* IMAGE */

.offer-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

    .offer-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* RATING */

.offer-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3e8e55;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

/* BODY */

.offer-body {
    padding: 16px 18px 18px;
}

/* TITLE */

.offer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* RESTAURANT */

.offer-restaurant {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
}

/* PRICE ROW */

.offer-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.offer-price {
    font-size: 20px;
    font-weight: 700;
    color: #3e8e55;
}

.offer-stock {
    font-size: 13px;
    color: #6b7280;
}

/* TIMER */

.offer-timer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

/* OFFERS GRID PAGINATION */

.offers-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

    .offers-pagination .page-link {
        height: 38px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        background: white !important;
        cursor: pointer;
        transition: 0.2s;
    }

        .offers-pagination .page-link:hover {
            border-color: #16a34a;
            color: #16a34a;
        }

    .offers-pagination .page-item.active .page-link {
        border: 2px solid #16a34a;
        color: white;
        background: #16a34a !important;
        font-weight: 700;
    }

    .offers-pagination .page-link:focus {
        outline: none;
        box-shadow: none;
    }

    .offers-pagination .page-item.disabled .page-link {
        color: #9ca3af;
        border-color: #e5e7eb;
        cursor: not-allowed;
    }

    .offers-pagination .prev-next {
        font-weight: 600 !important;
    }

.page-input-wrap {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0 8px;
    height: 38px;
    display: flex;
    align-items: center;
}

.page-input {
    width: 44px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    text-align: center;
}

.offers-pagination .prev-next {
    font-weight: 600 !important;
    border-radius: 8px !important;
}

    .page-input::-webkit-outer-spin-button,
    .page-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .page-input[type=number] {
        -moz-appearance: textfield;
    }

/*
    BENEFITS
*/

/* BENEFITS SECTION */

.benefits-section {
    width: 100%;
    background: #3e8e55;
    padding: 90px 0;
}

/* WRAPPER */

.benefits-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 80px;
    text-align: center;
}

/* ICON */

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

/* TITLE */

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

/* TEXT */

.benefit-item p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/*
    ==================
    RESPONSIVE
    ==================
*/

/* Search header */

@media (max-width: 992px) {
    .hero-image {
        margin-top: 2cm;
    }
}

@media (max-width: 770px) {

    .restaurants-head h2 {
        font-size: 28px;
        margin-bottom: 0;
    }
    .restaurants-head p {
        font-size: 18px;
        margin-top: 0;
    }
    .restaurants-head {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .offers-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 530px) {
    .hero-title {
        font-size: 42px;
    }
    .hero-text {
        font-size: 16px;
    }
    .market-hero {
        padding: 120px 10px;
    }
    .restaurants-container, .offers-header {
        padding: 0;
    }
    .restaurants-wrapper, .offers-wrapper {
        padding: 60px 20px;
    }
}
