/* 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-detail-container {
    padding: 20px 0;
}

.product-detail-row {
    margin-bottom: 30px;
}

.product-detail-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

.product-info {
    padding: 0 15px;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 15px 0;
}

.product-old-price {
    font-size: 1.2rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
}

.product-actions {
    margin: 20px 0;
}


/* Responsive adjustments for product detail page */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 10px 0;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-actions .paypal-add-to-cart-button {
        width: 100%;
        max-width: 100%;
    }

    .product-detail-image-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-old-price {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* 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 */
/* General responsive adjustments */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-xl,
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
.col-xl-11,
.col-xl-12 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Testimonial Carousel */
.carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-item {
    padding: 20px 0;
}

.testimonial-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background-color: #fff;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.testimonial-card .card-body {
    padding: 20px;
}

.testimonial-card p.card-text {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-card h6 {
    font-weight: 600;
    color: #333;
}

.testimonial-card .text-muted {
    color: #777 !important;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: calc(50% - 25px);
    background-color: rgba(0, 123, 255, 0.7);
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments for various screen sizes */
@media (max-width: 1199.98px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 300px;
    }

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

    .product-card img {
        height: 160px;
    }

    .testimonial-card .card-body {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        min-height: 250px;
        padding: 20px 0;
    }

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

    .hero-section .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .product-card img {
        height: 140px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .why-choose-section .col-md-3 {
        margin-bottom: 20px;
    }

    .testimonial-card {
        margin-bottom: 15px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        top: calc(50% - 20px);
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }

    .hero-section {
        min-height: 200px;
        padding: 15px 0;
    }

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

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .product-card img {
        height: 120px;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .testimonial-card .card-body {
        padding: 12px;
    }

    .testimonial-card p.card-text {
        font-size: 0.85rem;
    }

    .testimonial-card h6 {
        font-size: 0.9rem;
    }

    .carousel {
        padding: 10px;
    }

    .carousel-item .row > div {
        margin-bottom: 15px;
    }

    footer .row > div {
        margin-bottom: 20px;
    }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 320px) {
    .hero-section h1 {
        font-size: 1.1rem;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 0.9rem;
    }
}

/* 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;
    }
}