/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styling */
header {
    background-color: rgb(191, 41, 41);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80px; /* Fixed height */
}

/* Header Container: Logo + Navigation */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo on left, nav in center */
    width: 100%;
    padding: 0 20px;
    height: 100%; /* Makes sure it takes full height */
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 120px;
    height: auto;
}

/* Navigation Bar */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

/* Navigation Items */
nav ul li {
    margin: 0 15px;
}

/* Links */
nav ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    display: block;
}

/* Hover Effect */
nav ul li a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Dropdown Menu */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

nav ul li.dropdown .dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

nav ul li.dropdown .dropdown-content a:hover {
    background-color: #f1f1f1;
}
/* Search Bar Container */
.search-bar-container {
    position: absolute;
    top: 80px; /* Adjust so it's half inside navbar */
    left: 78%;
    transform: translateX(-50%); /* Correct centering */
    display: flex;
    justify-content: center; /* Center the search section horizontally */
    
  }
  
  /* Search Input Wrapper (Flexbox) */
  .search-input-wrapper {
    display: flex;
    align-items: center; /* Vertically align items */
  }
  
  /* Search Input */
  .custom-search-input {
    padding: 10px 15px;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    width: 300px;
    outline: none;
    background-color: transparent;
    border: 1px solid #ccc; /* Light border */
  }
  
  /* Search Button */
  .custom-search-btn {
    background-color: #0099FF;
    color: white; /* Text color blue */
    border: 1px solid #0099FF; /* Blue border */
    padding: 10px 20px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* Hover Effect for Search Button */
  .custom-search-btn:hover {
    background-color: transparent; /* Blue background on hover */
    color: #0099FF; /* White text on hover */
  }
  



/* Hero Section */
.hero {
    position: relative;
    height: 600px; /* Set the height as per your requirement */
    background-color: #00060a; /* Blue background */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Matte Design Overlay */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Matte overlay */
}

/* Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Image as Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Ensure the background image is below the text */
}

/* Slider Content */
.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2; /* Ensure content is above the background image */
}

.slider-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slider-content .btn {
    background-color: #0099FF; /* Blue button */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slider-content .btn:hover {
    background-color: #007ACC; /* Darker blue on hover */
}

/* Animation for Slider */
.fade {
    animation: fadeIn 6s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Optional: Make the text look more elegant and modern */
@media (max-width: 768px) {
    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-content p {
        font-size: 1rem;
    }
}



/* Our Brands Heading */
.brands-heading {
    font-size: 2rem; /* Adjust the size of the heading */
    color: #888; /* Ash-colored text */
    text-align: center; /* Center-align the text */
    margin-bottom: 5px; /* Space between the heading and logos */
}

/* Features Section - Logos */
.features-logos {
    display: flex;
    justify-content: center; /* Center the logos in the row */
    align-items: center; /* Align the logos vertically */
    gap: 100px; /* Space between the logos */
    margin-top: 5px; /* Add a bit of space after the heading */
}

/* Logo Styling */
.feature-logo {
    width: 250px; /* Set fixed size for logos */
    height: auto; /* Maintain the aspect ratio */
}







/* Category Section */
#categories {
    background-color: #1a77ac;
    padding: 50px 0;
    text-align: center;
}

#categories h2 {
    color: #feffff; /* Your previous theme color */
    font-size: 36px;
    margin-bottom: 30px;
}

/* Category List */
.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category {
    width: 200px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: scale(1.05); /* Hover effect for images */
}

.category a {
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

.category img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category p {
    padding: 10px 0;
    background-color:#1a77ac; /* Your theme color */
    color: white;
    font-size: 16px;
    margin: 0;
}

#best-sellers {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
    position: relative;
}

#best-sellers h2 {
    color: #007ACC;
    font-size: 36px;
    margin-bottom: 30px;
}

/* Carousel Container */
.slider-container {
    overflow: hidden;
    width: 100%;
}

.product-list {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease-in-out;
}

.product {
    width: 250px;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: none;
    padding: 20px;
    text-align: center;
}

.product:hover {
    border: 2px solid #000;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.product-name, .product-price {
    color: #333;
    margin: 10px 0;
}

.product-price {
    color: #007ACC;
    font-size: 20px;
}

