/* --- فونت وزیر (محلی) --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/vazir/Vazir-Medium.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/vazir/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-ivory: #FAF8F5;
    --deep-plum: #1A0F21;
    --rose-gold: #BC8A5F;
    --rose-gold-light: #E6CCB2;
    --sage-green: #587B5F;
    --blush: #F5E6E1;
    --white-glass: rgba(250, 248, 245, 0.75);
    --blur-val: 20px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-ivory);
    color: var(--deep-plum);
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.6;
}

/* --- هدر شیشه‌ای و لوکس فرانت --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-bottom: 1px solid rgba(26, 15, 33, 0.04);
    transition: padding 0.4s var(--transition-smooth), background 0.4s var(--transition-smooth), border 0.4s var(--transition-smooth);
    padding: 5px 0;
}

.header-scrolled {
    padding: 0px 0;
    background: rgba(26, 15, 33, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-scrolled .nav-link,
.header-scrolled .logo,
.header-scrolled .icon-btn {
    color: var(--bg-ivory);
}

.header-scrolled .menu-toggle span {
    background-color: var(--bg-ivory);
}

.header-scrolled .nav-link::after {
    background-color: var(--rose-gold);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--deep-plum);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--deep-plum);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s var(--transition-smooth);
    opacity: 0.85;
}

.nav-link:hover, .nav-link.active-link {
    opacity: 1;
    color: var(--rose-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--deep-plum);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active-link::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--deep-plum);
    position: relative;
    transition: transform 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--rose-gold);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -8px;
    background: var(--rose-gold);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(188, 138, 95, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--deep-plum);
    transition: all 0.3s var(--transition-smooth);
}

/* --- فوتر پریمیوم و ساختاریافته --- */
.main-footer {
    background-color: var(--deep-plum);
    color: var(--bg-ivory);
    padding: 100px 24px 40px 24px;
    margin-top: 120px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blush), var(--rose-gold), var(--blush));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-about .brand {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--rose-gold);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.75;
}

.footer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rose-gold-light);
    margin-bottom: 28px;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--bg-ivory);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--rose-gold);
    opacity: 1;
    transform: translateX(-5px);
}

.newsletter-form {
    display: flex;
    position: relative;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: 0 28px;
    background: var(--rose-gold);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 700;
    border-radius: 26px;
    transition: background 0.3s var(--transition-smooth);
}

.newsletter-form button:hover {
    background: #a3734c;
}

.footer-bottom {
    max-width: 1400px;
    margin: 80px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.5;
}

/* انیمیشن لود نرم کلاس Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--transition-smooth), transform 1s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 15, 33, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.5s var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-menu.active { right: 0; }
    .nav-link { color: var(--bg-ivory); font-size: 17px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}