/* GENERIC */

body {
    overflow-x: hidden;
}

.container, .container-fluid {
    overflow-x: hidden;
}

#backToTop {
    display: none;
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99; 
    border: none;
    outline: none;
    background-color: #0b7fa3;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

#backToTop:hover {
    background-color: #c6eef7;
}

.product-hover-card {
    transition: transform 0.2s ease-in-out;
}

.product-hover-card:hover {
    transform: scale(1.05);
    z-index: 10; 
}

.bg-green {
    background-color:  #58e161 !important;
}

.bg-featured-icon {
    background-color:  #fdac09 !important;
}

.bg-discount-color {
    background-color: #0b7fa3 !important;
}

.primary-accent-color {
    color: #0b7fa3 !important;
}


.top-banner{
    height: 40vh;
}

@media (max-width: 991.98px) {
    .top-banner {
        max-height: 30vh;
    }
}

.top-banner img{
    object-fit: cover; 
    top: 0; 
    left: 0; 
    z-index: 1;
}


.top-banner-text{
    z-index: 2; 
    background: rgba(0, 0, 0, 0.2);
    color: #45918c;
}

@media (max-width: 991.98px) {
    .top-banner-text{
        color: #fff !important;
    }
}

.icon-color{
    color: #0b7fa3;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    table-layout: fixed;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;

    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

th {
    background-color: #0b7fa3;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e8e8e8;
}

.row-header {
    background-color: #f9f9f9;
    font-weight: bold;
}

.rounded-15{
    border-radius: 15px !important;
}

.w-400 {
    width: 400px !important;
}

.h-80vh {
    height: 80vh !important;
}

.primary-text-color {
    color: #0b7fa3 !important;
}

.answer-bg {
    background-color: #c6eef7;
}

/*   S L I C K   C A R O U S E L   */
.slick-prev, .slick-next {
    z-index: 100;
    width: 50px;
    height: 50px;
}

.slick-prev {
    left: 25px;
}

.slick-next {
    right: 25px;
}

.slick-prev:before, .slick-next:before {
    font-size: 50px;
}

/* Fix dots styling */
.slick-dots {
    bottom: -40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
}

.slick-dots li button:before {
    width: 12px;
    height: 12px;
    font-size: 12px;
    line-height: 12px;
    opacity: 0.5;
    
}

.slick-dots li.slick-active button:before {
    opacity: 1;
    color: #0b7fa3;
}

.slick-slider {
    overflow: hidden;
}

.slick-list {
    overflow: hidden !important;
}


/*   N A V B A R   */
.categories-mega-menu {
    position: absolute;
    top: 120px; /* Changed from 100px to 100% - this will position it right at the bottom of the navbar */
    left: 0;
    right: 0;
    background-color: white;
    /*border-bottom: 2px solid #0d6efd;*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.categories-mega-menu.show {
    max-height: 600px;
    padding: 30px 0;
    overflow-y: auto;
}

.mega-menu-content {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.categories-mega-menu.show .mega-menu-content {
    opacity: 1;
    transition-delay: 0.1s;
}

/* Category Columns */
.category-column {
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.category-column:hover {
    background-color: #f8f9fa;
}

.category-parent-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0b7fa3;
    color: #212529;
}

.category-parent-title a {
    color: #212529;
    transition: color 0.2s;
}

.category-parent-title a:hover {
    color: #0b7fa3;
}

.category-children-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.category-children-list li {
    margin-bottom: 8px;
}

.category-children-list a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.category-children-list a:hover {
    color: #0b7fa3;
    background-color: #e7f1ff;
    padding-left: 15px;
}

/* Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mega-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Chevron rotation animation */
#categoriesChevron {
    transition: transform 0.3s ease;
    display: inline-block;
}

#categoriesChevron.rotated {
    transform: rotate(180deg);
}

/* Mobile Categories Styles */
.mobile-categories-collapse {
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 10px 0;
}

.mobile-categories-menu {
    padding: 10px;
}

.mobile-category-group {
    margin-bottom: 5px;
}

.mobile-category-parent {
    display: block;
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
}

.mobile-category-parent:hover {
    background-color: #e9ecef;
    color: #212529;
}

.mobile-category-children {
    padding-left: 15px;
    margin-bottom: 10px;
}

.mobile-category-child {
    display: block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #0b7fa3;
    color: #495057;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 3px;
}

.mobile-category-child:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: visible !important;
    }
}

/* Active nav link styling */
.nav-link.active {
    font-weight: 600;
    color: #0b7fa3 !important;
}

/* Ensure mega menu doesn't appear on mobile */
@media (max-width: 991.98px) {
    .categories-mega-menu {
        display: none !important;
    }
}

