/* لایهٔ ظاهری عمومی. رنگ برند و راست‌به‌چپ حفظ شده است. */

:root {
    --aygi-ink: #10261b;
    --aygi-green: #1f6b45;
    --aygi-green-dark: #143f29;
    --aygi-line: #d5e4db;
    --aygi-paper: #ffffff;
    --aygi-mist: #f4f8f5;
    --aygi-shadow: 0 10px 30px rgba(16, 38, 27, 0.08);
    --aygi-radius: 18px;
}

body.aygi-body {
    font-family: Vazirmatn, Vazir, Tahoma, sans-serif;
    color: var(--aygi-ink);
    background: var(--aygi-mist);
    text-rendering: optimizeLegibility;
}

body.aygi-body :focus-visible {
    outline: 2px solid var(--aygi-green);
    outline-offset: 3px;
}

.navbar-aygi {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--aygi-line);
    box-shadow: 0 8px 24px rgba(16, 38, 27, 0.04);
    min-height: 72px;
}

.navbar-aygi .nav-link,
.navbar-aygi .navbar-toggler,
.navbar-search-submit,
.aygi-login-link,
.aygi-nav-btn {
    min-height: 44px;
    min-width: 44px;
}

.navbar-aygi .nav-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.navbar-with-search .navbar-search-box {
    min-height: 48px;
    background: #f6faf7 !important;
    border: 1px solid var(--aygi-line) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar-with-search .navbar-search-box:focus-within {
    background: #fff !important;
    border-color: #8fbea4 !important;
    box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.12);
}

.navbar-search-submit {
    width: 44px;
    height: 44px;
}

.aygi-hero {
    padding: 2rem 0 1.5rem;
}

.aygi-hero-visual,
.aygi-cat-tile,
.aygi-plant-card,
.aygi-product-card,
.aygi-article-card,
.product-gallery,
.article-detail-featured {
    box-shadow: var(--aygi-shadow);
}

.aygi-cat-tile.has-photo {
    min-height: 220px;
    border-radius: 22px;
    border: 0;
}

.aygi-cat-tile.has-photo .aygi-cat-tile-name {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.aygi-plant-card {
    width: 188px;
    border-radius: 20px;
}

.aygi-product-card,
.aygi-article-card {
    border-radius: 20px;
    background: var(--aygi-paper);
    border-color: transparent;
}

.aygi-product-card-media,
.aygi-plant-card-img,
.aygi-article-card-media,
.aygi-cat-tile-photo {
    background:
        linear-gradient(145deg, #e7f2eb, #f7fbf8);
}

.aygi-product-card-media img,
.aygi-plant-card-img img,
.aygi-article-card-media img,
.aygi-cat-tile-photo img,
.product-gallery img,
.article-detail-featured img,
.seller-card img,
.articles-card img {
    object-fit: cover;
}

.aygi-product-card-price {
    display: inline-flex;
    margin-top: 0.65rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #e8f5ee;
    color: var(--aygi-green-dark);
    font-weight: 800;
}

.categories-track,
.similar-products-track {
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
}

.aygi-nav-btn {
    width: 44px;
    height: 44px;
}

.product-gallery img,
.article-detail-featured img {
    border-radius: 22px;
}

.product-seller-offers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-seller-row {
    align-items: center !important;
    padding: 1rem 1.05rem !important;
    border-radius: 16px !important;
    background: #fff;
    border: 1px solid var(--aygi-line) !important;
}

.product-seller-row.is-cheapest {
    border-color: #1f6b45 !important;
    background: linear-gradient(180deg, #f3faf6, #fff);
    box-shadow: 0 8px 24px rgba(31, 107, 69, 0.1);
}

.product-offer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #1f6b45;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-offer-price {
    font-size: 1.15rem;
    font-weight: 800;
}

.product-seller-row .btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 999px;
    padding-inline: 1rem;
}

.article-detail-body.prose,
.article-detail-body.rich-content,
.rich-content {
    font-size: 1.05rem;
    line-height: 2;
}

.article-detail-body.prose h2,
.article-detail-body.rich-content h2,
.rich-content h2 {
    margin-top: 1.8rem;
    font-weight: 800;
    line-height: 1.5;
}

.rich-content figure {
    margin: 1.4rem 0;
}

.rich-content figcaption {
    color: #5a6b60;
}

.rich-content iframe,
.article-detail-body iframe,
.rich-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 16px;
}

.aygi-foot {
    background: #10261b;
    color: #e7f2eb;
}

.aygi-foot a {
    color: #f4faf6;
}

.aygi-foot a:hover {
    color: #fff;
}

.aygi-foot-col a,
.aygi-foot-mail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .navbar-aygi .navbar-collapse .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding-block: 0.7rem;
    }

    .aygi-hero-grid {
        grid-template-columns: 1fr;
    }

    .product-seller-row {
        align-items: stretch !important;
    }
}
