/*
 * Lucky Hunter storefront styles.
 * Started as the TemplateMo "Sixteen Clothing" template; unused template
 * sections were removed in 2026-11. Loaded on every storefront page via
 * resources/views/user/partials/head-assets.blade.php, after Bootstrap 4.
 * Admin pages do not load this file.
 *
 * Note: rule order matters — later rules override earlier ones, so add new
 * rules at the end of the section they belong to and check other pages.
 */

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #121212;
}

p {
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: 300;
    color: #4a4a4a;
    line-height: 24px;
}
a {
    text-decoration: none !important;
}
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
}

ul.social-icons li {
    display: inline-block;
    margin-right: 3px;
}

ul.social-icons li:last-child {
    margin-right: 0px;
}

ul.social-icons li a {
    width: 50px;
    height: 50px;
    display: inline-block;
    line-height: 50px;
    background-color: #eee;
    color: #121212;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s;
}

ul.social-icons li a:hover {
    background-color: #027148;
    color: #fff;
}

a.filled-button {
    background-color: transparent;
    color: #fff !important;
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 300;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s;
    /* Add transparent border initially */
    border: 1px solid #28a745;
}

a.filled-button:hover {
    color: #fff;
    cursor: pointer;
    background-color: #218838;
    border-color: #1e7e34;
}

.products-heading {
    background-image: url(../images/products-heading.jpg);
}

.contact-heading {
    background-image: url(../images/contact-heading.jpg);
}

.page-heading {
    padding: 210px 0px 130px 0px;
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-heading .text-content h4 {
    color: #027148;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-heading .text-content h2 {
    color: #fff;
    font-size: 62px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

#preloader {
    overflow: hidden;
    background: #027148;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    z-index: 9999999;
    color: #fff;
}

#preloader .jumper {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    position: absolute;
    margin: auto;
    width: 50px;
    height: 50px;
}

#preloader .jumper > div {
    background-color: #fff;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    position: absolute;
    opacity: 0;
    width: 50px;
    height: 50px;
    -webkit-animation: jumper 1s 0s linear infinite;
    animation: jumper 1s 0s linear infinite;
}

#preloader .jumper > div:nth-child(2) {
    -webkit-animation-delay: 0.33333s;
    animation-delay: 0.33333s;
}

#preloader .jumper > div:nth-child(3) {
    -webkit-animation-delay: 0.66666s;
    animation-delay: 0.66666s;
}

@-webkit-keyframes jumper {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    5% {
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes jumper {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Header Style */
/* Header base styles */
header {
    position: relative;
    z-index: 99999;
    width: 100%;
    height: 80px;
    background-color: #232323;
    transition: all 0.3s ease-in-out;
}

header .navbar {
    padding: 17px 0;
}

/* Sticky header styles */
.background-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #232323 !important;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
}

/* custom.js fixes the header once the page is scrolled past the banner;
   keep its 80px in the page so the content doesn't jump up */
body:has(header.background-header) {
    padding-top: 80px;
}

/* Sections the menu scrolls to: land just below the fixed header */
#products-section,
#about {
    scroll-margin-top: 80px;
}

.navbar-brand {
    padding-top: 0px;
    padding-bottom: 5px;
    margin-left: 50px;
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures space between elements */
    width: auto;
}

/* Navbar brand styles */
.navbar .navbar-brand h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s;
}

.navbar .navbar-brand h2 em {
    font-style: normal;
    color: #027148;
}

/* Navbar collapse styles */
#navbarResponsive {
    z-index: 999;
}

/* Navbar link and item styles */
.navbar .navbar-nav {
    display: flex;
    flex-wrap: nowrap; /* Prevent line wrapping */
    justify-content: center;
}

