/*
Theme Name: Binosha
Description: Compiled Stylesheet with Retro Material 3
*/

/* --- 1. CSS Variables (Retro Material 3) --- */
:root {
--m3-primary: #FF2A5F;
--m3-secondary: #00E5FF;
--m3-tertiary: #FFEA00;
--m3-surface: #Fdfbf7;
--m3-outline: #1C1B1F;
--m3-text: #1C1B1F;
--m3-card: #ffffff;
--m3-muted: #f3f4f6;
--dot-color: #d1d5db;
}

html.dark {
--m3-primary: #d61849;
--m3-secondary: #00a8bc;
--m3-tertiary: #c2b100;
--m3-surface: #262626;
--m3-outline: #0a0a0a;
--m3-text: #f9fafb;
--m3-card: #3f3f46;
--m3-muted: #52525b;
--dot-color: #52525b;
}

/* --- 2. Font Faces (Anjoman) --- */
@font-face { font-family: Anjoman; font-weight: 100; src: url('../fonts/anjoman/eot/Anjoman-Thin.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Thin.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 200; src: url('../fonts/anjoman/eot/Anjoman-ExtraLight.eot'); src: url('../fonts/anjoman/woff2/Anjoman-ExtraLight.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 300; src: url('../fonts/anjoman/eot/Anjoman-Light.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Light.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 400; src: url('../fonts/anjoman/eot/Anjoman-Regular.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Regular.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 500; src: url('../fonts/anjoman/eot/Anjoman-Medium.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Medium.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 600; src: url('../fonts/anjoman/eot/Anjoman-SemiBold.eot'); src: url('../fonts/anjoman/woff2/Anjoman-SemiBold.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 700; src: url('../fonts/anjoman/eot/Anjoman-Bold.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Bold.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 800; src: url('../fonts/anjoman/eot/Anjoman-ExtraBold.eot'); src: url('../fonts/anjoman/woff2/Anjoman-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: Anjoman; font-weight: 900; src: url('../fonts/anjoman/eot/Anjoman-Heavy.eot'); src: url('../fonts/anjoman/woff2/Anjoman-Heavy.woff2') format('woff2'); }

/* --- 3. Tailwind Reset --- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: 'Vazirmatn', 'Anjoman', sans-serif; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol, menu { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* --- 4. Retro Base & Components --- */
body {
background-color: var(--m3-surface);
color: var(--m3-text);
background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
background-size: 24px 24px;
transition: background-color 0.3s ease, color 0.3s ease;
direction: rtl;
overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--m3-surface); border-left: 2px solid var(--m3-outline); }
::-webkit-scrollbar-thumb { background: var(--m3-primary); border: 2px solid var(--m3-outline); border-radius: 6px; }

.retro-card { background-color: var(--m3-card); border: 3px solid var(--m3-outline); border-radius: 28px; box-shadow: 6px 6px 0px 0px var(--m3-outline); transition: all 0.2s ease-out; }
.retro-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px 0px var(--m3-outline); }

.retro-product-card { background-color: var(--m3-card); border: 3px solid var(--m3-outline); border-radius: 24px; box-shadow: 5px 5px 0px 0px var(--m3-outline); transition: all 0.2s ease-out; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.retro-product-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0px 0px var(--m3-outline); border-color: var(--m3-primary); }

.retro-box { background-color: var(--m3-card); border: 3px solid var(--m3-outline); border-radius: 16px; box-shadow: 3px 3px 0px 0px var(--m3-outline); }

.retro-btn { border: 3px solid var(--m3-outline); border-radius: 9999px; box-shadow: var(--m3-outline) 4px 4px 0px 0px; font-weight: 800; transition: all 0.15s ease-out; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; }
.retro-btn:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px 0px var(--m3-outline) !important; }

.retro-input { border: 3px solid var(--m3-outline); border-radius: 20px; box-shadow: inset 3px 3px 0px 0px rgba(0,0,0,0.1); background-color: var(--m3-muted); color: var(--m3-text); transition: all 0.2s ease; width: 100%; padding: 0.75rem 1rem; font-weight: bold; }
.retro-input:focus { outline: none; box-shadow: var(--m3-outline) 4px 4px 0px 0px; transform: translate(-2px, -2px); background-color: var(--m3-card); }

.retro-chip { border: 2px solid var(--m3-outline); border-radius: 12px; box-shadow: var(--m3-outline) 2px 2px 0px 0px; background-color: var(--m3-card); color: var(--m3-text); font-weight: 700; transition: all 0.2s ease; cursor: pointer; padding: 0.5rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; }
.retro-chip:hover { background-color: var(--m3-muted); }
.retro-chip.active { background-color: var(--m3-primary) !important; color: white !important; border-color: var(--m3-outline) !important; }

.retro-page { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--m3-outline); border-radius: 12px; background-color: var(--m3-card); color: var(--m3-text); font-weight: 900; box-shadow: var(--m3-outline) 2px 2px 0px 0px; transition: all 0.15s ease; cursor: pointer; }
.retro-page:hover:not(.dots) { background-color: var(--m3-tertiary); color: black; transform: translate(-2px, -2px); box-shadow: 4px 4px 0px 0px var(--m3-outline); }
.retro-page.active { background-color: var(--m3-primary); color: white; }
.retro-page.dots { border: none; box-shadow: none; background: transparent; cursor: default; }

