@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Radio+Canada+Big&display=swap");

/* #region Root */
:root {
    /*
    Naming:
    First the class or id it belongs to. ex body
    next what area it targets. ex background (can be as many as needed. ex active-text)
    then lastly the attributes name. ex color
    */
    --main-background-color: #ffff;
    --main-text-color: #000;
    --main-content-background-color: rgb(255, 255, 255);

    --accent-background-color: #ac0000;

    /*clearence*/
    --clearance-background-color: #1ea5d6;

    --navbar-main-height: 107px;
    --navbar-height: calc(var(--navbar-main-height) + 35px);

}

/* Mobile devices */
@media (max-width: 767px) {

    /* Styles for mobile devices */
    html {
        font-size: 12px;
    }

    /* Add other mobile-specific styles here */
}

/* Tablet devices */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Styles for tablet devices */
    html {
        font-size: 14px;
    }

    /* Add other tablet-specific styles here */
}

/* Desktop devices */
@media (min-width: 1025px) {

    /* Styles for desktop devices */
    html {
        font-size: 16px;
    }

    /* Add other desktop-specific styles here */
}

/* #endregion */

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    background-color: #fcfcfc !important;
    color: var(--main-text-color);
    overflow-x: hidden;
}

main {
    min-height: 100vh;
}

main #maincontent {
    min-height: 100vh;
    margin-top: 50px;
    /* Increase spread radius */
    /* Use primary color as shadow color */
}

main #maincontent section {
    padding-bottom: 5vh;
}

/* Autofill background color 
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
*/

/* General input styles */
input,
textarea,
select {
    border: 1px solid #d9dee4;
    /* Default border color */
    transition: border-color 0.2s !important;
    /* Smooth transition */
}

/* Focus styles for input boxes */
input:focus,
textarea:focus,
select:focus {
    border-color: #a0a4a8 !important;
    /* Light red border color */
    outline: none !important;
    /* Remove the default outline */
}



/* #region Navigation */
.nav-scroller {
    position: sticky;
    /* Make the nav sticky at the top */
    top: 0;
    /* Position it at the top */
    z-index: 6;
    /* Ensure it stays above other content */
    transition: top 0.3s;
    /* Smooth transition for hiding/showing */

    /* Add padding for better clickability */
    font-family: "Radio Canada Big", sans-serif;
}

.nav-scroller-hidden {
    top: -100%;
    /* Hide the nav scroller when this class is added */
}

.icon-white {
    color: white !important;
    /* Force white color on icons */
}

.navbar {
    background-color: #000 !important;
    /* Black background for the navbar */
}

.search-box {
    display: flex;
    /* Flexbox for alignment */
    align-items: center;
    /* Center items vertically */
    background-color: rgb(255, 255, 255);
    /* White background for search box */
    width: 100%;
    /* Full width of its container */
    border-radius: 20px;
}

.search-box input {
    border: none;
    /* Remove border */
    outline: none;
    /* Remove outline */
    flex: 1;
    /* Allow input to take up remaining space */
    border-radius: 20px;
}

.search-button {
    border: none;
    /* Remove border */
    background-color: transparent;
    /* Transparent background */
    cursor: pointer;
    /* Pointer cursor on hover */
    padding-right: 3.5%;
    /* Padding on the right */
    margin-left: 2%;
    /* Margin on the left */
}

.search-button i {
    color: #000;
    /* Black color for search icon */
}

.fa-circle-user {
    color: rgb(165, 165, 165);
    transition: color 0.3s;
    /* Adds a smooth transition effect */
}

.fa-circle-user:hover {
    color: #e6e6e6;
}

#navbar .fa-basket-shopping {
    color: rgb(165, 165, 165);
    transition: color 0.3s;
    /* Adds a smooth transition effect */
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-list-btn {
    margin-left: 0.6rem;
    /* Adds margin to the left of the button */
    width: 32px;
    /* Set button width */
    height: 32px;
    /* Set button height */
    align-items: center;
    justify-content: center;
}

#navbar .fa-basket-shopping:hover {
    color: #e6e6e6;
}


.user-icon {
    padding-left: 16px;
}

.user-icon .btn {
    padding: 0;
    margin: 0;
}

.nav-scroller .top-info {
    background-color: #860b19;
    /* Background color */
    width: 100%;
    /* Full width */
    z-index: 7 !important;
    /* High z-index */
    padding: 0.4rem;
    /* Padding */
    text-align: center;
    /* Center text */
    line-height: 9px;
}

.nav-scroller .top-info span {
    color: white;
    /* White text */
    margin: 0;
    /* No margin */
    font-size: 0.7rem;
    /* Font size */
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.1s ease-out;
    pointer-events: none;
    z-index: 2;
    /* Ensure it's below the subcategories but above other content */
}

