/* --- فونت یکان بخ (لوکال) --- */
@font-face {
  font-family: 'YekanBakh';
  src: url('/assets/fonts/yekan/YekanBakh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- متغیرهای رنگ (تم سیاه و سفید) --- */
:root {
    --gold: #1A1A1A;
    --gold-light: #333333;
    --gold-dark: #000000;
    --gold-glow: rgba(0, 0, 0, 0.15);

    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --bg-third: #EFEFEF;

    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-light: #888888;
    --text-muted: #AAAAAA;

    --border-color: #E8E8E8;
    --border-light: #F0F0F0;

    --white: #FFFFFF;
    --black: #000000;
    --danger: #1A1A1A;
    --success: #1A1A1A;

    --font-main: 'YekanBakh', 'Tahoma', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-gold: 0 4px 20px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- ریست و پایه --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: var(--font-main);
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* --- اسکرول‌بار --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--black);
    border-radius: 3px;
}

/* ============================================
   لودر صفحه
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 6px;
    margin-bottom: 25px;
    text-transform: uppercase;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 35px;
    height: 35px;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   هدر
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: var(--transition);
}

.site-header.scrolled {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* لوگو */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 42px;
    width: auto;
}

.header-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-logo .logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
    margin-top: -2px;
}

/* نویگیشن */
.header-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--black);
    transition: var(--transition);
}

.header-nav a:hover {
    color: var(--black);
}

.header-nav a:hover::after {
    width: 100%;
}

/* آیکون‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    position: relative;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.header-action-btn:hover {
    color: var(--black);
    background: var(--bg-secondary);
}

.header-action-btn .badge {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--black);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG آیکون */
.icon {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* همبرگر موبایل */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--black);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--black);
}

/* منوی موبایل — آف‌کانواس با transform
   با این روش، منوی بسته همیشه داخل right:0 می‌ماند و فقط با transform
   به‌صورت بصری بیرون می‌رود؛ پس هیچ‌وقت عرض صفحه را زیاد و سرریز افقی ایجاد نمی‌کند. */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--black);
    padding-right: 10px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ============================================
   هیرو سکشن
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-secondary);
    margin-top: -80px;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.85) 85%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: calc(100vh - 80px);
    padding-bottom: 80px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.4);
    padding: 8px 28px;
    margin-bottom: 22px;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--black);
    display: block;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 35px;
    max-width: 550px;
    line-height: 2;
    animation: fadeInDown 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* --- دکمه‌ها --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 38px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-gold {
    background: var(--black);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--text-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 22px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 15px 48px;
    font-size: 0.95rem;
}

/* ============================================
   سکشن‌ها
   ============================================ */
.section {
    padding: 90px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-line {
    width: 50px;
    height: 2px;
    background: var(--black);
    margin: 0 auto;
}

/* ============================================
   کارت محصول
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--black);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 12px;
    z-index: 2;
}

.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    padding: 40px 15px 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card:hover .product-card-actions {
    transform: translateY(0);
}

.product-card-info {
    padding: 18px;
}

.product-card-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: var(--transition);
}

.product-card:hover .product-card-name {
    color: var(--black);
}

.product-card-category {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-price .current-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}

.product-card-price .old-price {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ============================================
   ویژگی‌ها
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 35px 22px;
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--black);
    stroke-width: 1.5;
    fill: none;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* ============================================
   فوتر
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 55px;
}

.footer-about .footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer-about p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--black);
    color: var(--black);
    background: rgba(0, 0, 0, 0.06);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 2px;
    background: var(--black);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.87rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--black);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.87rem;
    margin-bottom: 14px;
    direction: ltr;
    text-align: right;
    justify-content: flex-end;
}

.footer-contact li svg {
    width: 17px;
    height: 17px;
    stroke: var(--black);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 22px 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom span {
    color: var(--black);
}

/* ============================================
   حالت خالی
   ============================================ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    color: var(--text-muted);
    opacity: 0.4;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .hero-title span {
        font-size: 1.8rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .header-inner {
        height: 60px;
        padding: 0 15px;
    }
    .hero-section {
        margin-top: -60px;
        padding-top: 60px;
    }
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-title span {
        font-size: 1.3rem;
    }
    .hero-subtitle {
        font-size: 0.92rem;
    }
    .hero-content {
        padding-bottom: 50px;
    }
    .section {
        padding: 55px 0;
    }
    .container {
        padding: 0 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-title span {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
    }
}