/*==============================
  GENERAL
==============================*/

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

body{

    font-family:Arial,sans-serif;

    background:#fffafc;

    color:#333;

}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

button{
    cursor:pointer;
    transition:.3s;
}


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

header{

    background:#fff;

    padding:24px 60px;

    display:flex;

    align-items:center;

    position:sticky;

    top:0;

    z-index:100;

    box-shadow:0 2px 15px rgba(0,0,0,.08);


}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;

    -webkit-tap-highlight-color: transparent;
}

.logo img{
    height:70px;
    width:auto;
    object-fit:contain;
    transition:transform .25s ease;

    -webkit-user-drag:none;
    user-select:none;
}

.logo:hover img{

    transform:scale(1.03);

}

nav{
    display:flex;
    gap:25px;
    margin-right:auto;
}

.header-nav{

    display:flex;

    align-items:center;

    gap:30px;

}

.mobile-menu-header{
    display:none;
}

.mobile-nav-icon{
    display:none;
}

nav a{

    position:relative;

    font-weight:700;

    color:#3b3537;

    padding:8px 2px;

    transition:.3s;

}

nav a::after{

    content:"";

    position:absolute;

    bottom:-4px;

    right:0;

    width:0;

    height:2px;

    background:#ff4f87;

    transition:.3s;

}

nav a:hover{

    color:#ff4f87;

}

nav a:hover::after{

    width:100%;

}

/*====================================
        ACTIVE NAV LINK
=====================================*/

.active-nav{

    color:#ff4f87;

}

.active-nav::after{

    width:100%;

}


/*==============================
  TITLES
==============================*/

.products-title{
    text-align:center;
    margin:60px 0 30px;
    font-size:36px;
    color:#333;
}


/*==============================
  MAIN BUTTON
==============================*/

.main-btn{
    background:#ff4f87;
    color:white;
    border:none;
    padding:15px 35px;
    border-radius:10px;
    font-size:18px;
}

.main-btn:hover{
    background:#ff2d70;
}

/*====================================
            CART ICON
=====================================*/

.cart-icon{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:20px;
    font-weight:bold;
}

.cart-count{
    background:#ff4f87;
    color:white;
    min-width:24px;
    height:24px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;
    font-size:14px;
}


/*================ MESSAGES ================*/

.messages{

    width:90%;
    max-width:1200px;

    margin:30px auto;

}

.message{

    padding:18px 25px;

    border-radius:12px;

    margin-bottom:15px;

    font-weight:bold;

    text-align:center;

    animation:fadeIn .3s ease;

}

.message.success{

    background:#d4edda;

    color:#155724;

    border:1px solid #c3e6cb;

}

.message.error{

    background:#f8d7da;

    color:#721c24;

    border:1px solid #f5c6cb;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(-10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/*====================================
            TOAST
=====================================*/


.toast{

    position:fixed;

    top:25px;
    left:25px;

    width:360px;

    background:white;

    border-radius:18px;

    padding:18px;

    display:flex;

    align-items:center;

    gap:15px;

    box-shadow:0 12px 30px rgba(0,0,0,.18);

    border-right:6px solid #2ecc71;

    opacity:0;

    visibility:hidden;

    transform:translateY(-20px);

    transition:.35s;

    z-index:9999;

}

.toast.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.toast.show .toast-image{

    transform:scale(1);

}

.toast-image{

    width:70px;

    height:70px;

    border-radius:12px;

    object-fit:cover;

    flex-shrink:0;

    transform:scale(.9);

    transition:.35s;

}

.toast-content{

    flex:1;

}

.toast-content h4{

    margin:0;

    color:#2ecc71;

    font-size:20px;

}

.toast-product-name{

    margin:8px 0 5px;

    font-weight:bold;

    color:#333;

    font-size:17px;

}

.toast-content span{

    color:#666;

    font-size:15px;

}

/*====================================
        HAMBURGER BUTTON
=====================================*/

.menu-toggle{

    display:none;

    background:none;

    border:none;

    font-size:33px;

    color:#ff4f87;

    cursor:pointer;

}

/*====================================
        RESPONSIVE - BASE
=====================================*/

.mobile-cart-icon{

    display:none;

}

.mobile-menu-footer{

    display:none;

}

@media (max-width: 992px){

    header{

        padding:18px 30px;

    }

    nav{

        gap:18px;

    }

    .logo{

    }

}


@media (max-width:767px){

    header{

        display:flex;

        justify-content:center;

        align-items:center;

        position:sticky;

        top:0;

        min-height:72px;

        padding:22px 20px;

    }

    .menu-toggle{

        display:block;

        position:absolute;

        right:20px;

        top:50%;

        transform:translateY(-50%);

        background:none;

        border:none;

        color:#ff4f87;

        font-size:34px;

        cursor:pointer;

        padding:0;

    }

    .logo{

        position:absolute;

        right:50%;

        transform:translateX(50%);

        margin:0;
    }

    .logo img{

        height:58px;
        width:auto;
        max-height:none;

    }

    

    #navbar{

        position:fixed;

        top:0;

        right:-260px;

        width:260px;

        height:100dvh;

        max-height:100dvh;

        overflow-x:hidden;

        overflow-y:auto;

        -webkit-overflow-scrolling:touch;

        touch-action:pan-y;

        background:#fff;

        display:flex;

        flex-direction:column;

        align-items:flex-start;

        gap:22px;

        padding:90px 30px 30px;

        box-shadow:-8px 0 25px rgba(0,0,0,.12);

        transition:right .3s ease;

        z-index:1001;

    }

    #navbar.show{

        right:0;

    }

    #navbar{
        pointer-events:auto;
    }

    #menu-overlay{

        position:fixed;

        top:0;
        left:0;

        width:100%;
        height:100%;

        background:rgba(0,0,0,.25);

        opacity:0;
        visibility:hidden;

        transition:.3s;

        z-index:1000;

        pointer-events:none;

    }

    #menu-overlay.show{

        opacity:1;
        visibility:visible;

        pointer-events:auto;

    }

    body.menu-open{

        position:fixed;
        top:var(--scroll-lock-top, 0);
        left:0;
        right:0;
        width:100%;

    }


    #menu-overlay{

        position:fixed;

        top:0;

        left:0;

        width:100%;

        height:100vh;

        background:rgba(0,0,0,.25);

        opacity:0;

        visibility:hidden;

        transition:.3s;

        z-index:1000;

    }

    #menu-overlay.show{

        opacity:1;

        visibility:visible;

    }

    .mobile-menu-header{

        display:flex;

        flex-direction:column;

        align-items:center;

        width:100%;

        margin-bottom:10px;

        padding-bottom:15px;

        border-bottom:1px solid #eee;

    }

    .mobile-menu-header img{

        width:80px;

        height:80px;

        object-fit:cover;

        border-radius:50%;

        margin-bottom:12px;

    }

    .mobile-menu-header h2{

        color:#333;

        font-size:25px;

        margin-bottom:6px;

    }

    .mobile-menu-header p{

        color:#777;

        font-size:14px;

        text-align:center;

        line-height:1.6;

    }

