/**
 * Arshia Products — style-products.css
 * استایل صفحات محصولات (آرشیو + تک‌محصول)
 * برند: بنفش #352070 + طلایی #EEBB66
 */

/* ════════════════════════════════════════════════════
   ۰. Hero محصولات
   ════════════════════════════════════════════════════ */
.app-canvas { font-family: 'Vazirmatn', Tahoma, sans-serif; color: #1f2937; overflow-x: hidden; }
.app-canvas .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.app-hero {
    background:
        radial-gradient(800px 380px at 85% -10%, rgba(238, 187, 102, .18), transparent 60%),
        radial-gradient(640px 340px at 8% 110%, rgba(109, 79, 196, .35), transparent 55%),
        linear-gradient(135deg, #2a1a5a 0%, #352070 55%, #4a3a8a 100%);
    color: #fff;
    padding: 76px 0 60px;
}
.app-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 18px;
}
.app-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 16px;
}
.app-hero-sub {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, .86);
    max-width: 640px;
    margin: 0 0 28px;
}
.app-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.app-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 13px 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.app-hero-btn--primary {
    background: #EEBB66;
    color: #24154e;
    box-shadow: 0 8px 22px rgba(238, 187, 102, .4);
}
.app-hero-btn--primary:hover { background: #d99a2b; transform: translateY(-2px); color: #24154e; }
.app-hero-btn--ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.app-hero-btn--ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); color: #fff; }
.app-hero-btn:focus-visible { outline: 3px solid #EEBB66; outline-offset: 2px; }

/* Hero تک‌محصول */
.app-hero-single-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.app-term-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.app-term {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════
   ۱. بدنه اصلی
   ════════════════════════════════════════════════════ */
.app-main { padding: 56px 0; background: #faf9fe; }
.app-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.app-count { font-size: 13px; color: #6b7280; font-weight: 600; }
.app-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; }
.app-sort select {
    padding: 8px 12px;
    border: 1px solid #e8e4f3;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
}

/* ════════════════════════════════════════════════════
   ۲. کارت محصول (در آرشیو و مرتبط)
   ════════════════════════════════════════════════════ */
.app-canvas .ap-card {
    background: #fff;
    border: 1px solid #e8e4f3;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    position: relative;
    text-decoration: none;
}
.app-canvas .ap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(53, 32, 112, .16);
    border-color: rgba(53, 32, 112, .22);
}
.app-canvas .ap-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ebfa, #e8e0f7);
}
.app-canvas .ap-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .35s ease;
}
.app-canvas .ap-card:hover .ap-thumb img { transform: scale(1.04); }
.app-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #352070;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px -3px rgba(53, 32, 112, .5);
}
.app-canvas .ap-body {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.app-canvas .ap-name { margin: 0; font-size: 16px; font-weight: 800; color: #24154e; }
.app-canvas .ap-name a { color: inherit; text-decoration: none; }
.app-canvas .ap-name a:hover { color: #352070; }
.app-canvas .ap-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-canvas .ap-features {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.app-canvas .ap-features li {
    font-size: 12.5px;
    color: #1f2937;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}
.app-feat-ico { flex-shrink: 0; font-size: 13px; line-height: 1.6; }
.app-canvas .ap-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e8e4f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.app-canvas .ap-price { font-size: 17px; font-weight: 900; color: #352070; white-space: nowrap; }
.app-canvas .ap-price em { font-style: normal; font-size: 14px; color: #6b7280; }
.app-canvas .ap-price small { font-size: 11px; font-weight: 600; color: #6b7280; }
.app-actions { display: flex; gap: 8px; margin-top: 10px; }
.app-canvas .ap-cta,
.app-canvas .ap-add-calc {
    flex: 1;
    text-align: center;
    border-radius: 10px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
}
.app-canvas .ap-cta { background: #352070; color: #fff; }
.app-canvas .ap-cta:hover { background: #24154e; }
.app-canvas .ap-add-calc {
    background: #f0ebfa;
    color: #352070;
    border-color: #d6ccf5;
}
.app-canvas .ap-add-calc:hover,
.app-canvas .ap-add-calc.is-added { background: #EEBB66; color: #24154e; border-color: #EEBB66; }

/* ════════════════════════════════════════════════════
   ۳. گرید
   ════════════════════════════════════════════════════ */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ════════════════════════════════════════════════════
   ۴. صفحه‌بندی
   ════════════════════════════════════════════════════ */
.app-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.app-page {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e8e4f3;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.app-page:hover:not(:disabled) { border-color: #352070; color: #352070; }
.app-page.is-active { background: #352070; border-color: #352070; color: #fff; }
.app-page:disabled { opacity: .4; cursor: not-allowed; }
.app-page-dots { color: #6b7280; padding: 0 2px; }

/* ════════════════════════════════════════════════════
   ۵. Breadcrumbs
   ════════════════════════════════════════════════════ */
.app-crumbs {
    background: #f0ebfa;
    border-bottom: 1px solid #e8e4f3;
    padding: 10px 0;
    font-size: 12.5px;
    color: #6b7280;
}
.app-crumbs a { color: #352070; text-decoration: none; font-weight: 600; }
.app-crumbs a:hover { text-decoration: underline; }
.app-crumbs-sep { margin: 0 6px; color: #b8b2d6; }

/* ════════════════════════════════════════════════════
   ۶. صفحه تک‌محصول
   ════════════════════════════════════════════════════ */
.app-single-body { padding: 50px 0 60px; background: #faf9fe; }
.app-single-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

/* تب‌ها */
.app-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e8e4f3;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.app-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.app-tab:hover { color: #352070; }
.app-tab.is-active { color: #352070; border-bottom-color: #EEBB66; }

.app-tab-panel { display: none; background: #fff; border: 1px solid #e8e4f3; border-radius: 16px; padding: 26px; margin-bottom: 24px; }
.app-tab-panel.is-active { display: block; }
.app-panel-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: #24154e;
}
.app-muted { color: #6b7280; font-size: 14px; }

.app-features-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #faf9fe;
    border: 1px solid #e8e4f3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
}

/* ماژول‌های شامل */
.app-modules-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.app-module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #faf9fe;
    border: 1px solid #e8e4f3;
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #24154e;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .2s;
}
.app-module-item:hover { border-color: #352070; transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(53,32,112,.5); }
.app-module-item img { width: 36px; height: 36px; object-fit: contain; }

/* جدول مشخصات */
.app-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.app-spec-table th,
.app-spec-table td {
    text-align: right;
    padding: 11px 14px;
    border-bottom: 1px solid #f0ebfa;
}
.app-spec-table th { color: #6b7280; font-weight: 600; width: 180px; }
.app-spec-table td { font-weight: 700; color: #1f2937; }

.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: #16803c;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s, transform .2s;
}
.app-download-btn:hover { background: #0f5c2c; transform: translateY(-2px); }

/* ویدیو */
.app-video-box { background: #fff; border: 1px solid #e8e4f3; border-radius: 16px; padding: 26px; margin-bottom: 24px; }
.app-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.app-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* گالری + Lightbox */
.app-gallery-box { background: #fff; border: 1px solid #e8e4f3; border-radius: 16px; padding: 26px; }
.app-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.app-gallery-item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e8e4f3; }
.app-gallery-item img { width: 100%; height: 110px; object-fit: cover; transition: transform .25s; }
.app-gallery-item:hover img { transform: scale(1.06); }

.app-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 6, 30, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.app-lightbox[hidden] { display: none; }
.app-lightbox img { max-width: 92%; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.app-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}
.app-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ═════ ستون کناری (Sticky) ═════ */
.app-single-aside { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 18px; }
.app-price-card {
    background: #fff;
    border: 1px solid #e8e4f3;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 34px -18px rgba(53, 32, 112, .4);
    text-align: center;
}
.app-price-label { display: block; font-size: 12.5px; color: #6b7280; font-weight: 600; margin-bottom: 8px; }
.app-price-value { font-size: 28px; font-weight: 900; color: #352070; line-height: 1.3; }
.app-price-value small { font-size: 13px; font-weight: 600; color: #6b7280; }
.app-price-type {
    display: block;
    margin: 8px 0 18px;
    font-size: 12.5px;
    color: #6b7280;
    background: #faf9fe;
    border-radius: 20px;
    padding: 5px 12px;
}
.app-price-cta {
    display: block;
    background: linear-gradient(135deg, #EEBB66, #d9a23f);
    color: #24154e;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    padding: 13px;
    border-radius: 12px;
    box-shadow: 0 10px 22px -10px rgba(217, 162, 63, .75);
    transition: transform .18s, box-shadow .18s;
}
.app-price-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(217, 162, 63, .9); }

.app-contact-card,
.app-share-card {
    background: #fff;
    border: 1px solid #e8e4f3;
    border-radius: 16px;
    padding: 18px 20px;
}
.app-contact-card h3,
.app-share-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: #24154e; }
.app-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 0;
}
.app-contact-row:hover { color: #352070; }
.app-contact-ico { font-size: 16px; }
.app-share-row { display: flex; gap: 8px; }
.app-share-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    background: #f0ebfa;
    color: #352070;
    border-radius: 10px;
    padding: 9px 6px;
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.app-share-btn:hover { background: #352070; color: #fff; }

/* ═════ محصولات مرتبط ═════ */
.app-related { padding: 50px 0 60px; background: #fff; }
.app-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #24154e;
    margin: 0 0 28px;
}
.app-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ════════════════════════════════════════════════════
   ۷. انیمیشن fade-in
   ════════════════════════════════════════════════════ */
.app-canvas .ar-fade { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.app-canvas .ar-fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .app-canvas .ar-fade { opacity: 1; transform: none; transition: none; }
    .app-canvas * { transition-duration: .01ms !important; }
}

/* ════════════════════════════════════════════════════
   ۸. واکنش‌گرایی
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .app-grid, .app-related-grid { grid-template-columns: repeat(2, 1fr); }
    .app-hero-single-grid { grid-template-columns: 1fr; gap: 32px; }
    .app-single-grid { grid-template-columns: 1fr; }
    .app-single-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .app-single-aside > * { flex: 1; min-width: 240px; }
    .app-features-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .app-grid, .app-related-grid { grid-template-columns: 1fr; }
    .app-hero { padding: 56px 0 44px; }
    .app-hero-actions .app-hero-btn { width: 100%; }
    .app-actions { flex-direction: column; }
    .app-actions .ap-cta,
    .app-actions .ap-add-calc { width: 100%; }
    .app-tab-panel { padding: 20px 16px; }
    .app-spec-table th { width: 120px; }
}
