@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

:root {
    --font-sans: "Vazirmatn", system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, sans-serif;
    --brand-blue: #0a6fb7;
    --brand-blue-dark: #07558d;
    --brand-orange: #f58220;
    --brand-green: #1f9d55;
    --ink: #1f2a37;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f4f7fb;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    direction: rtl;
    font-family: var(--font-sans);
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--soft);
    color: var(--ink);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    line-height: 1.65;
    margin-top: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shop-shell {
    min-height: 100vh;
}

.promo-strip {
    align-items: center;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    font-size: 0.92rem;
    gap: 1rem;
    justify-content: center;
    padding: 0.55rem 1rem;
}

.promo-strip a {
    color: #fff;
    font-weight: 800;
}

.shop-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 1.2rem;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand-mark {
    align-items: center;
    color: var(--brand-blue);
    display: inline-flex;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-mark__logo {
    background: var(--brand-blue);
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-weight: 900;
    height: 2.4rem;
    place-items: center;
    width: 2.4rem;
}

.shop-search {
    align-items: stretch;
    border: 2px solid var(--brand-blue);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
}

.shop-search input {
    border: 0;
    min-width: 0;
    padding: 0.8rem 1rem;
}

.shop-search button,
.primary-button,
.auth-form button,
.booking-form button,
.filter-panel button,
.hero-search button {
    background: var(--brand-orange);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0.78rem 1.15rem;
    text-decoration: none;
}

.shop-search button {
    border-radius: 0;
}

.primary-button--compact {
    padding: 0.55rem 0.9rem;
}

.ghost-link,
.filter-panel a,
.auth-form a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand-blue-dark);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.account-nav {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.account-nav a,
.account-nav button {
    background: transparent;
    border: 0;
    color: var(--brand-blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.category-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.category-nav a {
    color: var(--ink);
    flex: 0 0 auto;
    font-weight: 800;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.category-nav a:hover {
    color: var(--brand-blue);
}

main {
    margin: 0 auto;
    max-width: 1240px;
    padding: 1.4rem clamp(1rem, 4vw, 2rem) 3rem;
}

.store-hero {
    background-image:
        linear-gradient(90deg, rgba(6, 45, 75, 0.75), rgba(6, 45, 75, 0.2)),
        url("https://images.unsplash.com/photo-1601758123927-196515a77254?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    color: #fff;
    min-height: 390px;
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.store-hero__content {
    max-width: 760px;
}

.store-hero h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    margin-bottom: 0.7rem;
}

.store-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.deal-badge,
.listing-header span,
.provider-hero span,
.auth-page span,
.booking-panel span,
.offer-band span,
.magazine-band span,
.service-card__body > span,
.product-detail__content > span {
    color: var(--brand-blue);
    font-size: 0.84rem;
    font-weight: 900;
}

.store-hero .deal-badge {
    background: #fff;
    border-radius: 999px;
    color: var(--brand-blue);
    display: inline-flex;
    padding: 0.45rem 0.8rem;
}

.hero-search {
    background: #fff;
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin-top: 1.8rem;
    padding: 0.9rem;
}

.hero-search label,
.filter-panel label,
.booking-form label,
.auth-form label {
    color: var(--ink);
    display: grid;
    gap: 0.35rem;
}

.hero-search span,
.filter-panel span,
.booking-form span,
.auth-form span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-search select,
.filter-panel select,
.filter-panel input,
.booking-form select,
.booking-form input,
.booking-form textarea,
.auth-form input,
.auth-form select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    min-width: 0;
    padding: 0.75rem 0.85rem;
}

.quick-categories {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1.4rem 0;
}

.quick-categories a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 0.75rem;
    overflow: hidden;
    padding-bottom: 0.95rem;
    text-align: center;
    text-decoration: none;
}

.quick-categories img {
    aspect-ratio: 5 / 3;
    object-fit: cover;
    width: 100%;
}

.offer-band,
.listing-header,
.provider-hero,
.magazine-band,
.booking-panel,
.detail-grid article,
.public-empty,
.auth-page {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.offer-band,
.listing-header,
.provider-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 1.4rem 0;
    padding: 1.1rem 1.25rem;
}

.offer-band a {
    color: var(--brand-blue-dark);
    font-weight: 900;
}

.product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    overflow: hidden;
}

.service-card__image {
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
    display: block;
}

.service-card__body {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.service-card h2 {
    font-size: 1.05rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.service-card p,
.service-card small {
    color: var(--muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.service-card__meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.service-card__meta strong,
.price-row strong {
    color: var(--brand-orange);
    font-size: 1.08rem;
}

.service-card__meta a {
    background: var(--brand-blue);
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
}

.favorite-form button {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand-blue-dark);
    cursor: pointer;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}

.favorite-form button:hover {
    background: #fff;
}

.magazine-band {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 280px minmax(0, 1fr);
    margin-top: 1.5rem;
    overflow: hidden;
}

.magazine-band img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.magazine-band div {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.catalog-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: 280px minmax(0, 1fr);
}

.filter-panel,
.auth-form,
.booking-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.product-grid--catalog {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.product-detail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
}

.product-detail__image {
    background-position: center;
    background-size: cover;
    min-height: 420px;
}

.product-detail__content {
    display: grid;
    gap: 0.8rem;
    padding: clamp(1.2rem, 4vw, 2.2rem);
}

.product-detail h1 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin: 0;
}

.rating-row,
.price-row,
.badge-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    margin: 1rem 0;
}

.detail-grid article,
.booking-panel,
.public-empty {
    padding: 1.2rem;
}

.booking-panel {
    display: grid;
    gap: 1rem;
}

.booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-form__wide,
.booking-form button {
    grid-column: 1 / -1;
}

.provider-score {
    color: var(--brand-orange);
    display: grid;
    justify-items: center;
}

.provider-score strong {
    font-size: 2.5rem;
}

.auth-page {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    margin: 2rem auto;
    max-width: 980px;
    padding: clamp(1.2rem, 4vw, 2rem);
}

.auth-form--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form--wide button,
.auth-form--wide a,
.auth-form .check-row {
    grid-column: 1 / -1;
}

.check-row {
    align-items: center;
    display: flex;
}

.shop-footer {
    align-items: start;
    background: #fff;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    gap: 0.8rem 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.4rem clamp(1rem, 4vw, 2rem);
}

.shop-footer__brand {
    display: grid;
    gap: 0.35rem;
}

.shop-footer__links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.shop-footer__links a {
    color: var(--brand-blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.content-page {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.2rem, 4vw, 2rem);
}

.content-page h1 {
    margin: 0;
}

.content-page__steps,
.content-page__list {
    margin: 0;
    padding-right: 1.15rem;
}

.content-page__steps li,
.content-page__list li {
    margin-bottom: 0.45rem;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
}

.faq-list h2,
.faq-list p {
    margin: 0;
}

.article-page {
    display: grid;
    gap: 0;
}

.article-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
    overflow: hidden;
}

.article-hero__intro {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 3vw, 1.9rem);
}

.article-hero__media {
    min-height: clamp(280px, 30vw, 460px);
}

.article-hero__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.article-detail__summary {
    color: var(--brand-blue-dark);
    font-weight: 800;
}

.article-content {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 3vw, 1.9rem);
}

.article-content p,
.article-content li,
.article-content blockquote {
    font-size: 1.02rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
    margin: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 0;
}

.article-content ul,
.article-content ol {
    margin: 0;
    padding-right: 1.25rem;
}

.article-content img {
    border-radius: 8px;
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

.article-content iframe {
    border: 0;
    border-radius: 8px;
    min-height: 260px;
    width: 100%;
}

.video-embed {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.video-embed iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

#blazor-error-ui {
    background: #fff6da;
    bottom: 1rem;
    border: 1px solid #facc15;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.16);
    display: none;
    left: 1rem;
    padding: 0.8rem 3rem 0.8rem 1rem;
    position: fixed;
    z-index: 1000;
}

@media (max-width: 900px) {
    .shop-header,
    .hero-search,
    .catalog-layout,
    .product-detail,
    .detail-grid,
    .auth-page,
    .magazine-band,
    .article-hero,
    .shop-footer {
        grid-template-columns: 1fr;
    }

    .quick-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-nav,
    .shop-header {
        align-items: stretch;
    }

    .account-nav {
        flex-wrap: wrap;
    }

    .shop-footer__links {
        justify-content: start;
    }

    .product-detail__image {
        min-height: 300px;
    }

    .article-hero__media {
        min-height: 280px;
    }

    .article-hero__media img {
        height: auto;
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    main {
        padding-inline: 0.8rem;
    }

    .shop-header {
        position: static;
    }

    .promo-strip {
        text-align: center;
    }

    .category-nav {
        padding: 0 0.8rem;
    }

    .category-nav a {
        padding: 0.75rem 0.7rem;
    }

    .quick-categories,
    .booking-form,
    .auth-form--wide {
        grid-template-columns: 1fr;
    }

    .store-hero {
        min-height: auto;
        padding: 1.2rem;
    }

    .hero-search {
        padding: 0.75rem;
    }

    .service-card__meta {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .service-card__meta a {
        text-align: center;
    }
}
