/********** Template CSS **********/
:root {
    --primary: #26a6de;
    --secondary: #eca220;
    --light: #F7F8FC;
    --dark: #111111;
}


/* Add the following styles */
.logo-image {
    max-width: 150px; /* Default size */
    height: auto;
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 100px; /* Smaller size for mobile */
    }
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

#searchBar {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

#searchBar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchBar input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

#searchBar button {
    padding: 10px 15px;
    background: #26a6de;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#searchBar button:hover {
    background: #1d8cc1;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #555555;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: #0d7ff0;
    border: 10px solid #0c76df;
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}



/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
.nav-pills {
    display: flex;
    flex-wrap: wrap; /* Ensures buttons wrap on smaller screens */
    gap: 10px; /* Adds spacing between buttons */
    justify-content: center; /* Centers the buttons */
}

.nav-pills .nav-item .btn {
    color: var(--dark);
    border-radius: 25px; /* Optional: Rounded corners for buttons */
    padding: 10px 15px; /* Adds padding for better touch area */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover transition */
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
    background-color: var(--primary); /* Optional: Adds a background color for hover/active states */
    border-color: var(--primary); /* Matches border color with active background */
}

/* Optional: Style adjustments for smaller screens */
@media (max-width: 768px) {
    .nav-pills {
        gap: 8px; /* Slightly reduce gap on smaller screens */
    }

    .nav-pills .nav-item .btn {
        padding: 8px 12px; /* Adjust button padding for smaller screens */
    }
}



/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


.firm-visit {
    background-color: #f8f9fa; /* Light background */
    padding: 3rem 0; /* Top and bottom padding */
}

.firm-visit h1 {
    font-size: 2.5rem; /* Large heading size */
    font-weight: bold;
    color: #000; /* Black color for heading */
}

.firm-visit p {
    font-size: 1.1rem; /* Readable paragraph size */
    line-height: 1.8; /* Improve readability */
    color: #333; /* Dark gray for text */
}

.firm-visit .fa-check {
    font-size: 1rem; /* Icon size */
    vertical-align: middle; /* Align icon with text */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--secondary);
}

/* ---- CART POPUP ---- */
.cart-popup {
    position: absolute;
    top: 60px;
    right: 50px;
    width: 280px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Close button should be circular */
.close-btn {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Cart checkout button should be circular */
.btn-circle {
    border-radius: 50px; 
    padding: 10px;
    font-weight: bold;
}

/* Cart items container with proper spacing */
.cart-items-container {
    max-height: 200px;  /* Limits the height */
    overflow-y: auto;   /* Enables scrolling */
    margin-bottom: 10px; /* Adds space between scrollbar and X button */
    padding-right: 10px; /* Ensures scrollbar isn't too close */
}

/* Adjust scrollbar spacing */
.cart-items-container::-webkit-scrollbar {
    width: 15px; /* Smaller scrollbar */
}

.cart-items-container::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Light grey scrollbar */
    border-radius: 4px;
}


/*** Cart popup End ***/


/* ---- DARK OVERLAY WHEN PAYMENT IS CLICKED ---- */
#overlay {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);  /* Dark transparent background */
    z-index: 9999;  /* Ensure it appears on top */
}


/* ---- Cart Styles ---- */
.cart-summary {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-pay {
    font-size: 18px;
    font-weight: bold;
    width: 50%;
}

.total-container {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 0;
    border-top: 2px solid #ddd;
}

/* Scrollable Cart Summary */
#cart-items-summary {
    max-height: 260px; /* Adjust height to fit approx. 3 items */
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for Cart */
#cart-items-summary::-webkit-scrollbar {
    width: 3px;
}

#cart-items-summary::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 5px;
}

#cart-items-summary::-webkit-scrollbar-thumb:hover {
    background: #777;
}



@media (max-width: 991px) {
    .navbar .d-flex {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .btn-sm-square {
        width: 40px; /* Adjust button size */
        height: 40px;
    }

    .navbar .btn-sm-square {
        margin: 0 5px; /* Add space between buttons */
    }
}

@media (max-width: 768px) {
    .cart-popup {
        right: 50%;
        transform: translateX(50%); /* Centers the popup */
        width: 90%; /* Makes it wider on small screens */
        max-width: 320px; /* Prevents it from being too wide */
        top: 50px; /* Adjusts height so it doesn't overlap navbar */
    }
}

@media (max-width: 991px) {
    .navbar .d-flex {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .btn-sm-square {
        width: 40px;
        height: 40px;
    }

    #cart-popup {
        right: 50%;
        transform: translateX(50%); /* Centers the cart popup */
        width: 300px; /* Slightly larger for tablets */
        max-height: 400px;
        overflow-y: auto;
        border-radius: 10px;
    }
}


.cart-popup {
    display: none; /* Hide by default */
    position: absolute;
    top: 80px;
    right: 50px;
    width: 280px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Show cart popup when it has 'show' class */
.cart-popup.show {
    display: block;
}

@media (max-width: 768px) {
    .cart-popup {
        right: 50%;
        transform: translateX(50%); /* Centers the popup */
        width: 90%; /* Makes it wider on small screens */
        max-width: 320px; /* Prevents it from being too wide */
        top: 50px; /* Adjusts height so it doesn't overlap navbar */
    }
}

@media (max-width: 991px) {
    .navbar .d-flex {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .btn-sm-square {
        width: 40px;
        height: 40px;
    }

    #cart-popup {
        right: 50%;
        transform: translateX(50%); /* Centers the cart popup */
        width: 300px; /* Slightly larger for tablets */
        max-height: 400px;
        overflow-y: auto;
        border-radius: 10px;
    }
}

/* Checkout Page Styling */
.total-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 0;
    border-top: 2px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

/* Local currency styling */
#local-currency {
    font-size: 1.6rem;
    font-weight: bold;
    color: #27ae60;
}

/* Converted currency list */
#other-currencies {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    color: #555;
}

#currency-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

#currency-list li {
    font-size: 1rem;
    padding: 5px;
    color: #333;
}

/* Dark overlay when payment is initiated */
#overlay {
    display: none;
    position: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .total-container {
        width: 90%;
        font-size: 1.2rem;
    }
    #local-currency {
        font-size: 1.4rem;
    }
    #currency-list li {
        font-size: 0.9rem;
    }
}

/* Centered Total Price Section */
.total-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 20px;
    border-top: 2px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px auto; /* Centers it */
    width: 100%;
    max-width: 400px; /* Adjusts width for different screens */
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Local currency styling */
#local-currency {
    font-size: 1.8rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}

/* Converted currency list */
#other-currencies {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    color: #555;
}

#currency-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

#currency-list li {
    font-size: 1rem;
    padding: 5px;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .total-container {
        width: 90%;
        font-size: 1.2rem;
    }
    #local-currency {
        font-size: 1.5rem;
    }
    #currency-list li {
        font-size: 0.9rem;
    }
}

 /* Custom style alert */
 
 .custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 10px;
    z-index: 1001;
    max-width: 300px;
}

.custom-alert h3 {
    margin-top: 0;
    color: #26a6de;
}

.custom-alert p {
    font-size: 16px;
    margin-bottom: 15px;
}

.custom-alert button {
    background: #eca220;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}





