* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fef9f0;
    color: #1e2a2e;
    overflow-x: hidden;
}

/* ========== بکگراند متحرک ========== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(145deg, #ffffff 0%, #e8f3ed 100%);
    overflow: hidden;
}

.animated-bg::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 30% 40%, rgba(22,69,53,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: slowMove 20s infinite alternate ease-in-out;
}

.animated-bg::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -20%;
    left: -20%;
    background: repeating-linear-gradient(45deg, rgba(22,69,53,0.03) 0px, rgba(22,69,53,0.03) 2px, transparent 2px, transparent 12px);
    animation: drift 35s linear infinite;
}

@keyframes slowMove {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(3%, 2%) rotate(2deg); }
}

@keyframes drift {
    0% { transform: translate(0,0); }
    100% { transform: translate(-5%, -5%); }
}

/* ========== محتوای اصلی ========== */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-content.hidden {
    display: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    position: relative;
    z-index: 2;
}

/* ========== هدر ========== */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 10px;
}

.logo img {
    max-width: 130px;
    border-radius: 50%;
    background: white;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

h1 {
    color: #164535;
    font-size: 2.2rem;
    letter-spacing: -1px;
}

.tagline {
    color: #4a7c6b;
    font-weight: 500;
    margin-top: 5px;
}

/* ========== دکمه‌های دسته‌بندی ========== */
.category-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    padding-bottom: 8px;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    min-width: min-content;
}

.cat-btn {
    background: white;
    border: 1px solid #16453530;
    padding: 10px 24px;
    border-radius: 60px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    color: #164535;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.cat-btn.active {
    background: #164535;
    color: white;
    border-color: #164535;
    box-shadow: 0 6px 14px rgba(22,69,53,0.25);
}

.cat-btn:hover:not(.active) {
    background: #16453515;
    transform: translateY(-2px);
}

/* ========== محصولات ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.product-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(22,69,53,0.12);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(22,69,53,0.12);
    background: rgba(255,255,255,0.97);
}

.product-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #164535;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.85rem;
    color: #4a6b5e;
    line-height: 1.5;
    margin-top: 6px;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #4a7c6b;
}

/* ========== اطلاعات کافه ========== */
.info-section {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 28px 24px;
    margin: 40px 0 30px;
    border: 1px solid rgba(22,69,53,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
}

.contact-link {
    background: #1645350c;
    padding: 10px 22px;
    border-radius: 60px;
    text-decoration: none;
    color: #164535;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid #16453520;
}

.contact-link:hover {
    background: #164535;
    color: white;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
}

.address-block {
    margin: 20px 0;
    padding: 16px;
    background: rgba(22,69,53,0.04);
    border-radius: 28px;
    text-align: center;
}

.address-title {
    font-weight: bold;
    color: #164535;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.address-text {
    line-height: 1.8;
    color: #2c4a3b;
    margin-bottom: 10px;
}

.manager-name {
    color: #164535;
    font-weight: 500;
    margin-top: 8px;
}

.location-map {
    margin-top: 20px;
}

.map-link {
    text-align: center;
    margin-top: 12px;
}

.map-link a {
    color: #164535;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.map-link a:hover {
    text-decoration: underline;
}

/* ========== فوتر ========== */
.designer-credit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #5a7c6e;
    border-top: 1px dashed rgba(22,69,53,0.2);
}

.designer-link {
    color: #164535;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.designer-link:hover {
    text-decoration: underline;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .cat-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .product-card {
        padding: 18px;
    }
    
    .product-icon {
        font-size: 48px;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .contact-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-link {
        justify-content: center;
    }
}