/* =================================================
   PEYMAN STORE
   COMPLETE RESPONSIVE CSS
================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');


/* ================= VARIABLES ================= */

:root {

    --neon: #00d6ff;
    --neon-2: #00a8ff;

    --text: #e8faff;
    --muted: rgba(210,235,255,.88);

    --bg:
        linear-gradient(
            180deg,
            #02020b 0%,
            #060515 60%,
            #0a0412 100%
        );

}


/* ================= RESET ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    font-family:
        "Vazirmatn",
        sans-serif;

    background: var(--bg);

    color: var(--text);

    min-width: 0;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}


img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* ================= CONTAINER ================= */

.container {

    width: min(92%, 1200px);

    margin: 0 auto;

}


/* ================= HEADER ================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(5, 2, 25, .94);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(0,214,255,.12);

    box-shadow:
        0 0 25px rgba(0,150,220,.08);

}


.header-inner {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


/* LOGO */

.logo {

    color: var(--neon);

    font-size: 28px;

    font-weight: 800;

    text-shadow:
        0 0 20px rgba(0,214,255,.25);

    white-space: nowrap;

}


/* NAV */

.nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

}


.nav a {

    color: var(--text);

    font-size: 16px;

    font-weight: 700;

    transition: .2s;

}


.nav a:hover {

    color: var(--neon);

    text-shadow:
        0 0 15px rgba(0,214,255,.3);

}


/* HEADER ACTIONS */

.header-actions {

    display: flex;

    align-items: center;

    gap: 9px;

}


/* DESKTOP AUTH */

.desktop-auth {

    display: flex;

    align-items: center;

    gap: 8px;

}


.icon,
.register-btn,
.cart-btn,
.logout-btn {

    min-height: 42px;

    border: 1px solid
        rgba(0,214,255,.12);

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: .2s;

}


.icon {

    padding: 8px 12px;

    color: var(--neon);

    background:
        rgba(0,0,0,.25);

}


.register-btn {

    padding: 8px 14px;

    color: var(--neon);

    background:
        rgba(0,0,0,.25);

    font-weight: 700;

}


.cart-btn {

    position: relative;

    padding: 8px 13px;

    color: var(--neon);

    background:
        rgba(0,0,0,.25);

    font-size: 18px;

}


.cart-count {

    position: absolute;

    top: -8px;

    right: -7px;

    min-width: 22px;

    height: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--neon);

    color: #00161a;

    border-radius: 50%;

    font-size: 12px;

    font-weight: 800;

}


/* USER */

.user-area {

    display: flex;

    align-items: center;

    gap: 8px;

}


.user-name {

    color: var(--neon);

    font-weight: 700;

}


.logout-btn {

    padding: 7px 12px;

    background: #e53935;

    color: white;

}


/* ================= HAMBURGER ================= */

.menu-toggle {

    display: none;

    width: 45px;

    height: 45px;

    padding: 9px;

    border: 1px solid
        rgba(0,214,255,.2);

    border-radius: 10px;

    background:
        rgba(0,0,0,.3);

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

}


.menu-toggle span {

    display: block;

    width: 100%;

    height: 3px;

    border-radius: 5px;

    background: var(--neon);

    transition: .25s;

}


/* تبدیل سه خط به X */

.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(8px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-8px)
        rotate(-45deg);

}


/* ================= HERO ================= */

.hero {

    position: relative;

    min-height: 520px;

    display: flex;

    align-items: center;

    margin: 25px auto;

    width: min(96%, 1250px);

    border-radius: 18px;

    overflow: hidden;

}


.hero-bg {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    transform: scale(1.02);

    z-index: 1;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(3,6,12,.45),
            rgba(5,8,18,.72)
        );

}


.hero-inner {

    position: relative;

    z-index: 3;

    width: 100%;

    display: flex;

    align-items: center;

    gap: 40px;

    padding: 55px 30px;

}


.hero-left {

    flex: 0 0 40%;

    display: flex;

    justify-content: center;

}


.hero-device {

    width: 360px;

    height: 380px;

    border-radius: 18px;

    overflow: hidden;

    background: #111;

    box-shadow:
        0 20px 80px rgba(0,0,0,.6),
        0 0 30px rgba(0,200,255,.18);

}


.hero-device img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


.hero-right {

    flex: 1;

    padding-right: 20px;

}


.hero-title {

    font-size: clamp(30px, 5vw, 56px);

    line-height: 1.3;

    color: #fff;

    font-weight: 800;

    margin-bottom: 15px;

}


.hero-desc {

    max-width: 650px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.9;

    margin-bottom: 25px;

}


.hero-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}


.btn-cta {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 12px 28px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            var(--neon),
            var(--neon-2)
        );

    color: #00161a;

    font-weight: 800;

    box-shadow:
        0 14px 50px rgba(0,170,255,.18);

    transition: .2s;

}


.btn-cta:hover {

    transform: translateY(-3px);

}


.btn-outline {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 11px 24px;

    border-radius: 25px;

    color: #cbeeff;

    border:
        1px solid rgba(0,200,255,.2);

    background:
        rgba(0,0,0,.15);

}


/* ================= CATEGORIES ================= */

.categories {

    margin-top: 60px;

}


.section-title {

    text-align: center;

    color: var(--neon);

    font-size: 28px;

    margin-bottom: 25px;

}


.cat-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(160px, 1fr)
        );

    gap: 18px;

}


.cat-box {

    display: block;

    background:
        rgba(0,0,0,.35);

    border:
        1px solid rgba(0,200,255,.08);

    border-radius: 15px;

    padding: 12px;

    transition: .25s;

}


.cat-box:hover {

    transform: translateY(-6px);

    border-color: var(--neon);

    box-shadow:
        0 0 30px rgba(0,255,255,.14);

}