/* Add to Cart Button */
.add-to-cart {
    background-color: transparent;
    border: 2px solid #007ACC;
    color: #007ACC;
    padding: 12px 30px;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top-left-radius: 10px;  /* Small rounded corner on the left */
    border-top-right-radius: 30px; /* Large rounded corner on the right */
    border-bottom-left-radius: 30px; /* Large rounded corner on the left */
    border-bottom-right-radius: 10px; /* Small rounded corner on the right */
    transition: all 0.3s ease-in-out;
}

.add-to-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 204, 0.2);
    border-radius: 30px;
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

.add-to-cart:hover {
    background-color: #007ACC;
    color: white;
}

.add-to-cart:hover::before {
    background-color: rgba(0, 122, 204, 0.4);
}

.add-to-cart .cart-icon {
    width: 20px;
    height: 20px;
    fill: #007ACC;
}

.add-to-cart:hover .cart-icon {
    fill: white;
}

/* Navigation Buttons */
button.prev-btn, button.next-btn {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
}

button.prev-btn {
    left: 10px;
}

button.next-btn {
    right: 10px;
}

.product {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}





/* Deals Section */
#deals {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

#deals .deals-heading {
    margin-bottom: 40px;
}

#deals h2 {
    font-size: 36px;
    color: #007ACC;
    margin-bottom: 10px;
}

#deals p {
    font-size: 18px;
    color: #333;
}

/* Deals Container */
.deals-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Deal Card */
.deal-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden;
    width: 280px;  /* Fixed card width */
    height: 400px; /* Fixed card height */
    position: relative; /* Added to position the button */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper alignment of elements inside the card */
    transition: transform 0.3s ease-in-out;
}

/* Deal Image */
.deal-img {
    width: 100%;
    height: 160px; /* Fixed height for the image */
    object-fit: contain;
    border-radius: 10px;
}

/* Deal Info */
.deal-info {
    margin-top: 15px;
    flex-grow: 1;  /* Allow the description to grow and fill available space */
}

/* Deal Title */
.deal-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Deal Description */
.deal-description {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Limit description to 3 lines */
    -webkit-box-orient: vertical;
}

/* Deal Price */
.deal-price {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

/* Original Price */
.original-price {
    text-decoration: line-through;
    color: #777;
    margin-right: 10px;
}

/* Discounted Price */
.discounted-price {
    color: #007ACC;
    font-weight: bold;
}

/* Add to Cart Button (Centered in the Card) */
.deal-card .add-to-cart {
    background-color: transparent;
    border: 2px solid #007ACC;
    color: #007ACC;
    padding: 12px 30px;
    position: absolute; /* Change position to absolute */
    bottom: 20px; /* Adjust the bottom distance */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust the position to truly center */
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top-left-radius: 10px;  /* Small rounded corner on the left */
    border-top-right-radius: 30px; /* Large rounded corner on the right */
    border-bottom-left-radius: 30px; /* Large rounded corner on the left */
    border-bottom-right-radius: 10px; /* Small rounded corner on the right */
    transition: all 0.3s ease-in-out;
}

/* Add to Cart Button Hover Effects */
.deal-card .add-to-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 204, 0.2);
    border-radius: 30px;
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

.deal-card .add-to-cart:hover {
    background-color: #007ACC;
    color: white;
}

.deal-card .add-to-cart:hover::before {
    background-color: rgba(0, 122, 204, 0.4);
}

.deal-card .add-to-cart .cart-icon {
    width: 20px;
    height: 20px;
    fill: #007ACC;
}

.deal-card .add-to-cart:hover .cart-icon {
    fill: white;
}

/* Hover Effect on Deal Card */
.deal-card:hover {
    transform: scale(1.05); /* Slight scale effect on hover */
}

/* Responsiveness: Stack cards on smaller screens */
@media (max-width: 768px) {
    .deals-container {
        flex-direction: column;
        align-items: center;
    }
}





/* Featured Products Section */
#featured-products {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

#featured-products h2 {
    color: #007ACC;
    font-size: 36px;
    margin-bottom: 30px;
}

/* Product List */
#featured-products .product-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Product Item */
#featured-products .product {
    width: 250px;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: none;
    padding: 20px;
    text-align: center;
    border: 1px solid transparent; /* Transparent border */
}

