/* =====================================================
   هدر شیشه‌ای تیره (دقیقاً از سایت پارس پترا)
   ===================================================== */
.header-navbar {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    max-width: 1450px !important;
    height: 72px !important;
    padding: 0 24px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    display: block !important;
    background: rgba(20, 20, 22, 0.45) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08) !important;
    z-index: 999999 !important;
    transition: top .4s ease, width .4s ease, height .4s ease, background .4s ease, box-shadow .4s ease !important;
}
.header-navbar .header-container {
    height: 100% !important; 
    width: 100% !important;
    max-width: none !important; 
    margin: 0 !important; 
    padding: 0 !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    gap: 12px;
}
.header-navbar .logo { 
    display: flex !important; 
    align-items: center !important; 
    text-decoration: none !important; 
    margin: 0 !important;
    flex-shrink: 0;
}
.header-navbar .logo img { 
    max-height: 90px !important; 
    width: auto !important; 
    filter: brightness(0) invert(1) !important;
    transition: transform .3s ease, opacity .3s ease, max-height .3s ease !important; 
}
.header-navbar .logo:hover img { 
    transform: scale(1.03) !important; 
    opacity: .85 !important; 
}
.header-navbar #navbarSupportedContent {
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important; 
    flex: 1 1 auto !important;
    margin: 0 20px !important;
}
.header-navbar #header_menu {
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 6px !important; 
    margin: 0 auto !important; 
    padding: 0 !important; 
    list-style: none !important;
}
.header-navbar #header_menu li { position: relative !important; margin: 0 !important; padding: 0 !important; }
.header-navbar #header_menu > li > a,
.header-navbar .navbar-nav > li > a {
    display: flex !important; align-items: center !important; height: 42px !important; padding: 0 14px !important;
    color: rgba(255,255,255,.9) !important; background: transparent !important; border-radius: 12px !important;
    font-size: 13.5px !important; font-weight: 500 !important; text-decoration: none !important;
    transition: background .25s ease, color .25s ease, transform .25s ease !important;
    white-space: nowrap;
}
.header-navbar #header_menu > li > a:hover,
.header-navbar .navbar-nav > li > a:hover { 
    color: #fff !important; background: rgba(255,255,255,.15) !important; transform: translateY(-1px) !important; 
}
.header-navbar .custom-lang-switcher { 
    position: relative !important;
    display: flex !important; 
    align-items: center !important; 
    flex-shrink: 0;
}
.header-navbar .lang-btn {
    height: 40px !important; padding: 0 14px !important; display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: 7px !important; color: #fff !important; background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: 13px !important; font-size: 12.5px !important;
    cursor: pointer !important; text-decoration: none !important; transition: all 0.3s ease !important; font-family: inherit;
}
.header-navbar .lang-btn:hover { background: rgba(255, 255, 255, 0.2) !important; }
.header-navbar .custom-lang-switcher .lang-dropdown {
    position: absolute !important; top: calc(100% + 8px) !important; left: 0 !important; right: auto !important;
    min-width: 130px !important; background: rgba(18, 18, 20, 0.95) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important; padding: 6px !important; list-style: none !important; 
    display: none; flex-direction: column !important; gap: 2px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 9999;
}
.header-navbar .custom-lang-switcher:hover .lang-dropdown,
.header-navbar .custom-lang-switcher:focus-within .lang-dropdown { display: flex !important; }
.header-navbar .lang-dropdown a {
    display: flex !important; align-items: center !important; gap: 8px !important; padding: 8px 12px !important;
    color: rgba(255,255,255,0.85) !important; font-size: 12px !important; text-decoration: none !important; border-radius: 8px !important;
}
.header-navbar .lang-dropdown a:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.header-navbar.is-scrolled {
    top: 9px !important; height: 64px !important; width: calc(100% - 80px) !important;
    background: rgba(16,16,18,.9) !important; border-color: rgba(255,255,255,.12) !important;
    backdrop-filter: blur(24px) saturate(150%) !important; -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    box-shadow: 0 12px 45px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.header-navbar.is-scrolled .logo img { max-height: 45px !important; }
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .25s;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.22); }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100%;
    background: rgba(16,16,18,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000000;
    padding: 90px 22px 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu a {
    display: block;
    padding: 14px 18px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: background .25s;
}
.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.mobile-lang {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-lang-title {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-bottom: 12px;
    padding: 0 6px;
}
.mobile-lang-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14.5px;
    border-radius: 12px;
    transition: background .25s;
}
.mobile-lang-list a:hover {
    background: rgba(255,255,255,0.12);
}
.mobile-lang-list a.active {
    background: rgba(184, 149, 90, 0.25);
    color: #f4e4bc;
}

/* =====================================================
   بدنه و محتوای ویژوالایزر
   ===================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Vazirmatn', sans-serif; 
    background-color: #ffffff !important; 
    color: #222222 !important; 
    direction: rtl; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.visualizer-page {
    flex: 1;
    width: 100%;
    padding: 130px 0 60px;
    background: #ffffff;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}
.page-intro {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 700px;
    padding: 0 16px;
}
.hero-emblem { 
    width: 65px; height: 65px; margin: 0 auto 18px; 
    background: linear-gradient(135deg, #b8955a, #d4b87a); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 10px 25px rgba(184, 149, 90, 0.3); overflow: hidden; 
}
.hero-emblem img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { 
    display: inline-block; 
    background: rgba(184, 149, 90, 0.1); 
    color: #b8955a; 
    padding: 6px 20px; 
    border-radius: 30px; 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 14px; 
    border: 1px solid rgba(184,149,90,0.3); 
}
.page-intro h1 { 
    font-size: clamp(26px, 5vw, 40px); 
    font-weight: 700; 
    margin-bottom: 10px; 
    color: #111111; 
    line-height: 1.3;
}
.page-intro h1 span { color: #b8955a; }
.page-intro p {
    color: #666;
    font-size: 1.05rem;
}
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.card h2 {
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.room-card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.room-card:hover {
    transform: translateY(-6px);
    border-color: #b8955a;
    box-shadow: 0 14px 28px rgba(184, 149, 90, 0.15);
}
.room-card.active {
    border-color: #b8955a;
    box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.25);
}
.room-thumb {
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;
}
.room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.room-card:hover .room-thumb img {
    transform: scale(1.06);
}
.room-card span {
    display: block;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #222;
}
.preview-wrapper {
    position: relative;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}
#previewCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}
.preview-loading.show { display: block; }
.preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 11px 24px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: #b8955a;
    color: #fff;
}
.btn-primary:hover {
    background: #a07d45;
    transform: translateY(-1px);
}
.btn-outline {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}
.btn-outline:hover {
    background: #b8955a;
    border-color: #b8955a;
    color: #fff;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.filter-btn {
    padding: 7px 18px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    color: #444;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: #b8955a;
    color: #b8955a;
}
.filter-btn.active {
    background: #b8955a;
    color: #fff;
    border-color: #b8955a;
}
.stones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.stone-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}
.stone-card:hover {
    border-color: #b8955a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 149, 90, 0.12);
}
.stone-card.active {
    border-color: #b8955a;
    box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.3);
}
.stone-thumb {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}
.stone-info {
    padding: 10px 8px;
    text-align: center;
}
.stone-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}
.stone-type {
    font-size: 0.75rem;
    color: #999;
}
.order-card {
    text-align: center;
    background: linear-gradient(135deg, #faf8f5, #f5f0e8);
    border-color: rgba(184, 149, 90, 0.2);
}
.order-box h3 {
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 6px;
}
.order-box p {
    color: #666;
    margin-bottom: 16px;
}

/* فوتر */
footer.text-center.bg-gray {
    background-color: #f8f9fa;
    color: #666666;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
}
footer .container { max-width: 1140px; margin: 0 auto; }
footer .logo.mb-10 { display: inline-block; margin-bottom: 15px; }
footer .logo img { max-height: 45px; width: auto; filter: brightness(0.1); }
footer .social { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
footer .social .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: #ffffff;
    color: #333333; border-radius: 50%; text-decoration: none; transition: 0.3s;
    border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
footer .social .icon:hover { background: #b8955a; color: #fff; border-color: #b8955a; transform: translateY(-3px); }
footer p { font-size: 13.5px; margin: 0; color: #777777; }

@media (max-width: 900px) {
    .header-navbar { width: calc(100% - 32px) !important; padding: 0 16px !important; }
    .header-navbar #navbarSupportedContent { display: none !important; }
    .header-navbar .custom-lang-switcher { display: none !important; }
    .mobile-toggle { display: flex !important; }
}
@media (max-width: 640px) {
    .header-navbar {
        top: 10px !important;
        height: 60px !important;
        width: calc(100% - 20px) !important;
        border-radius: 16px !important;
        padding: 0 12px !important;
    }
    .header-navbar .logo img { max-height: 52px !important; }
    .header-navbar.is-scrolled {
        top: 6px !important;
        height: 54px !important;
        width: calc(100% - 16px) !important;
    }
    .header-navbar.is-scrolled .logo img { max-height: 38px !important; }
    .visualizer-page { padding: 100px 0 50px; }
    .card { padding: 20px 16px; }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .stones-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .rooms-grid { grid-template-columns: 1fr; }
}
