/* assets/css/style.css */

:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #2196F3; /* Blue */
    --accent-color: #FFC107; /* Amber */
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --light-text-color: #fff;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Custom Gradient Backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8BC34A 100%);
}
.gradient-bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #64B5F6 100%);
}
.gradient-bg-hero {
    background: linear-gradient(to right, #4CAF50, #8BC34A); /* A more vibrant green gradient */
    color: var(--light-text-color);
}
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}
.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--primary-color) !important;
}
.nav-link.active {
    color: #388E3C !important; /* Darker green for active link */
    font-weight: 600; /* Make it slightly bolder */
}
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* For Owl Carousel animations */
    position: relative;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero-section .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.hero-section .btn-primary:hover {
    background: #689F38; /* Darker green */
    border-color: #689F38;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.hero-section .btn-outline-light {
    border-color: var(--light-text-color);
    color: var(--light-text-color);
}
.hero-section .btn-outline-light:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

/* Owl Carousel Customization - Navigation and dots over slider */
.owl-carousel .item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    border-radius: 15px; /* Rounded corners for carousel items */
    overflow: hidden;
    position: relative;
}
/* Removed the dark overlay from hero-carousel items */
/*
.hero-carousel .owl-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
*/
/* Positioning Owl Carousel navigation (arrows) */
.owl-theme .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px; /* Add some padding from the sides */
    margin-top: 0; /* Remove default margin */
}
.owl-theme .owl-nav [class*='owl-'] {
    font-size: 3rem;
    background: transparent !important;
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7; /* Make them slightly transparent */
}
.owl-theme .owl-nav [class*='owl-']:hover {
    color: var(--accent-color) !important;
    background: rgba(255,255,255,0.2) !important;
    opacity: 1; /* Fully opaque on hover */
}
/* Positioning Owl Carousel dots */
.owl-theme .owl-dots {
    position: absolute;
    bottom: 20px; /* Position dots inside the carousel item */
    width: 100%;
    text-align: center;
    margin-top: 0; /* Remove default margin */
}
.owl-theme .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.5) !important;
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    transition: all 0.3s ease;
}
.owl-theme .owl-dots .owl-dot.active span {
    background: var(--light-text-color) !important;
    transform: scale(1.2);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%; /* Ensure cards in a row have same height */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 25px;
}
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card-text {
    font-size: 1rem;
    color: #666;
}
.card .btn {
    border-radius: 50px;
    font-weight: 500;
    padding: 8px 20px;
}

/* Storefront - Product Cards */
.product-card .card-img-top {
    height: 250px; /* Taller for product images */
    object-fit: contain; /* To show full product */
    background-color: #f0f0f0; /* Light background for product images */
}
.product-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.product-card .btn-add-to-cart {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
    width: 100%;
}
.product-card .btn-add-to-cart:hover {
    background-color: #689F38;
    border-color: #689F38;
}

/* Testimonials */
.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
}
.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}
.testimonial-card .author-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.testimonial-card .author-title {
    font-size: 0.9rem;
    color: #888;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(to right, #2196F3, #64B5F6);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin: 50px 0;
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.cta-section .btn:hover {
    background-color: #FFD700; /* Darker amber */
    border-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.footer h5 {
    color: var(--light-text-color);
    font-weight: 600;
    margin-bottom: 20px;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 10px;
}
.footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer ul li a:hover {
    color: var(--primary-color);
}
.footer .social-icons a {
    color: var(--light-text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.footer .social-icons a:hover {
    color: var(--primary-color);
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#back-to-top:hover {
    background-color: #689F38;
    transform: translateY(-3px);
}

/* Animate.css classes for WOW.js */
/* Ensure elements are initially hidden for WOW.js to reveal them */
.wow {
    visibility: hidden;
}

/* Specific style for rating stars to ensure cursor change */
.rating-stars i {
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .owl-carousel .item-content h2 {
        font-size: 2rem;
    }
    .owl-carousel .item-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}

/* assets/css/style.css */

/* Add this to your existing style.css */

/* Styles for the quantity input group in the cart */
.cart-qty-control {
    /* Ensure the input group itself is compact */
    width: auto; /* Let it shrink to content */
    flex-wrap: nowrap; /* Prevent wrapping of buttons/input */
}

/* Style the input field within the quantity control */
.cart-qty-control .cart-quantity-input {
    /* Flex properties to control width */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 45px; /* A base width for the input */
    max-width: 45px; /* Ensure it doesn't grow too much */
    min-width: 30px; /* Allow it to shrink a bit on very small screens if necessary */
    text-align: center; /* Keep text centered */
}

/* Adjust for very small screens if needed, though flex-basis/min-width/max-width should handle most cases */
@media (max-width: 575.98px) { /* Bootstrap's 'sm' breakpoint */
    .cart-qty-control .cart-quantity-input {
        flex-basis: 40px; /* Slightly smaller on extra small screens */
        max-width: 40px;
    }
}

/* Custom CSS for profile image hover effect */
/* Ensure the parent has position: relative */
.profile-image-container {
    position: relative;
}

.profile-image-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth transition for the overlay */
    pointer-events: none; /* Allows clicks to pass through when hidden */
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
    pointer-events: auto; /* Enable clicks when visible */
}

/* Style for the button inside the overlay */
.profile-image-overlay .btn {
    opacity: 0; /* Start button hidden */
    transform: translateY(10px); /* Start slightly below */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.profile-image-container:hover .profile-image-overlay .btn {
    opacity: 1; /* Show button */
    transform: translateY(0); /* Move button to original position */
}
