@import url('fonts.css');

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --secondary: #FFA726;
    --dark: #121212;
    --dark-card: #1E1E1E;
    --dark-light: #2A2A2A;
    --text: #FFFFFF;
    --text-secondary: #B0B0B0;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Vazir', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/shayan-ramesht-exSEmuA7R7k-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.15) blur(3px);
    z-index: -1;
    opacity: 0.6;
}

.app {
    min-height: 100vh;
}

.hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/aldward-castillo-gWRDfQcDArE-unsplash.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(18, 18, 18, 0.3) 0%, 
        rgba(18, 18, 18, 0.7) 50%,
        var(--dark) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.hero-logo {
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 40px rgba(255, 107, 53, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 15px 40px rgba(255, 107, 53, 0.6));
    }
    50% { 
        transform: translateY(-15px) scale(1.05); 
        filter: drop-shadow(0 25px 50px rgba(255, 107, 53, 0.9));
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title .kia {
    color: var(--secondary);
    text-shadow: 0 5px 30px rgba(255, 167, 38, 0.8);
}

.hero-title .food {
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    min-height: 40px;
    border-left: 3px solid var(--secondary);
    padding-left: 10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: var(--secondary); }
    50% { border-color: transparent; }
}

.filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.filter-bar.scrolled {
    background: rgba(18, 18, 18, 0.98);
    border-bottom-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.filter-container {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 10px 24px;
    background: var(--dark-card);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    background: var(--dark-light);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.category {
    margin-bottom: 60px;
    opacity: 1;
    transition: all 0.4s ease;
}

.category.hidden {
    display: none;
}

.category-head {
    margin-bottom: 30px;
}

.category-head h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-item {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-item:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.product-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ffffff;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .product-img img {
    transform: scale(1.15);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder span {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price span {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-img {
    height: 500px;
    overflow: hidden;
    background: #ffffff;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.modal-body {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-body h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-price {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.modal-price span {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-price small {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    z-index: 99;
    transition: all 0.3s ease;
}

.fab svg {
    width: 28px;
    height: 28px;
}

.fab:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

@media (max-width: 968px) {
    .modal-card {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-img {
        height: 350px;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .modal-body h2 {
        font-size: 2rem;
    }
    
    .modal-price span {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 30vh;
        min-height: 250px;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-price span {
        font-size: 1.3rem;
    }
    
    .modal-card {
        border-radius: 20px;
    }
    
    .modal-img {
        height: 280px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-body h2 {
        font-size: 1.6rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .modal-price span {
        font-size: 2rem;
    }
}
