/* بازطراحی مشخص فروشگاه عمومی. پنل ادمین این فایل را بارگذاری نمی‌کند. */

body.aygi-v2 {
    --v2-ink: #142117;
    --v2-forest: #145c38;
    --v2-forest-deep: #0c3b24;
    --v2-gold: #c56a32;
    --v2-gold-dark: #9a4e1e;
    --v2-ivory: #f4efe4;
    --v2-paper: #fffdf8;
    --v2-line: #e4d8c4;
    background: var(--v2-ivory) !important;
    color: var(--v2-ink);
}

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

@media (prefers-reduced-motion: reduce) {
    body.aygi-v2 *,
    body.aygi-v2 *::before,
    body.aygi-v2 *::after {
        animation: none !important;
        transition: none !important;
    }
}

body.aygi-v2 .aygi-topbar {
    background: var(--v2-forest-deep);
    color: #f6efe2;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
}

body.aygi-v2 .navbar-aygi {
    background: rgba(255, 253, 248, 0.94) !important;
    border-bottom: 4px solid var(--v2-forest) !important;
    box-shadow: 0 10px 30px rgba(12, 59, 36, 0.08) !important;
    min-height: 78px;
}

body.aygi-v2 .navbar-aygi .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    font-weight: 800;
    color: var(--v2-forest-deep) !important;
}

body.aygi-v2 .navbar-aygi .nav-link.active {
    background: #efe2cf !important;
    color: var(--v2-gold-dark) !important;
}

body.aygi-v2 .navbar-with-search .navbar-search-box {
    min-height: 52px;
    background: #fff !important;
    border: 2px solid var(--v2-forest) !important;
    border-radius: 999px !important;
}

body.aygi-v2 .navbar-search-submit {
    width: 44px;
    height: 44px;
    background: var(--v2-gold) !important;
}

body.aygi-v2 .navbar-toggler {
    width: 48px;
    height: 48px;
    border: 2px solid var(--v2-forest) !important;
    border-radius: 14px;
}

body.aygi-v2 .aygi-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.6rem 0.2rem;
}

body.aygi-v2 .aygi-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.4rem 0.8rem;
    border-radius: 14px;
    color: var(--v2-forest-deep);
    font-weight: 800;
    text-decoration: none;
}

body.aygi-v2 .aygi-drawer-links a:hover {
    background: #f6efe2;
}

body.aygi-v2 .v2-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 0;
}

body.aygi-v2 .v2-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

body.aygi-v2 .v2-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 32, 20, 0.88) 0%, rgba(8, 32, 20, 0.55) 48%, rgba(8, 32, 20, 0.25) 100%);
}

body.aygi-v2 .v2-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3.2rem 0 2.6rem;
    max-width: 760px;
}

body.aygi-v2 .v2-kicker {
    display: inline-flex;
    margin: 0 0 0.6rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--v2-gold);
    color: #fff;
    font-weight: 800;
}

body.aygi-v2 .v2-hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    max-width: 12ch;
}

body.aygi-v2 .v2-lead {
    margin: 0 0 1.1rem;
    font-size: 1.12rem;
    line-height: 1.9;
    color: #f6efe2;
    max-width: 38rem;
}

body.aygi-v2 .v2-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 0.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

body.aygi-v2 .v2-search i {
    color: var(--v2-forest);
    font-size: 1.2rem;
    margin-right: 0.45rem;
}

body.aygi-v2 .v2-search input {
    flex: 1;
    border: 0;
    min-height: 48px;
    background: transparent;
    font: inherit;
    outline: none;
}

body.aygi-v2 .v2-search button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 1.3rem;
    background: var(--v2-gold);
    color: #fff;
    font-weight: 800;
}

body.aygi-v2 .v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

body.aygi-v2 .v2-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

body.aygi-v2 .v2-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1.2rem 0 0;
}

body.aygi-v2 .v2-stats div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.7rem 0.8rem;
}

