﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
    /* background: #f7f7fb;*/
    background: #f8fafc;
    color: #172033;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: 90%;
    max-width: 1320px;
}


/* =========================================
   TOP BAR
========================================= */

.top-bar {
    background: #101828;
    color: #fff;
    font-size: 13px;
}

.top-bar-content {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-right,
.top-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .top-right span {
        display: flex;
        align-items: center;
        gap: 7px;
        opacity: .9;
    }

    .top-right i {
        color: #ff7a00;
    }

    .top-left a {
        color: #fff;
        transition: .3s;
    }

        .top-left a:hover {
            color: #ff7a00;
        }


/* =========================================
   HEADER
========================================= */

/* =========================================
   CTA
========================================= */

.cta-section {
    padding: 80px 0;
    background: #f8fafc;
}

.cta-box {
    background: #101828;
    border-radius: 25px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: "";
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 50px solid rgba(255,122,0,.08);
        position: absolute;
        left: -100px;
        top: -100px;
    }

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-label {
    color: #ff9d4d;
    font-size: 13px;
    font-weight: 700;
}

.cta-content h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin: 10px 0;
}

.cta-content p {
    color: #98a2b3;
    margin: 0;
}

.cta-button {
    position: relative;
    z-index: 1;
    background: #ff7a00;
    color: #fff;
    padding: 14px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 700;
    transition: .3s;
}

    .cta-button:hover {
        color: #fff;
        background: #e86d00;
        transform: translateY(-3px);
    }


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #0b1220;
    color: #fff;
    padding-top: 70px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-brand h3 {
    margin: 0;
    font-size: 21px;
}

.footer-description {
    color: #98a2b3;
    line-height: 2;
    font-size: 14px;
    max-width: 380px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #172033;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
    }

        .footer-social a:hover {
            background: #101828;
            transform: translateY(-3px);
        }

.footer-title {
    font-size: 17px;
    margin-bottom: 22px;
    font-weight: 700;
}

.footer-links {
    padding: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #98a2b3;
        font-size: 14px;
        transition: .3s;
    }

        .footer-links a:hover {
            color: #ff7a00;
            padding-right: 5px;
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.8;
}

    .contact-item i {
        color: #ff7a00;
        font-size: 18px;
    }

.footer-bottom {
    margin-top: 55px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #667085;
    font-size: 12px;
}

    .footer-bottom p {
        margin: 0;
    }


/* =========================================
   BACK TO TOP
========================================= */

.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: #ff7a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s;
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: #e86d00;
    }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .navbar-collapse {
        background: #fff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .navbar-nav {
        gap: 2px;
    }

    .header-button {
        margin-top: 10px;
    }

        .header-button .btn-main {
            width: 100%;
            justify-content: center;
        }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px;
    }

    .cta-content h2 {
        font-size: 25px;
    }
}