/*====================================
        MOBILE MENU FOOTER
=====================================*/

    .mobile-menu-footer{

        display: block;

        width:100%;

        margin-top:auto;

        padding-top:25px;
        

    }

    .mobile-menu-footer hr{

        border:none;

        border-top:1px solid #eee;

        margin-bottom:18px;

    }

    .mobile-menu-footer a{

        display:block;

        width:100%;

        padding:10px 0;

        color:#777;

        font-size:15px;

        font-weight:500;

        text-align:right;

        transition:.3s;

    }

    .mobile-menu-footer a:hover{

        color:#ff4f87;

        background:none;

    }

    .mobile-menu-footer p{

        margin-top:18px;

        text-align:center;

        font-size:13px;

        color:#999;

    }


    #navbar a{

        width:100%;

        padding:14px 18px;

        border-radius:12px;

        text-align:right;

        font-size:17px;

        transition:.3s;

    }

    #navbar a::after{

        display:none;

    }

    #navbar a:hover{

        background:#fff1f6;

        color:#ff4f87;

    }

    #navbar .active-nav{

        background:#ffe4ee;

        color:#ff4f87;

    }

    .mobile-nav-icon{

        display:inline-block;

        margin-left:8px;

    }

    .cart-icon{

        font-size:18px;

        width:100%;

        justify-content:flex-start;

        padding:14px 18px;

        border-radius:12px;

    }

    .cart-icon:hover{

        background:#fff1f6;

    }

    .toast{

        width:calc(100% - 30px);

        left:15px;

        top:15px;

    }

    #navbar .cart-icon{

        display:none;

    }

    .mobile-cart-icon{

        display:flex;

        align-items:center;

        gap:6px;

        position:absolute;

        left:20px;

        top:50%;

        transform:translateY(-50%);

        color:#3b3537;

        font-size:20px;

        font-weight:bold;

        text-decoration:none;

    }

    .mobile-cart-icon:hover{

        color:#ff4f87;

    }

}


@media (max-width:480px){

    header{

        padding:22px 15px;

    }

    .logo{

        text-align:center;

    }

    .logo img{

        height:52px;
        max-height:52px;

    }

    nav{

        gap:12px;

    }

    nav a{

        font-size:15px;

    }

    .cart-count{

        min-width:22px;

        height:22px;

        font-size:13px;

    }

    .toast{

        width:calc(100% - 20px);

        left:10px;

        top:10px;

        padding:15px;

    }

    .toast-image{

        width:55px;

        height:55px;

    }

    .toast-content h4{

        font-size:17px;

    }

    .toast-product-name{

        font-size:15px;

    }

    .toast-content span{

        font-size:13px;

    }

}

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

.site-footer{

    margin-top:80px;

    padding:35px 20px;

    border-top:1px solid #eee;

    background:#fffafc;

    text-align:center;

}

.footer-links{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:25px;

    margin-bottom:20px;

}

.footer-links a{

    color:#666;

    text-decoration:none;

    font-size:15px;

    transition:.3s;

}

.footer-links a:hover{

    color:#ff4f87;

}

.site-footer p{

    color:#999;

    font-size:14px;

    margin:0;

}



@media (max-width:767px){

    .footer-links{

        flex-direction:column;

        gap:15px;

    }
}
