:root {
    --primary-color: #0d6efd;   /* main */
    --secondary-color: #6c757d; /* second */
    --bg-color: #f8f9fa;        /* bg */
    --bg-secondary-color: #f1f3f5; /* second bg */
    --text-color: #212529;      /* text */
    --success-bg-color: #28a745;      /* text */
    --fail-bg-color: #dc3545;      /* text */
    --loading-text-color: #007bff;      /* text */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-nav .nav-item {
    line-height: 1.5rem;
}

.navbar-nav .nav-item:hover {
    font-size: 1.5rem;
}

.navbar-brand, .nav-link {
    color: #fff !important;
    outline: 0 !important;
}

.section-title {
    margin: 2rem 0 1rem;
    text-align: center;
    font-weight: bold;
}

.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 1rem;
    display: none;
    z-index: 9999;
}
img.list-item-image{max-height: 300px; object-fit: contain;}
img.banner-image{max-height: 600px; object-fit: contain;}
/* Loading screen style */
#loading {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* It can be changed to a darker color or brand color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--loading-text-color); /* The main color tone can be switched */
}

.toast-success {
    background-color: #d1e7dd;
    color: #0f5132;
}
.toast-error {
    background-color: #f8d7da;
    color: #842029;
}
.toast-info {
    background-color: #cff4fc;
    color: #055160;
}

.navbar>.container{min-height: 80px;}
footer{line-height: 40px;}

/* section based style */
section {
    margin: 2rem;
    padding: 2rem 2rem 4rem !important;
    border-radius: 20px;
    background-color: var(--bg-secondary-color);
}
img.captcha-img{
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* odd number section */
/*section:nth-of-type(odd) {
    background-color: #f1f3f5;
}*/

/* even number section */
/*section:nth-of-type(even) {
    background-color: #eeeeee;
}*/

/* You can also create more diverse loops, such as one round every three cycles */
/*
section:nth-of-type(3n+1) {
    background-color: #eef4ff;
}
section:nth-of-type(3n+2) {
    background-color: #ffffff;
}
section:nth-of-type(3n+3) {
    background-color: #f1f3f5;
}
*/
