/* ============================================
   دلیچه — سیستم طراحی یکپارچه
   مینیمال، شیک، ریسپانسیو
   ============================================ */

/* توکن‌های طراحی */
:root {
    --primary: #81B061;
    --primary-hover: #719552;
    --primary-light: #e8f2ea;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}

/* ریست و پایه */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .section-title, .brand-title, .home-hero-premium h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* کانتینر */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ هدر ============ */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.header-search {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--color-border, #d8e5dc);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}

.brand:hover {
    opacity: 0.85;
}

.logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ناوبری دسکتاپ — استایل کامل در css/components/site-nav.css */

/* منوی موبایل */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* nav-mobile — moved to css/components/site-nav.css */

/* ============ محتوای اصلی ============ */
main {
    flex: 1;
    padding: 24px 0 48px;
}

/* ============ صفحه اصلی ============ */
.home-page {
    padding-bottom: 48px;
}

.home-hero {
    text-align: center;
    padding: 48px 0 40px;
}

.home-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.home-hero p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.home-hero-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.home-hero-cta:hover {
    background: var(--primary-hover);
}

.home-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.home-categories {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.category-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
}

.category-card-name {
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.home-products {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

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

.home-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.carousel {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    direction: rtl;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.carousel-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.carousel-card:hover {
    border-color: var(--primary);
}

.carousel-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.carousel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
}

.carousel-card-body {
    padding: 12px;
}

.carousel-card-body h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.carousel-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
}

.home-about {
    padding: 40px 0 0;
    border-top: 1px solid var(--border-light);
}

.home-about-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.home-about-inner h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.home-about-inner p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.home-about-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.home-about-link:hover {
    text-decoration: underline;
}

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

    .carousel-item {
        flex: 0 0 160px;
    }
}

/* دسته‌بندی در صفحه محصولات */
.products-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.category-pill {
    padding: 6px 14px;
    font-size: 0.8125rem;
    border-radius: 20px;
    background: var(--bg-alt);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: white;
}

/* ============ هیرو (صفحه اصلی - قدیمی) ============ */
.hero {
    text-align: center;
    padding: 64px 0 56px;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============ سکشن‌های مشترک ============ */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

/* هدر صفحات داخلی */
.page-header {
    text-align: center;
    padding: 48px 0 40px;
}

.page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ============ Breadcrumb (سئو) ============ */
.breadcrumb {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: "‹";
    margin-right: 8px;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list li:last-child span {
    color: var(--text);
    font-weight: 500;
}

/* ============ کارت‌ها ============ */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

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

.card-img-wrap {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition);
}

.card:hover .product-img,
.card:hover .blog-card-img {
    transform: scale(1.02);
}

.product-img-placeholder {
    aspect-ratio: 1;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-card-placeholder {
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body h3 a {
    color: var(--text);
}

.card-body h3 a:hover {
    color: var(--primary);
}

/* گرید محصولات و بلاگ */
.grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* دکمه — .btn در components/ui.css؛ فقط call-btn قدیمی */
.call-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.call-btn {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
}

.call-btn:hover {
    background: var(--primary-hover);
}

/* قیمت */
.price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 8px 0 12px;
}

/* باکس اطلاعات */
.info-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}

.info-box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 6px 0;
    padding-right: 16px;
    position: relative;
}

.info-box li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--primary);
}

/* ============ صفحه محصولات — مینیمال ============ */
.products-page {
    padding: 24px 0 40px;
}

.products-header {
    text-align: center;
    margin-bottom: 28px;
}

.products-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.products-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.products-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    list-style: none;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.products-features li {
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: 20px;
}

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

.product-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.75rem;
    color: var(--text-light);
}

.product-card-body {
    padding: 12px 14px;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-card-excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.product-card-cta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.product-card:hover .product-card-cta {
    color: var(--primary);
}

/* بارگذاری تدریجی + بهینه‌سازی رندر */
.product-card,
.blog-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

.load-more-trigger {
    grid-column: 1 / -1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.load-more-link:hover {
    text-decoration: underline;
}

.load-more-trigger.loading:not(:has(.load-more-spinner))::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: load-more-spin 0.6s linear infinite;
}

@keyframes load-more-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-title {
        font-size: 0.8125rem;
    }
}

/* درباره ما در صفحه اصلی */
.about-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.about-home>div {
    flex: 1;
}

.about-home h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-home p {
    margin-bottom: 16px;
}

.about-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

/* ============ صفحه درباره ما ============ */
.about-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.about-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    margin-bottom: 16px;
    color: var(--text);
}

.about-section ul {
    list-style: none;
}

.about-section li {
    padding: 8px 0;
    padding-right: 20px;
    position: relative;
}

.about-section li::before {
    content: "—";
    position: absolute;
    right: 0;
    color: var(--primary);
}

/* ============ صفحه تماس ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    align-self: center;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-item p {
    color: var(--text);
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ============ جزئیات محصول ============ */
.product-detail-page {
    padding: 24px 0 48px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-media {
    position: sticky;
    top: 88px;
}

.product-detail-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.product-detail-placeholder {
    aspect-ratio: 1;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.product-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-detail-header h1 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-detail-excerpt {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-detail-nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 12px 0 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-detail-nutrition-item strong {
    color: var(--text);
}

.product-detail-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(129, 176, 97, 0.12);
    color: var(--brand, #81B061);
}

.product-detail-badge--organic {
    background: rgba(76, 140, 74, 0.15);
}

.product-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.product-detail-cta:hover {
    background: var(--primary-hover);
}

button.product-detail-cta {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.product-detail-specs {
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}

.specs-title,
.content-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: baseline;
}

.spec-item dt {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.spec-item dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.product-detail-content {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.content-body {
    line-height: 1.8;
    font-size: 0.9375rem;
}

.content-body h2,
.content-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.content-body p {
    margin-bottom: 12px;
}

.product-chef-tip,
.product-deli-tip {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(247, 243, 235, 0.9), rgba(232, 245, 235, 0.5));
    border-right: 3px solid var(--brand, #81B061);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.75;
}

.product-deli-tip br {
    display: block;
    margin-bottom: 0.45em;
}

.product-chef-tip strong,
.product-deli-tip strong {
    color: var(--deli-olive-deep, #719552);
}

.product-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 8px 0;
}

/* ============ بلاگ ============ */
.blog-list-section {
    padding: 0 0 48px;
}

.blog-card .card-body {
    text-align: right;
}

.blog-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

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

/* جزئیات بلاگ */
.blog-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.page-blog-detail .blog-detail {
    max-width: 1080px;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 32px;
}

.blog-detail-header h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.blog-detail-header time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-detail-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #eef5ef, #dce9df);
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.blog-detail-content {
    line-height: 1.8;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

/* حالت خالی */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--primary);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* فوتر — see components/footer.css */

/* ============ ریسپانسیو ============ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .section {
        padding: 32px 0;
    }

    .about-home {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .about-logo {
        width: 100px;
    }

    .page-header {
        padding: 40px 0 32px;
    }

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

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail-media {
        position: static;
    }

    .spec-item {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-flex {
        min-height: 64px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 1.125rem;
    }

    .brand-slogan {
        display: none;
    }
}