/* When overlay is active */
#overlay.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease-in;
}


/* Styling for the button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: grey;
    color: white;
    text-align: center;
    line-height: 50px;
    /* Center the arrow vertically */
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    opacity: 0;
    /* Initially hidden */
    visibility: hidden;
    /* Initially not visible */
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    /* Smooth opacity transition and delay visibility */
}

/* Show button on tablets and smaller devices */
@media (min-width: 1023px) {
    .scroll-to-top {
        display: none;
        /* Hidden on larger devices */
    }
}

/* Optional: Show the button when hovering */
.scroll-to-top:hover {
    background-color: rgb(156, 156, 156);
}

/* Make button visible */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 2s;
    /* Delay for 2 seconds */
}




/* Desktop navbar styles */
@media only screen and (min-width: 992px) {

    .navbar .navbar-links {
        margin-left: auto;
        /* Auto margin to the left */
        margin-right: 1%;
        /* 1% margin to the right */
    }

    .search-container {
        display: flex;
        /* Flexbox for alignment */
        align-items: center;
        /* Center items vertically */
        padding-left: 5%;
        /* Padding on the left */
        width: 38%;
        /* 38% width */
    }
}


/* Custom styles for secondary navigation */
.secondary-nav {
    background-color: #000 !important;
    /* Black background */
    border-top: 1px solid #b1b1b1;
    /* Top border */
}

.secondary-nav .container {
    overflow-x: hidden;
    /* Hide horizontal overflow */
    width: 100%;
}

.secondary-nav .nav-item {
    height: 100%;

}

.secondary-nav .nav-link {
    height: 100%;
    color: #fff;
    /* White text */
    padding-left: 10px;
    /* padding left */
    padding-right: 10px;
    /* padding right */
    font-size: 1rem;
    /* Font size */
    text-align: center;
    /* Center text */
    transition: background-color 0.3s ease;
    /* Smooth transition */

    /* Full height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-nav .nav-link.active {
    /* Slightly scale up on hover */
    /* Subtle box shadow */
    color: #fff;
    /* White color */
    background-color: #4d4d4d;
}

/* Sub categories styling */
.secondary-nav .sub-categories {
    z-index: 100;
    /* High z-index */
    background-color: #ffffff;
    /* White background */
    border: 1px solid #000;
    /* Black border */
    position: absolute;
    /* Absolute positioning */
    left: 0%;
    /* Position on the left */
    max-height: 50vh;
    /* Max height */
    width: 100%;
    /* Full width */
    overflow-y: auto;
    /* Scrollable content */
    display: none;
    /* Hidden by default */
    opacity: 0;
    /* Transparent by default */
    transition: opacity 0.3s ease-in-out;
    /* Smooth transition */
    padding-top: 10px;
    padding-bottom: 10px;

}

/* Show and animate subcategories on hover */
.show-sub-categories {
    display: block !important;
    /* Display block */
    opacity: 1 !important;
    /* Fully opaque */
}

.secondary-nav .sub-categories hr {
    margin-top: 5px;
    margin-bottom: 8px;
}

.secondary-nav .sub-categories a {
    text-decoration: none;
    /* No text decoration */
    color: inherit;
    /* Inherit color */
    transition: color 0.2s;
    /* Smooth transition */
}

.secondary-nav .sub-categories a:hover {
    color: #a31122;
    /* Change color on hover */
}

.secondary-nav .sub-categories .sub-category {
    font-family: "Radio Canada Big", sans-serif;
    /* Font family */
}

.secondary-nav .sub-categories .sub-category.header {
    font-size: 1.1rem;
    /* Font size */
    font-weight: bold;
}

.secondary-nav .nav-item .nav-link.clearance-category {
    background-color: #1ea5d6d2;
}

.secondary-nav .nav-item .nav-link.clearance-category:hover {
    background-color: var(--clearance-background-color);
}

.secondary-nav .container-fluid {
    padding: 1px !important;
}

/* Mobile navbar styles */
.navbar .offcanvas {
    background-color: transparent;
    /* Transparent background */
}

.navbar .offcanvas-header {
    background-color: #000;
    /* Black background */
    border-bottom: #a11526 solid 1px;
    /* Bottom border */
    color: #fff;
    /* White color */
    height: var(--navbar-main-height) !important;
    /* Main height */
}

.offcanvas-body .accordion {
    max-height: 50%;
    /* Max height */
    overflow-y: auto;
    /* Scrollable */
    display: none;
    /* Hidden by default */
}

.navbar .offcanvas-body .header {
    display: none;
    /* Hidden by default */
}