/* Seach Button */
.btn-outline-search {
    color: #0b7fa3;
    border-color: #0b7fa3;
    background-color: transparent;
    background-image: none;
}

.btn-outline-search:hover {
    color: #fff;
    background-color: #0b7fa3;
    border-color: #0b7fa3;
}

.btn-outline-search:focus, .btn-outline-search.focus {
    box-shadow: 0 0 0 0.25rem rgba(155, 203, 235, 0.5);
}

.btn-outline-search:active, .btn-outline-search.active {
    color: #fff;
    background-color: #0b7fa3;
    border-color: #0b7fa3;
}

.btn-outline-search:disabled, .btn-outline-search.disabled {
    color: #0b7fa3;
    background-color: transparent;
}

.language-button {
    padding: 0px !important; 
    border: none; 
    background-color: transparent;
}


/*   F O O T E R  */
footer a{
    text-decoration: none;
}

footer i {
    color: #0b7fa3;
}

.logo-slider {
    overflow: hidden; 
    padding: 40px 0;
    background: white;
    white-space: nowrap; /* Prevents logos from wrapping to a new line */
}

.logo-track img {
    width: 150px; 
    margin: 0 40px; /* 150px width + 40px left + 40px right = 230px total space per logo */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
}


/*   H O M E   */
/* hero carousel */
.hero-banner {
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    height: 70vh !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
}

/* categories carousel */
.categories-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 60px;
    }

.category-item {
    padding: 0 10px;
}

.category-card {
    padding: 20px;
    text-align: center;
}

.category-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 15px auto;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .categories-section {
        padding: 0 40px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    .categories-section {
        padding: 0 20px;
    }
    
    .category-image {
        width: 100px;
        height: 100px;
    }
    
    .category-name {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .categories-section {
        padding: 0 15px;
    }
    
    .category-item {
        padding: 0 5px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
    
    .slick-dots {
        bottom: -30px;
        gap: 5px;
    }
    
    .slick-dots li button:before {
        width: 10px;
        height: 10px;
        font-size: 10px;
    }
}

.featured-banners-slider .slick-slide {
    margin: 0 10px; /* Adjust the 10px to your preferred gap size */
}

.featured-banner {
    width: 100%; /* Ensure it fills the slider column */
    aspect-ratio: 2 / 1; /* Sets the 2:1 ratio */
    
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
    /* Remove the fixed height: 250px !important; */
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.article-card{
    transition: transform 0.2s ease-in-out;
}

.article-card:hover{
    transform: scale(1.05);
    z-index: 10; 
}

.testimonials-banners-slider .slick-slide{
    margin: 0 10px;
}

/*   S T O R E   */
.ajaxLoader{
    z-index: 999;
}

.ajaxLoader div{
    color:#0b7fa3; 
    width: 3rem; 
    height: 3rem;
}

.form-check-input:checked {
    background-color: #0b7fa3; 
    border-color: #0b7fa3; 
}

.form-check-input:focus {
    border-color: #0b7fa3;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(104, 163, 211, 0.25);
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: #0b7fa3;
    border-color: #0b7fa3;
}

.product-details-image{
    max-height: 500px; 
    object-fit: contain;
}

.product-details-price{
    font-size: 2.5rem; 
    color: #0b7fa3;
}

.nav-tabs .nav-link.active {
    color: white !important;
    background-color: #0b7fa3 !important;
    border-color: #0b7fa3 !important;
}

.nav-tabs .nav-link {
    color: #555;
}

.btn-reserve-enrage {
    background-color: #0b7fa3;
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-reserve-enrage:hover {
    background-color: #0b7fa3;
    color: white;
    transform: scale(1.02); 
    filter: brightness(1.1) saturate(1.3);
    box-shadow: 0 8px 15px rgba(155, 219, 235, 0.4);
}

.btn-reserve-enrage:active {
    transform: scale(0.95);
}



/*   C O N T A C T   */
.submit-button{
    background-color: #0b7fa3;
}

.submit-button:hover{
    background-color: #13addb;
}



/*   ARTICLES   */
.article-details-banner{
    height: 60vh;
}

.article-details-banner img{
    object-fit: cover; 
    top: 0; 
    left: 0; 
    z-index: 1;
}



/*   TESTIMONIALS   */
.star-rating {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 5px;
}

/* Hover and Checked states */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107; /* Bootstrap yellow */
}

.article-details-container{
    margin-top: -5vh;
    position: relative; 
    z-index: 10; 
}


/*   4 0 4   */
.outline-button{
    padding: 12px 24px; 
    border: 1px solid #bdc3c7; 
    color: #34495e; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold;
}