.btn-action,
.btn-action:hover,
.btn-action:active,
.btn-action:visited,
.btn-action:focus {
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #e71e24;
    --bs-btn-active-border-color: #e71e24;

    background-color: #e71e24;
    border-color: #e71e24;
    color: #ffffff;
}

.btn-action:hover {
    background-color: #a21519;
}

.sidebar-indent {
    margin-left: 5px;
}

.sidebar .card {
    padding: 20px;
    border: 1px solid #666666;
}

.product-item {
    padding: 20px;
    width: 100%;
}

.product-item a {
    text-decoration: none;
}

.product-item p {
    color: #212529;
}

.product-item:hover {
    border-color: #f51f27;
}

.item-img-container {
    height: 200px;
    margin-bottom: 20px;
}

.item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.item-name {
    font-weight: bold;
}

.item-price-container {
    margin-top: auto;
}

.item-price {
    padding-top: 16px;
    text-align: right;
    font-size: 18px;
    font-weight: 500;
}

.product-list-top {
    display: flex;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #666666;
    border-radius: 6px;
    background-color: #ffffff;
}

.product-list-top .form-label {
    font-weight: 500;
}

.product-list-top select{
    width: auto;
}

.product-list-top label{
    padding-right: 8px;
}

.top-menu {
    background-color: #666666;
}

.top-menu a:not(.dropdown-item) {
    color: #ffffff;
}

.top-menu a:hover {
    color: #f51f27;
}

.middle-menu {
    background-color: #f51f27;
}

.middle-menu a{
    color: #ffffff;
}

.middle-menu a:hover{
    color: #000000;
}

.active>.page-link {
    background-color: #f51f27;
    border-color: #f51f27;
}

.btn-details, .btn-action-outline {
    color: #000000;
    border-color: #666666;
}

.btn-details:hover, .btn-action-outline:hover {
    color: #f51f27;
    border-color: #f51f27;
}

.item-action-container {
    margin-top: auto;
}

header {
    background-color: #ffffff;
}

body {
    background-color: #e6e6e6;
}

.nav-link.toggle-menu {
    color: #f51f27;
}

.nav-link.toggle-menu i:hover {
    color: #a21519;
}

.selected-category > a {
    font-weight: 500;
}

#imgCarousel img {
    height: 400px;
    object-fit: scale-down;
}

#imgCarousel {
    border: 1px solid #666666;
    border-radius: 0.375rem;
}

#imgCarousel .carousel-control-prev, #imgCarousel .carousel-control-next {
    background-color: #f51f27;
    width: 5%;
}

#imgCarousel .carousel-inner {
    background-color: #ffffff;
}

.product-details-info {
    padding: 20px;
}

.product-details-card {
    display: flex;
    flex-flow: column;
    margin-top: auto;
}

.product-details-card div:not(.number-input){
    display: flex;
}

.product-details-card div:last-child{
    flex-direction: row;
}

.product-details-card p {
    margin: 0;
}

.product-details-card .btn-action {
    flex: auto;
    margin-left: 20px;
}

.product-details-attributes {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #666666;
}

.product-details-attributes p {
    margin-bottom: 0.5rem;
}

.product-details-description {
    border-bottom: 1px solid #666666;
    height: 100%;
    padding: 20px 0;
}

.product-details-price {
    margin-bottom: 20px;
    align-self: end;
    font-size: 2rem;
}

.breadcrumb a, .order-details table a, .order-to-approve a {
    text-decoration: none;
    color: #666666;
}

.breadcrumb a:hover, .order-details table a:hover, .order-to-approve a:hover {
    text-decoration: none;
    color: #f51f27;
}

/*Bootstrap overwrite*/
.card {
    border-color: #666666;
}

/*Input number type*/
input.quantity[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

input.quantity[type=number]::-webkit-inner-spin-button,
input.quantity[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.number-input {
    border: 2px solid #666666;
    display: inline-flex;
    border-radius: 6px;
}

.number-input,
.number-input * {
    box-sizing: border-box;
}

.number-input button {
    outline:none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    margin: 0;
    position: relative;
    place-self: center;
}

.number-input button:before,
.number-input button:after {
    display: inline-block;
    position: absolute;
    content: '';
    width: 1rem;
    height: 2px;
    background-color: #212121;
    transform: translate(-50%, -50%);
}
.number-input button.plus:after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.number-input input[type=number] {
    font-family: sans-serif;
    max-width: 5rem;
    border: solid #666666;
    border-width: 0 2px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.select2-results {
    text-align: left;
}

.my-account .card {
    padding: 16px;
}

.alert-box {
    right: 2em;
    position: fixed;
    z-index: 1300;
}

.accordion-button:not(.collapsed)
{
    background-color: #e71e24;
    color: #ffffff;
}

.previous-value {
    color: #f51f27;
}

@media (min-width: 0px) and (max-width: 768px) {
    .product-list-top {
        flex-direction: column;
    }
    .product-list-top .btn-action{
        width: 100%;
        margin-bottom: 16px;
    }
}

@media (min-width: 769px) {
    .product-list-top > div:first-of-type {
        margin-right: auto;
    }
}


.my-cart .card {
    padding: 16px;
}
.cart-summary .card {
    padding: 16px;
}

.shop-title h2 {
    margin: 10px 0 30px 0;
    font-size: 26px;
    font-weight: 600;
    color: #333333;
    text-align: left;
    border-left: 5px solid #ff4500;
    padding-left: 10px;
    letter-spacing: 1px;
}
.cart-item {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.cart-item-name, .cart-item-price, .cart-item-total-price, .cart-item-delete {
    margin-top: 15px;
    font-size: 18px;
}
.cart-item-quantity,.cart-item-image{
    margin-top: 10px;
    padding: 0 5px;
}
.cart-total-price {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 500;
    text-align: right;
}

.cart-next-btn, .cart-order-btn {
    margin-top: 20px;
    text-align: right;
}

.cart-return-btn {
    margin-top: 20px;
    text-align: left;
}

.cart-next-btn a, .cart-order-btn a, .cart-return-btn a{
    font-size: 18px;
    font-weight: 500;
    min-width: 140px;
}

.cart-item-message, .cart-rate-difference {
    margin: 5px 0;
    color: red;
    font-size: 18px;
    font-weight: 500;
}

.cart-item-thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

.cart-item-link {
    text-decoration: none;
    color: #020202; /* Blue color for the link */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition for color and text-decoration */
}

.cart-item-link:hover {
    color: #439dfd; /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover */
}

.cart-empty {
    margin: 8%;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

#imgLightbox .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#imgLightbox .modal-body img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
}