/* Mobile view styles */
@media only screen and (max-width: 991px) {

    .navbar .offcanvas-body {
        background-color: #fff;
        /* White background */
        padding: 0px;
        /* No padding */
        font-size: 1.1rem;
        /* Font size */
    }

    .navbar .offcanvas-body .item {
        min-width: 100%;
        /* Full width */
        color: #000;
        /* Black color */
        border-bottom: #a11526 solid 1px;
        /* Bottom border */
        padding: 10px;
        /* Padding */
        text-decoration: none;
        /* No text decoration */
    }

    .navbar .offcanvas-body .nav-link:active {
        background-color: #add8e6;
        /* Lighter blue on active */
    }

    .navbar .offcanvas-body .header {
        display: inherit;
        /* Display header */
        min-width: 100%;
        /* Full width */
        color: #000;
        /* Black color */
        background-color: #b1b1b1;
        /* Background color */
        border-bottom: #000 solid 1px;
        /* Bottom border */
        padding: 10px;
        /* Padding */
        margin-bottom: 0px;
        /* No bottom margin */
        text-decoration: none;
        /* No text decoration */
    }

    .navbar .offcanvas-body .navbar-links .nav-item .header {
        background-color: #ffffff;
        border-bottom: #a11526 solid 1px;

    }

    .search-container {
        display: flex;
        /* Flexbox for alignment */
        align-items: center;
        /* Center items vertically */
        width: 100%;
        /* Full width */
    }

    .search-box input {
        border: #000 solid 1px;
        /* Black border */
    }

    .offcanvas-body .accordion {
        display: block;
        /* Display categories accordion */
    }

    .navbar .mobile-hidden {
        display: none;
        /* Hide on mobile */
    }
}

.offcanvas-body .accordion {
    font-size: 1.2rem;
    /* Font size */
}

.offcanvas-body .accordion .accordion-item {
    border: none;
    /* Remove border */
}

.offcanvas-body .accordion .accordion-body,
.offcanvas-body .accordion .accordion-button {
    width: 100% !important;
    /* Full width */
    margin: 0px !important;
    /* No margin */
    padding: 0px !important;
    /* No padding */
}

.offcanvas-body .accordion .accordion-header {
    margin: 0px !important;
    /* No margin */
}

.offcanvas-body .accordion .accordion-button {
    border: none;
    /* No border */
    box-shadow: none;
    /* No shadow */
    padding: 10px !important;
    /* Padding */
    font-size: 1.2rem;
    /* Font size */
    border-bottom: #a11526 solid 1px;
    /* Bottom border */
}

.offcanvas-body .accordion .accordion-button:active {
    background-color: #ff98a4;
    /* Background color on active */
}

.offcanvas-body .accordion .accordion-item .header {
    padding-left: 25px;
    /* Left padding */
}

.offcanvas-body .accordion .accordion-item .item {
    padding-left: 35px;
    /* Left padding */
}

/* Add these styles to your CSS file */
#loading-spinner {
    display: block;
    width: 6rem;
    height: 6rem;
    border: 0.3rem solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s linear infinite;
    margin: auto;
    text-align: center;
    margin-top: 55%;
    /* Center vertically */

}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#basket-container {
    padding: 0 !important;
}

/* Off-canvas container */
#basket {
    background-color: #f8f9fa;
    /* Light background color */
    width: 600px !important;
}

/* Off-canvas header */
.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    /* Light border below header */
    background-color: #ffffff;
    /* White background for header */
    padding: 0.6rem 1.5rem;
    /* Padding around header */
}

/* Title styling */
.offcanvas-title {
    display: flex;
    font-size: 2.5rem;
    /* Larger font size for better visibility */
    font-weight: 1000;
    /* Bold font weight for emphasis */
    color: #000000;
    /* Bright red color */
    margin-bottom: 0;
    /* Remove bottom margin */
    text-align: center;
    /* Center align text */
    align-items: center;
}

.btn-close {
    font-size: 1.2rem !important;
}


/* Off-canvas body */
.offcanvas-body {
    padding: 1.5rem;
    /* Padding around content */
    overflow-y: auto;
    /* Scroll if content overflows */
}

/* Container styling to center the spinner */
#spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    /* Full height of the viewport */
}

/* Additional styles for the spinner if needed */
#loading-spinner {
    width: 3rem;
    /* Example width */
    height: 3rem;
    /* Example height */
}


/* Off-canvas footer */
.offcanvas-footer {
    display: flex;
    padding: 0;
    /* Remove padding */
    border-top: 1px solid #dee2e6;
    /* Border at the top */
    background-color: #ffffff;
    /* White background for footer */
}

/* Button group styling */
.offcanvas-footer .btn-group {
    display: flex;
    width: 100%;
    /* Full width */
}

