/* =========================================================
   THEME
   ========================================================= */

:root {
    --orange: #f58220;
    --orange-dark: #df6e0d;
    --orange-light: #fff3e8;
    --orange-soft: #fff8f2;

    --text: #2d3135;
    --text-soft: #6f757b;

    --border: #ebe7e2;
    --background: #faf9f7;
    --white: #ffffff;

    --shadow:
        0 8px 28px rgba(45, 49, 53, 0.06);
}

/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--background);

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.clear {
    clear: both;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    min-height: 82px;

    padding: 12px 0;

    background: rgba(255, 255, 255, 0.97) !important;

    border-bottom: 1px solid #f0ece8;

    box-shadow:
        0 3px 18px rgba(45, 49, 53, 0.035);
}

.navbar-brand {
    width: 170px;
    max-width: 170px;

    margin-right: 40px;
}

.navbar-brand img {
    display: block;

    width: 100%;
    height: auto;
}

.navbar-collapse {
    align-items: center;
}

.navbar-nav {
    flex: 1;
}

.navbar-nav .nav-link {
    position: relative;

    padding: 10px 15px !important;

    font-size: 13px;
    font-weight: 650;

    letter-spacing: 0.025em;

    color: #45494d;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--orange);
}

/* =========================================================
   NAVBAR BUTTONS
   ========================================================= */

.navbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 8px 15px;

    border: 0;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 650;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.navbar .btn:hover {
    transform: translateY(-1px);
}

/* Logout */

.navbar .btn-success {
    color: #555 !important;

    border: 1px solid #e8e5e1;

    background: #ffffff;
}

.navbar .btn-success:hover {
    color: var(--orange) !important;

    border-color: #f2cba9;

    background: var(--orange-soft);

    box-shadow:
        0 5px 15px rgba(45, 49, 53, 0.06);
}

/* Cart */

.navbar .btn-warning {
    color: #ffffff !important;

    background: var(--orange);

    box-shadow:
        0 5px 15px rgba(245, 130, 32, 0.18);
}

.navbar .btn-warning:hover {
    color: #ffffff !important;

    background: var(--orange-dark);

    box-shadow:
        0 8px 20px rgba(245, 130, 32, 0.22);
}

.cart-btn {
    min-width: 110px;
}

/* =========================================================
   BANNER
   ========================================================= */

.bannerwrapper {
    position: relative;

    margin-top: 32px !important;
    margin-bottom: 32px !important;

    overflow: hidden;

    min-height: 260px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            10deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.80) 32%,
            rgba(255, 255, 255, 0.15) 68%,
            rgba(255, 255, 255, 0.02) 100%
        ),
        url("../images/header_pic.jpeg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    border-radius: 0;
}

#banner {
    display: none;
}

.bannerwrapper .container {
    position: relative;
    z-index: 2;

    padding-top: 45px;
    padding-bottom: 45px;
}

.bannerwrapper .title {
    position: relative;

    margin: 0;
    padding-left: 18px;

    font-size: 34px;
    font-weight: 750;

    letter-spacing: -0.02em;

    color: var(--text);
}

.bannerwrapper .title::before {
    position: absolute;

    top: 4px;
    bottom: 4px;
    left: 0;

    width: 5px;

    content: "";

    border-radius: 10px;

    background: var(--orange);
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--white);

    box-shadow: var(--shadow);
}

.card-body {
    padding: 26px;
}

.card-title {
    margin-bottom: 15px;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: -0.015em;

    color: #303438;
}

.card p {
    font-size: 14px;
    line-height: 1.7;

    color: var(--text-soft);
}

.card hr {
    margin: 19px 0;

    border-color: #e8e4df;

    opacity: 1;
}

/* =========================================================
   INSTALLER CARD
   Previously .bg-dark, now intentionally light
   ========================================================= */

.card.bg-dark {
    position: relative;

    color: var(--text) !important;

    border: 1px solid #f0ded0;

    background:
        linear-gradient(
            145deg,
            #fff9f4 0%,
            #fff3e8 100%
        ) !important;

    box-shadow:
        0 10px 30px rgba(111, 83, 59, 0.07);
}

/* Orange detail */

.card.bg-dark::before {
    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    content: "";

    background:
        linear-gradient(
            90deg,
            var(--orange),
            #ffad62
        );
}

.card.bg-dark .card-title {
    color: #34383c;
}

.card.bg-dark p {
    color: #696e73;
}

