/* Vazirmatn v33.003 — https://github.com/rastikerdar/vazirmatn/releases/tag/v33.003 */
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --nr-primary: #17695c;
    --nr-primary-dark: #105044;
    --nr-accent: #d96b50;
    --nr-text: #273d38;
    --nr-muted: #5c6c66;
    --nr-background: #fcfaf6;
    --nr-surface: #ffffff;
    --nr-border: #dce4df;
    --nr-radius: 1.25rem;
    --nr-shadow: 0 8px 24px rgb(39 61 56 / 6%);
    --nr-space: 1.5rem;
    --bs-font-sans-serif: "Vazirmatn", Tahoma, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: var(--nr-text);
    --bs-body-bg: var(--nr-background);
    --bs-secondary-color: var(--nr-muted);
    --bs-link-color: var(--nr-primary);
    --bs-link-color-rgb: 23, 105, 92;
    --bs-link-hover-color-rgb: 16, 80, 68;
}
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.9; }
.page-content { flex: 1; padding-block: var(--nr-space); }
h1, h2, h3 { font-weight: 700; line-height: 1.6; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--nr-primary); outline-offset: 4px;
}
.skip-link { position: absolute; inset-inline-start: 1rem; top: -8rem; z-index: 1100; padding: .75rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.announcement { background: var(--nr-primary); color: white; font-size: .8rem; }
.site-header { background: var(--nr-surface); border-bottom: 1px solid var(--nr-border); }
.brand { color: var(--nr-primary); font-weight: 700; font-size: 1.5rem; }
.nav-link { color: var(--nr-text); padding-block: .65rem; }
.nav-link:hover { color: var(--nr-primary); text-decoration: underline; text-underline-offset: .3rem; }
.navbar-toggler { min-width: 44px; min-height: 44px; }
.hero { padding: 1.5rem; background: #edf3ed; border-radius: var(--nr-radius); }
.eyebrow { color: var(--nr-primary); font-size: .85rem; font-weight: 500; margin-bottom: .5rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.04em; }
.hero h1 span { color: var(--nr-primary); }
.hero-description { max-width: 34rem; color: var(--nr-muted); }
.btn { min-height: 44px; padding: .6rem 1.1rem; border-radius: .75rem; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--nr-primary); --bs-btn-border-color: var(--nr-primary); --bs-btn-hover-bg: var(--nr-primary-dark); --bs-btn-hover-border-color: var(--nr-primary-dark); --bs-btn-active-bg: var(--nr-primary-dark); --bs-btn-active-border-color: var(--nr-primary-dark); --bs-btn-disabled-bg: var(--nr-primary); --bs-btn-disabled-border-color: var(--nr-primary); }
.home-search { background: var(--nr-surface); border: 1px solid var(--nr-border); padding: var(--nr-space); border-radius: var(--nr-radius); }
.form-control, .form-select { min-width: 0; min-height: 48px; border-radius: .75rem; border-color: var(--nr-border); }
.form-control:disabled { background: #f3f5f2; opacity: 1; }
.form-control::placeholder { color: var(--nr-muted); }
.section-title { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.category-card { overflow-wrap: anywhere; height: 100%; padding: var(--nr-space); border-radius: var(--nr-radius); }
.category-card p { font-size: .875rem; }
.admin-category-filter { background: var(--nr-surface); box-shadow: var(--nr-shadow); }
.admin-category-filter .form-label { font-weight: 600; }
.category-symbol { display: block; font-size: 2rem; margin-bottom: .5rem; }
.tone-mint { background: #e2eee5; }
.tone-peach { background: #f9e8df; }
.tone-lilac { background: #ede8f5; }
.tone-sand { background: #f6edcf; }
.product-card { overflow: hidden; border: 1px solid var(--nr-border); border-radius: var(--nr-radius); box-shadow: var(--nr-shadow); background: var(--nr-surface); }
.card-body { padding: var(--nr-space); }
.card-body > p:not(.small) { font-size: .9rem; color: var(--nr-muted); }
.site-footer { border-top: 1px solid var(--nr-border); background: #edf3ed; color: var(--nr-muted); }
@media (min-width: 768px) { .page-content { padding-block: 2.5rem; } .hero { padding: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Product images preserve their proportions within the existing RTL cards. */
.product-image { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: var(--bs-tertiary-bg, #f8f9fa); border-radius: .5rem; }
.image-placeholder { display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color, #6c757d); }

.catalog-filters { background: var(--bs-body-bg, #fff); }
.catalog-filters summary { cursor: pointer; }
.catalog-image { aspect-ratio: 4 / 5; background: #f8f9fa; overflow: hidden; }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-image [hidden] { display: none !important; }
.catalog-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.7; }
.catalog-price { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .catalog-card .card-body { padding: .75rem; }
}

.product-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-detail { overflow-wrap: anywhere; }
.quantity-input { max-width: 8rem; }
.detail-main-image { width: min(100%, 28rem); aspect-ratio: 4 / 5; background: #f8f9fa; overflow: hidden; }
.detail-main-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbnail { display: block; width: 64px; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbnail[aria-current="true"] { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.gallery-thumbnails { max-height: 10rem; overflow-y: auto; padding: .25rem; }
[data-product-gallery] [hidden] { display: none !important; }

/* Homepage: the supplied logo and photographs carry the brand. */
.brand-logo { border-radius: 50%; object-fit: contain; }
.home-hero { position: relative; background: linear-gradient(115deg, #fff3d4, #f1f8eb 48%, #eef7fb); border: 1px solid #e8eadb; }
.home-hero h1 { font-size: clamp(1.6rem, 3.3vw, 2.7rem); }
.home-hero h1 span { color: #17695c; }
.home-interests { font-size: .85rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.home-logo-wrap { text-align: center; }
.home-logo { width: min(100%, 240px); height: auto; border-radius: 50%; box-shadow: 0 8px 28px #273d3812; }
.home-categories__title { margin-bottom: 1.25rem !important; }
.home-category-card {
    display: block;
    height: 100%;
    overflow: hidden;
    color: var(--nr-text);
    text-decoration: none;
    border-radius: 1.35rem;
    box-shadow: var(--nr-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.home-category-card:hover { color: var(--nr-text); transform: translateY(-3px); box-shadow: 0 12px 28px rgb(39 61 56 / 12%); }
.home-category-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: rgb(255 255 255 / 34%); }
.home-category-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-category-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--nr-primary); font-size: 3rem; }
.home-category-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 5rem; padding: .85rem 1rem 1rem 1.1rem; }
.home-category-card__name { min-width: 0; font-size: clamp(1rem, 1.7vw, 1.2rem); font-weight: 700; line-height: 1.6; }
.home-category-card__arrow { display: grid; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 48%); font-size: 1.45rem; line-height: 1; }
.home-category-card:focus-visible { outline: 3px solid var(--nr-primary); outline-offset: 5px; }
.home-categories__all { display: inline-block; margin-top: 1.25rem; padding-block: .35rem; color: var(--nr-primary); font-weight: 500; text-underline-offset: .3rem; }
@media (max-width: 767.98px) {
    .home-logo-wrap { display: none; }
    .home-search { padding: 1rem; }
}
@media (max-width: 399.98px) { .home-category-card__footer { min-height: 4.5rem; padding-inline: .85rem; } .home-category-card__arrow { flex-basis: 2.5rem; width: 2.5rem; height: 2.5rem; } }

/* Shared public controls and reading order. No changes to business state. */
[hidden] { display: none !important; }
.storefront .form-label { font-weight: 500; }
.storefront .form-control, .storefront .form-select { font-size: 1rem; }
.storefront .form-check-label { padding-block: .6rem; cursor: pointer; }
.storefront .form-check-input { margin-top: 1rem; }
.storefront .page-link { min-width: 44px; min-height: 44px; text-align: center; }
.storefront .breadcrumb a, .touch-link, .site-footer a { display: inline-block; padding-block: .5rem; min-height: 44px; }
.storefront .nav-link { min-height: 44px; padding-inline: .5rem; }
.nav-cart { border: 1px solid var(--nr-border); border-radius: .75rem; margin-inline-start: auto; }
.nav-cart .badge { background: var(--nr-primary); color: white; }
.public-navigation { gap: .5rem; }
.public-navigation .brand { margin-inline-end: 0; }
.catalog-name { min-height: 3.4em; margin-bottom: 0; }
.catalog-name a { color: var(--nr-text); text-decoration: none; display: block; min-height: 44px; }
.catalog-name a:hover { color: var(--nr-primary); text-decoration: underline; }
.catalog-name:focus-within { overflow: visible; display: block; }
.catalog-card .catalog-price { color: var(--nr-text); font-size: 1rem; font-weight: 500; }
.availability { padding: .15rem .6rem; border-radius: 2rem; background: #edf3ef; }
.image-placeholder { background: #f3f5f2; border-radius: .5rem; font-size: .875rem; min-height: 3rem; }
.cart-image img { width: 100%; height: 120px; object-fit: contain; background: white; }
.cart-image .image-placeholder { height: 120px; }
.empty-state { border: 1px dashed var(--nr-border); border-radius: var(--nr-radius); background: white; }
.order-reference { display: block; overflow-wrap: anywhere; font-weight: 700; font-size: 1.1rem; }
.payment-number { display: block; font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: .05em; padding: .75rem; background: #edf3ef; border-radius: .75rem; overflow-wrap: anywhere; }
[data-validation-summary]:focus { outline: 3px solid var(--nr-primary); outline-offset: 3px; }
@media (max-width: 991.98px) {
    .public-navigation .brand { font-size: 1.1rem; }
    .public-navigation .brand-logo { width: 36px; height: 36px; }
    .public-navigation .nav-cart { font-size: .85rem; }
    .public-navigation .navbar-collapse { flex-basis: 100%; padding-top: .5rem; }
    .public-navigation .navbar-collapse .nav-link { border-bottom: 1px solid var(--nr-border); }
}

.availability.text-success { color: var(--nr-primary-dark) !important; }
.availability.text-secondary { color: var(--nr-muted) !important; }
.storefront .btn-outline-primary {
    --bs-btn-color: var(--nr-primary); --bs-btn-border-color: var(--nr-primary);
    --bs-btn-hover-bg: var(--nr-primary); --bs-btn-hover-border-color: var(--nr-primary);
    --bs-btn-active-bg: var(--nr-primary-dark); --bs-btn-active-border-color: var(--nr-primary-dark);
}

/* Product upload editor: compact on desktop and usable on touch screens. */
body.image-editor-open { overflow: hidden; }
.image-editor { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; background: rgb(20 35 31 / 72%); }
.image-editor[hidden] { display: none !important; }
.image-editor__panel { width: min(100%, 70rem); max-height: min(100%, 48rem); overflow: auto; padding: 1.25rem; border-radius: var(--nr-radius); background: var(--nr-surface); box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%); }
.image-editor__workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 15rem); gap: 1rem; align-items: start; }
.image-editor__canvas-wrap { min-height: 18rem; max-height: 32rem; background: #17231f; overflow: hidden; }
.image-editor__canvas-wrap img { display: block; max-width: 100%; }
.image-editor__preview-wrap { display: grid; gap: .5rem; justify-items: center; }
.image-editor__preview-wrap img { width: min(100%, 9rem); aspect-ratio: 4 / 5; object-fit: contain; background: #f3f5f2; border: 1px solid var(--nr-border); border-radius: .5rem; }
.category-image-preview { display: block; width: min(100%, 22rem); aspect-ratio: 3 / 2; object-fit: contain; background: #f3f5f2; border-radius: .75rem; }
.image-editor[data-editor-kind="category"] .image-editor__preview-wrap img { aspect-ratio: 3 / 2; }
@media (max-width: 575.98px) {
    .image-editor { padding: .5rem; }
    .image-editor__panel { padding: 1rem; max-height: 100%; }
    .image-editor__workspace { grid-template-columns: 1fr; }
    .image-editor__canvas-wrap { min-height: 14rem; max-height: 55vh; }
    .image-editor__preview-wrap { grid-template-columns: auto 5rem 1fr; align-items: center; justify-items: start; }
    .image-editor__preview-wrap img { width: 5rem; }
}
