/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */


/* **************************************************************************** */
/* **************************************************************************** */
/*                      Custom styles applied by Arindam                        */
/* **************************************************************************** */
/* **************************************************************************** */


/* ***************************************************************************** */
/* *********************************CSS Variables******************************* */
/* ***************************************************************************** */

:root {
    --brand-primary: #2f54eb;
    --brand-primary-dark: #1d39c4;
    --brand-primary-light: #597ef7;
    --text-primary: #1f1f1f;
    --text-secondary: #434343;
    --text-light: #f5f5f5;
    --text-gray: #bfbfbf;
    --gray-1: #ffffff;
    --gray-2: #fafafa;
    --gray-3: #f5f5f5;
    --gray-4: #f0f0f0;
    --gray-5: #d9d9d9;
    --gray-6: #bfbfbf;
    --gray-7: #8c8c8c;
    --gray-8: #595959;
    --gray-9: #434343;
    --gray-10: #262626;


}

body {
    background-color: var(--gray-3);
    transition: 0.5s;
}

.page-title {
    font-size: 1.5rem;
}

/************************ jgrowl notification***********************/
.jGrowl-notification {
    background-color: var(--gray-10);
    color: var(--text-light);
    font-size: 1rem;
    padding: 2rem;
    width: 100% !important;
}

.jGrowl.center {
    width: 80% !important;
    left: 10% !important;
}

.jGrowl-notification p:first-child {
    font-weight: bolder;
}

/* Button styles */
.btn-brand {
    background-color: var(--brand-primary);
    color: white;
    font-size: 0.8 rem;
    padding: 0.2rem;
}

.btn-brand:hover,
.btn-brand:active {
    color: white;
    background-color: var(--brand-primary-dark);
}

/* Card brand styles */
.card-brand {
    margin-top: 1rem;
    overflow: hidden;
    transition: 0.8s;
}

.card-brand:hover {
    box-shadow: 2px 5px 20px var(--gray-5);
    transition: 0.4s;
}

.card-brand .product-image {
    max-height: 150px;
    min-height: 150px;
    overflow: hidden;
    padding: 0.5rem;
}

.card-brand:hover img {
    transform: scale(1.25);
    transition: 0.8s;
}

@media screen and (max-width: 500px) {
    .card-brand .product-image img {
        width: 70%;
    }
}

.card-brand .card-body {
    padding: 0 1rem;
}

.card-brand .product-price {
    font-size: 1 rem;
    font-weight: 600;
    text-align: left;
}

.card-brand .card-title {
    text-align: left;
    margin: 0;
}

.card-brand .product-name {
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

/* breadcrumbs brand */
.breadcrumbs-brand {
    margin-top: 2rem;
    padding: 0.5rem;
    background-color: white;
}

.breadcrumbs-brand a {
    color: var(--text-secondary);
}

/* ***************************************************************************** */
/*                            Navigation styles                                  */
/* ***************************************************************************** */
/* header fixed positioning*/
#header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 0 0 20px grey;
}

.header-top a {
    color: white;
}

