/* ===================================
   1200px
=================================== */

@media (max-width:1200px){

    .hero h1{
        font-size:52px;
    }

    .hero-image{
        height:500px;
    }

    .features .container{
        grid-template-columns:repeat(3,1fr);
        gap:25px;
    }

}

/* ===================================
   992px - تبلت و موبایل
=================================== */

@media (max-width:992px){

    .section{
        padding:70px 0;
    }

    .hero-content{

        grid-template-columns:1fr;

        gap:40px;
    }

    .hero-text{
        order:2;
    }

    .hero-image{
        order:1;
        height:450px;
    }

    .hero h1{
        font-size:44px;
    }

    /* ===== FEATURES - اسلایدر بدون اسکرول‌بار ===== */
    .features .container{
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .features .container::-webkit-scrollbar {
        display: none;
    }

    .feature-item {
        flex: 0 0 280px;
        scroll-snap-align: start;
        padding: 15px 20px;
        background: #f8f8f8;
        border-radius: 16px;
    }

    /* ===== CATEGORY - اسلایدر بدون اسکرول‌بار ===== */
    .category-grid{
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    /* ===== SERVICES - اسلایدر بدون اسکرول‌بار ===== */
    .services-grid{
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 320px;
        scroll-snap-align: start;
        min-width: 280px;
    }

    /* ===== PORTFOLIO - اسلایدر بدون اسکرول‌بار ===== */
    .portfolio-grid{
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }

    .portfolio-filter {
        flex-wrap: wrap;
        gap: 8px;
    }

    .portfolio-filter button {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* ===== CONTACT - اسلایدر با یک کارت ===== */
    .contact-grid{
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .contact-grid::-webkit-scrollbar {
        display: none;
    }

    .contact-card-link {
        flex: 0 0 280px;
        scroll-snap-align: start;
        min-width: 250px;
    }

    .contact-card {
        height: 100%;
    }

    /* ===== FOOTER ساده در موبایل ===== */
    .footer-grid{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

}

/* ===================================
   768px
=================================== */

@media (max-width:768px){

    .topbar{
        display:none;
    }

    .header .container{
        height:70px;
    }

    .mobile-menu-btn{
        display:block;
    }

    .navbar{

        position:absolute;

        top:70px;
        right:0;

        width:100%;

        background:white;

        box-shadow:
        0 10px 25px rgba(0,0,0,.08);

        display:none;
    }

    .navbar.active{
        display:block;
    }

    .navbar ul{

        flex-direction:column;

        gap:0;
    }

    .navbar li{

        width:100%;

        border-bottom:
        1px solid #eee;
    }

    .navbar a{

        display:block;

        padding:16px 20px;
    }

    .hero{

        padding:40px 0;
    }

    .hero h1{

        font-size:36px;
        line-height:1.5;
    }

    .hero p{
        font-size:14px;
    }

    .hero-icons{

        justify-content:center;
    }

    .section-title h2{

        font-size:28px;
    }

    .portfolio-filter{

        flex-wrap:wrap;
        justify-content: center;
    }

    /* ===== FEATURES - یک کارت ===== */
    .feature-item {
        flex: 0 0 260px;
        padding: 12px 16px;
    }

    .category-card {
        flex: 0 0 260px;
    }

    .service-card {
        flex: 0 0 290px;
        min-width: 260px;
    }

    .portfolio-item {
        flex: 0 0 280px;
    }

    /* ===== CONTACT - یک کارت ===== */
    .contact-card-link {
        flex: 0 0 260px;
        min-width: 230px;
    }

    /* ===== FOOTER - فقط کپی‌رایت در موبایل ===== */
    .footer-grid {
        display: none;
    }

    .footer .copyright {
        margin-top: 0;
        border-top: none;
        padding: 30px 0;
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .footer {
        padding-top: 0;
    }

    .wholesale-card {
        width: 90%;
        padding: 20px 24px;
    }
    
    .wholesale-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .wholesale-text {
        text-align: center;
    }
    
    .btn-wholesale {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

}

/* ===================================
   576px
=================================== */

@media (max-width:576px){

    .container{

        padding-left:15px;
        padding-right:15px;
    }

    .hero h1{

        font-size:30px;
    }

    .hero-image{

        height:300px;
    }

    .hero-icons{

        gap:20px;
    }

    .hero-icon{

        width:45%;
    }

    /* ===== یک کارت در هر اسلایدر ===== */
    .feature-item {
        flex: 0 0 240px;
        padding: 12px 14px;
    }

    .category-card {
        flex: 0 0 240px;
    }

    .service-card {
        flex: 0 0 270px;
        min-width: 240px;
    }

    .portfolio-item {
        flex: 0 0 250px;
    }

    /* ===== CONTACT - یک کارت ===== */
    .contact-card-link {
        flex: 0 0 250px;
        min-width: 220px;
    }

    .contact-card{

        padding:25px;
    }

    .service-content{

        padding:20px;
    }

    .section{

        padding:60px 0;
    }

    .section-title{

        margin-bottom:35px;
    }

    .section-title h2{

        font-size:24px;
    }

    .btn-primary{

        width:100%;
        text-align: center;
        justify-content: center;
    }

    .portfolio-filter button {
        font-size: 13px;
        padding: 6px 14px;
    }

    /* ===== FOOTER - فقط کپی‌رایت ===== */
    .footer .copyright {
        font-size: 0.75rem;
        padding: 25px 0;
    }

    .wholesale-card {
        width: 100%;
        padding: 16px 18px;
    }

    /* ===== اسکرول‌اسنپ برای همه ===== */
    .feature-item,
    .category-card,
    .service-card,
    .portfolio-item,
    .contact-card-link {
        scroll-snap-align: start;
    }

}