@media (max-width: 767px) {

    .top-bar {
        display: none;
    }

    .navbar {
        min-height: 75px;
    }

    .brand-name {
        font-size: 17px;
    }

    .logo-img {
        width: 48px;
        height: 48px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-box {
        padding: 30px 25px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .footer {
        padding-top: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.site-container {
    width: 92%;
    max-width: 1350px;
    margin: auto;
}


/* ================= CONTENT ================= */

.page-content {
    min-height: 600px;
    padding: 35px 0 60px;
}


/* ================= FOOTER ================= */

.site-footer {
    margin-top: 40px;
    color: #e9d5ff;
    background: linear-gradient( 135deg, #24102f, #160d21 );
}


.footer-grid {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
}


.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


    .footer-column h3 {
        color: #c084fc;
        font-size: 24px;
        font-weight: 900;
    }


    .footer-column h4 {
        color: #fff;
        font-size: 15px;
        font-weight: 800;
    }


    .footer-column p,
    .footer-column a {
        color: #c4b5c9;
        font-size: 12px;
    }


        .footer-column a:hover {
            color: #4ade80;
        }


/* ================= MOBILE ================= */

@media(max-width:900px) {

    .header-inner {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        margin-right: auto;
    }
}


@media(max-width:600px) {

    .site-container {
        width: 94%;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text small {
        font-size: 8px;
    }

    .header-cart,
    .header-login {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

        .header-cart span,
        .header-login span {
            display: none;
        }

    .header-register {
        display: none;
    }

    .profile-link {
        width: 43px;
        height: 43px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RXG SHOP - HEADER
   هدر اصلی فقط یک بار
========================================================= */

.site-container {
    width: 92%;
    max-width: 1350px;
    margin: auto;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #ece8f4;
    box-shadow: 0 8px 30px rgba(70,30,100,.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: inherit;
}

.logo-icon {
    width: 62px;
    height: 62px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg,#16a34a,#7e22ce);
    box-shadow: 0 8px 22px rgba(126,34,206,.25);
    transition: .25s ease;
}

.site-logo:hover .logo-icon {
    transform: scale(1.04);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .logo-text strong {
        color: #6415a7;
        font-size: 19px;
        font-weight: 950;
    }

    .logo-text small {
        color: #16a34a;
        font-size: 10px;
        font-weight: 800;
        margin-top: 3px;
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 5px;
}

    .main-nav .nav-link {
        position: relative;
        padding: 11px 15px;
        border-radius: 13px;
        color: #514b5d;
        font-size: 13px;
        font-weight: 800;
        transition: .25s ease;
    }

        .main-nav .nav-link i {
            margin-left: 5px;
            color: #7e22ce;
        }

        .main-nav .nav-link:hover {
            color: #6415a7;
            background: #faf6ff;
            transform: translateY(-1px);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.header-cart {
    min-height: 43px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff !important;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 850;
    transition: .25s ease;
}

    .header-cart:hover {
        color: #fff !important;
        transform: translateY(-2px);
    }

.header-login {
    min-height: 43px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6415a7 !important;
    background: #fff;
    border: 1px solid #e2d5ef;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 850;
    transition: .25s ease;
}

    .header-login:hover {
        color: #fff !important;
        background: #7e22ce;
        border-color: #7e22ce;
    }

.header-register {
    min-height: 43px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: linear-gradient(135deg,#581c87,#7e22ce,#9333ea);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 850;
    transition: .25s ease;
}

.profile-link {
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    background: linear-gradient(135deg,#16a34a,#7e22ce);
    box-shadow: 0 7px 20px rgba(126,34,206,.23);
    transition: .25s ease;
}

    .profile-link:hover {
        transform: translateY(-2px) scale(1.05);
    }

    .profile-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================================================
   MOBILE HAMBURGER
   در دسکتاپ کاملاً مخفی است
========================================================= */

.mobile-menu-btn {
    display: none !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg,#16a34a,#7e22ce);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(126,34,206,.20);
    transition: .25s ease;
}

    .mobile-menu-btn:hover {
        transform: translateY(-2px) scale(1.03);
    }

.rxg-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18,12,27,.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: opacity .3s ease, visibility .3s ease;
}

    .rxg-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.rxg-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88%,380px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: #fff;
    z-index: 9999;
    transform: translateX(105%);
    box-shadow: -18px 0 50px rgba(0,0,0,.20);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}

    .rxg-mobile-menu.active {
        transform: translateX(0);
    }

.rxg-menu-header {
    min-height: 92px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at 100% 0,rgba(126,34,206,.12),transparent 45%),linear-gradient(135deg,#f4fff8,#f8f4ff);
    border-bottom: 1px solid #eee8f5;
}

.rxg-menu-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rxg-menu-logo {
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg,#16a34a,#7e22ce);
    box-shadow: 0 7px 18px rgba(126,34,206,.20);
}

    .rxg-menu-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rxg-menu-brand strong {
    display: block;
    color: #33213d;
    font-size: 15px;
    font-weight: 950;
}

.rxg-menu-brand small {
    display: block;
    margin-top: 3px;
    color: #8b8492;
    font-size: 10px;
    font-weight: 600;
}

.rxg-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px;
    color: #5d5665;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transition: .25s ease;
}

    .rxg-menu-close:hover {
        color: #fff;
        background: #7e22ce;
        transform: rotate(90deg);
    }

.rxg-menu-items {
    flex: 1;
    padding: 17px 13px;
}

.rxg-menu-item {
    min-height: 59px;
    margin-bottom: 7px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #302b39;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 850;
    transition: .22s ease;
}

    .rxg-menu-item:hover {
        color: #6415a7;
        background: linear-gradient(90deg,#f9f6ff,#f2fff7);
        transform: translateX(-4px);
    }

.rxg-menu-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 18px;
    transition: .25s ease;
}

.rxg-menu-item:hover .rxg-menu-icon {
    transform: scale(1.06);
}

.rxg-menu-icon.green {
    color: #087f43;
    background: #e9faef;
}

.rxg-menu-icon.purple {
    color: #7135bd;
    background: #f1eaff;
}

.rxg-menu-icon.blue {
    color: #2563eb;
    background: #edf4ff;
}

.rxg-menu-icon.orange {
    color: #d97706;
    background: #fff6e5;
}

.rxg-menu-icon.red {
    color: #dc3545;
    background: #fff0f2;
}

.menu-arrow {
    margin-right: auto;
    color: #aaa4b0;
    font-size: 12px;
    transition: .2s ease;
}

.rxg-menu-item:hover .menu-arrow {
    color: #7e22ce;
    transform: translateX(-4px);
}

.rxg-menu-divider {
    height: 1px;
    margin: 15px 8px;
    background: linear-gradient(90deg,transparent,#e9e3ef,transparent);
}

.rxg-menu-footer {
    padding: 19px;
    text-align: center;
    background: linear-gradient(135deg,#f5fff8,#f7f2ff);
    border-top: 1px solid #eee8f5;
}

    .rxg-menu-footer span {
        display: block;
        color: #7e22ce;
        font-size: 14px;
        font-weight: 950;
    }

    .rxg-menu-footer small {
        display: block;
        margin-top: 4px;
        color: #8d8794;
        font-size: 10px;
    }


/* =========================================================
   HEADER RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .rxg-menu-overlay {
        display: block;
    }

    .rxg-mobile-menu {
        display: flex;
    }

    .header-inner {
        min-height: 72px;
    }

    .header-actions {
        margin-right: auto;
    }
}

@media (max-width: 600px) {

    .site-container {
        width: 94%;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text small {
        font-size: 8px;
    }

    .header-cart,
    .header-login {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

        .header-cart span,
        .header-login span,
        .header-register {
            display: none;
        }

    .profile-link {
        width: 43px;
        height: 43px;
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;
    }

    .rxg-mobile-menu {
        width: 91%;
        max-width: 370px;
    }
}

@media (max-width: 380px) {

    .logo-text {
        display: none;
    }

    .mobile-menu-btn,
    .header-cart,
    .header-login,
    .profile-link {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 901px) {

    .mobile-menu-btn {
        display: none !important;
    }

    .rxg-menu-overlay,
    .rxg-mobile-menu {
        display: none !important;
    }
}

.rxg-mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.rxg-mobile-menu::-webkit-scrollbar-track {
    background: #f5f2f8;
}

.rxg-mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(#16a34a,#7e22ce);
    border-radius: 10px;
}
