﻿/* =================================
   Arionepc Header CSS
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --green: #72c29a;
    --green-dark: #48a878;
    --green-light: #edf9f2;
    --text: #252a35;
    --text-soft: #68717d;
    --border: #e6ebe8;
    --background: #ffffff;
    --surface: #f6f9f7;
}


body {
    font-family: 'Vazirmatn', 'IRANSans', 'IRANYekan', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


a {
    text-decoration: none;
    color: inherit;
}


pre, code, kbd, samp {
    font-family: 'Consolas', 'Courier New', monospace;
}




/* =================================
   MAIN HEADER
================================= */


.site-header {
    width: 100%;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}




.header-main {
    max-width: 1500px;
    margin: auto;
    height: 90px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    gap: 35px;
}





/* =================================
   LOGO
================================= */


.brand-logo {
    width: 180px;
    display: flex;
    align-items: center;
}



    .brand-logo img {
        width: 200px;
        max-height: 160px;
        object-fit: contain;
    }







/* =================================
   SEARCH
================================= */



/* =================================
   HOME INTRO - ARIONEPC
================================= */

.home-intro {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 24px auto;
    padding: 42px 24px;
    box-sizing: border-box;
    direction: rtl;
    text-align: center;
    background: linear-gradient( 135deg, #ffffff 0%, #f6f9f7 100% );
    border: 1px solid var(--border, #e6ebe8);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(60, 90, 72, 0.08);
}

    .home-intro::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 4px;
        background: var(--green, #72c29a);
        border-radius: 0 0 8px 8px;
    }

    .home-intro h1 {
        margin: 0 0 14px;
        color: var(--text, #252a35);
        font-family: inherit;
        font-size: clamp(1.35rem, 2.5vw, 2rem);
        font-weight: 800;
        line-height: 1.9;
        text-wrap: balance;
    }

        .home-intro h1::selection,
        .home-intro p::selection {
            background: var(--green-light, #edf9f2);
            color: var(--text, #252a35);
        }

    .home-intro p {
        max-width: 760px;
        margin: 0 auto;
        color: var(--text-soft, #68717d);
        font-family: inherit;
        font-size: clamp(0.92rem, 1.3vw, 1.05rem);
        font-weight: 400;
        line-height: 2.2;
    }

@media (max-width: 768px) {
    .home-intro {
        padding: 34px 22px;
        margin: 20px auto;
        border-radius: 16px;
    }

        .home-intro h1 {
            font-size: 1.4rem;
            line-height: 1.9;
        }
}

@media (max-width: 480px) {
    .home-intro {
        width: calc(100% - 24px);
        margin: 16px auto;
        padding: 28px 16px;
        border-radius: 14px;
    }

        .home-intro::before {
            width: 65px;
        }

        .home-intro h1 {
            margin-bottom: 10px;
            font-size: 1.2rem;
            line-height: 1.9;
        }

        .home-intro p {
            font-size: 0.9rem;
            line-height: 2.1;
        }
}



.search-container {
    flex: 1;
    max-width: 800px;
}




.search-box {
    height: 55px;
    background: var(--surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border: 1px solid transparent;
    transition: .25s ease;
}



    .search-box:hover {
        border-color: rgba(114,194,154,.4);
    }




    .search-box:focus-within {
        background: white;
        border-color: var(--green);
        box-shadow: 0 0 0 5px rgba(114,194,154,.12);
    }




.search-icon {
    font-size: 22px;
    margin-left: 12px;
    opacity: .7;
}




.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
}



    .search-box input::placeholder {
        color: #8b949e;
    }







/* =================================
   ACTIONS
================================= */



.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-btn {
    height: 48px;
    padding: 0 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700; /* اضافه شود */

    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
    font-size: 15px;
    font-weight: 700;
    color: #1f2925;
}

    .account-btn span {
        font-size: 20px;
        font-weight: bold;
    }

    .account-btn:hover {
        background: var(--green-light);
        border-color: var(--green);
        color: var(--green-dark);
    }





.cart-btn {
    width: 52px;
    height: 48px;
    background: var(--green-light);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    font-size: 32px;
}




.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--green-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}






/* =================================
   MENU
================================= */



.header-menu {
    border-top: 1px solid #f1f3f2;
}




.menu-inner {
    max-width: 1500px;
    margin: auto;
    padding: 0 35px;
    height: 58px;
    display: flex;
    align-items: center;
}





.categories {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 20px;
    border-left: 1px solid var(--border);
    position: relative;
    transition: .2s;
}



    .categories:hover {
        color: var(--green-dark);
    }




.hamburger {
    font-size: 22px;
}







/* =================================
   NAV LINKS
================================= */


.nav-links {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 25px;
}



    .nav-links a {
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: var(--text-soft);
        position: relative;
    }



        .nav-links a:hover {
            color: var(--green-dark);
        }



        .nav-links a.active {
            color: var(--green-dark);
            font-weight: bold;
        }




            .nav-links a.active::after {
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                left: 0;
                height: 3px;
                background: var(--green);
                border-radius: 5px;
            }







.location {
    margin-right: auto;
    font-size: 13px;
    color: var(--text-soft);
}






/* =================================
   MEGA MENU
================================= */


.mega-menu {
    position: absolute;
    top: 58px;
    right: 0;
    width: 1000px;
    background: white;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    border: 1px solid var(--border);
    display: none;
    overflow: hidden;
}





    .mega-menu.show {
        display: flex;
    }




.mega-sidebar {
    width: 240px;
    background: #f7faf8;
    padding: 12px 0;
}




.mega-item {
    padding: 16px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}




    .mega-item:hover,
    .mega-item.active {
        background: white;
        color: var(--green-dark);
        font-weight: bold;
    }






.mega-content {
    padding: 30px;
    flex: 1;
}




    .mega-content h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }




.mega-columns {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 35px;
}




.mega-column h4 {
    font-size: 15px;
    margin-bottom: 18px;
    color: var(--text);
}



.mega-column a {
    display: block;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 13px;
    transition: .2s;
}



    .mega-column a:hover {
        color: var(--green-dark);
        transform: translateX(-5px);
    }







/* =================================
   MOBILE
================================= */



.mobile-header {
    display: none;
}



.mobile-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    z-index: 3000;
    padding: 25px;
    transition: .3s;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
}



    .mobile-panel.show {
        right: 0;
    }




    .mobile-panel a {
        display: block;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }




@media(max-width:900px) {



    .header-main,
    .header-menu {
        display: none;
    }



    .mobile-header {
        height: 70px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 15px;
        border-bottom: 1px solid var(--border);
    }




        .mobile-header button {
            border: none;
            background: transparent;
            font-size: 25px;
        }





    .mobile-search {
        flex: 1;
        height: 45px;
        background: var(--surface);
        border-radius: 12px;
        padding: 0 12px;
    }



        .mobile-search input {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
        }




    .mobile-header img {
        width: 100px;
    }
}




@media(max-width:600px) {


    .mobile-header img {
        width: 80px;
    }
}


/* =================================
   MOBILE PANEL UPDATE
================================= */


.mobile-panel-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}



    .mobile-panel-header img {
        width: 130px;
        max-height: 50px;
        object-fit: contain;
    }




    .mobile-panel-header button {
        width: 40px;
        height: 40px;
        border: none;
        background: var(--green-light);
        border-radius: 12px;
        font-size: 25px;
        color: var(--green-dark);
        cursor: pointer;
    }




.mobile-user-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}




.mobile-action {
    flex: 1;
    min-height: 75px;
    background: var(--green-light);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}




    .mobile-action span {
        width: 38px;
        height: 38px;
        background: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }





    .mobile-action strong {
        display: block;
        font-size: 13px;
        margin-bottom: 5px;
    }



    .mobile-action small {
        font-size: 11px;
        color: var(--text-soft);
    }



    .mobile-action b {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--green-dark);
        color: white;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }





.mobile-menu-title {
    font-size: 15px;
    font-weight: bold;
    margin: 15px 0;
    color: var(--green-dark);
}





.mobile-panel > a {
    display: flex;
    align-items: center;
    padding: 17px 5px;
    border-bottom: 1px solid #f0f2f1;
    font-size: 14px;
    transition: .2s;
}




    .mobile-panel > a:hover {
        color: var(--green-dark);
        padding-right: 12px;
    }


@media (max-width: 900px) {

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    }
}


.products-slider {
    background: linear-gradient( 135deg, #f2f9f4 0%, #edf9f2 100% );
    border: 1px solid rgba(114, 194, 154, 0.18);
    border-radius: 18px;
    padding: 24px 20px;
    margin: 28px auto;
    box-sizing: border-box;
}

    .products-slider .product-card {
        background: #ffffff;
        border: 1px solid #e6ebe8;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(60, 90, 72, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

        .products-slider .product-card:hover {
            transform: translateY(-4px);
            border-color: #b7e3c9;
            box-shadow: 0 8px 20px rgba(72, 168, 120, 0.12);
        }

@media (max-width: 600px) {
    .products-slider {
        padding: 18px 12px;
        margin: 20px auto;
        border-radius: 14px;
    }
}