body.aygi-v2 .v2-stats dt {
    margin: 0;
    color: #f6efe2;
    font-size: 0.8rem;
}

body.aygi-v2 .v2-stats dd {
    margin: 0.1rem 0 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

body.aygi-v2 .v2-trust {
    background: var(--v2-paper);
    border-bottom: 1px solid var(--v2-line);
}

body.aygi-v2 .v2-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.2rem 0;
}

body.aygi-v2 .v2-trust article {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-height: 72px;
}

body.aygi-v2 .v2-trust i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6efe2;
    color: var(--v2-gold-dark);
    font-size: 1.4rem;
}

body.aygi-v2 .v2-trust strong {
    display: block;
}

body.aygi-v2 .v2-trust span {
    color: #5c675f;
    line-height: 1.7;
}

body.aygi-v2 .v2-section {
    padding: 2.4rem 0;
}

body.aygi-v2 .v2-section-alt {
    background: #fffdf8;
}

body.aygi-v2 .v2-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

body.aygi-v2 .v2-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    color: var(--v2-forest-deep);
}

body.aygi-v2 .v2-head h2::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-left: 0.45rem;
    border-radius: 4px;
    background: var(--v2-gold);
    transform: translateY(-2px);
}

body.aygi-v2 .v2-head p {
    margin: 0.25rem 0 0;
    color: #5c675f;
}

body.aygi-v2 .v2-head > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 44px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--v2-forest);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

body.aygi-v2 .v2-product-grid,
body.aygi-v2 .v2-article-grid,
body.aygi-v2 .v2-seller-grid {
    display: grid;
    gap: 1rem;
}

body.aygi-v2 .v2-marquee {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.aygi-v2 .v2-marquee::-webkit-scrollbar {
    display: none;
    height: 0;
}

body.aygi-v2 .v2-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.9rem;
    width: max-content;
    max-width: 100%;
}

body.aygi-v2 .v2-marquee.is-running {
    overflow: hidden;
}

body.aygi-v2 .v2-marquee.is-running .v2-marquee-track {
    max-width: none;
    animation: v2-marquee-rtl var(--v2-duration, 28s) linear infinite;
    will-change: transform;
}

body.aygi-v2 .v2-marquee.is-running:hover .v2-marquee-track,
body.aygi-v2 .v2-marquee.is-running:focus-within .v2-marquee-track,
body.aygi-v2 .v2-marquee.is-paused .v2-marquee-track {
    animation-play-state: paused;
}

body.aygi-v2 .v2-marquee.is-swipe {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

@keyframes v2-marquee-rtl {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--v2-shift, 50%), 0, 0); }
}

body.aygi-v2 .v2-cat,
body.aygi-v2 .v2-product,
body.aygi-v2 .v2-article,
body.aygi-v2 .v2-seller,
body.aygi-v2 .v2-rail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 30px rgba(20, 33, 23, 0.08);
}

body.aygi-v2 .v2-marquee .v2-cat,
body.aygi-v2 .v2-marquee .v2-mini {
    flex: 0 0 230px;
    width: 230px;
}

body.aygi-v2 .v2-marquee .v2-cat {
    min-height: 168px;
    justify-content: flex-end;
}

body.aygi-v2 .v2-mini {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 33, 23, 0.08);
}

body.aygi-v2 .v2-mini img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #efe6d6;
}

body.aygi-v2 .v2-mini time,
body.aygi-v2 .v2-mini .v2-mini-meta,
body.aygi-v2 .v2-mini strong {
    padding-inline: 0.75rem;
}

body.aygi-v2 .v2-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
    line-height: 1.4;
    font-size: 0.92rem;
    font-weight: 800;
}

