/* Herta Nutritional Values Styles */

.herta-nutrition-container {
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.herta-nutrition-title {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    /* Space before line */
    font-weight: 600;
    color: #ffffff;
}

/* Horizontal Line */
.herta-nutrition-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 1);
    /* Subtle horizontal divider */
    padding-top: 0;
    margin-top: 0;
}

.herta-nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 18px 22px 12px;
    /* Spacing between items */
    position: relative;
    width: 100%;
}

.herta-nutrition-item a {
    color: #ffffff;
}

.herta-nutrition-value.teilen {
    cursor: pointer;
}

.herta-nutrition-value svg {
    height: 20px;
    margin-right: 0px;
}

/* Vertical Divider using pseudo-element or border */
.herta-nutrition-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 1);
}

.herta-nutrition-value {
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    display: flex;
    flex-direction: row;
}

.herta-nutrition-label {
    font-weight: 400;
    text-transform: capitalize;
    /* Keep labels consistent */
    opacity: 0.9;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .herta-nutrition-grid {
        flex-wrap: wrap;
    }

    .herta-nutrition-item {
        width: 25%;
        flex: 1 1 25%;
        margin-bottom: 20px;
        padding: 18px 5px 8px;
    }
}

/* Nutrients List Table (Light Theme) */

.herta-nutrients-list-container {
    max-width: 100%;
    font-family: inherit;
    text-align: left;
}

.herta-nutrients-header {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-transform: none;
}

.herta-nutrients-list {}

.herta-nutrient-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #6c9a2e;
    font-size: 1rem;
}

.herta-nutrient-row.padded {
    border: none;
    padding-left: 10px;
    padding-top: 0;
}

.herta-nutrient-name {
    font-weight: 400;
    color: #333;
}

.herta-nutrient-value {
    font-weight: 400;
    text-align: right;
    color: #333;
}

/* Sub-nutrient (indented) */
.herta-sub-nutrient .herta-nutrient-name {
    padding-left: 20px;
    font-size: 0.95em;
    color: #555;
}

.herta-nutrient-row:first-child {
    border-top: none;
    padding-top: 0;
}

.herta-nutrient-row:last-child {
    border-bottom: 1px solid #6c9a2e;
}

/* Recipe Instructions */
.recipe-instructions td {
    padding: 0;
}

.recipe-instructions td p,
.recipe-instructions p {
    padding: 0;
    margin: 0;
}

.recipe-instructions td h5,
.recipe-instructions h5 {
    color: #5FAD25;
    text-transform: uppercase;
}

.recipe-instructions table {
    border: none;
}

/* Recipe Related Product */
.herta-recipe-related-product-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.herta-recipe-related-product-image {
    max-width: 800px;
    box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.5);
}

.herta-recipe-related-product-button {
    margin: 40px 0;
    background-color: #ffffff;
    color: #ec342e;
    padding: 10px 40px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 5;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.95;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 14px;
}

/* Product Related Product */
.herta-product-related-product-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.herta-product-related-product-image {
    width: 100px;
}

.herta-product-related-product-button {
    display: flex;
    align-items: center;
    margin: 40px 0;
    font-weight: bold;
    text-transform: uppercase;
}

/* Stories Slider */
.herta-stories-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.herta-stories-slider-container {
    display: flex;
    align-items: center;
    position: relative;
}

.herta-stories-slider {
    display: flex;
    overflow-x: auto;
    /* scroll-behavior: smooth; - Removed to allow instant jump for infinite loop */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    gap: 0px;
    padding-bottom: 10px;
    /* Space for scrollbar if visible */
    scrollbar-width: none;
    /* Firefox */
}

.herta-stories-slider::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.herta-story-item {
    position: relative;
    flex: 0 0 calc(50% - 0px);
    /* 2 items per view with gap consideration */
    max-width: calc(50% - 0px);
    box-sizing: border-box;
}

.herta-story-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Optional rounded corners */
}

.herta-story-overlay-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #ec342e;
    padding: 10px 40px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 5;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.95;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 14px;
}

.herta-story-overlay-btn:hover {
    background-color: #ec342e;
    color: #ffffff;
    transform: translateX(-50%) translateY(-3px);
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); */
    opacity: 1;
}

.herta-stories-slider-wrapper .herta-stories-slider-container .herta-slider-nav {
    background: #ffffff;
    color: #ec342e;
    border: 1px solid #CCCCCCCC;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 10px 10px 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.herta-product-related-product-container .herta-product-related-product-next {
    background: #ffffff;
    color: #ec342e;
    border: 1px solid #CCCCCCCC;
    font-size: 24px;
    cursor: pointer;
    padding: 6px 9px 20px;
    position: relative;
    z-index: 10;
    border-radius: 50%;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0 0 0 10px;
    box-shadow: none !important;
}

.herta-stories-slider-wrapper .herta-stories-slider-container .herta-slider-nav:hover,
.herta-product-related-product-container .herta-product-related-product-next:hover {
    background: #ec342e;
    color: #ffffff;
    border: 1px solid #ec342e;
    border-radius: 50%;
}

.herta-product-related-product-container .herta-product-related-product-next i {
    position: absolute;
    position: absolute;
    left: 8px;
    top: 7px;
}

.herta-stories-slider-wrapper .herta-stories-slider-container .herta-slider-prev {
    left: 10px;
    box-shadow: none !important;
}

.herta-stories-slider-wrapper .herta-stories-slider-container .herta-slider-next {
    right: 10px;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .herta-story-item {
        flex: 0 0 calc(100% - 20px);
        /* 1 item on mobile */
        max-width: calc(100% - 20px);
    }
}

/* Share Tooltip */
.herta-share-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.herta-share-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.herta-share-tooltip.visible {
    opacity: 1;
    visibility: visible;
}


/* Product Loop Image Zoom */
.product-loop .e-loop-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.product-loop .e-loop-item img {
    transform: scale(0.85);
}

@media (min-width: 768px) {

    .product-loop .e-loop-item.current-product img,
    .product-loop .e-loop-item:not(.current-product) img:hover {
        transform: scale(1.2);
    }

}


/* Herta Text Color Container Styles */
/* used to change default color of text on product color card */

.herta-text-on-color-dark .herta-text-color-container * {
    color: #333333;
    border-color: #333333;
    fill: #333333;
}

@media (max-width: 768px) {
    .herta-image-deskop {
        display: none;
    }
}

@media (min-width: 769px) {
    .herta-image-mobile {
        display: none;
    }
}