﻿:root {
    --price-text-color: #556959;
}
.demo-container {
    padding: 20px 0;
}

.zood-masraf-section {
    /*    background: #c3dea6;*/
    padding: 20px 0;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}


@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    border: 0 !important;
}

.header-right {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.fire-icon {
    width: 26px;
    height: 26px;
    font-size: 20px;
}

@keyframes flame {
    0%, 100% {
        transform: scale(1) translateY(0);
    }

    25% {
        transform: scale(1.05) translateY(-2px);
    }

    75% {
        transform: scale(0.95) translateY(1px);
    }
}

.section-title {
    font-size: 20px;
    /*    color: #d32f2f;*/
    font-weight: 800;
/*    text-shadow: 0 2px 4px rgba(211, 47, 47, 0.1);*/
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--title-color);
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .header-left:active {
        background: white;
        transform: scale(0.95);
    }

.arrow-icon {
    width: 16px;
    height: 16px;
    fill: #c3dea6;
}

.categories-bar {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.products-container {
    position: relative;
    z-index: 1;
}

.products-scroll {
    display: flex;
    gap: 7px;
    padding: 0 5px;
    margin-left: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

    .products-scroll::-webkit-scrollbar {
        display: none;
    }

.cat-product-card {
    background: white;
    border-radius: 14px;
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
/*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    border: 0.1px solid rgba(0, 0, 0, 0.1);
}

/*    .cat-product-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.2);
    }*/
.product-section-index i {
    font-size: 11px;
}
.view-all-card {
/*    background: #576359;*/
    width: 160px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
    min-height: 220px;
    color: #e4f6cf;
    margin-left:10px;
}

    .view-all-card:active {
        transform: scale(0.95);
        box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    }

.view-all-icon {
    width: 48px;
    height: 48px;
    /*    background: rgba(255, 255, 255, 0.2);*/
    background: rgb(87 99 89);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

    .view-all-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.view-all-text {
    color: #576359;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.view-all-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.delivery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(174, 188, 128, 0.95);
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.truck-icon {
    width: 12px;
    height: 12px;
    fill: white;
}

.delivery-text {
    font-size: 9px;
    color: white;
    font-weight: 600;
}

.cat-product-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
/*    background: linear-gradient(135deg, #f5f8f0 0%, #e8ecd8 100%);*/
}

    .cat-product-image::after {
        content: attr(data-brand);
        position: absolute;
        bottom: 8px;
        right: 8px;
        font-size: 11px;
        background: var(--brand-dark);
        padding: 3px 6px;
        border-radius: 4px;
        color: white;
        backdrop-filter: blur(10px);
    }

    .cat-product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.cat-product-info {
    padding: 10px;
}

.cat-product-name {
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 30px;
    font-weight: 600;
}

.price-section {
    margin-top: 8px;
}

.old-price {
    font-size: 13px;
    color: #999;
    font-weight: 700;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.new-price {
    font-size: 16px;
    color: var(--price-text-color);
    font-weight: 700;
}

.price-unit {
    font-size: 11px;
    color: var(--price-text-color);
    font-weight: 700;
    margin-right: 0;
}

.add-to-cart {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #aebc80 0%, #99aa66 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 6px rgba(174, 188, 128, 0.3);
}

    .add-to-cart:active {
        transform: scale(0.9);
        background: linear-gradient(135deg, #99aa66 0%, #8b9966 100%);
    }

    .add-to-cart svg {
        width: 16px;
        height: 16px;
        fill: white;
    }

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cat-product-card, .view-all-card {
    animation: slideIn 0.5s ease both;
}

    .cat-product-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .cat-product-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .cat-product-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .cat-product-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .cat-product-card:nth-child(5) {
        animation-delay: 0.25s;
    }

.view-all-card {
    animation-delay: 0.3s;
}

/* Responsive */
@media (min-width: 768px) {
    .cat-product-card, .view-all-card {
        width: 180px;
    }

    .cat-product-image {
        height: 140px;
    }

    .view-all-card {
        min-height: 250px;
    }
}