body.aygi-v2 .v2-mini time {
    color: var(--v2-gold-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

body.aygi-v2 .v2-mini-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    align-items: center;
    margin-top: auto;
}

body.aygi-v2 .v2-mini-meta b {
    color: var(--v2-gold-dark);
    font-size: 0.82rem;
}

body.aygi-v2 .v2-mini-meta small {
    background: #f6efe2;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-weight: 800;
    white-space: nowrap;
}

body.aygi-v2 .v2-cat img,
body.aygi-v2 .v2-rail-card img,
body.aygi-v2 .v2-product-media img,
body.aygi-v2 .v2-article img,
body.aygi-v2 .v2-seller img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

body.aygi-v2 .v2-cat img,
body.aygi-v2 .v2-cat-fallback {
    position: absolute;
    inset: 0;
}

body.aygi-v2 .v2-cat-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1b6b43, #c56a32);
    color: #fff;
    font-size: 2.4rem;
}

body.aygi-v2 .v2-cat-label,
body.aygi-v2 .v2-seller strong {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1rem 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(8, 28, 18, 0.88), transparent);
}

body.aygi-v2 .v2-cat-label strong,
body.aygi-v2 .v2-seller strong {
    display: block;
    background: none;
    padding: 0;
    font-size: 1.15rem;
}

body.aygi-v2 .v2-cat:hover img,
body.aygi-v2 .v2-product:hover img,
body.aygi-v2 .v2-article:hover img,
body.aygi-v2 .v2-rail-card:hover img,
body.aygi-v2 .v2-seller:hover img {
    transform: scale(1.06);
}

body.aygi-v2 .v2-rail-card {
    flex: 0 0 188px;
    width: 188px;
}

body.aygi-v2 .v2-rail-card img {
    aspect-ratio: 1;
    height: 180px;
}

body.aygi-v2 .v2-rail-card strong {
    padding: 0.75rem;
    text-align: center;
}

body.aygi-v2 .v2-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.aygi-v2 .v2-product-media {
    display: block;
    aspect-ratio: 1;
    background: #efe6d6;
    overflow: hidden;
}

body.aygi-v2 .v2-product-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem 1rem;
}

body.aygi-v2 .v2-product-body em {
    color: #6d756f;
    font-size: 0.82rem;
    direction: ltr;
    text-align: left;
}

body.aygi-v2 .v2-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

body.aygi-v2 .v2-product-meta b {
    color: var(--v2-gold-dark);
    font-size: 0.95rem;
}

body.aygi-v2 .v2-product-meta small {
    background: #f6efe2;
    color: var(--v2-forest-deep);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-weight: 800;
}

body.aygi-v2 .v2-article-grid,
body.aygi-v2 .v2-seller-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.aygi-v2 .v2-article img,
body.aygi-v2 .v2-seller img {
    aspect-ratio: 16 / 10;
    height: auto;
}

body.aygi-v2 .v2-article span {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem 1.05rem;
}

body.aygi-v2 .v2-article time {
    color: var(--v2-gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

body.aygi-v2 .v2-seller {
    min-height: 180px;
    justify-content: flex-end;
}

body.aygi-v2 .v2-seller img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

body.aygi-v2 .v2-pagehead {
    background:
        linear-gradient(120deg, rgba(12, 59, 36, 0.92), rgba(197, 106, 50, 0.75)),
        url("../img/home-hero.jpg") center/cover;
    color: #fff;
    padding: 1.6rem 0 1.4rem;
    margin-bottom: 1rem;
}

body.aygi-v2 .v2-pagehead h1 {
    margin: 0.2rem 0;
    font-weight: 900;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

body.aygi-v2 .v2-pagehead p,
body.aygi-v2 .v2-pagehead .breadcrumb,
body.aygi-v2 .v2-pagehead .breadcrumb a {
    color: #f6efe2;
}

body.aygi-v2 .product-detail {
    background: transparent;
}

body.aygi-v2 .product-img-main {
    border-radius: 24px !important;
    min-height: 420px;
    box-shadow: 0 18px 40px rgba(20, 33, 23, 0.12);
}

body.aygi-v2 .product-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
    font-weight: 900 !important;
    color: var(--v2-forest-deep) !important;
}

body.aygi-v2 .product-status-price {
    margin-top: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: #fff;
    border: 2px solid var(--v2-gold);
    box-shadow: 0 10px 24px rgba(197, 106, 50, 0.12);
}

body.aygi-v2 .product-price-amount {
    color: var(--v2-gold-dark) !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
}

body.aygi-v2 .v2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 0.8rem;
    padding: 0.4rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--v2-forest);
    color: #fff;
    font-weight: 800;
}