.cat-box img {

    width: 100%;

    height: 130px;

    object-fit: cover;

    border-radius: 10px;

}


.cat-box span {

    display: block;

    text-align: center;

    margin-top: 10px;

    color: var(--neon);

    font-weight: 700;

}


/* ================= CART ================= */

.cart-sidebar {

    position: fixed;

    top: 0;

    right: 0;

    width: 380px;

    max-width: 100%;

    height: 100vh;

    z-index: 2000;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            #080811,
            #020208
        );

    box-shadow:
        -10px 0 40px rgba(0,0,0,.7);

    transform: translateX(0);

    transition: .3s;

}


.cart-sidebar.hidden {

    transform: translateX(110%);

}


.cart-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.cart-header h3 {

    color: var(--neon);

}


.modal-close {

    border: none;

    background: transparent;

    color: var(--neon);

    font-size: 30px;

    cursor: pointer;

}


.cart-items {

    margin-top: 20px;

    max-height: calc(100vh - 220px);

    overflow-y: auto;

}


.cart-item {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    padding: 10px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.04);

}


.cart-item img {

    width: 65px;

    height: 65px;

    object-fit: cover;

    border-radius: 8px;

}


.cart-info {

    flex: 1;

}


.cart-info h4 {

    color: var(--neon);

    font-size: 14px;

}


.cart-info p {

    margin: 5px 0;

}


.cart-qty {

    display: flex;

    align-items: center;

    gap: 8px;

}


.cart-qty button {

    border: none;

    border-radius: 6px;

    padding: 4px 10px;

    background: rgba(255,255,255,.08);

    color: var(--neon);

    cursor: pointer;

}


.remove-item {

    border: none;

    background: #e53935;

    color: #fff;

    border-radius: 6px;

    padding: 5px 9px;

    cursor: pointer;

}


.cart-footer {

    position: absolute;

    left: 20px;

    right: 20px;

    bottom: 20px;

}


.cart-sum {

    font-weight: 800;

    margin-bottom: 12px;

}


.cart-actions {

    display: flex;

    gap: 10px;

}


.cart-actions > * {

    flex: 1;

}


/* ================= FOOTER ================= */

.footer {

    margin-top: 70px;

    padding: 40px 15px 20px;

    background:
        rgba(0,0,0,.45);

    border-top:
        1px solid rgba(0,200,255,.08);

}


.footer-container {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 30px;

}


.footer-box h3,
.footer-box h4 {

    color: var(--neon);

    margin-bottom: 12px;

}


.footer-box p {

    color: var(--muted);

    line-height: 2;

}


.footer-box ul {

    list-style: none;

}


.footer-box li {

    margin: 8px 0;

}


.footer-box a {

    color: var(--muted);

}


.footer-box a:hover {

    color: var(--neon);

}


.copyright {

    text-align: center;

    margin-top: 30px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.05);

    color:
        rgba(200,230,255,.6);

}


/* =================================================
   TABLET
================================================= */

@media (max-width: 900px) {

    .header-inner {

        min-height: 70px;

    }


    /* منو مخفی */

    .nav {

        position: absolute;

        top: 70px;

        right: 0;

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background:
            rgba(5,2,25,.98);

        border-bottom:
            1px solid rgba(0,214,255,.15);

        box-shadow:
            0 15px 30px rgba(0,0,0,.35);

    }


    .nav.active {

        display: flex;

    }


    .nav a {

        padding: 15px;

        border-radius: 8px;

        text-align: center;

    }


    .nav a:hover {

        background:
            rgba(0,214,255,.08);

    }


    /* نمایش سه خط */

    .menu-toggle {

        display: flex;

    }


    .desktop-auth {

        display: none;

    }


    .user-area {

        display: none;

    }


    .hero-inner {

        flex-direction: column;

        text-align: center;

        padding: 45px 20px;

    }


    .hero-left {

        width: 100%;

        order: 2;

    }


    .hero-right {

        width: 100%;

        padding: 0;

        order: 1;

    }


    .hero-device {

        width: min(360px, 85vw);

        height: 320px;

    }


    .hero-actions {

        justify-content: center;

    }

}


/* =================================================
   MOBILE
================================================= */

@media (max-width: 600px) {

    .container {

        width: 94%;

    }


    .header-inner {

        gap: 8px;

    }


    .logo {

        font-size: 22px;

    }


    .header-actions {

        gap: 6px;

    }


    .cart-btn {

        padding: 7px 10px;

    }


    .menu-toggle {

        width: 42px;

        height: 42px;

    }


    .hero {

        width: 94%;

        min-height: auto;

        margin-top: 18px;

    }


    .hero-inner {

        padding: 35px 14px;

        gap: 25px;

    }


    .hero-title {

        font-size: 28px;

    }


    .hero-desc {

        font-size: 14px;

        line-height: 1.8;

    }


    .hero-device {

        width: min(300px, 82vw);

        height: 270px;

    }


    .hero-actions {

        flex-direction: column;

        width: 100%;

    }


    .hero-actions a {

        width: 100%;

    }


    .cat-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }


    .cat-box {

        padding: 8px;

    }


    .cat-box img {

        height: 105px;

    }


    .cat-box span {

        font-size: 13px;

    }


    .cart-sidebar {

        width: 100%;

        padding: 16px;

    }


    .footer-container {

        grid-template-columns: 1fr;

        text-align: center;

    }

}


/* =================================================
   VERY SMALL MOBILE
================================================= */

@media (max-width: 380px) {

    .logo {

        font-size: 19px;

    }


    .cart-btn {

        font-size: 15px;

    }


    .menu-toggle {

        width: 39px;

        height: 39px;

    }


    .cat-grid {

        grid-template-columns: 1fr 1fr;

    }

}