/******************************************************
 * Global reset
 ******************************************************/

h1, h2, h3, h4, h5, h6, p, ul, li, a {
    margin: 0;
    padding: 0;
}

a. button {
    cursor: pointer !important;
}

/******************************************************
 * Utilities
 ******************************************************/

.w-0 {
    width: 0;
}

/******************************************************
 * Globals
 ******************************************************/

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

.main {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.main--product-page {
    background-color: #F2F2F2;
}

.main--back-to-model {
    padding: 30px 0;
}

/******************************************************
 * KIA car model card
 ******************************************************/

.model-card {
    transition: background-color .2s, color .2s ease-in-out;
    text-decoration: none;
    color: black;
    font-weight: bold;
    width: 300px;
    position: relative;
}

.model-card h2 {
    color: #707070;
    font-weight: 800;
    font-size: 30px;
}

@media (max-width: 1400px) {
    .model-card h2 {
        font-size: 24px;
    }
}

.model-card .model-card__image {
    width: 100%;
}

.model-card:hover h2 {
    color: white;
}

.model-card::before {
    content: "";
    display: block;
    opacity: 0;
    background-color: #E30613;
    width: 70%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 15%;
    z-index: -1;
    transition: opacity .2s ease-in-out;
}

.model-card:hover::before {
    opacity: 1;
}

/******************************************************
 * KIA rim model card
 ******************************************************/

.rim-model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease-in-out;
}

.rim-model-card img {
    width: 85%;
}

.rim-model-card .separator {
    width: 75%;
    height: 2px;
    background-color: #ffffff;
    margin: 1em 0;
}

.rim-model-card p {
    color: #707070;
    font-size: 14px;
}

.rim-model-card:hover p {
    color: white;
}


.rim-model-card .rim-name {
    text-decoration: none;
    color: #707070;
    font-size: 16px;
    margin-top: 15px;
}

.rim-model-card:hover {
    color: white;
    background-color: #E30613;
}

.rim-name {
    color: white;
    transition: color .2s ease-in-out;
}

.rim-model-card:hover .rim-name {
    color: white;
}

.rim-size {
    color: #707070;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transition: box-shadow .2s ease-in-out;
}

.rim-model-card:hover .rim-size {
    color: #E30613;
    background-color: #ffffff;
}

.rim-size:hover {
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.24);
}

/******************************************************
 * KIA models carousel slider
 ******************************************************/

