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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f5f7fb;
    color:#222;
}

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

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    background:#fff;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo-text{
    color:#0d47a1;
    font-size:28px;
    font-weight:bold;
}

.header-actions{
    display:flex;
    gap:10px;
}

.store-icon-btn{
    position:fixed;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    outline:none;
    border-radius:50%;
    background:#0d47a1;
    color:#fff;
    font-size:24px;
    cursor:pointer;
    transition:.3s;
    z-index:10000;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    -webkit-tap-highlight-color: transparent;
}

.store-icon-btn:hover{
    transform:translateY(-50%) scale(1.08);
}

.store-icon-btn:focus,
.store-icon-btn:focus-visible,
.store-icon-btn:active{
    outline:none;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}
#cartCount{
    position:absolute;
    top:-5px;
    right:-5px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:red;
    color:white;
    font-size:12px;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ===========================
   SEARCH
=========================== */

.search-section{
    padding:20px;
}

#search{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#fff;
    font-size:16px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* ===========================
   PRODUCTS
=========================== */

.products{
    padding:20px;
}

.products h2{
    margin-bottom:20px;
    color:#0d47a1;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:20px;
}

/* ===========================
   PRODUCT CARD
=========================== */

.product-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

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

    transition:.3s;

}

.product-card:hover{

    transform:translateY(-8px);

}

.product-card img{

    width:100%;

    height:180px;

    object-fit:cover;

}

.product-info{

    padding:15px;

}

.product-info h3{

    color:#0d47a1;

    margin-bottom:8px;

}

.price{

    color:#27ae60;

    font-size:22px;

    font-weight:bold;

    margin:10px 0;

}

.old-price{

    text-decoration:line-through;

    color:gray;

    margin-left:10px;

    font-size:15px;

}

.rating{

    color:#f4b400;

    margin-bottom:10px;

}

.desc{

    color:#666;

    font-size:14px;

    line-height:1.5;

}

/* ===========================
   BUTTONS
=========================== */

.btn-group{

    display:grid;

    gap:10px;

    margin-top:15px;

}

.btn{

    border:none;

    border-radius:10px;

    padding:12px;

    cursor:pointer;

    font-weight:bold;

    transition:.3s;

}

.details-btn{

    background:#1565c0;

    color:white;

}

.cart-btn{

    background:#00a152;

    color:white;

}

.buy-btn{

    background:#ff9800;

    color:white;

}

.contact-btn{

    background:#7b1fa2;

    color:white;

}

.btn:hover{

    transform:scale(1.03);

}

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

.cart-sidebar{

    position:fixed;

    top:0;

    right:-420px;

    width:380px;

    max-width:100%;

    height:100vh;

    background:white;

    box-shadow:-5px 0 20px rgba(0,0,0,.15);

    transition:.35s;

    display:flex;

    flex-direction:column;

    z-index:9999;

}

.cart-sidebar.active{

    right:0;

}

.cart-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px;

    border-bottom:1px solid #ddd;

}

.cart-header button{

    border:none;

    background:none;

    font-size:28px;

    cursor:pointer;

}

#cartItems{

    flex:1;

    overflow:auto;

    padding:20px;

}

.cart-item{

    display:flex;

    justify-content:space-between;

    margin-bottom:15px;

    border-bottom:1px solid #eee;

    padding-bottom:10px;

}

.cart-footer{

    padding:20px;

    border-top:1px solid #ddd;

}

.checkout-btn{

    width:100%;

    border:none;

    padding:15px;

    background:#1565c0;

    color:white;

    border-radius:12px;

    font-size:17px;

    cursor:pointer;

    margin-top:15px;

}

/* ===========================
   ANIMATION
=========================== */

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.product-card{

    animation:fade .6s ease;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.logo-text{

font-size:22px;

}

.product-grid{

grid-template-columns:1fr;

}

.cart-sidebar{

width:100%;

}

}