.card.bg-dark .text-warning {
    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 16px;

    font-size: 13px;
    font-weight: 700;

    color: #ffffff !important;

    border-radius: 9px;

    background: var(--orange);

    box-shadow:
        0 5px 16px rgba(245, 130, 32, 0.18);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card.bg-dark .text-warning:hover {
    color: #ffffff !important;

    background: var(--orange-dark);

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(245, 130, 32, 0.22);
}

/* =========================================================
   LOGIN / REGISTER
   ========================================================= */

.login-register-link {
    text-decoration: none;
}

/* =========================================================
   SPARES BUTTONS
   ========================================================= */

.spare-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-height: 76px;

    padding: 17px 48px 17px 20px !important;

    overflow: hidden;

    border: 1px solid #eee6df !important;
    border-radius: 13px;

    font-size: 14px;
    font-weight: 650;

    line-height: 1.35;

    text-align: left;

    color: #35393d !important;

    background: #ffffff !important;

    box-shadow:
        0 5px 18px rgba(45, 49, 53, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

/* orange left accent */

.spare-btn::before {
    position: absolute;

    top: 14px;
    bottom: 14px;
    left: 0;

    width: 4px;

    content: "";

    border-radius: 0 5px 5px 0;

    background: var(--orange);

    transition:
        top 0.2s ease,
        bottom 0.2s ease,
        width 0.2s ease;
}

/* arrow */

.spare-btn::after {
    position: absolute;

    top: 50%;
    right: 19px;

    content: "›";

    font-family: Arial, sans-serif;

    font-size: 27px;
    font-weight: 300;

    line-height: 1;

    color: var(--orange);

    transform: translateY(-52%);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.spare-btn:hover {
    color: var(--orange-dark) !important;

    border-color: #f4cba9 !important;

    background:
        linear-gradient(
            90deg,
            #fffaf6 0%,
            #ffffff 75%
        ) !important;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(67, 53, 42, 0.08);
}

.spare-btn:hover::before {
    top: 0;
    bottom: 0;

    width: 5px;
}

.spare-btn:hover::after {
    color: var(--orange-dark);

    transform:
        translate(3px, -52%);
}

.spare-btn:active {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(45, 49, 53, 0.05);
}

/* =========================================================
   SPARES AREA SPACING
   ========================================================= */

.container > .row > .col-md-8 .row {
    --bs-gutter-x: 12px;
}

.container > .row > .col-md-8 .mb-1 {
    margin-bottom: 12px !important;
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .navbar-brand {
        width: 150px;
        max-width: 150px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 14px;

        border: 1px solid #eeeae6;
        border-radius: 12px;

        background: #ffffff;

        box-shadow:
            0 12px 30px rgba(45, 49, 53, 0.07);
    }

    .navbar .d-flex {
        margin-top: 8px;
    }

}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    body {
        background: #fbfaf8;
    }

    .bannerwrapper {
        margin-top: 20px !important;
        margin-bottom: 24px !important;
    }

    .bannerwrapper .container {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .bannerwrapper .title {
        font-size: 26px;
    }

    .card {
        margin-bottom: 22px !important;
    }

    .card-body {
        padding: 22px;
    }

    .spare-btn {
        min-height: 66px;

        padding:
            15px
            44px
            15px
            18px !important;

        font-size: 14px;
    }

}

/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .navbar {
        min-height: 68px;
    }

    .navbar-brand {
        width: 135px;
        max-width: 135px;
    }

    .navbar .d-flex {
        flex-wrap: wrap;
    }

    .navbar .btn {
        min-height: 38px;
    }

    .bannerwrapper .title {
        font-size: 24px;
    }

    .spare-btn {
        min-height: 62px;

        border-radius: 11px;
    }

}



/* =========================================================
   PRODUCT ADDED
   ========================================================= */

.productAdded {
    position: fixed;

    z-index: 99990;

    left: 50%;
    bottom: 24px;

    display: none;

    width: min(620px, calc(100% - 30px));

    transform: translateX(-50%);
}

.productAdded__content {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    border: 1px solid #f1d4ba;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 16px 40px rgba(45, 49, 53, 0.16);
}

.productAdded__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 50%;

    font-size: 12px;

    color: #ffffff;
    background: var(--orange);
}

.productAdded__text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.productAdded__text strong {
    font-size: 12px;
    font-weight: 750;

    color: var(--text);
}

.productAdded__text span {
    margin-top: 1px;

    font-size: 9px;

    color: var(--text-soft);
}

.productAdded__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 36px;

    margin-left: auto;
    padding: 7px 13px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
    text-decoration: none;

    color: #ffffff;
    background: var(--orange);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.productAdded__cart:hover {
    color: #ffffff;

    background: var(--orange-dark);

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .productAdded {
        bottom: 12px;

        width: calc(100% - 24px);
    }

    .productAdded__content {
        flex-wrap: wrap;

        padding: 10px;
    }

    .productAdded__text {
        flex: 1;
    }

    .productAdded__cart {
        width: 100%;

        margin-left: 0;
    }

}