:root {
    --primary: #890506;
    --light: #F1F8FF;
    --dark: #261717;
}

body {
    color: #404040;
    background-color: #ffffff;
}

.bg-dark {
    background-color: #100e0f !important;
}

.custom-fadegb {
    background-color: var(--primary) !important;
    background: -moz-linear-gradient(169deg, rgba(194,58,59,1) 0%, rgba(137,5,6,1) 58%);
    background: -webkit-linear-gradient(169deg, rgba(194,58,59,1) 0%, rgba(137,5,6,1) 58%);
    background: linear-gradient(169deg, rgba(194,58,59,1) 0%, rgba(137,5,6,1) 58%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#c23a3b",endColorstr="#890506",GradientType=1);
}

.text-primary, 
.text-red {
    color: var(--primary) !important;
}

.bg-primary, 
.btn-primary {
    color: #ffffff;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    filter: brightness(80%);
    color: #e2e2e2;
}

.btn-dark {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
}

h1 {
    color: var(--dark) !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semi-bold {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.header-btn-light {
    color: var(--primary);
    background-color: #f3f3f3;
    border-color: #f3f3f3;
}

.btn-add-darken {
    filter: brightness(96%);
}

.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;
    border-radius: 2px;
}


/*** Navbar ***/

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 8px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .show>.nav-link, 
.navbar-light .navbar-nav .nav-link.active {
    color: #a92324;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #a92324;
}

.navbar-light .navbar-toggler {
    background-color: #f3f3f3;
    border-color: #f3f3f3;
    padding-top: 6px;
}

.dropdown-item:nth-child(even) {
    background-color: rgba(0,0,0, 0.05);
    border-bottom: #e5e5e5 solid 0px;
}
.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu {
    border: 1px solid rgb(215, 215, 215) !important;
    box-shadow: rgba(0,0,0,0.2) 0px 2px 5px;
}

.cart-dropdown {
    right: 0;
    color: #666565;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,0.15);
}

@media (max-width: 1199px) {
    .header-container {
        background-color: var(--primary) !important;
    }

    .header-container img {
        max-height: 52px;
    }

    .header-container .nav-item a i.bi {
        margin-right: 4px;
    }

    .header-container .navbar-light .mobile-menu-light {
        padding: 0.25rem 1rem !important;
        background: #f3f3f3;
        border-radius: 3px;
        margin-top: 1rem;
    }

    .header-container .navbar-light .mobile-menu-light .dropdown-menu {
        border-radius: 3px !important;
        box-shadow: none;
    }
}

@media (max-width: 399px) {
    .header-container .navbar {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        flex-direction: row;
        align-content: center;
    }
    .header-container .navbar-brand {
        margin: 0;
    }
    .header-container .navbar .mr-auto {
        padding-top: 0.5rem !important;
        width: 100% !important;
        text-align: center;
    }
}

/*** Header ***/

.carousel.header {
    position: relative;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 43, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.bg-red {
    background: var(--primary);
}

.custom-header-clip {
    padding-right: 2.6%;
    clip-path: polygon(0 0, 100% 0, calc(100% - 56px) 100%, 0% 100%);
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

@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;
    }
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}


/*** Title ***/

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: "";
    position: absolute;
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

@media (max-width: 576px) {
    .section-title::before {
        width: 15px;
        left: -25px;
    }
    .section-title::after {
        width: 15px;
        right: -25px;
    }
}


/*** Breadcrumb ***/

nav.breadcrumb-bg {
    position: relative;
    background-color: #f2f2f2;
}

nav.breadcrumb-bg::before {
    content: "";
    position: absolute;
    display: block;
    bottom: -19px; /* -1, Required due to antialising bug, by Peter T. */
    left: 50%;
    transform: translateX(-50%);

    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #F2F2F2;
}

.breadcrumb a, .breadcrumb:active {
    color: var(--primary);
}

.arr-right .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    vertical-align:top;
    color: var(--primary);
    font-size: 35px;
    line-height: 18px;
}


/*** About TP ***/

.about-item {
    height: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.about-item .about-icon {
    margin: 0 auto 30px auto;
    width: 65px;
    height: 65px;
    transition: .5s;
}

.about-item i,
.about-item h5,
.about-item p {
    transition: .5s;
}

@media (max-width: 768px) {
    .about-item p {
        font-size: 96%;
    }
}

@media (max-width: 576px) {
    .about-item p {
        font-size: 88%;
    }
}


/*** Product-list ***/

.productslist h3 {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
    height: 71px;
    overflow: hidden;
}

.productslist a h3:hover {
    color: var(--primary);
}

.productslist .pricebox {
    min-height: 48px;
}

.produclist-details h3:before {
    content: "";
    position: absolute;
    overflow: hidden;
    font-size: 1px;
    width: 100%;
    height: 26px;
    left: 0;
    bottom: -1px; /* -1px, Required due to antialising bug, by Peter T. */
    background: transparent;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 10;
}

.productslist .stocklabel {
    font-size: small;
}

.productslist .product-item {
    background-color: #ffffff !important;
}

.btn-light {
    background: #e7e7e7;
    border-color: #e7e7e7;
}

.btn-light:hover {
    filter: brightness(80%);
}

.btn-clip-bottomright {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.btn-clip-topleft {
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.produclist-image {
    background-color: #ffffff !important;
    background-image: none; 
    background-position: center center;
    background-size: contain; /* auto 90% || contain */
    background-repeat: no-repeat;
    border: #ffffff solid 12px;
}

.produclist-details {
    position: relative;
    margin-top: 0.25rem;
    border-top: #f2f2f2 solid 1px;
}

.container-salebg {
    position: relative;
    background: #fdf5f5 !important;
}

.container-salebg::before {
    content: "";
    position: absolute;
    display: block;
    top: -1px; /* Required due to antialising bug, by Peter T. */
    left: 50%;
    transform: translateX(-50%);
    
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #ffffff;
    z-index: 1;
}

.container-salebg::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 0; 
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #fdf5f5;
    z-index: 1;
}

.productslist .wow {
    z-index: 2;
}

.productslist::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}
.productslist::-webkit-scrollbar-track {
    background-color: rgba(207, 207, 207, 0.4);
}
.productslist::-webkit-scrollbar-corner {
    background-color: rgba(207, 207, 207, 0.4);
}
.productslist::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}
.productslist {
    -ms-overflow-style: auto;
    scrollbar-color: var(--primary) rgba(207, 207, 207, 0.4);
    scrollbar-width: thin;
}

.modal .modal_previewimage {
    width: 100%;
    max-width: 100%;
    height: 180px;
    max-height: 180px;
    padding: 1px;
    border: #e4e4e4 solid 1px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .productslist {
        padding: 1.25rem;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
    }
    .productslist .row {
        width: 1600px;
    }
}

/*** Footer ***/

footer.bg-dark {
    background-color: #161314 !important;
}

footer .section-title, footer .text-primary {
    color: #FFFFFF !important;
}

footer {
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    display: block;
    top: -1px; /* Required due to antialising bug, by Peter T. */
    left: 50%;
    transform: translateX(-50%);
    
    width: 0; 
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #ffffff;
    z-index: 1;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    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 .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer-bg-clip {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 30px) 100%, 0 100%);
}