/* Custom Fallback Color Classes */
.bg-m3-primary { background-color: var(--m3-primary) !important; }
.bg-m3-secondary { background-color: var(--m3-secondary) !important; }
.bg-m3-tertiary { background-color: var(--m3-tertiary) !important; }
.bg-m3-surface { background-color: var(--m3-surface) !important; }
.bg-m3-card { background-color: var(--m3-card) !important; }
.bg-m3-muted { background-color: var(--m3-muted) !important; }
.bg-m3-outline { background-color: var(--m3-outline) !important; }

.text-m3-primary { color: var(--m3-primary) !important; }
.text-m3-secondary { color: var(--m3-secondary) !important; }
.text-m3-tertiary { color: var(--m3-tertiary) !important; }
.text-m3-text { color: var(--m3-text) !important; }
.text-m3-outline { color: var(--m3-outline) !important; }
.text-m3-surface { color: var(--m3-surface) !important; }

.border-m3-primary { border-color: var(--m3-primary) !important; }
.border-m3-secondary { border-color: var(--m3-secondary) !important; }
.border-m3-tertiary { border-color: var(--m3-tertiary) !important; }
.border-m3-outline { border-color: var(--m3-outline) !important; }

.hover:bg-m3-primary:hover { background-color: var(--m3-primary) !important; }
.hover:bg-m3-secondary:hover { background-color: var(--m3-secondary) !important; }
.hover:bg-m3-tertiary:hover { background-color: var(--m3-tertiary) !important; }
.hover:bg-m3-muted:hover { background-color: var(--m3-muted) !important; }
.hover:bg-m3-surface:hover { background-color: var(--m3-surface) !important; }
.hover:text-m3-primary:hover { color: var(--m3-primary) !important; }
.hover:text-m3-secondary:hover { color: var(--m3-secondary) !important; }
.hover:text-black:hover { color: #000 !important; }
.hover:text-white:hover { color: #fff !important; }
.hover:border-m3-primary:hover { border-color: var(--m3-primary) !important; }

.shadow-retro { box-shadow: 4px 4px 0px 0px var(--m3-outline) !important; }
.shadow-retro-sm { box-shadow: 2px 2px 0px 0px var(--m3-outline) !important; }
.drop-shadow-

$$2px_2px_0_var\(--m3-outline\)$$

 { filter: drop-shadow(2px 2px 0 var(--m3-outline)); }

/* Article Typography */
.article-content p { margin-bottom: 1.5rem; line-height: 2; font-size: 1.125rem; font-weight: 500; color: var(--m3-text); text-align: justify; }
.article-content strong, .article-content b { font-weight: 900; color: var(--m3-text); background-color: rgba(255, 234, 0, 0.3); padding: 0 4px; }
.article-content h2 { font-weight: 900; margin-top: 3rem; margin-bottom: 1.5rem; color: var(--m3-text); border-right: 6px solid var(--m3-primary); padding-right: 12px; font-size: 1.875rem; }
.article-content h3 { font-weight: 900; margin-top: 2rem; margin-bottom: 1rem; color: var(--m3-text); border-right: 4px solid var(--m3-secondary); padding-right: 12px; font-size: 1.5rem; }
.article-content ul { list-style-type: none; padding-right: 0; margin-bottom: 1.5rem; }
.article-content ul li { position: relative; padding-right: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; font-size: 1.125rem; color: var(--m3-text); }
.article-content ul li::before { content: '\25A0'; position: absolute; right: 0; color: var(--m3-secondary); font-size: 0.8em; top: 2px; }

/* Modal & Popups */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: all 0.3s ease-in-out; z-index: 999; }
.bottom-modal { position: fixed; left: 0; bottom: -100%; width: 100%; background-color: white; transition: bottom 0.4s ease-in-out; display: flex; justify-content: center; z-index: 1000; }
.modal-content { background-color: var(--m3-card); width: 100%; max-width: 500px; padding: 20px; border-radius: 12px 12px 0 0; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.bottom-modal.show { bottom: 0; }

/* Checkboxes */
.custom-radio input { display: none; }
.radio-mark { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--m3-outline); border-radius: 50%; position: relative; transition: all 0.3s ease; }
.custom-radio input:checked + .radio-mark { border-color: var(--m3-primary); background-color: var(--m3-primary); }
.custom-radio input:checked + .radio-mark::after { content: ""; width: 6px; height: 6px; background-color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; }

/* --- 5. Compiled Tailwind Layout Utilities (Restored to Fix Layout) --- */
.container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 1rem; padding-left: 1rem; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-fit { width: fit-content; }
.h-fit { height: fit-content; }
.w-1/2 { width: 50%; }
.w-1/3 { width: 33.333333%; }
.w-1/4 { width: 25%; }
.w-2/3 { width: 66.666667%; }
.w-3/4 { width: 75%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.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-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-3 { border-width: 3px; }
.border-4 { border-width: 4px; }
.border-t-2 { border-top-width: 2px; }
.border-t-4 { border-top-width: 4px; }
.border-b-2 { border-bottom-width: 2px; }
.border-b-4 { border-bottom-width: 4px; }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

.line-clamp-1 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 1; }
.line-clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; }
.line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; }

