/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f5f5f5;
    color:#222;
}

/* =========================
   HEADER
========================= */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:24px;
    font-weight:bold;
}

nav{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    text-decoration:none;
    color:#222;
    font-weight:600;
}

nav a:hover{
    color:#ff9800;
}

/* =========================
   HERO / BANNER
========================= */

.banner img{
    width:100%;
    display:block;
}

.hero{
    text-align:center;
    padding:60px 20px;
    background:#fff;
}

.hero h1{
    font-size:42px;
    margin-bottom:10px;
}

.hero p{
    color:#666;
    margin-bottom:20px;
}

.hero button{
    background:#000;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
}

/* =========================
   TITLE
========================= */

.featured{
    text-align:center;
    padding:25px 20px;
}

.featured h2{
    font-size:32px;
}

/* =========================
   SEARCH BAR
========================= */

.search-box{
    margin-top:15px;
}

.search-box input{
    width:60%;
    max-width:600px;
    padding:14px 20px;
    border:1px solid #ddd;
    border-radius:30px;
    outline:none;
    font-size:16px;
}

/* =========================
   SHOP LAYOUT
========================= */

.shop-container{
    max-width:1400px;
    margin:auto;
    display:flex;
    gap:25px;
    padding:20px;
}

/* =========================
   FILTER SIDEBAR
========================= */

.filters{
    width:260px;
    min-width:260px;
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:90px;
    height:fit-content;
}

.filters h3,
.filters h4{
    margin-bottom:15px;
}

.filters label{
    display:block;
    margin-bottom:10px;
    cursor:pointer;
}

.filters hr{
    margin:20px 0;
}

/* =========================
   PRODUCT GRID
========================= */

.products{
    flex:1;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:25px;
}

/* =========================
   PRODUCT CARD
========================= */

.product{
    background:#fff;
    border-radius:12px;
    padding:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:relative;
    overflow:hidden;
    transition:.3s;
}

.product:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

/* IMAGE BOX */

.image-box{
    overflow:hidden;
    border-radius:10px;
}

.image-box img{
    width:100%;
    height:350px;
    object-fit:cover;
    transition:transform .5s ease;
}

.product:hover .image-box img{
    transform:scale(1.12);
}

/* PRODUCT INFO */

.product h3{
    margin-top:15px;
    margin-bottom:8px;
    text-align:center;
}

.product p{
    color:#e91e63;
    font-size:20px;
    font-weight:bold;
    text-align:center;
}

/* =========================
   BADGES
========================= */

.badge{
    position:absolute;
    top:15px;
    left:15px;
    background:red;
    color:white;
    font-size:12px;
    font-weight:bold;
    padding:5px 10px;
    border-radius:20px;
    z-index:10;
}

.badge.sale{
    background:#ff5722;
}

.badge.new{
    background:#4caf50;
}

/* =========================
   SIZE SELECT
========================= */

.size-select{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    margin:12px 0;
}

/* =========================
   BUTTONS
========================= */

.product-buttons{
    display:flex;
    gap:10px;
}

.buy-btn,
.cart-btn{
    flex:1;
    padding:12px;
    border:none;
    border-radius:8px;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;
}

.buy-btn{
    background:#ff9800;
    color:white;
}

.buy-btn:hover{
    background:#f57c00;
}

.cart-btn{
    background:#222;
    color:white;
}

.cart-btn:hover{
    background:#000;
}

/* =========================
   FLOATING CART
========================= */

.floating-cart{
    position:fixed;
    bottom:25px;
    right:25px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#ff9800;
    color:white;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    z-index:9999;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
}

#floating-cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    background:red;
    color:white;
    width:22px;
    height:22px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}

/* =========================
   CART PAGE
========================= */

.cart-page{
    max-width:1400px;
    margin:40px auto;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    padding:20px;
}

.cart-item{
    display:flex;
    gap:20px;
    background:#fff;
    padding:15px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    margin-bottom:20px;
}

