:root {
    --primary-color: #FF6B4A;
    --primary-light: #FFF0ED;
    --secondary-color: #2D2D2D;
    --text-dark: #1A1A1A;
    --text-medium: #666666;
    --text-light: #999999;
    --background: #FFFFFF;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--background);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.header {
    padding: 20px;
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-display {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .brand-display {
        font-size: 16px !important;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.nav-item i {
    font-size: 18px;
    margin-right: 5px;
}

button:active,
.nav-item:active,
.size-btn:active,
.card-order-btn:active,
.category-btn:active {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(0.95);
}

.card-order-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: 12px;
}

.card-order-btn i {
    font-size: 18px;
}

.card-order-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

#cart-nav-btn {
    position: relative;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-weight: bold;
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #F5F5F5;
    border-radius: 30px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: #EFEFEF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box i {
    color: var(--text-light);
}

.search-box input {
    border: none;
    background: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.filter-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
}

.main-content {
    padding: 20px;
}

.section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.see-all {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.see-all:hover {
    opacity: 0.8;
}

.offer-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8A6B 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.offer-content {
    z-index: 1;
}

.offer-discount {
    font-size: 48px;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
}

.offer-text {
    font-size: 18px;
    color: white;
    margin-top: 8px;
}

.offer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(20px);
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 8px;
    background: white;
    border: 2px solid #EEEEEE;
    border-radius: 30px;
    white-space: nowrap;
    transition: var(--transition);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 74, 0.3);
}

.category-btn:nth-child(1).active,
.category-btn:nth-child(1):hover {
    border-color: #FF6B4A;
    background: #FF6B4A;
    color: white;
}

.category-btn:nth-child(2).active,
.category-btn:nth-child(2):hover {
    border-color: #4CAF50;
    background: #E8F5E9;
    color: #2E7D32;
}

.category-btn:nth-child(3).active,
.category-btn:nth-child(3):hover {
    border-color: #9E9E9E;
    background: #F5F5F5;
    color: #424242;
}

.category-btn:nth-child(4).active,
.category-btn:nth-child(4):hover {
    border-color: #9E9E9E;
    background: #F5F5F5;
    color: #424242;
}

.category-btn:nth-child(5).active,
.category-btn:nth-child(5):hover {
    border-color: #9E9E9E;
    background: #F5F5F5;
    color: #424242;
}

.category-btn:nth-child(6).active,
.category-btn:nth-child(6):hover {
    border-color: #9E9E9E;
    background: #F5F5F5;
    color: #424242;
}

.category-btn img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.category-btn span {
    font-size: 14px;
    font-weight: 500;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.food-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.food-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.food-card:hover .food-image img {
    transform: scale(1.05);
}

.food-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.food-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.food-rating i {
    color: #FFB800;
    font-size: 15px;
}

.food-rating span:first-of-type {
    color: var(--text-dark);
    font-weight: 500;
}

.food-price {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: 600;
}

.food-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.food-restaurant {
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.food-delivery {
    font-size: 11px;
    color: var(--text-light);
    margin-top: auto;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn,
.favorite-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 18px;
}

.back-btn {
    background: #F5F5F5;
}

.back-btn:hover {
    background: #EEEEEE;
}

.favorite-btn:hover i {
    color: var(--primary-color);
}

.details-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.details-main {
    padding: 0 20px 100px;
}

.details-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-rating i {
    color: #FFB800;
}

.product-rating span:first-of-type {
    font-weight: 600;
}

.reviews {
    color: var(--text-light);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-light);
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.meta-value.price {
    color: var(--primary-color);
}

.quantity-section {
    margin-bottom: 25px;
}

.quantity-label,
.size-label {
    display: block;
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn.minus {
    background: var(--primary-light);
    color: var(--primary-color);
}

.quantity-btn.plus {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.size-section {
    margin-bottom: 25px;
}

.size-options {
    display: flex;
    gap: 12px;
}

.size-btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #EEEEEE;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
}

.size-btn:hover {
    border-color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.description-section {
    margin-bottom: 25px;
}

.description-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-medium);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.product-image-container {
    flex-shrink: 0;
}

.product-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 107, 74, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-dishes {
    margin-top: 30px;
}

.similar-dishes h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.similar-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.similar-list::-webkit-scrollbar {
    display: none;
}

.similar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.similar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.similar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.similar-info p {
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.similar-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.details-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--background);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    max-width: 1400px;
    margin: 0 auto;
}

.add-to-cart-btn,
.order-now-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.add-to-cart-btn:hover {
    background: var(--primary-light);
}

.order-now-btn {
    background: var(--primary-color);
    color: white;
}

.order-now-btn:hover {
    background: #E55A3A;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 74, 0.3);
}

@media (max-width: 1200px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .basket-container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-info {
        width: 100%;
        order: 2;
        padding: 20px 0;
    }

    .product-image-container {
        order: 1;
        margin-bottom: 30px;
    }

    .product-image {
        width: 250px;
        height: 250px;
    }

    .product-meta,
    .quantity-section,
    .size-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px;
    }

    .logo img {
        height: 35px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
        margin-top: 15px;
        border-top: 1px solid #f0f0f0;
        padding-top: 10px;
    }

    .search-container {
        order: 2;
        flex: 1;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-item span {
        display: none;
    }

    .nav-item.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }

    .nav-item.active span {
        display: inline;
    }

    .section {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .offer-card {
        height: auto;
        min-height: 160px;
        padding: 25px;
    }

    .offer-discount {
        font-size: 36px;
    }

    .offer-image {
        width: 100px;
        height: 100px;
    }

    .food-grid {
        gap: 12px;
    }

    .food-image {
        height: 140px;
    }

    .food-name {
        font-size: 14px;
    }

    .details-footer {
        padding: 15px;
        gap: 10px;
    }

    .add-to-cart-btn,
    .order-now-btn {
        padding: 12px;
        font-size: 14px;
    }

    .basket-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .item-img {
        margin-right: 0;
        width: 100%;
        height: 150px;
    }

    .item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .header {
        padding: 12px 15px;
        gap: 10px;
    }

    .brand-display {
        font-size: 18px !important;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .food-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-box {
        padding: 10px 15px;
    }

    .offer-card {
        padding: 20px;
        min-height: 130px;
    }

    .offer-discount {
        font-size: 26px;
    }

    .offer-text {
        font-size: 13px;
    }

    .product-image {
        width: 180px;
        height: 180px;
    }

    .size-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }

    .categories-list {
        gap: 8px;
        padding: 5px 0;
    }

    .category-btn {
        padding: 6px 12px 6px 6px;
    }

    .category-btn img {
        width: 30px;
        height: 30px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.food-card {
    animation: fadeIn 0.5s ease forwards;
}

.food-card:nth-child(n) {
    animation-delay: calc(var(--i, 0) * 0.1s);
}

html {
    scroll-behavior: smooth;
}

.favorite-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
}

.nav-item.active i {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

::selection {
    background: var(--primary-light);
    color: var(--primary-color);
}

.card-order-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}