/* Responsive MD (768px) */
@media (min-width: 768px) {
.md:flex { display: flex; }
.md:hidden { display: none; }
.md:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md:flex-row { flex-direction: row; }
.md:w-1/2 { width: 50%; }
.md:w-1/3 { width: 33.333333%; }
.md:w-2/3 { width: 66.666667%; }
.md:w-1/4 { width: 25%; }
.md:w-3/4 { width: 75%; }
.md:p-8 { padding: 2rem; }
.md:p-10 { padding: 2.5rem; }
.md:text-base { font-size: 1rem; line-height: 1.5rem; }
.md:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.md:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.md:text-2xl { font-size: 1.5rem; line-height: 2rem; }
.md:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.md:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.md:text-5xl { font-size: 3rem; line-height: 1; }
}

/* Responsive LG (1024px) */
@media (min-width: 1024px) {
.lg:flex { display: flex; }
.lg:hidden { display: none; }
.lg:block { display: block; }
.lg:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg:flex-row { flex-direction: row; }
.lg:w-1/4 { width: 25%; }
.lg:w-3/4 { width: 75%; }
.lg:w-5/12 { width: 41.666667%; }
.lg:w-7/12 { width: 58.333333%; }
.lg:sticky { position: sticky; }
.lg:top-24 { top: 6rem; }
}

/* Max-Responsive max-md, max-lg */
@media not all and (min-width: 768px) {
.max-md:hidden { display: none; }
}
@media not all and (min-width: 1024px) {
.max-lg:hidden { display: none; }
}

