/* MAPress RTL Design System — Tailwind-inspired utilities */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.font-vazir { font-family: 'Vazirmatn', Tahoma, sans-serif; }
body { line-height: 1.6; }

a { color: inherit; text-decoration: none; }
a:hover { color: #2563eb; }
.prose a { color: #2563eb; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.text-primary a, a.text-primary { color: #2563eb; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; }
.mx-auto { margin-inline: auto; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex { display: flex; }
    .md\:w-auto { width: auto; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:mb-14 { margin-bottom: 3.5rem; }
}

.min-h-screen { min-height: 100vh; }
.min-h-\[2\.5rem\] { min-height: 2.5rem; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-inline: 1rem; }
.py-2 { padding-block: 0.5rem; }
.py-8 { padding-block: 2rem; }
.py-12 { padding-block: 3rem; }
.pt-8 { padding-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.mr-2 { margin-inline-start: 0.5rem; }
.mr-6 { margin-inline-start: 1.5rem; }
.mx-8 { margin-inline: 2rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, monospace; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-through { text-decoration: line-through; }

.text-primary { color: #2563eb; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-amber-500 { color: #f59e0b; }
.text-green-600 { color: #16a34a; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-900 { background: #111827; }
.bg-gradient-to-l { background: linear-gradient(to left, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary-600 { --tw-gradient-from: #2563eb; }
.to-primary-800 { --tw-gradient-to: #1e40af; }

.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-r-2 { border-inline-start: 2px solid #f3f4f6; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-800 { border-color: #1f2937; }

.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.opacity-30 { opacity: 0.3; }
.opacity-90 { opacity: 0.9; }
.inline { display: inline; }
.block { display: block; }
.hidden { display: none; }
.aspect-square { aspect-ratio: 1; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.transition-transform { transition: transform 0.3s; }
.duration-300 { transition-duration: 300ms; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

.card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); border: 1px solid #f3f4f6; }
.card-hover { transition: box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); transform: translateY(-2px); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; border: 1px solid #d1d5db; color: #374151; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-white { background: #fff; color: #2563eb; }
.btn-white:hover { background: #f3f4f6; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.input { padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-family: inherit; font-size: 0.875rem; transition: border-color 0.2s; }
.input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: 0.875rem; color: #374151; }
.nav-link { color: #4b5563; text-decoration: none; font-size: 0.875rem; background: none; border: none; cursor: pointer; font-family: inherit; }
.nav-link:hover { color: #2563eb; }

.badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; background: #f3f4f6; color: #374151; }
.badge-success { background: #dcfce7; color: #166534; }

.alert { padding: 1rem; margin: 1rem; border-radius: 0.5rem; text-align: center; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.hero { background: linear-gradient(to left, #2563eb, #1e40af); }

.prose { line-height: 1.8; color: #374151; max-width: 65ch; }
.prose.max-w-none { max-width: none; }
.prose p { margin-bottom: 1rem; }
.prose img { max-width: 100%; border-radius: 0.5rem; }
.prose a { color: #2563eb; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose table,
.prose .table {
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.prose table th,
.prose table td,
.prose .table th,
.prose .table td {
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.875rem;
    text-align: right;
    vertical-align: top;
}
.prose table th,
.prose .table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}
.prose .table-striped tbody tr:nth-child(odd),
.prose table.table-striped tbody tr:nth-child(odd) {
    background: #f9fafb;
}
.prose .table-hover tbody tr:hover,
.prose table.table-hover tbody tr:hover {
    background: #eff6ff;
}
.prose ul,
.prose ol {
    margin: 0.75rem 0 1rem;
    padding-inline-start: 1.5rem;
}
.prose li { margin-bottom: 0.35rem; }
.prose h2,
.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #111827;
}
.prose h2 { font-size: 1.375rem; }
.prose h3 { font-size: 1.125rem; }
.prose hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}
.prose .post-entry-title {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1rem;
}

.product-gallery { margin-bottom: 1.5rem; }
@media (min-width: 1024px) {
    .product-gallery { margin-bottom: 0; }
}
.product-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.product-description {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
@media (min-width: 1024px) {
    .product-description { margin-top: 3.5rem; }
}

.wcoa-more {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}
.wcoa-more a { color: #2563eb; text-decoration: none; }
.wcoa-more a:hover { text-decoration: underline; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th,
.data-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    text-align: right;
}
.data-table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.commentlist { list-style: none; }
.comment_container { }

.pagination-info { color: #6b7280; font-size: 0.875rem; }

.sku-plans-box { width: 100%; margin-top: 1rem; }
.sku-plan-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}
.sku-plan-choice:hover {
    border-color: rgba(37, 99, 235, 0.25);
}
.sku-plan-choice:has(input:checked) {
    border-color: #2563eb;
    background: rgba(239, 246, 255, 0.55);
}
.sku-plan-radio {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.3rem;
    accent-color: #2563eb;
}
.sku-plan-body {
    flex: 1;
    min-width: 0;
}
.sku-plan-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}
.sku-plan-desc {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.sku-plan-desc p { margin-bottom: 0.5rem; }
.sku-plan-desc p:last-child { margin-bottom: 0; }
.sku-plan-desc a { text-decoration: none; color: #2563eb; }
.sku-plan-desc a:hover { text-decoration: underline; }
.sku-plan-price-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, #fefce8 0%, #fef9c3 45%, #fde68a 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.sku-plan-hint {
    margin-top: 1rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

.gateway-options { width: 100%; }
.gateway-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}
.gateway-choice:hover {
    border-color: rgba(37, 99, 235, 0.25);
}
.gateway-choice:has(.gateway-radio:checked) {
    border-color: #2563eb;
    background: rgba(239, 246, 255, 0.55);
}
.gateway-radio {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #2563eb;
}
.gateway-label {
    font-weight: 500;
    color: #1f2937;
}

.col-span-full { grid-column: 1 / -1; }
code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.8125rem; }

.download-delivery-list {
    margin-top: 1.5rem;
    text-align: right;
}
.download-delivery-section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}
.download-delivery-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
}
.download-delivery-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.download-delivery-intro {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}
.download-delivery-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.download-delivery-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.download-delivery-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
    line-height: 1.65;
}
.download-delivery-plan {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
}
.download-delivery-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.download-delivery-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.download-delivery-step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}
.download-delivery-step-text {
    flex: 1;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    padding-top: 0.15rem;
}
.download-delivery-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}
.download-delivery-pin-panel {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px dashed #86efac;
    text-align: center;
}
.download-delivery-pin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.download-delivery-pin-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
}
.download-delivery-pin-code {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: #15803d;
    background: transparent;
    padding: 0.5rem 0;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.download-delivery-pin-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}
.download-delivery-copy {
    flex-shrink: 0;
    font-size: 0.8125rem;
}
.download-delivery-card--pending {
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
}
.download-delivery-pending-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.download-delivery-pending-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #fde68a;
    color: #b45309;
}
.download-delivery-pending-body {
    padding-top: 0.25rem;
}
.download-delivery-pending-text {
    margin: 0 0 0.75rem;
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.75;
}
.download-delivery-pending-text:last-child {
    margin-bottom: 0;
}
.download-delivery-pending-hint {
    font-size: 0.8125rem;
    color: #92400e;
}
.download-delivery-pending-phone {
    display: inline;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
}
