﻿

:root {
    --colorMain: #808080;
    --colorHover: #aaaaaa;
    --colorAlert: #FF0000;
}

#descriptionTop {
    clear: both;
    margin-bottom: 30px;
}

#shopProducts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 25px;
    row-gap: 40px;
}

.shopProductContainer {
    position: relative;
    width: calc(50% - 25px);
    padding: 25px;
    display: flex;
    justify-content: center;
}

.productDetailLink {
    display: inline-block;
    text-decoration: none;
    padding: 0px;
    border: 0px;
    background-image: initial;
    background-position: 0px center;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    text-align: left;
    cursor: pointer;
    position: absolute;
    z-index: 3;
    inset: 1px;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: rgba(128, 128, 128, 0.2);
    transition: all 0.2s ease;
    border-radius: 20px;
}

.productDetailLink:hover {
    opacity: 1;
}


.shopProduct {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the content vertically */
    margin-bottom: 20px;
    font-size: 18px;
    padding: 15px;
    text-align: center;
    width: 100%;
}



.shopProductImageContainer {
    position: relative;
    width: 100%; 
    pointer-events: none;
}

.shopProductImageContainer img {
    width: 100%;
    height: auto; 
    display: block; 
    border-radius: 10px; 
}

.shopProductTitle {
    display: inline-block;
    position: relative;
    z-index: 5;
    pointer-events: none;
    font-weight: 500;
    font-size: 20px;
    color: #000;
    margin: 30px 0 10px 0;
    text-align: center;
}

.shopProductTitle h2 {
    margin: 8px 0 0px 0;
}

.shopProductProductNumber {
    pointer-events: none;
    font-size: 16px;
    color: #404040;
}

.shopProductDescription {
    position: relative;
    z-index: 5;
    pointer-events: none;
    text-align: center;
}


.shopProductPriceContainer {
    pointer-events: none;
    text-align: center; /* Center align the price */
}


.shopProductPrice {
    color: var(--colorMain);
    font-weight: 700;
}

.shopProductPriceWithoutDiscount {
    font-size: 17px;
}

.shopProductPriceDiscountPercent.circle {
    position: absolute;
    left: 10px;
    top: 15px;
    background-color: var(--colorAlert);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 7px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    line-height: 38px;
    text-shadow: 1px 1px #4c4c4c;
    border: 1px solid #fff;
}

.shopProductFooter {
    bottom: 15px;
    left: 25px;
    position: absolute;
    right: 25px;
    z-index: 5;
}

.shopProductFooterCartControlContainer {
    display: flex;
    float: right;
}

.shopProductFooterQuantityContainer {
    display: flex;
}

#shopProducts input.shopProductQuantityInputPlus,
#shopProducts input.shopProductQuantityInputMinus {
    width: 26px;
    height: 30px;
    text-align: center;
    background-color: var(--colorMain);
    border: none;
    color: #fff;
}

#shopProducts input:focus {
    outline: none;
}

#shopProducts input.shopProductQuantityInputPlus {
    border-radius: 0 4px 4px 0;
}

#shopProducts input.shopProductQuantityInputMinus {
    border-radius: 4px 0 0 4px;
}

#shopProducts input.shopProductQuantityInputPlus:hover,
#shopProducts input.shopProductQuantityInputMinus:hover {
    background-color: var(--colorHover);
    cursor: pointer;
}

#shopProducts input.shopProductQuantityInput {
    width: 30px;
    height: 30px;
    text-align: right;
    border: 0;
    border-top: 1px solid var(--colorMain);
    border-bottom: 1px solid var(--colorMain);
    border-radius: 0;
    vertical-align: top;
    font-size: 12px;
    margin: 0;
    padding: 0 5px 0 0;
}

.shopProductAddToCartButton {
    background-color: var(--colorMain);
    border-radius: 4px;
    margin-left: 10px;
    height: 30px;
    width: 30px;
}

.shopProductAddToCartButton:hover {
    cursor: pointer;
    background-color: var(--colorHover);
}

.quantityInputValueNotNumeric {
    background-color: var(--colorAlert);
}

.shopProductAddToCartButton .fa-shopping-cart {
    color: #fff;
    font-size: 17px;
    margin-left: 4px;
    margin-top: 7px;
}

.shopProductAddToCartButton:hover {
    cursor: pointer;
}

.shopProductGotDetailButton,
.shopProductGotDetailButton:visited {
    background-color: var(--colorMain);
    color: #fff;
    border-radius: 4px;
    margin: 0;
    height: 30px;
    display: inline-block;
    padding: 5px 7px 0 7px;
    font-size: 15px;
}

.shopProductGotDetailButton:hover {
    color: #fff;
    background-color: var(--colorHover);
    text-decoration: none;
}

.shopProductGotDetailButton .fa-search {
    color: #fff;
    font-size: 15px;
    margin: 0 10px 0 0;
}

/* Change the Serach icon to a slider (Konfigurieren)*/
.shopProductGotDetailButton .fa-search::before {
    content: "\f1de"; 
}
/* Change back to the search icon for all other*/
.DetailsButton .shopProductGotDetailButton .fa-search::before {
    content: "\f002";
}

/* Hide 'Konfigurieren' and show 'Details' instead */
.DetailsButton .shopProductGotDetailButton,
.DetailsButton .shopProductGotDetailButton:hover {
    color: transparent;
    position: relative;
}

.DetailsButton .shopProductGotDetailButton::after {
    content: "Details";
    color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.DetailsButton .shopProductGotDetailButton:hover::after {
    content: "Details";
    color: #fff;
}




#loadMoreProductsContainer {
    grid-column: 2;
    margin: 40px 0 0 25px;
    text-align: center;
}


@media screen and (max-width: 767.9px) {

    .shopProductContainer {
        width: 100%;
    }

}


@media screen and (max-width: 449.9px) {


}