@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: "PT Sans Narrow", sans-serif;
    color: #f0f0f0;
    font-size: 14px;
    scroll-behavior: smooth;
}
/* هدر دسکتاپ */
/* هدر دسکتاپ */
.header_section {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 1);
    z-index: 9999;
    padding: 20px 50px;
    transition: all 0.4s ease;
}

    .header_section.scrolled {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.5);
        padding: 12px 50px;
    }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .header-top .phone {
        font-size: 15px;
        font-weight: bold;
        letter-spacing: 2px;
        color: #ffc851;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s;
    }
@media (max-width: 768px) {
    .header_section {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 6px 8px; /* جمع‌تر */
        background: hsla(240, 1%, 17%, .85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #333;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        overflow-x: auto; /* اسکرول برداشته شد */
    }

    .header-top .phone {
        font-size: 11px;
        letter-spacing: 0;
        flex-shrink: 0; /* نره زیر */
    }

    .header-top .nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
        flex-shrink: 1; /* اجازه بده کوچک بشه ولی تو خط بمونه */
    }

    .header-top .nav li a {
        font-size: 11px;
        padding: 4px 6px;
        white-space: nowrap;
    }

    .header-top .cart {
        flex-shrink: 0; /* بمونه تو خط */
    }
    .header-top .cart img {
        width: 18px; /* کوچیک‌تر کردن آیکون سبد */
        height: auto;
    }

    .header-top .cart span {
        font-size: 11px;
    }

    .header_section.scrolled {
        background: hsla(240, 1%, 17%, .85);
        padding: 6px 8px;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .desktop-menu, .cart, .phone {
        display: none; /* مخفی شدن هدر اصلی */
    }

    .navbar {
        display: block; /* نمایش ناوبار پایین */
    }
}

.cart{
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.cart img{
    max-width: 30px;
    margin-left: 10px;
}
.cart:hover img{
    transform: scale(1.1);
}
.cart::after{
    content: '0';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffc851;
    color: #121618;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== منو حرفه‌ای ===== */
.nav{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 0 0;
    gap: 25px;
}
.nav li{
    list-style: none;
}
.nav li a{
    text-decoration: none;
    color: #f0f0f0;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}
.nav li a:hover{
    color: #ffc851;
}
.nav li a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 50%;
    background: #ffc851;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav li a:hover::after{
    width: 70%;
}
.nav li a.active{
    color: #ffc851;
}
.nav li a.active::after{
    width: 70%;
}

/* ===== Hero لوکس حرفه‌ای بدون glow روی عکس ===== */
.hero{
    min-height: 100vh;
    background: url('https://i.postimg.cc/FzmBcTj9/slide-1.jpg') center/cover no-repeat;
    padding: 120px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
    overflow: hidden;
}
.hero::before{
    content: '';
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.35);
    z-index:1;
}

.img-box{
    position: relative;
    z-index:2;
    transition: transform 0.6s ease;
}
.img-box img{
    max-width: 600px;
    border-radius: 20px;
   
    transition: transform .6s ease, box-shadow .6s ease;
}
.img-box img:hover{
    transform: scale(1.05);
   
}

.content-box{
    max-width: 700px;
    margin-right: 50px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
    z-index:2;
    transition: transform 0.5s ease;
}
.content-box h1{
    font-size: 70px;
    letter-spacing: 10px;
    font-weight: 100;
    color: #ffc851;
}
.content-box h2{
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 4px;
    border-bottom: 2px solid #ffc851;
    padding-bottom: 10px;
    margin-bottom: 25px;
}
.content-box p{
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #fff;
}
    .content-box .btn {
        display: inline-block; /* دکمه فقط به اندازه متن باشه */
        width: auto; /* عرض خودکار باشه */
        padding: 10px 15px;
        background: #ffc851;
        color: #121618;
        font-weight: bold;
        border: 2px solid #ffc851;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
    }

.content-box .btn:hover{
    background: transparent;
    color: #ffc851;
    box-shadow: 0 0 15px #ffc851;
    transform: translateY(-3px) scale(1.02);
}

/* ===== فوتر مشکی حرفه‌ای ===== */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 0; /* اصلاح شد */
    border-top: 2px solid #ffc851;
}

footer img{
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px #ffc851);
    transition: transform 0.3s;
}
footer img:hover{
    transform: scale(1.05);
}
footer p{
    font-size: 15px;
    opacity: 0.85;
    margin: 8px 0;
}
footer a{
    color: #ffc851;
    text-decoration: none;
    transition: all 0.3s;
}
footer a:hover{
    color: #fff;
    text-shadow: 0 0 6px #ffc851;
}

/* ===== ریسپانسیو ===== */
@media screen and (max-width: 1024px){
    .hero{
        flex-direction: column;
        justify-content: center;
        padding: 100px 40px;
    }
    .img-box{
        margin-bottom: 30px;
    }
    .content-box{
        margin-right: 0;
        text-align: center;
    }
}

@media screen and (max-width: 768px){
    header{
        padding: 15px 25px;
    }
    .nav{
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav li{
        margin: 10px;
    }
    .hero{
        padding: 60px 20px;
    }
}

@media screen and (max-width: 550px){
    .img-box img{
        max-width: 280px;
    }
    .content-box h1{
        font-size: 40px;
    }
    .content-box h2{
        font-size: 22px;
    }
}