.header .left-block {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.brand-logo img {
    width: 70%;
    min-width: 160px;
    max-width: 170px;
}

/* Toggle Button */
.toggle-btn {
    width: 25px;
    height: 45px;
    padding: 10px 0;
    top: 0;
    left: 0;
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 1;
}

.toggle-btn span,
.toggle-btn span:before,
.toggle-btn span:after {
    width: 25px;
    height: 2px;
    background: var(--gray-9);
    position: absolute;
    transition: width .3s ease-in-out, transform .3s ease-in-out, background .3s ease-in-out;
}

.toggle-btn span {
    top: 50%;
}

.toggle-btn span:before {
    content: '';
    top: -10px;
}

.toggle-btn span:after {
    content: '';
    top: 10px;
}

.toggle-btn.onclick span {
    background: none;
}

.toggle-btn.onclick span:before {
    transform: translateY(10px) rotate(45deg);
}

.toggle-btn.onclick span:after {
    transform: translateY(-10px) rotate(-45deg);
}

.header-top a:hover,
.header-top a:focus {
    color: white;
}

.request-part-btn {
    border: 1px solid var(--brand-primary);
    padding: 0.25rem 2rem;
    background-color: white;
    border-radius: 0.25rem;
    width: 100%;
}

.request-part-btn:hover {
    background-color: var(--brand-primary);
    color: white;
    text-decoration: none;
}

.navbar-items {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.account-links ul li:first-child {
    margin-right: 1rem;
}

.account-links ul {
    margin-bottom: 0;
}

.contact-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.85rem;
}

.contact-links p {
    margin: 0 1rem;
    padding: 0;
}

/* Categories */
.categories {
    background-color: var(--gray-10);
    font-size: 0.85rem;
}

.categories a {
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.categories a:hover {
    background-color: var(--brand-primary-dark);
}

.categories nav {
    display: flex;
    justify-content: space-between;
    margin: 0 4rem;
}

/* small devices navigation menu */
.nav-mobile {
    width: 300px;
    height: 90vh;
    position: fixed;
    top: 77px;
    background: var(--gray-10);
    margin-left: -320px;
    box-shadow: 2px 2px 8px var(--gray-10);
    transition: margin .3s ease-in-out;
    display: flex;
    flex-direction: column;
    color: white;
    padding-left: 2rem;
    padding-top: 2rem;
    justify-content: space-between;
    z-index: 9;
    overflow-y: scroll;
}

.nav-mobile-header {
    color: lightgray;
}

.nav-mobile-categories {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.nav-mobile-categories a {
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
}

.nav-mobile.visible {
    margin-left: 0;
}

.nav-mobile-contact {
    margin-top: 2rem;
}

@media screen and (min-width: 1200px) {
    .header {
        padding-top: 1rem;
    }

    .categories {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 1200px) {
    .header {
        padding: 1rem 0;
    }
}


/* ***************************************************************************** */
/*                            Hero Section                                       */
/* ***************************************************************************** */
.hero-section {
    min-height: 90vh;    
    background-position-y: center;
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
/* find-vehicle */
.find-vehicle-card {
    right: 0;
    top: 0;
    margin: 4rem;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    background-color: rgba(0, 0, 0, .6);
    color: white;
    border-radius: 0.5rem;
}

.find-vehicle-card h2 {
    color: white;
}

.find-vehicle-card button {
    margin-top: 1rem;
    background-color: var(--brand-primary);
    width: 100%;
    color: white;
}

@media screen and (max-width: 768px) {
    .hero-section {
        justify-content: center;
        min-height: 0;
    }

    .find-vehicle-card {
        margin: 1rem;
    }
}

/************************ Trending Categories *****************************/
.trending a{
    cursor: pointer;
}
.trending a:hover{text-decoration: none;}
.trending img {
    width: 25%;
    margin: 1rem auto;
}
.trending p{
    font-size: 1.25rem;
    font-weight: bolder;
    margin-bottom: 2rem;
    display: inline;
    color: var(--gray-7);
}

/* ************************Fixed request for part ************************ */
.fixed-request-for-parts-btn {
    position: fixed;
    left: -3rem;
    top: 15rem;
    background-color: var(--brand-primary);
    color: white !important;
    border-radius: 0.25rem;
    padding: 1rem 1rem;
    font-size: 1rem;
    border: none;
    font-size: 1rem;
    transform: rotate(90deg);
}

.fixed-watsapp-btn {
    position: fixed;
    right: -1rem;
    top: 35rem;
    color: white !important;
    border-radius: 0.25rem;
    padding: 1rem 1rem;
    font-size: 1rem;
    border: none;
    font-size: 1rem;
}

.fixed-banner {
    position: fixed;
    right: -1rem;
    color: blue !important;
    border-radius: 0.25rem;
    padding: 0.5rem 3rem;
    font-size: 1rem;
    border: none;
    font-size: 1rem;
}

.fixed-request-for-parts-btn:hover {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .fixed-request-for-parts-btn {
        top: 93%;
        width: 100%;
        transform: none;
        left: 0;
        border-radius: 0;
        display: flex;
        justify-content: center;
        text-align: center;
        background-color: var(--gray-10);
    }

    .fixed-request-for-parts-btn:hover, .fixed-request-for-parts-btn:focus {
        background-color: var(--gray-8);
    }
}

/* ************************************************************************ */

/* ****************************Footer Section****************************** */
footer {
    background-color: var(--gray-4);
    color: var(--text-secondary);
    padding: 4rem 2rem;
    font-size: 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-5);
}

footer p {
    padding: 0;
    margin: 0;
}

.footer-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    color: var(--text-secondary)
}

.footer-item-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-secondary {
    margin-top: 2rem;
    border-top: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.footer-secondary .footer-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ************************************************************************* */

/* ********************Category product item styles************************* */
.category-items-block {
    margin-top: 2rem;
}

/* ************************************************************************* */

/*********************** Product Details ***************************************/
.product-details-block {
    margin-top: 2rem;
}

.product-details-image-box {
    border: 1px solid var(--gray-5);
    overflow: hidden;
}

.product-details-image-box .product-details-image {
    width: 100%;
}

.product-details-block .product-name {
    font-size: 1.25rem;
    font-weight: bolder;
    color: var(--text-secondary);
}

.product-details-block .product-code {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-details-block .product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}
#brandLogo {
  width:50%;
}
/************************ Account Login *******************************/
.account-login-block {
    margin-top: 2rem;
}

.account-login-block .card-title {
    font-weight: bolder;
}

.account-login-block .card {
    box-shadow: 2px 2px 10px var(--gray-5);
    color: var(--text-secondary);
}

.account-login-title {
    margin-bottom: 1rem;
}

.login-register-info a {
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .account-login-block .card {
        margin-bottom: 1rem;
    }
}

/************************ Register Account ******************************/
.register-account-block {
    margin-top: 2rem;
}

.register-account-block .card-title {
    font-weight: bolder;
}

/********************** shopping cart navbar ****************************/
.shopping-cart {
    position: relative;
}

.shopping-cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    color: white;
    background-color: var(--brand-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}

.shopping-cart-popover-content {
    display: none;
    border: 1px solid var(--gray-5);
    border-radius: 0.5rem;
    box-shadow: 2px 2px 10px var(--gray-9);
    position: absolute;
    background-color: white;
    padding: 1rem;
    right: 0;
    width: 200px;
}

.shopping-cart:hover .shopping-cart-popover-content {
    /*display: block;*/
/*    Todo implement later*/
}

/************************** shopping cart page ***************************/
.shopping-cart-block {
    margin-top: 2rem;
}

/************************** request for parts ********************************/
.request-for-parts-block {
    margin-top: 2rem;
}

.request-for-parts-block .card {
    margin-top: 2rem;
}

.request-for-parts-block form label {
    margin-top: 1rem;
}

/************************ Checkout Review **************************************/
.checkout-review-block {
    margin-top: 2rem;
}

/**************************** Search Results ************************************/
.search-results-block {
    margin-top: 2rem;
}

/*************************** Checkout Shipping *********************************/
.checkout-shipping-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