.carousel-slider {
    padding: 2em 2em 3em;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: #fff;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

@media (min-width: 576px) {
    .carousel-item {
        margin-right: 0;
        flex: 0 0 20%;
        display: block;
    }

    .carousel-item--rim {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .carousel-inner {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .carousel-inner {
        padding: 1em 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 4em;
        opacity: 1;
        background-color: transparent;
        background-repeat: no-repeat;
        transition: transform .2s ease-in-out;
    }

    .carousel-control-prev .carousel-control-prev-icon {
        width: 4em;
        background-image: url("../icons/arrow-left_gray-FTEMJ7w.svg");
    }

    .carousel-control-next .carousel-control-next-icon {
        width: 4em;
        background-image: url("../icons/arrow-right_gray-JejDFq9.svg");
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        transform: scale(1.3);
    }
}

.carousel-indicators {
    margin: 0 !important;

}

.carousel-indicators .indicator {
    height: 5px;
    width: 14px;
    border: 1px solid black !important;
    opacity: 1 !important;
    background-color: transparent !important;
}

.carousel-indicators .indicator.active {
    background-color: #E30613 !important;
    border-color: #E30613 !important;
}

.carousel-indicators .indicator:hover {
    background-color: #E30613 !important;
    border-color: #E30613 !important;
}

/******************************************************
 * KIA models grid
 ******************************************************/

.models-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

@media (max-width: 1400px) {
    .models-grid {
        justify-content: space-between;
    }
}

.model {
    width: 17%;
    margin: 30px 15px;
}

@media (max-width: 1400px) {
    .model {
        width: 21%;
    }
}

@media (max-width: 992px) {
    .model {
        width: 28%;
    }
}


/******************************************************
 * Header
 ******************************************************/

header .latex-logo {
    height: 4rem;
}

header .kia-logo {
    height: 5rem;
}

header p {
    font-weight: 700;
    color: #707070;
    font-size: 1.5rem;
}

/******************************************************
 * Intro section
 ******************************************************/

.intro-section {
    background-image: url("../photos/homepage-intro-bg-Um33XSW.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    max-height: 60vh;
}

.intro-section h1 {
    width: 75%;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.intro-section--products-page {
    background-image: url("../photos/products-page-intro-bg-NcrFC4T.jpg");
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.44);
    background-position: center 60%;
}

/******************************************************
 * Footer
 ******************************************************/

footer {
    background-color: #707070;
    color: white;
}

footer img {
    width: 340px;
}

footer a {
    color: #ffffff;
    transition: color .2s ease-in-out;
}

footer a:hover {
    color: #e30613;
}

.main-footer {
    background-image: url("../icons/latex-badge-bg-1y-oU_I.svg");
    background-repeat: no-repeat;
    background-size: 44%;
    background-position: 88% 40%;
}

.bottom-footer > div{
    flex: 1;
    text-align: center;
}

.bottom-footer {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    background-color: #1D1D1B;
    width: 100%;
    height: 90px;
    padding: 0 20%;
    font-weight: 300;
    color: #F2F2F2;
    font-size: 14px;
}

.bottom-footer a {
    color: #f2f2f2;
    text-decoration: none;
}

.bottom-footer a:hover {
    text-decoration: underline;
}

/******************************************************
 * Button
 ******************************************************/

.kia-button {
    background-color: #fff;
    color: #707070;
    font-size: 18px;
    font-weight: 300;
    padding: 1rem 2rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.kia-button:hover {
    color: #707070;
}

.kia-button img {
    width: 60px;
    margin-left: 25px;
    transition: transform .2s ease-in-out;
}

.kia-button--arrow_left {
    cursor: pointer !important;
}

.kia-button--arrow_left img {
    margin-left: 0 !important;
    margin-right: 25px;
}

.kia-button--arrow_left:hover img {
    transform: translateX(-5px) !important;
}

.kia-button:hover img {
    transform: translateX(10px);
}

.kia-button.kia-button--red {
    background-color: #E30613;
    color: #ffffff;
    padding: 1rem 4rem;
}

.kia-button.kia-button--gray {
    background-color: #999;
    color: #ffffff;
    transition: opacity .25s ease-in-out;
}

.kia-button.kia-button--gray:hover {
    opacity: 0.8;
}

.kia-button.kia-button--gray:hover img {
    transform: translateX(0);
}

.kia-button.kia-button--gray img {
    width: 20px;
}

.kia-button.kia-button--small {
    font-size: 14px;
    padding: 0.6rem 1.2rem;
}

.kia-button.kia-button--smaller {
    font-size: 11px;
    padding: .3rem .6rem;
    height: 20px;
    display: flex;
    width: fit-content;
    margin-top: 10px;
}

.kia-button.kia-button--custom-price {
    font-size: 12px;
    height: 30px;
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
}

.back-to-model-choice {
    color: #707070;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.back-to-model-choice img {
    width: 4em;
    margin-right: 10px;
    transition: transform .25s ease-in-out;
}

.back-to-model-choice:hover {
    color: #707070;
}

.back-to-model-choice:hover img {
    transform: translateX(-10px);
}


/******************************************************
 * Chosen rim section
 ******************************************************/

.chosen-rim {
    color: #707070;
}

.chosen-rim img {
    width: 33%;
    z-index: 2;
    position: relative;
}

.chosen-rim__copy span {
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1;
}

.chosen-rim-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #E30613;
    font-size: 4.5rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    position: relative;
}

.price-updated {
    color: #E30613;
}

/******************************************************
 * Products table section
 ******************************************************/

.main--products-table {
    z-index: 1;
    position: relative;
    background-color: #ffffff;
}

.main--products-table__inner {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

/******************************************************
 * Products table
 ******************************************************/

.margin-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F2F2F2;
    padding: 15px 20px;
}

.margin-section span {
    margin-right: 15px;
    font-weight: 400;
    font-size: 18px;
}

.margin-section input {
    border-radius: 0;
    border: 1px solid #707070;
    border-right: none;
    height: 40px;
    width: 60px;
    padding-left: 10px;
}

.products-table {
    border-bottom: 1px solid #707070;
    width: 100%;
}

.products-table tr:nth-child(odd) {
    background-color: #F2F2F2;
}

.products-table tr th {
    color: #ffffff;
    font-weight: 700;
    background-color: #707070;
    padding: 1.1rem;
    font-size: 16px;
}

.products-table tr td {
    padding: 1rem;
    font-size: 16px;
}

.products-table .wheel-photo-cell img {
    width: 120px;
}

.products-table .etykieta-cell {
    white-space: nowrap;
}

.products-table .single-wheel-price-cell span {
    display: block;
    font-size: 12px;
    font-weight: 300;
    white-space: nowrap;
}

.products-table .custom-price-cell span {
    display: flex;
    align-items: center;
}

.products-table .custom-price-cell input {
    border-radius: 0;
    border: 1px solid #707070;
    border-right: none;
    height: 30px;
    width: 60px;
    padding-left: 10px;
    font-size: 12px;
}

.products-table .tpms-cell img {
    width: 18px;
}

.products-table .tpms-cell img.crossmark-icon {
    width: 16px;
}

.products-table .availability-cell {
    font-size: 12px;
    line-height: 1;
}

.products-table .availability-marker {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.products-table .availability-marker span {
    display: inline-block;
    width: 15px;
    height: 5px;
    margin-right: 2px;
    background-color: #ccc;
}

.products-table .availability-marker.availability-marker--low span:nth-child(1) {
    background-color: #E30613;
}

.products-table .availability-marker.availability-marker--medium span:nth-child(1),
.products-table .availability-marker.availability-marker--medium span:nth-child(2) {
    background-color: #ffab19;
}

.products-table .availability-marker.availability-marker--high span {
    background-color: #29BE38;
}

.price-visibility--hidden {
    display: none;
}

/** 404 */
.error-404-container {
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    gap: 4rem;
}

.error-404-container img {
    scale: 1.5;
}

.error-404-container span {
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
}


/******************************************************
 * Admin overlay
 ******************************************************/

.admin-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(30, 30, 30, .75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    text-decoration: none;
}

.admin-fab:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}


/******************************************************
 * Security
 ******************************************************/

.security-form-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    top: 20vh;
}

.intro-section--security {
    background-image: url("../photos/homepage-intro-bg-Um33XSW.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    color: white;
    max-height: 40vh;
    min-height: 40vh;
    margin-bottom: 40vh;
}

.security-form-color-banner {
    background-color: rgba(102, 102, 102, 0.8);
    border-radius: 15px 15px 0 0;
    height: 20vh;
}

.security-form {
    height: 55vh;
    width: 40vh;
    outline: white 2px solid;
    border-radius: 15px;
    background-color: transparent;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3),
    0 18px 40px rgba(0, 0, 0, 0.4);
}

.security-form h3 {
    color: #707070;
    text-align: center;
}

.security-form label {
    color: #707070;
}

.security-form input {
    border: #707070 solid 1px;
    border-radius: 15px;
    padding: 5px 20px;
}

.security-form input, .security-form label {
    display: block;
}

.security-form a {
    color: #707070;
}

.security-form button {
    width: fit-content;
    font-weight: bold;
    color: white;
    background-color: #707070;
    border: #707070 solid 1px;
    border-radius: 15px;
    padding: 5px 35px;
}

.security-form-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    min-height: 35vh;
}

.w-fit {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}