/*
Theme Name: Apotheke
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/



/*Add your own styles here:*/
.apolife-dark.apolife-container{
    background-color: #292929;
}
.apolife-container {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    background-color: #f7f7f7;
}
.apolife-card{
    width: 90%;
    max-width: 1310px;
    padding: 50px;
    margin: 0 auto;
}
.apolife-card .title{
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: normal;
}
.apolife-card .title .link{
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    width: auto !important;
    border: none;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: normal;
    text-align: left;
}
.apolife-dark.apolife-container .apolife-card .title .link:hover{
    color: #ffffffc4 !important;
}
.apolife-card .title .link:hover{
    text-decoration: none !important;
    color: #000000c9 !important;
}

.apolife-dark .apolife-card .title, 
.apolife-dark .apolife-card .subtitle,
.apolife-dark .apolife-card .description{
    color: #fff;
}
.apolife-card .subtitle{
    margin-top: 0.3em;
    margin-bottom: 0;
    font-size: 15px;
    white-space: normal;
    line-height: 1.3em;
}
.apolife-card .description{
    padding-top: 10px;
}
.apolife-card .link{
    color: var(--enfold-main-color-button-font);
    border-color: var(--enfold-main-color-button-border);
    border-radius: 0px;
    text-decoration: none;
    background-color: var(--enfold-main-color-primary);
    padding: 15px 30px 13px;
    font-size: 13px;
    min-width: 139px;
    display: block;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    margin: 3px 0;
    line-height: 1.2em;
    position: relative;
    font-weight: normal;
    text-align: center;
    width: 150px;
}
.apolife-card .link:hover{
    color: #fff;
    background-color: #d63e2dc7;
}
.action-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    gap: 1.25rem;
}
.action-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-product-image-wrapper {
    position: relative;
    margin: -1rem -1rem 0 -1rem;
    height: 200px;
}

.action-product-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.badge-orange {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #f97316;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: normal;
}

.badge-blue {
    position: absolute;
    bottom: 0.75rem;
    right: 0;
    background-color: #38bdf8;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 1px 12px;
    line-height: normal;
}
.badge-red {
    position: absolute;
    top: 0.75rem;
    left: 0;
    background-color: #ef4444;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    line-height: normal;
}

.action-product-title {
    font-size: 1.125rem;
    font-weight: 600 !important;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-transform: none !important;
    line-height: normal;
    letter-spacing: 0.025em;
}

.action-product-description {
    font-size: 0.875rem;
    color: #9ca3af; 
    margin-top: 0.25rem;
    margin-bottom: 0;
    line-height: normal;
}

.action-product-price {
    margin: 0.75rem 0;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    color:#000;
    line-height: 1.5;
}

.price-old {
    font-size: 0.75rem;
    letter-spacing: 0;
    font-weight: 400; 
    color: #ef4444;
    text-decoration: line-through;
}

.action-product-variants {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
}

.variant-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    flex-wrap: wrap;
}
.variant-item .price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.variant-label {
    font-size: 0.875rem;
    padding: 3px 7px;
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.2);
}

.price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.action-product-savings {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: normal;
    line-height: normal;
}

.unit-price {
    font-size: 0.75rem;
    font-weight: normal;
    color: #000;
}

.action-product-validity {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: auto;
    margin-bottom: 0.75rem;
    font-weight: 300;
    line-height: normal;
}

.action-product-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6366f1;
    color: white !important;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    line-height: normal;
    margin-top: auto;
}

.action-product-button:hover {
    background-color: #818cf8;
}

.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.25rem;
}

/* Action info card*/
.action-info-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 20px !important; 
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    gap: 1.25rem;
    background-color: #ffffff;
    width: 70%;
    margin: 20px auto 0 auto;
}

.action-info-card .image-container {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.action-info-card .image-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.action-info-card .content-area {
    flex-grow: 1;
}

.action-info-card .content-area h4 {
    font-size: 1.5rem; 
    font-weight: 600 !important;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.action-info-card .content-area .product-name {
    font-size: 1.125rem; 
    letter-spacing: -0.05em; 
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.action-info-card .content-area .description-text {
    font-size: 1rem; 
    margin-top: 0.75rem;
}

.action-info-card .content-area .description-text p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 1280px) {
    .action-product-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 1024px) {
    .action-info-card {
        width: 100%;
    }
}
@media screen and (max-width: 992px) {
    .action-product-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .apolife-card{
        padding: 50px 0;
    }
    .apolife-card .title, .apolife-card .title .link{
        font-size: 26px;
    }
}
@media screen and (max-width: 640px) {
    .action-product-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .apolife-card .title, .apolife-card .title .link{
        font-size: 24px;
    }
    .action-info-card{
        flex-direction: column;
    }
    .action-info-card .content-area {
        width: 100%;
    }
}