/* ---------- IranWOW Products Page Styles ---------- */

/* فونت ایران‌سنس (طبق حافظه‌ی پروژه) */
@font-face {
    font-family: "IranSans";
    src: url("/static/fonts/IranSans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #014c61;
    /* main background */
    --bg-darker: #014457;
    /* sections / headers */
    --border: #007899;
    /* accent border */
    --accent: #FFD700;
    /* gold (prices, highlights) */
    --text: #ffffff;
    /* main text */
    --muted: #6b7280;
    /* secondary text */
    --card: #014c61;
    /* card bg */
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(255, 215, 0, .06), transparent 60%),
        radial-gradient(1000px 700px at 110% 10%, rgba(0, 121, 153, .15), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: "IranSans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
}

/* --- Layout --- */
.content {
    width: 80%;
    margin: 50px auto 60px;
    background: rgba(1, 76, 97, 0.65);
    border: 1px solid #007899;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

/* عناوین */
h1,
h2 {
    margin: 0 0 12px 0;
    letter-spacing: .2px;
}

h1 {
    font-size: clamp(22px, 2.8vw, 30px);
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(255, 215, 0, .12);
}

h2 {
    font-size: clamp(18px, 2.2vw, 22px);
    color: #fff;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 24px;
}

/* جداکننده */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 18px 0 14px;
    opacity: .65;
}

/* --- Grid of services --- */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 12px 0 4px;
}

@media (max-width:980px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .services {
        grid-template-columns: 1fr;
    }
}

/* --- Product Card --- */
.service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-height: 100%;
    isolation: isolate;
}

.service:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .45);
    border-color: #0a97ba;
}

/* تصویر کارت */
.service img {
    /* width: 100%;
    height: 256px; */
    object-fit: cover;
    display: block;
    background: #003847;
}

/* @media (max-width:640px) {
    .service img {
        height: 256px;
    }
} */

/* متن‌های کارت */
.service p {
    margin: 0;
    padding: 0 12px;
    font-size: 15px;
}

.service p:first-of-type {
    padding-top: 10px;
    font-weight: 600;
}

.service p+p {
    padding-bottom: 12px;
}

/* قیمت‌ها */
.service span {
    color: var(--accent);
    font-weight: 700;
}

.service .price {
    color: var(--accent);
}

/* کارت‌های «به زودی» */
.service.soon {
    opacity: .92;
}

.service.soon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .22));
    pointer-events: none;
}

/* روبان به‌زودی */
.coming-soon-text {
    position: absolute;
    top: 12px;
    left: -38px;
    transform: rotate(-24deg);
    background: rgba(255, 215, 0, .14);
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 6px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 2;
}

/* اسپینر صفحه (در صورت نمایش) */
#spinner {
    background: rgba(0, 0, 0, .55);
}

#spinner img {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, .35));
}

/* ذرات پس‌زمینه */
#particle-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* RTL فاین‌تیون */
[dir="rtl"] .service p {
    text-align: right;
}

/* لینک‌ها داخل کارت */
.service:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
}

/* متن‌های ساب‌تیل */
.muted {
    color: var(--muted);
}

/* هِلوِر برای موارد قابل کلیک داخل کارت (اگر بعداً دکمه اضافه شد) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #007899;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.btn-primary:active {
    transform: translateY(0);
}