body.aygi-v2 .product-seller-row.is-cheapest {
    border: 2px solid var(--v2-gold) !important;
    background: #fff8f2 !important;
}

body.aygi-v2 .product-offer-badge {
    background: var(--v2-gold) !important;
}

body.aygi-v2 .article-read {
    background: transparent;
}

body.aygi-v2 .article-paper {
    max-width: 760px;
    margin-inline: auto;
    border-radius: 28px !important;
    background: #fffdf8 !important;
    border: 1px solid var(--v2-line) !important;
    box-shadow: 0 18px 40px rgba(20, 33, 23, 0.08) !important;
}

body.aygi-v2 .article-detail-body,
body.aygi-v2 .article-detail-body.prose,
body.aygi-v2 .rich-content {
    font-size: 1.08rem;
    line-height: 2.05;
}

body.aygi-v2 .article-detail-featured img {
    border-radius: 20px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

body.aygi-v2 .rich-content blockquote,
body.aygi-v2 .article-detail-body blockquote {
    border-right: 4px solid var(--v2-gold);
    background: #f6efe2;
    border-radius: 0 16px 16px 0;
    padding: 0.8rem 1rem;
}

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

body.aygi-v2 .v2-foot {
    background: var(--v2-forest-deep) !important;
    margin-top: 1rem;
}

body.aygi-v2 .v2-news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding: 1.1rem 1.2rem;
    border-radius: 20px;
    background: #145c38;
}

body.aygi-v2 .v2-news h2 {
    margin: 0 0 0.2rem;
    color: #fff;
    font-size: 1.25rem;
}

body.aygi-v2 .v2-news p {
    margin: 0;
    color: #f6efe2;
}

body.aygi-v2 .v2-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: var(--v2-gold);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.aygi-v2 .aygi-page-hero {
    background:
        linear-gradient(120deg, rgba(12, 59, 36, 0.9), rgba(197, 106, 50, 0.72)),
        url("../img/section-botanical.jpg") center/cover;
    color: #fff;
    border-radius: 0 0 28px 28px;
    padding: 2.2rem 0;
}

body.aygi-v2 .aygi-page-hero h1,
body.aygi-v2 .aygi-page-hero p {
    color: #fff;
}

@media (max-width: 991.98px) {
    body.aygi-v2 .v2-product-grid,
    body.aygi-v2 .v2-article-grid,
    body.aygi-v2 .v2-seller-grid,
    body.aygi-v2 .v2-trust-grid,
    body.aygi-v2 .v2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.aygi-v2 .v2-hero {
        min-height: 0;
    }

    body.aygi-v2 .v2-hero::after {
        background: linear-gradient(180deg, rgba(8, 32, 20, 0.35), rgba(8, 32, 20, 0.88));
    }

    body.aygi-v2 .v2-news,
    body.aygi-v2 .v2-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    body.aygi-v2 .v2-marquee .v2-cat,
    body.aygi-v2 .v2-marquee .v2-mini {
        flex-basis: calc((100vw - 2.75rem) / 1.8);
        width: calc((100vw - 2.75rem) / 1.8);
    }
}

@media (max-width: 575.98px) {
    body.aygi-v2 .v2-stats,
    body.aygi-v2 .v2-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.aygi-v2 .v2-search {
        border-radius: 20px;
        flex-wrap: wrap;
    }

    body.aygi-v2 .v2-search button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.aygi-v2 .v2-marquee.is-running .v2-marquee-track {
        animation: none;
    }
}