#featured-products .product:hover {
    border: 2px solid #000; /* Black border on hover */
}

/* Product Image */
#featured-products .product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

/* Product Name and Price */
#featured-products .product-name, #featured-products .product-price {
    color: #333;
    margin: 10px 0;
}

#featured-products .product-price {
    color: #007ACC;
    font-size: 20px;
}

/* Add to Cart Button */
#featured-products .add-to-cart {
    background-color: transparent;
    border: 2px solid #007ACC;
    color: #007ACC;
    padding: 12px 30px;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top-left-radius: 10px;  /* Small rounded corner on the left */
    border-top-right-radius: 30px; /* Large rounded corner on the right */
    border-bottom-left-radius: 30px; /* Large rounded corner on the left */
    border-bottom-right-radius: 10px; /* Small rounded corner on the right */
    transition: all 0.3s ease-in-out;
}

#featured-products .add-to-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 204, 0.2);
    border-radius: 30px;
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

#featured-products .add-to-cart:hover {
    background-color: #007ACC;
    color: white;
}

#featured-products .add-to-cart:hover::before {
    background-color: rgba(0, 122, 204, 0.4);
}

#featured-products .add-to-cart .cart-icon {
    width: 20px;
    height: 20px;
    fill: #007ACC;
}

#featured-products .add-to-cart:hover .cart-icon {
    fill: white;
}


/* Product Size and Alignment */
#featured-products .product {
    height: 400px; /* Ensure all cards are the same size */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}







/* About Section */
#about {
    background-color: white;
    padding: 80px 20px;
    text-align: center;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#about h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* More content hidden by default */
.more-content {
    display: none;
    margin-top: 20px;
}

/* See More Button */
.see-more-btn {
    background-color: #007ACC;
    color: white;
    padding: 10px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.see-more-btn:hover {
    background-color: #00B4D8;
}

.see-more-btn:active {
    transform: scale(0.98);
}

/* Image container */
.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.about-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}










/* Contact Section Styling */
.contact {
    background-color: #f4f4f4; /* Light grey background */
    padding: 50px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif; /* Applying the Poppins font */
}

/* Heading Style */
.contact h2 {
    font-size: 2.5rem;
    color: #333; /* Dark grey color */
    margin-bottom: 20px;
    font-weight: 600;
}

/* Paragraph Style */
.contact p {
    font-size: 1.1rem;
    color: #888; /* Ash-colored text */
    margin-bottom: 40px;
}

/* Contact Information Styling */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info div {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
}

.contact-info h4 {
    font-size: 1.2rem;
    color: #007ACC; /* Updated theme color */
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info p {
    font-size: 1rem;
    color: #666;
}

/* Contact Form Box Styling */
.contact-form-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif; /* Using Poppins font for inputs */
}

form input:focus,
form textarea:focus {
    border-color: #007ACC; /* Focus color matching the updated theme */
    outline: none;
}

form button {
    padding: 15px 30px;
    background-color: #007ACC; /* Updated theme color */
    color: #fff;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif; /* Using Poppins font for button */
}

form button:hover {
    background-color: #007ACC; /* Darker shade of the theme color on hover */
}












/* Footer Design */
footer {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    margin: 15px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 8px 0;
}

ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #00B4D8;
}

.footer-social .social-icon {
    font-size: 20px;
    margin-right: 15px;
    color: white;
    transition: color 0.3s ease;
}

.footer-social .social-icon:hover {
    color: #00B4D8;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}



/* Base styles - Apply to all devices */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    color: rgb(11, 11, 11);
    max-height: 45px;
}

.logo img {
    width: 150px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
}


.hero h2 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
}




/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background-color: #02696d;
    color: white;
}

/* ----- MEDIA QUERIES FOR RESPONSIVENESS ----- */

/* Tablets (Max width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 350px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product {
        width: calc(50% - 20px); /* Show 2 items per row */
    }
}

/* Mobile (Max width: 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .hero {
        height: 300px;
        padding: 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product {
        width: calc(100% - 20px); /* Full width */
    }
}

/* Small Mobile (Max width: 480px) */
@media (max-width: 480px) {
    .hero {
        height: 250px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .product {
        width: 100%;
    }

    .logo img {
        width: 80px;
    }
}
