/* ============================================================
   HOME.CSS — استایل‌های صفحه اصلی
   ============================================================ */

/* ===== HERO ===== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    object-position: 30% center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #061915e8, #06191572);
    z-index: -1;
}

.hero-inner {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding-block: 55px;
}

.hero-copy {
    max-width: 550px;
}

.hero-nastaligh {
    width: 369px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--cream);
    margin-bottom: 32px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    font-size: 10px;
    color: #c6baa0;
}

.hero-bottom [lang] {
    letter-spacing: 2px;
    font-family: Georgia, serif;
}

/* ===== GATEWAYS ===== */
.gateways {
    display: grid;
    grid-template-columns: 1fr;
    border-inline: 1px solid var(--line);
}

.gateways > a {
    text-align: center;
    padding: 28px 15px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse at bottom, #23413244, transparent 70%);
}

.gate-icon {
    color: var(--gold);
    font-size: 27px;
}

.gateways h2 {
    font-size: 19px;
    margin: 9px 0;
}

.gateways p {
    font-size: 11px;
    margin: 0;
}

/* ============================================================
   CATEGORIES — دسته‌بندی‌های افقی
   ============================================================ */
.home-categories {
    padding-block: 50px;
}

.categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.categories-scroll::before,
.categories-scroll::after {
    content: "";
    flex: 1 0 auto;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.category-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    min-width: 120px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    scroll-snap-align: start;
}

.category-chip:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.category-chip img {
    width: 88px;
    height: 88px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.category-chip:hover img {
    border-color: var(--gold);
}

.category-chip-name {
    font-size: 13px;
    color: var(--cream);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.category-chip:hover .category-chip-name {
    color: var(--gold);
}

/* ============================================================
   MARKET PRICES — قیمت‌های بازار (لیست عمودی/گرید)
   ============================================================ */
.market-prices {
    padding-block: 45px;
}

.market-updated {
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.market-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.market-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-right: 3px solid var(--gold);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.market-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, #c3a36a0e, transparent 70%);
    pointer-events: none;
}

.market-chip:hover {
    border-color: var(--gold);
    transform: translateX(-3px);
}

.market-label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .3px;
    position: relative;
    z-index: 1;
}

.market-value {
    font-family: Georgia, serif;
    font-size: 17px;
    color: var(--gold);
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
}

.market-value small {
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
    margin-right: 3px;
    letter-spacing: 0;
}

/* ============================================================
   NEWEST / BESTSELLER — اسلایدرهای محصولات
   ============================================================ */
.home-newest {
    padding-block: 60px;
}

.newest-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

/* کارت ثابت سمت راست */
.newest-static-card {
    background: radial-gradient(ellipse at top right, #25473a66, transparent), var(--surface);
    border: 1px solid var(--line);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.newest-static-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    border: 1px solid #c3a36a33;
    border-radius: 50%;
    flex-shrink: 0;
    pointer-events: none;
}

.home-bestseller .newest-static-card {
    background: radial-gradient(ellipse at top right, #4a3a1e66, transparent), var(--surface);
}

.newest-static-icon {
    font-size: 24px;
    color: var(--gold);
    line-height: 1;
}

.newest-static-card h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--cream);
    margin: 0;
}

.newest-static-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.8;
}

.newest-static-card .button {
    align-self: flex-start;
    margin-top: 6px;
}

/* اسلایدر */
.newest-swiper-wrap {
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.newest-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 48px;
}

.newest-slider .swiper-wrapper {
    align-items: stretch;
}

.newest-slider .swiper-slide {
    height: auto;
    display: flex;
}

.newest-slider .swiper-slide > .product-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* دکمه‌های ناوبری */
.newest-button-prev,
.newest-button-next {
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    top: auto;
    bottom: 0;
    margin: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), color var(--transition-fast);
    z-index: 5;
    flex-shrink: 0;
}

.newest-button-prev { right: 0; left: auto; }
.newest-button-next { left: 0; right: auto; }

.newest-button-prev::after,
.newest-button-next::after {
    font-size: 12px;
    font-weight: bold;
    color: inherit;
}

.newest-button-prev:hover,
.newest-button-next:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.newest-button-prev.swiper-button-disabled,
.newest-button-next.swiper-button-disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ============================================================
   ABOUT INTRO — معرفی جواهری درویشی
   ============================================================ */
.home-about {
    padding-block: 70px;
}

.about-intro-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about-intro-copy h2 {
    margin-bottom: 18px;
    max-width: 560px;
}

.about-intro-copy .lead {
    font-size: 16px;
    color: var(--cream);
    opacity: .9;
    margin-bottom: 16px;
    max-width: 620px;
}

.about-intro-copy p {
    max-width: 640px;
    font-size: 14px;
    line-height: 2;
}

.about-intro-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.about-intro-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-intro-mark img {
    width: 280px;
    max-width: 100%;
    height: auto;
    opacity: .92;
    filter: drop-shadow(0 0 24px #c3a36a18);
}

/* ============================================================
   GUIDE BANNER — بنر راهنما
   ============================================================ */
.guide-banner {
    padding: 35px 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: radial-gradient(ellipse at left, #25473a66, transparent), var(--surface);
    border: 1px solid var(--line);
    margin-bottom: 70px;
    overflow: hidden;
}

.guide-banner > div {
    padding-bottom: 35px;
    max-width: 620px;
}

.guide-banner p:not(.eyebrow) {
    max-width: 480px;
    font-size: 13px;
}

.guide-banner img {
    width: 28%;
    align-self: end;
    max-height: 340px;
    object-fit: contain;
    object-position: bottom;
}

.guide-banner .text-link {
    display: inline-block;
    margin: 15px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
    .gateways {
        grid-template-columns: repeat(3, 1fr);
    }

    .gateways > a + a {
        border-right: 1px solid var(--line);
    }

    .hero-inner {
        min-height: 540px;
    }

    .hero::after {
        background: linear-gradient(270deg, #061915cf, transparent 90%);
    }

    .market-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .hero-inner {
        min-height: 560px;
    }

    .hero-copy {
        width: 47%;
    }

    .hero::after {
        background: linear-gradient(270deg, #06191566, transparent 65%);
    }

    .hero-image {
        object-position: center;
    }

    .gateways > a {
        padding: 30px;
    }

    .guide-banner {
        padding: 45px 65px 0;
    }

    .guide-banner img {
        max-height: 370px;
    }

    .newest-layout {
        grid-template-columns: 280px 1fr;
        gap: 28px;
    }

    .newest-static-card {
        padding: 36px 30px;
    }

    .newest-static-card h3 {
        font-size: 1.8rem;
    }

    .about-intro-layout {
        grid-template-columns: 1.3fr 1fr;
        gap: 50px;
    }

    .about-intro-mark img {
        width: 340px;
    }

    .market-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .category-chip {
        min-width: 100px;
        padding: 14px 12px;
    }

    .category-chip img {
        width: 68px;
        height: 68px;
    }

    .category-chip-name {
        font-size: 12px;
    }

    .market-chip {
        padding: 12px 14px;
    }

    .market-value {
        font-size: 15px;
    }
}