/* Global */
body{
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

img{
    max-width: 100%;
    height: auto;
}
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    line-height: 1.4;
    border-radius: 8px;
}
.btn-sm{
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-lg{
    padding: 12px 20px;
    font-size: 16px;
}
/* Hero Section */
.hero{
    background: #1f2937;
    color: white;
    padding: 120px 0;
}

.hero h1{
    font-size: 3rem;
}

.hero p{
    font-size: 1.2rem;
}

/* Cards */
.card{
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card img,
.card-img-top{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Product */
.product-card{
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card-body{
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title{
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.product-price{
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
}


.product-detail-image{
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

/* Quantity Box */
.qty-box{
    max-width: 150px;
}

/* Tables */
.table td,
.table th{
    vertical-align: middle;
}

/* Cart */
.cart-total{
    font-size: 28px;
    font-weight: bold;
}

.checkout-summary{
    position: sticky;
    top: 20px;
}

/* Success Page */
.order-success{
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carousel */
.carousel-caption{
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Login/Register Forms */
.form-control{
    min-height: 48px;
}


/* ===================================
   TABLET DEVICES
=================================== */
@media (max-width: 992px){

    .hero{
        padding: 80px 0;
    }

    .hero h1{
        font-size: 2.5rem;
    }

    .card img,
    .card-img-top{
        height: 220px;
    }

    .product-detail-image{
        max-height: 400px;
    }

    .checkout-summary{
        position: static;
        margin-top: 20px;
    }
}

/* ===================================
   MOBILE DEVICES
=================================== */
@media (max-width: 768px){

    .hero{
        padding: 60px 15px;
        text-align: center;
    }

    .hero h1{
        font-size: 2rem;
    }

    .hero p{
        font-size: 1rem;
    }

    .card{
        margin-bottom: 20px;
    }

    .card img,
    .card-img-top{
        height: 200px;
    }

    .product-price{
        font-size: 20px;
    }

    .cart-total{
        font-size: 24px;
    }

    .carousel-caption{
        padding: 10px;
    }

    .carousel-caption h1,
    .carousel-caption h2,
    .carousel-caption h3{
        font-size: 1.2rem;
    }

    .carousel-caption p{
        font-size: 0.9rem;
    }

    .table-responsive{
        overflow-x: auto;
    }
}

/* ===================================
   SMALL MOBILE DEVICES
=================================== */
@media (max-width: 576px){

    .container{
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero h1{
        font-size: 1.7rem;
    }

    .card img,
    .card-img-top{
        height: 180px;
    }

    .product-detail-image{
        max-height: 280px;
    }

    .product-price{
        font-size: 18px;
    }

    .cart-total{
        font-size: 20px;
    }

    .carousel-caption{
        display: none;
    }

    .btn{
        width: 100%;
    }
}
.whatsapp-float{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 9999;
}

.whatsapp-float:hover{
    color: #fff;
    background: #20ba5a;
}

.whatsapp-popup{
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    font-size: 14px;
    max-width: 220px;
    z-index: 9998;
    animation: floatIn 0.5s ease;
}

.whatsapp-popup::after{
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

@keyframes floatIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:768px){
    .whatsapp-popup{
        max-width: 180px;
        font-size: 13px;
        bottom: 80px;
        right: 15px;
    }

    .whatsapp-float{
        width: 55px;
        height: 55px;
        font-size: 28px;
        right: 15px;
        bottom: 15px;
    }
}
@media(max-width: 768px){
    .btn{
        width: auto;
    }

    .btn-lg{
        width: 100%;
    }
}