/* General Body and Container Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 56px; /* Adjust for fixed-top navbar height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header/Navbar Styles */
.header-logo {
    height: 5rem; /* Adjust as needed for your logo size */
    width: 5rem;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: bold;
    margin-right: 15px;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important; /* Example hover color */
}

/* Dropdown Menu Specific Styles */
.navbar-nav .dropdown-menu {
    border-radius: 0; /* Remove default rounded corners if desired */
    margin-top: 0; /* Align directly under the navbar link */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
    border: none;
    background-color: #f8f9fa; /* Match navbar background */
}

.navbar-nav .dropdown-item {
    padding: 10px 20px;
    font-weight: normal;
    color: #333;
}

.navbar-nav .dropdown-item:hover {
    background-color: #e9ecef; /* Lighter hover background */
    color: #007bff;
}

.navbar-nav .dropdown-header {
    padding: 10px 20px 5px;
    font-size: 0.85em;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: bold;
}

.navbar-nav .dropdown-divider {
    margin: 0;
    border-color: #dee2e6;
}

/* Cart count styling in navbar (now hidden as the floating button is used) */
#cart-item-count {
    font-size: 0.8em; /* Slightly smaller font */
    vertical-align: super; /* Raise it slightly */
    margin-left: -5px; /* Adjust spacing */
    background-color: #007bff; /* Blue background */
    color: white;
    border-radius: 50%; /* Circular badge */
    padding: 0.1em 0.4em;
    min-width: 1.5em; /* Ensures it's a circle even with 1 digit */
    text-align: center;
    display: inline-block;
    line-height: 1.2;
}

/* Hero Section Styles (specific to index.html) */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Sale Banner Section (specific to index.html) */
.sale-banner {
    margin-top: 20px; /* Add some space below the navbar/hero */
}

.hero-swiper .swiper-slide {
    position: relative;
    text-align: center;
    background: #f0f0f0; /* Fallback background */
    display: flex; /* For centering content inside slide */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
}

.hero-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 400px; /* Fixed height for sale banner images */
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.swiper-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-align: left;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    padding: 15px;
    border-radius: 5px;
}

.swiper-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.swiper-caption p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important; /* White arrows */
    --swiper-navigation-size: 30px; /* Swiper navigation arrow size */
}

.swiper-pagination-bullet-active {
    background-color: #fff !important; /* White active pagination dot */
}


/* Product Card Styles */
.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative; /* Needed for absolute positioning of badge */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px; /* Fixed height for product images */
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.product-card .card-body {
    padding: 15px;
    text-align: center;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-card .card-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Footer Styles */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 50px 0;
}

.footer h5 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer p, .footer ul {
    font-size: 0.9rem;
    color: #bbb;
}

.footer ul li a {
    color: #bbb;
    text-decoration: none;
}

.footer ul li a:hover {
    color: #fff;
}

.social-links a {
    font-size: 1.8rem;
    color: #fff;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff; /* Example hover color for social icons */
}

/* Map Container for footer */
.map-container {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Styles for scroll-triggered fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px); /* Start slightly below its final position */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transition */
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0); /* Move to final position */
}

/* Optional: To make elements initially hidden until JavaScript kicks in */
.fade-in-section.is-hidden {
    /* This class is added by default in HTML and removed by JS */
    opacity: 0;
    transform: translateY(20px);
}

/* === Floating Cart Button Styles (New) === */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050; /* Above most other elements, including the navbar */
    width: 60px; /* Size of the button */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #6f42c1; /* Use a prominent color, purple in this case */
    color: white;
    transition: transform 0.2s;
}

.floating-cart-btn:hover {
    transform: scale(1.05);
    background-color: #5a3699;
}

.floating-cart-btn .cart-icon {
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 2px 7px;
    border-radius: 50%;
    background-color: #dc3545; /* Red for notifications */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}
