:root {
    --primary-color: #F73131;
    --primary-hover-color: #cf2929;
    --secondary-color: #232323;
    --secondary-hover-color: #000000;
}

* {
    font-family: "Encode Sans", serif;
    font-optical-sizing: auto;
}

hr {
    border-top: 1px solid #a7a7a7;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0px;
    padding: 10px 30px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 0px;
    padding: 10px 30px;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
}

.btn-dark {
    border-radius: 0px;
    padding: 10px 30px;
}

h1 {
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

h2, h3, h4, h5, h6, a, p {
    color: var(--secondary-color);
}

h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.heading-underlined::after {
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 15px;
}

.accordion-item {
    border-radius: 0px !important;
}

.form-control, .form-select {
    border-radius: 0px;
}

#top-nav {
    padding: 10px 0px;
}

#top-nav a {
    text-decoration: none;
    margin-right: 20px;
}

#nav {
    background-color: var(--secondary-color);
    color: white;
    padding: 25px 10px 25px 10px;
}

#nav .logo {
    max-width: 250px;
    width: 100%;
}

#nav ul {
    list-style-type: none;
}

#nav ul a {
    text-decoration: none;
    color: white;
}

#nav ul li {
    border-top: 1px solid transparent;
    padding: 10px;
    float: left;
}

#nav ul li.active {
    border-top: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#nav ul li:hover {
    border-top: 1px solid var(--primary-color);
    cursor: pointer;
}

#nav img {
    max-width: 40px;
    width: 100%;
}

#nav img:not(:last-child) {
    margin-right: 10px;
}

#nav .hamburger {
    display: none;
}

#footer {
    border-top: 1px solid white;
    background-color: var(--secondary-color);
    color: white;
}

#footer h4 {
    color: white;
}

#footer ul {
    list-style-type: none;
    padding-left: 0px;
}

#footer a {
    color: white;
    text-decoration: none;
}

#footer ul li {
    margin-bottom: 10px;
}

#bottom-footer {
    padding: 10px 0px;
    color: var(--secondary-color);
}

#bottom-footer img {
    max-width: 150px;
    width: 100%;
}

#nav .mini-cart {
    position: relative;
}

#nav .mini-cart span {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background-color: white;
    border-radius: 50%;
    color: black;
    padding: 2px 6px;
    font-size: 12px;
}

.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 100%;
}

.hero h1 {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
}

.hero h1::after {
    content: none;
}

#map, #map iframe {
    width: 100%;
    height: 400px;
}

#about-us iframe {
    width: 100%;
    height: 700px;
}

#production-cta {
    background-color: var(--primary-color);
    padding: 50px 0px;
    color: white;
}

#production-cta h4 {
    color: white;
}

.product-cards {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.product-card {
    text-align: center;
}

.product-card a {
    text-decoration: none;
    color: black;
}

.product-card img {
    max-height: 300px;
    height: 100%;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 18px !important;
    font-weight: bold !important;
}

.selected-variation-info .price, .selected-components-info .price {
    font-weight: bold;
    font-size: 18px;
}

.selected-variation-info .input-quantity, .selected-components-info .input-quantity {
    height: 46px;
}

#product_main_image {
    cursor: pointer;
}

.component-cards {
    display: flex;
    gap: 10px;
}

.component-card {
    border: 2px solid #E7E7E7;
    text-align: center;
    width: 200px;
    padding: 10px;
    cursor: pointer;
}

.component-card.active {
    border-color: green;
}

.component-card img {
    width: 100px;
    height: 100px;
}

.component-card .name, .component-card .price {
    font-size: 14px;
}

.component-card .name {
    font-weight: bold;
}

.component-card.disabled {
    opacity: 0.4;
    cursor: no-drop;
}

.accordion-button {
    font-weight: bold;
}

#componentsAccordion .accordion-button:not(.collapsed) {
    background-color: transparent;
}

#componentsAccordion .accordion-button, #componentsAccordion .accordion-button:focus {
    box-shadow: initial;
    color: var(--secondary-color);
}

#cart .product-image, #checkout .product-image, #order .product-image {
    width: 75px;
    height: 75px;
}

#cart .cart-contents th, #checkout .cart-contents th, #order .order-contents th {
    white-space: nowrap;
}

#cart .cart-contents tr, #checkout .cart-contents tr, #order .order-contents tr {
    vertical-align: middle;
}

#cart .cart-contents .cart-delete {
    width: 25px;
    height: 25px;
}

#cart .cart-contents .quantity {
    width: 85px;
}

/* my-account.php */
#my-account nav {
    list-style-type: none;
    width: 100%;
}

#my-account .nav li {
    width: 100%;
    display: block;
    background-color: #F7F7F7;
}

#my-account .nav li:not(:last-child) {
    margin-bottom: 5px;
}

#my-account .nav li a {
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    display: block;
    padding: 15px;
}

.catalogue h3, .use-case h3, .categories h3 {
    font-size: 35px;
    font-weight: 600;
}

.use-case {
    background-color: var(--secondary-color);
}

.use-case h3, .use-case p {
    color: white;
}

.use-case .systems img {
    max-width: 425px;
}

.use-case .systems img:first-child {
    margin-right: 100px;
    z-index: 1;
}

.use-case .systems img:last-child {
    margin-top: -75px;
    margin-left: 100px;
    z-index: 2;
}

.categories .category {
    background-color: #F7F7F7;
    padding: 30px;
}

/* Responsiveness */
@media only screen and (max-width: 1000px) {
    #nav .logo {
        max-width: 75px;
        width: 100%;
        position: initial;
        top: initial;
    }

    #nav .nav-bar {
        display: none !important;
    }

    #nav .hamburger {
        display: block;
        width: 35px;
        margin-right: 20px;
    }

    #mobileMenu {
        background-color: var(--secondary-color);
        color: white;
    }

    #mobileMenu .menu {
        list-style-type: none;
        padding-left: 0px;
    }

    #mobileMenu .item {
        width: 100%;
    }

    #mobileMenuLabel {
        color: white;
    }

    #mobileMenu .menu a {
        display: block;
        width: 100%;
        text-decoration: none;
        color: white;
        padding: 10px;
        border-bottom: 1px solid white;
    }

    #mobileMenu .menu a:hover {
        background-color: white;
        color: black;
    }

    #mobileMenu .btn-close {
        opacity: 1;
        filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(11deg) brightness(102%) contrast(106%);
    }

    .hero h1 {
        font-size: 35px;
    }

    .product-card img {
        width: 100%;
    }
    
    .use-case .systems img:first-child {
        width: 100%;
        margin: 20px 0px 20px 0px !important;
    }

    .use-case .systems img:last-child {
        width: 100%;
        margin: 0px !important;
    }

    .hero {
        height: 350px;
    }

    .selected-variation-info .input-quantity, .selected-components-info .input-quantity {
        margin-bottom: 10px;
    }

    #about-us iframe {
        height: 300px;
    }
}