.cart-item img{
    width:120px;
    height:150px;
    object-fit:cover;
    border-radius:10px;
}

.cart-details{
    flex:1;
}

.cart-price{
    color:#e91e63;
    font-size:20px;
    font-weight:bold;
}

.remove-btn{
    background:red;
    color:white;
    border:none;
    padding:10px 15px;
    border-radius:6px;
    cursor:pointer;
}

.cart-summary{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:90px;
    height:fit-content;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin:15px 0;
}

/* =========================
   UPI SECTION
========================= */

.upi-qr{
    width:220px;
    height:220px;
    display:block;
    margin:15px auto;
    border-radius:10px;
    border:1px solid #ddd;
}

.cart-summary input,
.cart-summary textarea{
    width:100%;
    padding:10px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:6px;
}

.checkout-btn{
    display:block;
    width:100%;
    text-align:center;
    background:black;
    color:white;
    text-decoration:none;
    padding:12px;
    border:none;
    border-radius:6px;
    margin-top:10px;
    cursor:pointer;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:10px;
    }

    .search-box input{
        width:95%;
    }

    .shop-container{
        flex-direction:column;
    }

    .filters{
        width:100%;
        min-width:100%;
        position:static;
    }

    .products{
        grid-template-columns:repeat(2,1fr);
    }

    .cart-page{
        grid-template-columns:1fr;
    }

    .cart-item{
        flex-direction:column;
        text-align:center;
    }
}

@media(max-width:480px){

    .products{
        grid-template-columns:1fr;
    }

    .product-buttons{
        flex-direction:column;
    }

    .hero h1{
        font-size:30px;
    }
}
.qty-box{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0;
}

.qty-box button{
    width:35px;
    height:35px;
    border:none;
    background:#222;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

.empty-cart{
    background:white;
    padding:40px;
    text-align:center;
    border-radius:12px;
}
/* =========================
   HEADER
========================= */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:24px;
    font-weight:bold;
    color:#111;
}

/* NAVBAR FIX */

nav{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    text-decoration:none;
    color:#222;
    font-weight:600;
    transition:0.3s;
}

nav a:hover{
    color:#ff9800;
}

/* =========================
   CONTACT DROPDOWN
========================= */

.dropdown{
    position:relative;
}

.dropbtn{
    background:none;
    border:none;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    color:#222;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:35px;
    left:0;
    min-width:220px;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.dropdown-content a{
    display:block;
    padding:12px 15px;
    color:#222;
    text-decoration:none;
}

.dropdown-content a:hover{
    background:#f5f5f5;
}

.dropdown:hover .dropdown-content{
    display:block;
}

/* =========================
   3 LINE MENU
========================= */

.apps-menu{
    position:relative;
}

.apps-btn{
    background:none;
    border:none;
    cursor:pointer;
    font-size:26px;
}

.apps-dropdown{
    display:none;
    position:absolute;
    right:0;
    top:40px;
    width:250px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
    overflow:hidden;
}

.apps-dropdown a{
    display:block;
    padding:12px 15px;
    text-decoration:none;
    color:#222;
}

.apps-dropdown a:hover{
    background:#f5f5f5;
}

.apps-menu:hover .apps-dropdown{
    display:block;
}

/* =========================
   MOBILE HEADER
========================= */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }
}
/* HOME PAGE PRODUCT FIX */

.products{
    max-width:1400px;
    margin:auto;
    padding:20px;
}

.image-box{
    width:100%;
    height:350px;
    overflow:hidden;
    border-radius:10px;
}

.image-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:0.5s;
}

.product:hover .image-box img{
    transform:scale(1.12);
}

/* HOME ABOUT SECTION */

#about{
    margin-top:50px;
    background:white;
}

/* HERO BUTTON FIX */

.hero .buy-btn{
    display:inline-block;
    padding:14px 30px;
    background:#ff9800;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}

.hero .buy-btn:hover{
    background:#f57c00;
}
