/* Custom CSS for E-commerce Website */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    padding-top: 56px; /* Keep navbar padding but reduce overall spacing */
}

/* Reduce spacing for main content */
main, .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Images/slider_images/slider-01.jpeg') no-repeat center center;
    background-size: cover;
    min-height: 400px;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card img {
    height: 200px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    height: 200px;
    object-fit: contain;
    width: 100%;
    padding: 10px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.product-old-price {
    color: #95a5a6;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-rating {
    color: #f39c12;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Product Detail Page */
.product-image img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
}

.thumbnail.active {
    border-color: #007bff;
}

/* Footer */
footer {
    margin-top: 80px;
    background-color: #343a40;
    color: white;
    padding: 40px 0 20px;
}

footer a {
    text-decoration: none;
    color: #adb5bd;
}

footer a:hover {
    text-decoration: underline;
    color: white;
}

footer h5 {
    color: white;
    margin-bottom: 15px;
}

footer ul {
    margin-bottom: 0;
}

footer .footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive Adjustments */
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.whatsapp-float i {
    font-size: 24px;
}

.whatsapp-float span {
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }

    .whatsapp-float i {
        font-size: 20px;
    }

    .whatsapp-float span {
        font-size: 14px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-card img {
        height: 180px;
        object-fit: contain;
        width: 100%;
        padding: 10px;
    }
}