.navbar .navbar-nav .nav-item {
    margin: 0 5px;
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar .navbar-nav a.nav-link {
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
    transition: all 0.5s;
    margin-top: 5px;
    border-bottom: 3px solid transparent;
    position: relative;
}

/* Navbar hover and active link styles */
.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #027148;
    transition: width 0.3s;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .active > .nav-link::after,
.navbar .navbar-nav .nav-link.active::after,
.navbar .navbar-nav .nav-link.show::after,
.navbar .navbar-nav .show > .nav-link::after {
    width: 100%;
}

/* Navbar toggler styles */
.navbar .navbar-toggler {
    border-color: #fff;
    background-color: #fff;
    height: 36px;
    outline: none;
    border-radius: 0;
    position: absolute;
    right: 30px;
    top: 20px;
}

.navbar .navbar-toggler-icon {
    background-image: none;
}

.navbar .navbar-toggler-icon:after {
    content: "\f0c9";
    color: #027148;
    font-size: 18px;
    line-height: 26px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Handle long user names in navbar */
.navbar .navbar-nav .dropdown-toggle {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Limit the length of the username display */
}

/* Adjust navbar link alignment */
.navbar-collapse {
    text-align: center;
}

/* Language change Style */
.language-selector {
    position: relative;
    display: inline-block;
    align-items: center;
    cursor: pointer;
    padding-top: 0px;
    padding-bottom: 15px;
    margin-right: 2%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    width: 150px;
    justify-content: space-between;
    background: transparent;
    transition: background 0.3s;
}

.lang-toggle:hover {
    background: #027148;
}

.lang-toggle i {
    font-size: 22px;
    color: white;
}

.lang-toggle span {
    font-size: 15px;
    font-weight: 500;
    color: white;
    padding-top: 5px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    background: white;
    border: 2px solid black;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: white;
    background-color: #232323;
    transition: background 0.3s;
    font-size: 14px;
}

.lang-dropdown a:hover {
    background: #027148;
}

/* Profile Dropdown Styles */
.profile-dropdown-li {
    position: relative;
}

.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-toggle-link {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-toggle-link .fa-user {
    margin-right: 5px;
}

.profile-arrow {
    margin-left: 5px;
    font-size: 0.8em;
}

.profile-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; /* Position the left edge of the dropdown at the center of the parent */
    transform: translateX(-50%); /* Shift the dropdown left by half of its own width */
    background-color: #232323;
    border: 1px solid #464646;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0;
}

/* Common styling for ALL dropdown items (<a> tags, including the one in the form) */
.profile-menu-dropdown .dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #fff;
    background-color: #232323;
    text-decoration: none;
    font-size: 14px;
    transition:
        background-color 0.3s,
        color 0.3s;
    border-bottom: 1px solid #464646;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text from wrapping, making dropdown as wide as longest item */
}

/* Hover effect for ALL dropdown items */
.profile-menu-dropdown .dropdown-item:hover {
    background-color: #027148;
    color: #fff;
}

/* Styling for the form wrapper - ensure it's just a block container */
.profile-menu-dropdown .logout-form {
    display: block; /* Make the form take up its own line */
    margin: 0;
    padding: 0;
    /* The form itself is a container; its child <a> has the visible styles like background and border. */
}

/* Remove bottom border from the last visual item */
/* Case 1: If a direct <a> link is the last child of the dropdown (not the current case but robust) */
.profile-menu-dropdown > a.dropdown-item:last-child {
    border-bottom: none;
}
/* Case 2: If the logout form is the last child, remove the border from ITS inner link */
.profile-menu-dropdown > .logout-form:last-child > .dropdown-item {
    border-bottom: none;
}

/* Consistent icon styling for all dropdown items */
.profile-menu-dropdown .dropdown-item i {
    margin-right: 10px;
}

/* Banner Style */
.banner {
    position: relative;
    text-align: center;
}

.banner-item-01 {
    position: relative;
    height: 50vh;
    min-height: 320px;
    overflow: hidden;
}

.banner-item-01::before {
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.banner-item-02 {
    height: 50vh;
    min-height: 320px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.banner-item-03 {
    height: 50vh;
    min-height: 320px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.banner .text-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
}

.banner .text-content h4 {
    color: #027148;
    font-size: 60px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner .text-content h2 {
    color: #fff;
    font-size: 75px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.owl-banner .owl-dots {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
}
.owl-banner .owl-dots .owl-dot {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 10px;
    background-color: #fff;
    opacity: 0.5;
}
.owl-banner .owl-dots .owl-dot:focus {
    outline: none;
}
.owl-banner .owl-dots .owl-dot.active {
    background-color: #fff;
    opacity: 1;
}

/* Latest Products */

.latest-products {
    margin-top: 100px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.latest-products .section-heading a {
    float: right;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    color: #027148;
}

.product-item {
    border: 1px solid #3b3b3b;
    margin-bottom: 24px;
    margin-right: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item img {
    width: 100%;
    height: 280px;
    object-fit: fill;
}

.product-item .down-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
    padding: 28px;
    position: relative;
}

.product-item .down-content h4 {
    font-size: 16px;
    min-height: 38px;
    margin-bottom: 10px;
    color: #5db88a;
    position: static;
    z-index: 2;
}

.product-item .down-content h6 {
    font-size: 18px;
    color: white;
    position: static;
    margin-bottom: 8px;
    z-index: 2;
}

.product-item .down-content p {
    font-size: 13px;
    min-height: 58px;
}

.product-item .down-content ul li {
    display: inline-block;
}

.product-item .down-content ul li i {
    color: #027148;
    font-size: 14px;
}

.product-item .down-content span {
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 13px;
    color: #027148;
    font-weight: 500;
}

.product-item .down-content form {
    margin-top: auto;
}

/* Product results: full-width single card when only 1 result */
.filtered-products-container > .row > .col-md-4:only-child {
    flex: 0 0 100% !important;
    max-width: 33% !important;
}

/* "Similar products" on the product page: same cards as the home grid, 4 in a row on wide
   screens (2 x 2 at 992-1250px, stacked below), closed by the line other sections use */
.similar-products {
    margin-top: 60px;
    margin-bottom: 30px;
}

.similar-products .filtered-products-container {
    border-bottom: 1px solid #464646;
    padding-bottom: 60px;
}

@media (min-width: 1251px) {
    .similar-products .col-md-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Best Features */

.best-features {
    margin-top: 30px;
    margin-bottom: 30px;
}

.best-features .container .row {
    border-bottom: 1px solid #464646;
    padding-bottom: 60px;
}

.best-features img {
    width: 100%;
    overflow: hidden;
}

.best-features h4 {
    font-size: 17px;
    color: #5db88a;
    margin-bottom: 20px;
}
.best-features a {
    color: #5db88a;
}

.best-features ul.featured-list li {
    display: block;
    margin-bottom: 10px;
}

.best-features p {
    margin-bottom: 25px;
    color: #eef3f9;
}

.best-features ul.featured-list li a {
    font-size: 14px;
    color: #8d8f92;
    font-weight: 300;
    transition: all 0.3s;
    position: relative;
    padding-left: 13px;
}

.best-features ul.featured-list li a:before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    background-color: #4a4a4a;
    position: absolute;
    left: 0;
    transition: all 0.3s;
    top: 8px;
}

.best-features ul.featured-list li a:hover {
    color: #027148;
    cursor: default;
}

.best-features ul.featured-list li a:hover::before {
    background-color: #027148;
}

.best-features .filled-button {
    margin-top: 20px;
}

/* custom featured list*/

.best-features ul.custom-featured-list li {
    display: block;
    margin-bottom: 10px;
}
.best-features ul.custom-featured-list li a {
    font-size: 16px;
    color: #5db88a;
    font-weight: 300;
    transition: all 0.3s;
    position: relative;
    padding-left: 13px;
}

.best-features ul.custom-featured-list li a:before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    background-color: #4a4a4a;
    position: absolute;
    left: 0;
    transition: all 0.3s;
    top: 8px;
}

.best-features ul.custom-featured-list li a:hover {
    color: #5db88a; /* Set the hover color to be the same as the normal color */
}

/* Call To Action */

.call-to-action .inner-content {
    margin-top: 60px;
    padding: 30px;
    background-color: #232323;
    border: 1px solid #464646;
}

.call-to-action .inner-content h4 {
    font-size: 17px;
    color: #56b88a;
    margin-bottom: 15px;
}
.call-to-action .inner-content p {
    color: white;
}

.call-to-action .inner-content em {
    font-style: normal;
    font-weight: 700;
}

.call-to-action .inner-content .col-md-4 {
    text-align: center;
}

.call-to-action .inner-content .filled-button {
    margin-top: 12px;
}

/* Footer */

footer {
    text-align: center;
    position: relative;
}

footer .inner-content {
    border-top: 1px solid #464646;
    margin-top: 60px;
    padding: 60px 0px;
}

/* Phones and tablets: room under the last line, so the chat button doesn't cover it */
@media (max-width: 991px) {
    footer .inner-content {
        padding-bottom: 100px;
    }
}

footer .inner-content p {
    text-transform: uppercase;
}

footer .inner-content a {
    color: #027148 !important;
    margin-left: 3px;
}

/* Product Page */

.products {
    margin-top: 100px;
}

.products .filters {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 60px;
}

.products .filters li {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    color: #121212;
    display: inline-block;
    margin: 0px 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.products .filters ul li.active,
.products .filters ul li:hover {
    color: #027148;
}

.products ul.pages {
    margin-top: 30px;
    text-align: center;
}

.products ul.pages li {
    display: inline-block;
    margin: 0px 2px;
}

.products ul.pages li a {
    width: 44px;
    height: 44px;
    display: inline-block;
    line-height: 42px;
    border: 1px solid #eee;
    font-size: 15px;
    font-weight: 700;
    color: #121212;
    transition: all 0.3s;
}

.products ul.pages li a:hover,
.products ul.pages li.active a {
    background-color: #027148;
    border-color: #027148;
    color: #fff;
}

/* Team Members */

.team-members {
    margin-top: 100px;
}

p.description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%; /* Adjust this value as needed */
}

/* Services */

.services {
    background-image: url(../images/services-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0px;
}

/* Find Us */

.find-us {
    margin-top: 100px;
}

.find-us p {
    color: #eef3f9;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.find-us h4 {
    font-size: 17px;
    margin-bottom: 20px;
    color: #5db88a;
}

.find-us .left-content {
    margin-left: 30px;
}

.left-content p {
    font-size: 16px;
    line-height: 1.6;
}
.left-content .phone {
    color: #5db88a;
}

/* Phone cards styles for contact page */
.left-content .section-phone {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.left-content .section-phone .phone-link {
    width: 100%;
}

.left-content .section-phone .phone-item {
    width: 100%;
}

/* Send Message */
.send-message {
    margin-top: 100px;
}

.contact-form input,
.contact-form textarea {
    color: #fff; /* White text when typing */
    font-size: 14px;
    width: 100%;
    height: 44px;
    display: inline-block;
    line-height: 42px;
    border: 1px solid #eee;
    border-radius: 0.375rem; /* Rounded border */
    margin-bottom: 30px;
    background-color: transparent; /* Ensure transparency */
}

/* Placeholder color */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Focus styles */
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: none;
    color: white;
    border: 1px solid #027148; /* Change border color on focus */
}

/* Textarea height adjustments */
.contact-form textarea {
    min-width: 100%;
    min-height: 120px;
    height: 120px;
    max-height: 180px;
}

/* Button Styling */
.contact-form button.filled-button {
    background-color: #027148;
    color: #fff;
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 300;
    padding: 10px 20px;
    border-radius: 0.375rem; /* Rounded button */
    display: inline-block;
    transition: all 0.3s;
    border: none;
    outline: none;
    cursor: pointer;
}

.contact-form button.filled-button:hover {
    background-color: #121212;
    color: #fff;
}

.accordion a {
    cursor: pointer;
    font-size: 17px;
    color: #5db88a !important; /* Green text color for <a> */
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.accordion a:hover,
.accordion a.active {
    color: #027148 !important; /* Darker green on hover/active #027148 */
}

.accordion li .content {
    display: none;
    margin-top: 10px;
}

.accordion li .content p {
    color: white !important; /* Ensures text inside <p> is white */
}

.accordion li:first-child {
    border-top: 1px solid #eee;
}

.accordion li {
    border-bottom: 1px solid #eee;
    padding: 15px 0px;
}

/* Responsive Style */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    * {
        box-sizing: border-box;
    }

    .banner .text-content {
        width: 90%;
        margin-left: 5%;
    }
    .banner .text-content h4 {
        font-size: 22px;
    }

    .banner .text-content h2 {
        font-size: 36px;
        letter-spacing: 0.5px;
    }
    .banner-item-01,
    .banner-item-02,
    .banner-item-03 {
        height: 40vh;
        min-height: 220px;
        padding: 0;
    }
    .page-heading .text-content h4 {
        font-size: 22px;
    }

    .page-heading .text-content h2 {
        font-size: 36px;
        letter-spacing: 0.5px;
    }
    .latest-products .section-heading a {
        float: none;
        margin-top: 0px;
        display: block;
        margin-bottom: 20px;
    }
    .product-item .down-content h4 {
        margin-bottom: 20px !important;
    }
    .product-item .down-content h6 {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 10px !important;
        order: -1;
    }
    .product-item .down-content span {
        position: absolute !important;
        right: 30px !important;
        bottom: 30px !important;
    }
    .best-features {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .best-features .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .best-features .row {
        display: flex;
        flex-direction: column;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .best-features .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    .best-features .left-content {
        margin-bottom: 30px;
        order: 2; /* Show text after image on mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .best-features .left-content * {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .best-features .left-content p,
    .best-features .left-content h4,
    .best-features .left-content ul {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .best-features .right-image {
        order: 1; /* Show image before text on mobile */
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .best-features img {
        max-width: 100%;
        height: auto;
    }
    .call-to-action .inner-content {
        text-align: center;
    }
    .call-to-action .inner-content .filled-button {
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

    .find-us #map {
        margin-bottom: 30px;
    }
    .find-us .left-content {
        margin-left: 0px;
    }
    .send-message .accordion {
        margin-top: 30px;
        margin-left: 0px;
    }
}

/* Phone/tablet menu (the menu collapses behind ☰ below 1200px: navbar-expand-xl) */
@media (max-width: 1199px) {
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Keeps brand and language selector in a row */
        width: auto;
        position: relative;
    }

    .navbar .container {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    header .navbar {
        padding-top: 25px !important;
        margin-left: 5% !important;
    }

    .navbar-brand {
        padding-top: 0px;
        padding-bottom: 5px;
        margin-left: 10% !important;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the items horizontally */
        width: 100%;
        margin-top: 10px; /* Optional: Adds space between items */
    }
    /* Center the profile dropdown (username) */
    .navbar .ml-3.relative {
        margin: 0 auto;
        width: 100%;
        display: flex;
        justify-content: center; /* Ensures centering */
    }

    .navbar .navbar-brand {
        position: relative;
        width: auto;
    }
    .navbar:after {
        display: none;
    }
    #navbarResponsive {
        z-index: 99999;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        background-color: #fff;
        box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    }
    .navbar .navbar-nav .nav-item {
        border-bottom: 1px solid #eee;
    }
    .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navbar .navbar-nav a.nav-link {
        padding: 15px 0px;
        color: #1e1e1e !important;
    }
    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .active > .nav-link,
    .navbar .navbar-nav .nav-link.active,
    .navbar .navbar-nav .nav-link.show,
    .navbar .navbar-nav .show > .nav-link {
        color: #027148 !important;
        border-bottom: none !important;
        padding-bottom: 15px;
    }

    .lang-toggle {
        border: none;
    }

    .lang-toggle:hover {
        background: transparent;
    }

    .lang-toggle i {
        font-size: 22px;
        color: black;
    }

    .lang-toggle span {
        font-size: 16px;
        font-weight: 500;
        color: black;
    }
}

/* Just above the ☰ breakpoint the full menu (logged in: cart and user name) is tight */
@media (min-width: 1200px) and (max-width: 1299px) {
    .navbar .container {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar .navbar-nav .nav-item {
        margin: 0 2px;
    }
    .navbar .navbar-nav .nav-item:last-child {
        margin-right: 5px; /* the language button is a few px wider than its item */
    }
    .navbar .navbar-nav a.nav-link {
        font-size: 14px;
        letter-spacing: 0;
    }
}

@media (max-width: 992px) {
    .product-item .down-content h4 {
        margin-bottom: 10px;
    }
    .product-item .down-content h6 {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
    }
    .product-item .down-content span {
        position: relative;
        right: 0;
        bottom: 0;
    }
    .send-message .accordion {
        margin-top: 30px !important;
        margin-left: 0px;
    }
}

.cartbtn,
.searchbtn {
    background-color: transparent;
}

.cartbtn:hover,
.searchbtn:hover {
    background-color: #027148 !important;
}
.pagination {
    display: -ms-flexbox;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #56b88a;
    background-color: #272a2c;
    border: 1px solid #8d8f92;
}

.page-link:hover {
    z-index: 2;
    color: #027148;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem #027148;
}

.page-link:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: white;
    background-color: #027148;
    border-color: #027148;
}

.page-item.disabled .page-link {
    color: #56b88a;
    pointer-events: none;
    cursor: auto;
    background-color: #272a2c;
    border: 1px solid #8d8f92;
}

.product-secondary-img {
    width: 200px;
    height: 100px;
    border: 1px solid #464646;
    background-color: #464646;
}

/*section and filter*/

.form-control {
    background-color: transparent !important;
    border: 1px solid #464646;
}

/* Search field and button focus styles: remove default blue outline */
.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #027148 !important;
    color: #fff;
}
.btn:focus,
.btn:active,
.searchbtn:focus,
.searchbtn:active {
    outline: none !important;
    box-shadow: none !important;
}

.section-heading {
    text-align: left;
    margin-bottom: 60px;
}

/* Align section phone block to the right inside section headings */
.section-heading .section-heading-flex {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.section-heading .section-phone {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.section-heading h2 {
    font-size: 28px;
    font-weight: 400;
    padding-left: 24px;
    color: white;
    margin-bottom: 15px;
}

/* Phone Link Styles */
.phone-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.phone-link:hover {
    text-decoration: none;
    color: inherit;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.phone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(2, 113, 72, 0.3);
    border-color: #027148;
    background: #027148;
}

.phone-item i {
    font-size: 18px;
    color: #5db88a;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.phone-item:hover i {
    color: #ffffff;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: #2c3e50;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.phone-item:hover .phone-number {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .section-heading-flex {
        justify-content: flex-end !important;
    }

    .section-heading .section-phone {
        gap: 8px;
    }

    .latest-products .section-heading .phone-link {
        margin-bottom: 0 !important;
        display: block;
    }

    .phone-item {
        padding: 8px 12px;
        gap: 8px;
    }

    .phone-item i {
        font-size: 16px;
    }

    .phone-number {
        font-size: 14px;
    }
}

/* Product page description may run wider than its half-width column (not the full-width title: that made the page scroll sideways) */
.left-content.custom-section-heading {
    width: 150%;
}
.custom-section-heading h2 {
    color: #5db88a;
}

.custom-section-heading p {
    font-size: 18px;
    font-weight: 300;
}

.filter-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
}

.filter-item {
    margin: 5px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-item a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-item.active a {
    background-color: #027148;
    color: white;
}

.filter-parent {
    font-weight: bold;
    margin-top: 15px;
    width: 100%;
}

.filter-parent a {
    font-size: 1.1em;
    color: white;
}

.filter-sublist-wrapper {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #027148;
    width: calc(100% - 35px);
}

.filter-sublist {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    width: 100%;
}

.filter-child {
    width: 100%;
}

.filter-child a {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 25px;
}

.filter-item:hover a {
    background-color: rgba(2, 113, 72, 0.2);
    color: white;
}

.filter-item.active:hover a {
    background-color: #027148;
    color: white;
}

.filter-all {
    margin-bottom: 15px;
    width: 100%;
}

.filter-all a {
    font-weight: bold;
    color: white;
}

/* Show Product css  */
/* Default large screen layout */
.product-info {
    display: flex; /* Use flexbox to align items in a row */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space between name and price */
    gap: 10px; /* Space between name and price */
}

/* Product name */
.product-info h1 {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin: 0; /* Remove default margin */
}

/* Price styles */
.product-info .price p {
    color: #027148; /* Green color for the price */
    font-weight: bold;
    font-size: 1.5rem;
    white-space: nowrap; /* Prevent the price from wrapping */
}

/* Partial description */
.product-description-preview {
    margin-top: 20px; /* Add margin to create space above the description */
    color: white;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    line-height: 1.5;
    max-height: calc(1.5em * 4); /* Adjust based on line height and line limit */
    white-space: normal;
}

/*short specifications specs*/
.short-specs {
    margin-top: 25px;
}
.short-specs ul.custom-featured-list li a {
    font-size: 16px;
    color: white;
    font-weight: 300;
    transition: all 0.3s;
    position: relative;
    padding-left: 13px;
}

.short-specs ul.custom-featured-list li a:before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    background-color: #4a4a4a;
    position: absolute;
    left: 0;
    transition: all 0.3s;
    top: 8px;
}
.short-specs:hover {
    color: white;
}
.short-specs ul.custom-featured-list li a span {
    margin-right: 10px; /* Adjust the value as needed for spacing */
    margin-left: 10px;
}

.specs-header {
    color: #027148; /* Set the text color to green */
    font-size: 1.2rem; /* Adjust the font size as needed */
    margin-bottom: 10px; /* Space below the header */
    font-weight: 600; /* Make it bold, adjust if needed */
}

/*stock and button*/
.stock-info {
    margin-top: 25px; /* Margin top for spacing */
}

.stock-status {
    font-size: 1.2rem; /* Adjust font size */
    font-weight: bold; /* Make it bold */
    margin-bottom: 5px; /* Space below stock status */
}

.in-stock {
    color: #027148; /* Green color for 'In stock' */
}

.out-of-stock {
    color: #dc3545; /* Red color for 'Out of stock' */
}

.quantity-left {
    font-size: 1rem; /* Adjust font size */
    color: white; /* White color for quantity */
}

.quantity {
    font-weight: bold; /* Make quantity bold */
    color: #027148;
}

.add-to-cart-container {
    margin-top: 15px; /* Space above the add to cart button */
}

.more-link,
.less-link {
    color: #027148;
    cursor: pointer;
    font-weight: 600;
}

/* Shrink at wider screens */
@media (max-width: 1024px) {
    .product-info h1 {
        font-size: 1.8rem;
    }
    .product-info .price {
        font-size: 1.6rem;
    }
}

/* Smaller tablets */
@media (max-width: 900px) {
    .product-info h1 {
        font-size: 1.6rem;
    }
    .product-info .price {
        font-size: 1.5rem;
    }
}

/* Large phones */
@media (max-width: 800px) {
    .product-info h1 {
        font-size: 1.4rem;
    }
    .product-info .price {
        font-size: 1.4rem;
    }
}

.container {
    max-width: 1800px; /* Increased for wider layout */
    padding-left: 40px;
    padding-right: 40px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Product page: image column and details column */
.container-row {
    margin-top: 100px;
}

.container-row > .col-md-8,
.container-row > .col-md-4 {
    display: flex;
    flex-direction: column;
}

/* Product grid with filter sidebar (home page and search results) */
.latest-products .col-md-8,
.latest-products .col-md-4 {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

/* Tablets (below 992px): the filter sidebar is hidden, so the products use the full width,
   2 cards per row */
@media (max-width: 991px) {
    .latest-products .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .latest-products .col-md-4,
    .filtered-products-container > .row > .col-md-4:only-child {
        flex: 0 0 50% !important; /* !important: beats the single-result rule */
        max-width: 50% !important;
        margin-bottom: 30px;
    }
    .latest-products .product-item {
        margin: 0;
    }
    .latest-products .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Phones (below 576px): one card per row, at most 400px wide */
@media (max-width: 575px) {
    .latest-products .col-md-4,
    .filtered-products-container > .row > .col-md-4:only-child {
        flex: 0 0 100% !important;
        max-width: 400px !important;
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Main product image */
.product-main-img-container {
    width: 100%; /* Full width of the container */
    max-width: 700px; /* Maximum width for the main image */
    height: 400px; /* Fixed height for the main image */
    overflow: hidden; /* Hide overflow to prevent cropping */
    border-radius: 8px; /* Rounded corners */
    position: relative; /* Positioning context for children */
}

/* Main product image */
.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.3s ease;
}

/* Secondary images */
.secondary-images-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on larger screens */
    gap: 10px; /* Spacing between thumbnails */
    margin-top: 15px;
    margin-bottom: 30px; /* Spacing below thumbnails on all screens */
}

.secondary-images-container .thumbnail-wrapper {
    flex: 0 0 auto;
    width: 100px; /* Fixed width for wrapper */
    height: 100px; /* Fixed height for wrapper */
    overflow: hidden; /* Hide overflow to ensure consistent size */
    border-radius: 4px;
}

.product-secondary-img {
    width: 100% !important; /* Full width of wrapper */
    height: 100% !important; /* Full height of wrapper */
    object-fit: cover !important; /* Cover entire area, maintain aspect ratio */
    cursor: pointer;
    border: 1px solid #027148 !important;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    display: block; /* Remove any inline spacing */
    padding: 0 !important; /* Remove any padding from img-thumbnail class */
    max-width: none !important; /* Remove max-width constraints */
}

.product-secondary-img:hover {
    border-color: #027148;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .product-main-img-container {
        height: 300px; /* Adjust height for mobile if needed */
    }

    .product-secondary-img {
        width: 70px !important; /* Smaller size for mobile screens */
        height: 70px !important; /* Fixed height for mobile */
        margin: 0; /* Remove margin, gap handles spacing */
        object-fit: cover; /* Ensure image fills container */
    }
    /* Fix for secondary images container - horizontal scroll on mobile */
    .secondary-images-container {
        display: flex !important; /* Use flexbox */
        flex-wrap: nowrap !important; /* Prevent wrapping to a new line */
        overflow-x: auto !important; /* Allow horizontal scrolling if needed */
        overflow-y: hidden !important; /* Prevent vertical scroll */
        margin-top: 15px; /* Spacing above the secondary images */
        margin-bottom: 30px !important; /* Spacing below thumbnails on mobile */
        justify-content: flex-start; /* Align items to the start */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding-bottom: 10px; /* Space for scrollbar */
        gap: 8px; /* Spacing between thumbnails */
    }

    .secondary-images-container .thumbnail-wrapper {
        flex: 0 0 auto; /* Don't grow or shrink, use content size */
        width: auto !important; /* Auto width based on content */
    }

    .show-product h1 {
        font-size: 2.5rem;
    }

    .price p {
        font-size: 1.5rem;
        color: #027148;
    }
}
/*image arrows*/
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Dark background for better visibility */
    color: #027148; /* White text color */
    border: none;
    font-size: 2rem; /* Adjust size as needed */
    cursor: pointer;
    z-index: 10; /* Ensure arrows are above images */
    padding: 10px; /* Padding for click area */
    border-radius: 50%; /* Rounded buttons */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

.left-arrow {
    left: 10px; /* Position left */
}

.right-arrow {
    right: 10px; /* Position right */
}
/* Active state for clicked arrows */
.arrow:focus {
    outline: 2px solid #027148; /* Ensures consistent outline */
    outline-offset: 2px; /* Moves the outline away from the border */
}

/* Change button color on hover */
.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Slightly darker on hover */
}

/* check mark css*/
.success-checkmark {
    display: none; /* Hide the checkmark initially */
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 13px;
    color: #027148;
    font-weight: 500;
}
.success-checkmark-product {
    right: auto !important;
    margin-left: 10px;
}
.check-icon {
    width: 56px; /* 80px - 30% */
    height: 56px; /* 80px - 30% */
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4caf50;

    &::before {
        top: 2px; /* 3px - 30% */
        left: -1px; /* -2px - 30% */
        width: 21px; /* 30px - 30% */
        transform-origin: 100% 50%;
        border-radius: 70px 0 0 70px;
    }

    &::after {
        top: 0;
        left: 21px; /* 30px - 30% */
        width: 42px; /* 60px - 30% */
        transform-origin: 0 50%;
        border-radius: 0 70px 70px 0;
        animation: rotate-circle 4.25s ease-in;
    }

    &::before,
    &::after {
        content: "";
        height: 70px; /* 100px - 30% */
        position: absolute;
        background: #121212;
        transform: rotate(-45deg);
    }

    .icon-line {
        height: 3.5px; /* 5px - 30% */
        background-color: #4caf50;
        display: block;
        border-radius: 2px;
        position: absolute;
        z-index: 10;

        &.line-tip {
            top: 32px; /* 46px - 30% */
            left: 9.8px; /* 14px - 30% */
            width: 17.5px; /* 25px - 30% */
            transform: rotate(45deg);
            animation: icon-line-tip 0.75s;
        }

        &.line-long {
            top: 26.6px; /* 38px - 30% */
            right: 5.6px; /* 8px - 30% */
            width: 32.9px; /* 47px - 30% */
            transform: rotate(-45deg);
            animation: icon-line-long 0.75s;
        }
    }

    .icon-circle {
        top: -2px; /* -4px - 30% */
        left: -2px; /* -4px - 30% */
        z-index: 10;
        width: 56px; /* 80px - 30% */
        height: 56px; /* 80px - 30% */
        border-radius: 50%;
        position: absolute;
        box-sizing: content-box;
        border: 4px solid rgba(76, 175, 80, 0.5);
    }

    .icon-fix {
        top: 5.6px; /* 8px - 30% */
        width: 3.5px; /* 5px - 30% */
        left: 18.2px; /* 26px - 30% */
        z-index: 1;
        height: 59.5px; /* 85px - 30% */
        position: absolute;
        transform: rotate(-45deg);
        background-color: #121212;
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 0.7px; /* 1px - 30% */
        top: 13.3px; /* 19px - 30% */
    }
    54% {
        width: 0;
        left: 0.7px; /* 1px - 30% */
        top: 13.3px; /* 19px - 30% */
    }
    70% {
        width: 35px; /* 50px - 30% */
        left: -5.6px; /* -8px - 30% */
        top: 25.9px; /* 37px - 30% */
    }
    84% {
        width: 11.9px; /* 17px - 30% */
        left: 14.7px; /* 21px - 30% */
        top: 33.6px; /* 48px - 30% */
    }
    100% {
        width: 17.5px; /* 25px - 30% */
        left: 9.8px; /* 14px - 30% */
        top: 31.5px; /* 45px - 30% */
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 32.2px; /* 46px - 30% */
        top: 37.8px; /* 54px - 30% */
    }
    65% {
        width: 0;
        right: 32.2px; /* 46px - 30% */
        top: 37.8px; /* 54px - 30% */
    }
    84% {
        width: 38.5px; /* 55px - 30% */
        right: 0px;
        top: 24.5px; /* 35px - 30% */
    }
    100% {
        width: 33px; /* 47px - 30% */
        right: 5.6px; /* 8px - 30% */
        top: 26.6px; /* 38px - 30% */
    }
}

/*
Cart Css*/
.nav-cart-count > a {
    display: flex;
    align-items: center;
}
.nav-cart-count .fa-shopping-cart {
    margin-right: 8px;
}
.counter-count {
    display: flex;
    align-items: center;
    margin-left: 5px;
    width: 40px;
}
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 25px;
}

.table thead th {
    padding: 30px; /* Add padding to all sides of the table headers */
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle; /* Center content vertically */
    text-align: center; /* Center content horizontally */
}
.table tbody td {
    padding: 25px 25px 25px;
    align-items: center;
    vertical-align: middle; /* Center content vertically */
    text-align: center; /* Center content horizontally */
}
.custom-number-input {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table tbody td img {
    display: block; /* Set image to display as a block element */
    margin: 0 auto; /* Center the image horizontally */
}

/* Or, if you prefer margin instead of padding */

.container-cart {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.table {
    color: white;
    border-collapse: collapse;
    width: 100%;
}

.table th {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    text-align: left;
    border-top: none;
}
.table td {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.showcart-footer {
    margin-top: 20px;
    text-align: center;
}

.empty h2 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 25px;
    margin-top: 25px;
}
.custom-row-flex {
    display: flex;
    justify-content: space-between;
    padding: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.empty-space {
    flex: 0 0 60%;
    max-width: 60%;
}

.custom-col-md-4 {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: right;
}
.total-price {
    text-align: center;
}

.showcart-btn {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: center;
}

/* Tablets and phones: total on one centred line, order button centred below */
@media (max-width: 991px) {
    .custom-row-flex {
        justify-content: center;
        gap: 8px;
    }
    .custom-row-flex .empty-space {
        display: none;
    }
    .custom-row-flex .custom-col-md-4 {
        flex: none;
        max-width: none;
        white-space: nowrap;
    }
    .showcart-footer .row {
        flex-direction: column;
        align-items: center;
    }
}

.custom-number-input {
    display: flex;
    align-items: center;
}

.custom-number-input input[type="number"] {
    background-color: transparent;
    border: none;
    color: white;
    width: 50px;
    text-align: center;
    margin: 0 5px;
    -moz-appearance: textfield;
}

.custom-number-input div {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.custom-number-input div:hover {
    color: lightgray;
}

/* Hide the default number input arrows */
.custom-number-input input[type="number"]::-webkit-inner-spin-button,
.custom-number-input input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
    Admin*/

/* Modal styles */

/* Modal */

/* The Modal (background) */

.modal-content {
    background-color: #232323;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
    height: 25%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px; /* Add some space below the h2 */
}

.modal-content p {
    color: white;
    margin-bottom: 10px; /* Add space between paragraphs */
}

#modalOkButton {
    margin-top: auto; /* Push the button to the bottom */
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    border: none;
}

/*
user chat css*/
/* Sent messages (from the user) */
.message-input-container {
    flex: 1;
    position: relative;
}

.preview-container {
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.preview-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
}

.remove-preview {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.image-attachment img {
    max-width: min(200px, 100%); /* never wider than the message bubble */
    max-height: 200px;
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
}

.file-attachment {
    margin-top: 5px;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
}

.file-link {
    color: #2c5282;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.file-link i {
    margin-right: 5px;
}

.message.error {
    background-color: #ffebee;
    border-left: 3px solid #f44336;
    color: #d32f2f;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.message.error i {
    margin-right: 5px;
}

.sending-indicator {
    text-align: center;
    font-style: italic;
    color: #999;
    padding: 5px;
    margin: 5px 0;
}

.error-image {
    max-width: 100px;
    max-height: 100px;
    border: 1px dashed #ddd;
    padding: 10px;
    background-color: #f9f9f9;
}

.chat-container {
    position: fixed; /* Fixed positioning to keep it in view */
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    z-index: 1000; /* Ensure it's on top of other elements */
}

.chat-icon {
    background-color: #027148; /* Background color for the chat icon */
    border-radius: 50%; /* Make it round */
    height: 50px; /* Icon size */
    width: 50px; /* Icon size */
    display: flex; /* Center the icon */
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Pointer cursor on hover */
    color: white; /* Icon color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

.chat {
    display: none; /* Initially hidden */
    background-color: white; /* Background color for chat */
    border: 1px solid #027148; /* Border color for the chat */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
    width: 300px; /* Set chat width */
    height: auto; /* Auto height based on content */
    position: absolute; /* Position it relative to the chat icon */
    bottom: 60px; /* Adjust as necessary */
    right: 0; /* Align to the right */
    transition: all 0.3s ease; /* Smooth transition */
}

/* Chat header with admin info */
.chat-header {
    background-color: #027148;
    color: white;
    padding: 12px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-info i {
    font-size: 18px;
}

.admin-info span {
    font-weight: 500;
    font-size: 16px;
}

.messages {
    display: flex;
    flex-direction: column; /* Stack messages in a column */
    height: 400px; /* Set a fixed height for the chat area */
    overflow-y: auto; /* Enable scrolling if messages exceed the height */
    overflow-x: hidden; /* No sideways scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #027148 transparent; /* Green thumb and black track for Firefox */
}

.message {
    max-width: 70%; /* Limit the maximum width of messages */
    border-radius: 15px; /* Rounded corners */
    margin: 5px 0; /* Space between messages */
    padding: 10px 15px; /* Padding inside messages */
    word-wrap: break-word; /* Allow word wrapping */
}

/* Sent messages (from the user) */
.message.sent {
    background-color: #027148;
    align-self: flex-end; /* Align sent messages to the right */
}

.message.sent p {
    color: white;
}

/* Received messages (from the admin) */
.message.received {
    background-color: #f1f0f0;
    align-self: flex-start; /* Align received messages to the left */
}

/* Message timestamp styling */
.timestamp {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 4px;
    text-align: right;
}

.message.sent .timestamp {
    color: rgba(255, 255, 255, 0.7);
}

/* Style the form container */
.chat-form {
    display: flex;
    align-items: center;
    width: 100%; /* Ensures full width of the parent container */
}

/* Style the input field */
.chat-form input[type="text"] {
    flex: 1;
    padding: 5px;
    border: 2px solid grey; /* Default grey border */
    border-radius: 10px; /* More rounded corners */
    margin-right: 10px;
    min-width: 0;
    outline: none; /* Removes the blue outline */
    transition: border-color 0.3s ease; /* Smooth transition */
}

/* Change border color on focus */
.chat-form input[type="text"]:focus {
    border-color: #027148; /* Green border on focus */
    box-shadow: 0 0 5px rgba(2, 113, 72, 0.5); /* Optional: Add a subtle green shadow */
    outline: none;
}

/* Attachment button styles */
.attachment-button {
    height: 40px;
    width: 40px;
    background-color: transparent;
    border: none; /* don't depend on other page styles to remove the default border */
    cursor: pointer;
    transition:
        color 0.3s ease,
        border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border-radius: 5px;
    margin-right: 10px;
}

.attachment-button:focus,
.attachment-button:active {
    outline: none;
    border-color: transparent;
}

.attachment-button i {
    color: grey;
    font-size: 20px;
    transition: color 0.3s ease;
}

.attachment-button:focus i,
.attachment-button:hover i {
    color: #027148;
}

/* Style the button */
.chat-button {
    height: 40px;
    width: 40px;
    background-color: transparent;
    border: none; /* don't depend on other page styles to remove the default border */
    cursor: pointer;
    transition:
        color 0.3s ease,
        border-color 0.3s ease; /* Smooth transition */
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border-radius: 5px;
}

/* Remove focus outline when the button is clicked or focused */
.chat-button:focus,
.chat-button:active {
    outline: none; /* Ensure no focus outline on button */
    border-color: transparent; /* Optional: Set the border color to transparent */
}

.chat-button i {
    color: grey; /* Default grey icon color */
    font-size: 20px;
    transition: color 0.3s ease; /* Smooth color transition */
}

.chat-button:focus i,
.chat-button:hover i {
    color: #027148; /* Green icon on focus/hover */
}

/* Optional: Media query to ensure responsiveness on smaller screens */
@media (max-width: 600px) {
    .chat-form {
        flex-direction: column;
    }

    .chat-form input[type="text"] {
        width: 100%; /* Full width for input on small screens */
        margin-right: 0;
        margin-bottom: 10px; /* Space between input and button on small screens */
    }

    .chat-button {
        width: 100%; /* Full width for button on small screens */
    }
}

/* Not authenticated users */
/* Not authenticated users */
.auth-required {
    text-align: center;
    background-color: #f1f1f1;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    border: 1px solid #027148;
    min-height: 500px; /* Adjust this value to make it match the size of authenticated chat */
}

.auth-message {
    margin-top: 20%;
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.auth-btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.login-btn {
    background-color: #027148;
    color: white;
    border: 2px solid transparent; /* Transparent border initially */
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.login-btn:hover {
    background-color: white;
    color: #024d35;
    border-color: #027148; /* Change the border color on hover */
    box-shadow: 0 0 10px rgba(2, 113, 72, 0.5);
}

.register-btn {
    background-color: transparent;
    color: #027148;
    border: 2px solid #027148;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.register-btn:hover {
    background-color: #027148;
    color: white;
    box-shadow: 0 0 10px rgba(2, 113, 72, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-container {
        margin-bottom: 30px;
    }

}

#load-more {
    display: none;
}

@media (max-width: 1250px) and (min-width: 992px) {
    /* At least the rows' 15px negative margin, or pages scroll sideways */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .latest-products .col-md-4 {
        flex: 0 0 49.5%;
        max-width: 49.5%;
    }
    .product-item {
        margin-right: 4px;
        margin-bottom: 8px;
    }
    .send-message .accordion {
        margin-top: 30px !important;
        margin-left: 0px;
    }
}

/* Mobile filter drawer styles */
.mobile-filter-btn {
    display: none;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: 0;
    display: inline-block;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #232323;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-filter-drawer.open {
    left: 0;
}
.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #444;
    background: #232323;
}
.mobile-filter-header span {
    color: #5db88a;
    font-size: 1.2em;
    font-weight: bold;
}
.close-mobile-filter {
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
}
.mobile-filter-content {
    padding: 20px;
}
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1002;
}
.mobile-filter-overlay.open {
    display: block;
}

@media (max-width: 991px) {
    .filter-sidebar {
        display: none !important;
    }
    .mobile-filter-btn {
        display: block !important;
    }
}

/* Admin Categories Styles */

/* Lightbox for image preview */

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make image thumbnails clickable */
.image-attachment img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-attachment img:hover {
    transform: scale(1.05);
}

/* Prevent content shift when lightbox opens */
body.lightbox-open {
    overflow: hidden; /* Prevent scrolling when lightbox is open */
    padding-right: 17px; /* Add padding equal to scrollbar width to prevent content shift */
}

/* Existing lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/*@ media queries*/

.section-heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.section-heading-flex .section-phone h2,
.section-heading-flex h2 {
    white-space: nowrap;
    font-size: 2rem;
    transition: font-size 0.2s;
}

@media (max-width: 900px) {
    .section-heading-flex .section-phone h2,
    .section-heading-flex h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .section-heading-flex .section-phone h2,
    .section-heading-flex h2 {
        font-size: 1rem;
    }
    .section-heading-flex {
        gap: 8px;
    }
}