/* Button styling */
.offcanvas-footer .btn {
    flex: 1;
    /* Take equal space */
    border-radius: 0;
    /* Remove border radius for square look */
    border: none;
    /* Remove border */
    margin: 0;
    /* Remove margin */
    font-size: 1.1rem;
    padding: 22px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.offcanvas-footer .btn-continue {
    background-color: #006eff;
    /* Primary color */
    color: #fff;
    border: none !important;
}

.offcanvas-footer .btn-continue:hover,
.offcanvas-footer .btn-continue:focus {
    background-color: #0062e2;
    /* Darker blue on hover */
}

.offcanvas-footer .btn-closed {
    background-color: #6c757d;
    /* Secondary color */
    color: #fff;
}

.offcanvas-footer .btn-closed:hover,
.offcanvas-footer .btn-closed:focus {
    background-color: #5a6268;
    /* Darker grey on hover */
}


.offcanvas-footer {
    display: flex;
    justify-content: space-between;
    padding: 0;
    /* Remove padding to ensure buttons take full width */
}



.btn-container {
    display: flex;
    width: 100%;
}


.btn-text {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2500 !important;
}

.btn:hover .btn-text {
    opacity: 1;
    transform: translateY(0);
}

.btn-close-menu,
.btn-enquiry {
    flex: 1;
    border: none;
    position: relative;
    padding: 0.75rem 1rem;
    /* Adjust padding to suit button size */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-enquiry i,
.btn-close-menu i {
    font-size: 1.9rem;
}

.btn-enquiry {
    background-color: #007bff;
    /* Blue background */
}

.btn-enquiry:hover {
    background-color: #005abb;
    /* Slightly darker blue */
}

.btn-close-menu {
    background-color: #6c757d;
    /* Gray background */
}

.btn-close-menu:hover {
    background-color: #576068;
    /* Slightly darker gray */
}



/* #endregion */

/* #endregion */


/* #region Footer */

footer .text-reset {
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

footer .text-reset:hover {
    color: #cccccc;
}

footer .text-reset.hover:hover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    bottom: 0;
    left: 0;
    animation: underline 0.3s ease-in-out forwards;
}

footer .icons {
    color: #ffffff;
}

footer .fab {
    font-size: 1.5rem;
}

footer .bg {
    background-color: #000000;
}

.footer-logo {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .footer-logo {
        justify-content: center;
    }
}

/* General styling for credit message */
.credit-message {
    font-size: 0.9rem;
    color: #d6d6d6;
    margin-top: 18px;
}

/* Link styling */
.hecato-link {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Arrow styling */
.arrow {
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

/* Hover effect for link and arrow */
.hecato-link:hover .arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.hecato-link:hover {
    color: #e0e0e0;
}



/* #endregion */

/* #region Ids */

/* #endregion */

/* #region Classes */

hr.bg-accent-2 {
    border: 1px solid #a11526;
    /* Set a fixed width for the horizontal line */
}

.alert-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1056;
    max-height: 50vh;
    /* Set max height to 50% of the viewport height */
    overflow-y: auto;
    /* Enable vertical scrolling */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE and Edge */
}

/* Hide scrollbar in WebKit (Chrome, Safari) */
.alert-container::-webkit-scrollbar {
    display: none;
}




/* #region Text */

/* used for texts involving the side catalouge */
.catalouge-text {
    font-family: "Radio Canada Big", sans-serif;
    text-transform: uppercase;

    font-size: 1.5rem;
}

/* #endregion */

/* #region Backgrounds */

.bg-primary {
    background-color: #003366 !important;
}

.bg-accent-1 {
    background-color: #1ea6d6 !important;
    color: #fff;
}

.bg-warning {}

.bg-sucess {}

.bg-error {}

.bg-enquire {}

.bg-favourite {}

/* #endregion */

/* #region Buttons */

.btn-category {
    border-top-left-radius: 0;
    /* Removes border edges from the left */
    border-bottom-left-radius: 0;
    /* Removes border edges from the left */
    border-top-right-radius: 1.25rem;
    /* Rounds off the top right corner */
    border-bottom-right-radius: 1.25rem;
    /* Rounds off the bottom right corner */

    width: 100%;
}

.btn-primary {}

.btn-warning {}

.btn-sucess {}

.btn-error {}

/* #endregion */

/* #endregion */

.offcanvas-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}
.cost-breakdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-top: 1rem;
}

.cost-breakdown .subtotal,
.cost-breakdown .vat,
.cost-breakdown .shipping,
.cost-breakdown .total-cost {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cost-breakdown .total-cost {
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    font-size: 1.2rem;
    color: #007bff;
}