html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Enable hover effect for dropdowns */
.nav - item.dropdown: hover.dropdown - menu {
    display: block;
    margin - top: 0; /* Optional: remove delay/drop animation */
}

/* Optional: Fix alignment if needed */
.nav - item.dropdown - menu {
    top: 100 %;
    left: 0;
    border - radius: 0;
    margin - top: 0;
}

/*Header Part*/
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #ddd;
}

/* Logo */
.logo img {
    width: 140px;
    height: auto;
}

/* Category navigation */
.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Adjust spacing between categories */
    padding: 15px 0;
    list-style: none;
    font-family: 'Montserrat', sans-serif;
}

.category {
    text-align: center;
    cursor: pointer;
    position: relative;
}

    .category img {
        width: 84px; /* Adjust as needed */
        height: auto;
        display: block;
        margin: auto;
    }

    .category span {
        display: block;
        font-size: 14px;
        font-weight: bold;
        margin-top: 5px;
        color: black;
    }

.arrow {
    font-size: 12px;
    color: gray;
}

.submenu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 180px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    z-index: 100;
}

    .submenu a {
        display: block;
        padding: 5px;
        text-decoration: none;
        color: black;
        font-size: 12px;
    }

        .submenu a:hover {
            background: #f5f5f5;
        }

/* Show submenu on hover */
.category:hover .submenu {
    display: block;
}

/* Right Section: User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid black;
    padding-bottom: 3px;
}

    .search-box input {
        border: none;
        outline: none;
        font-size: 14px;
    }

/* Icons */
.user-actions a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    text-decoration: none;
    color: black;
}

.user-actions img {
    width: 18px;
    height: auto;
}
/*----End----*/

.promotion-banner img {
    width: 100%;
    height: auto;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px;
    padding: 20px;
}

.product-item {
    text-align: center;
}

    .product-item img {
        max-width: 100%;
        height: auto;
    }

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f5f5f5;
}

.social-links img {
    width: 30px;
    margin-left: 10px;
}

.filter-section {
    padding: 20px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

    .filter-section label {
        margin-right: 10px;
    }

    .filter-section input, .filter-section select {
        margin-right: 20px;
        padding: 5px;
    }

    .filter-section button {
        padding: 5px 15px;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

        .filter-section button:hover {
            background-color: #0056b3;
        }

/* Existing styles remain unchanged */
.promotion-banner img {
    width: 100%;
    height: auto;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-item {
    text-align: center;
}

    .product-item img {
        max-width: 100%;
        height: auto;
    }

.new-products, .featured-products, .filtered-products {
    margin: 20px 0;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.logo img {
    width: 150px; /* Smaller logo */
}

.user-actions img {
    width: 24px;
    margin-left: 10px;
}

/* Filter Section Styles */
.filter-section {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

    .filter-section form {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .filter-section select,
    .filter-section input {
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

        .filter-section input[type="text"],
        .filter-section input[type="number"] {
            width: 120px;
        }

    .filter-section select {
        width: 150px;
    }

    .filter-section button {
        padding: 5px 15px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .filter-section button:hover {
            background-color: #0056b3;
        }
    


/*Banner Image*/
.promotion-banner img {
    max-width: 100%; 
    height: 500px; 
    display: block; 
    margin: 0 auto; 
}

.promotion-slider {
    width: 100%;
    /*max-width: 600px;*/ /* Adjust as needed */
    height: 250px; /* Adjust height */
    overflow: hidden;
    position: relative;
    margin: auto;
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

    .slide img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/
    }

/* Navigation Dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: gray;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

    .dot.active {
        background-color: white;
    }
/* New Products Styles */

.new-products {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Adjust as needed */
    text-transform: uppercase;
    letter-spacing:  2px;
}

.slider-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.product-list {
    display: flex;
    gap: 46px;
    overflow: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.product-item {
    flex: 0 0 245px;
    width: 220px;
    height: auto;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Ensures image does not exceed a certain height */
.product-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Product name - Ensures it does not overflow */
.product-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    height: auto;
    margin-bottom: 5px;
}

/* Slug - ensures it appears below the name */
.product-slug {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    white-space: normal;
    text-align:left;
}

/* Rating and stock in the same row */
.rating-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Left-align rating */
.rating {
    font-size: 14px;
    color: #ddd;
    text-align: left;
    flex-grow: 1;
}

/* Out of stock text in red */
.out-of-stock {
    color: red;
    font-weight: bold;
}

.out-of-stock-text {
    color: red;
}

a {
    color: inherit; /* Inherits text color from parent */
    text-decoration: none; /* Removes underline */
}

    a:hover {
        color: inherit; /* Prevents color change on hover */
        text-decoration: none; /* Ensures no underline appears */
    }



/* Price and stock info row */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    height: 30px;
}

/* Add to bag button */
.add-to-bag {
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.sold-out {
    background-color: #888;
    cursor: not-allowed;
}


/* Arrow button styles */
.arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

    .arrow:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Hide scrollbar */
.product-list::-webkit-scrollbar {
    display: none;
}

.product-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*--------End-------*/


/*Featured Product*/
.featured-products {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Adjust as needed */
    text-transform: uppercase;
    letter-spacing:  2px;
}

.featuredslider-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.featuredproduct-list {
    display: flex;
    gap: 46px;
    overflow: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.featuredproduct-item {
    flex: 0 0 245px;
    /*width: 220px;*/
    height: auto;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Ensures image does not exceed a certain height */
.featuredproduct-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Product name - Ensures it does not overflow */
.featuredproduct-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    height: auto;
    margin-bottom: 5px;
}

/* Slug - ensures it appears below the name */
.featuredproduct-slug {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    white-space: normal;
    text-align: left;
}

/* Rating and stock in the same row */
.featuredrating-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Left-align rating */
.featuredrating {
    font-size: 14px;
    color: #ddd;
    text-align: left;
    flex-grow: 1;
}

/* Out of stock text in red */
.featuredout-of-stock {
    color: red;
    font-weight: bold;
}

.featuredout-of-stock-text {
    color: red;
}

featureda {
    color: inherit; /* Inherits text color from parent */
    text-decoration: none; /* Removes underline */
}

    featureda:hover {
        color: inherit; /* Prevents color change on hover */
        text-decoration: none; /* Ensures no underline appears */
    }



/* Price and stock info row */
.featuredproduct-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    height: 30px;
}

/* Add to bag button */
.featuredadd-to-bag {
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.sold-out {
    background-color: #888;
    cursor: not-allowed;
}


/* Arrow button styles */
.featuredarrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

    .featuredarrow.left {
        left: 10px;
    }

    .featuredarrow.right {
        right: 10px;
    }

    .featuredarrow:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Hide scrollbar */
.featuredproduct-list::-webkit-scrollbar {
    display: none;
}

.featuredproduct-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/*-------Featured End------*/

/* Footer Styles */
.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

.social-links img {
    width: 30px;
    margin-left: 10px;
}


/*Load SubMenus*/
.category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav li {
    position: relative;
    padding: 10px;
    display: inline-block;
}

.category-nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 200px;
    max-height: 250px; /* Prevents overlapping */
    overflow-y: auto; /* Enables scrolling if there are too many subcategories */
    z-index: 1000;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: opacity 0.2s ease-in-out;
}


    .submenu li {
        padding: 10px;
        display: block;
    }

/* Show submenu on hover */
.category:hover .submenu {
    display: block;
}
/*End*/