/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/


/**********************************/
    /*  Sekcja rekomendacji  */
/**********************************/

.hpcs-recommendations {
    padding: 40px 0;
}

/* === PEŁNA SZEROKOŚĆ + NAPRZEMIENNE TŁA dla wszystkich sekcji modułu === */
.hpcs-recommendations-section,
.hpcs-categories-section,
.hpcs-ps-categories-section,
.hpcs-experts-section,
.hpcs-blog-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding-left: 0;
    padding-right: 0;
}

.hpcs-recommendations-section { background-color: #fff; }
.hpcs-categories-section       { background-color: #F5F0EA; }
.hpcs-ps-categories-section    { background-color: #fff; }
.hpcs-experts-section          { background-color: #F5F0EA; }
.hpcs-blog-section             { background-color: #FAF9F8; }

.hpcs-section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* Grid produktów */
.hpcs-products-grid {
    margin: 0 -10px;
}

.hpcs-products-grid .row > div {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Miniatura produktu */
.hpcs-product-miniature {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.hpcs-product-miniature:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.hpcs-product-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Obrazek produktu */
.hpcs-product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.hpcs-product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hpcs-product-miniature:hover .hpcs-product-image img {
    transform: scale(1.05);
}

/* Badges */
.hpcs-product-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.hpcs-badge {
    display: block;
    padding: 5px 10px;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 3px;
}

.hpcs-badge-new {
    background: #28a745;
}

.hpcs-badge-sale {
    background: #dc3545;
}

.hpcs-badge-discount {
    background: #ff9800;
}

/* Informacje o produkcie */
.hpcs-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hpcs-product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    min-height: 40px;
}

.hpcs-product-name a {
    color: #333;
    text-decoration: none;
}

.hpcs-product-name a:hover {
    color: #00aff0;
}

.hpcs-product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Cena */
.hpcs-product-price {
    margin: auto 0 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.hpcs-price {
    color: #333;
}

.hpcs-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 10px;
}

.hpcs-new-price {
    color: #dc3545;
}

/* Akcje */
.hpcs-product-actions {
    margin-top: auto;
}

.hpcs-add-to-cart {
    width: 100%;
    padding: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.hpcs-out-of-stock {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    color: #999;
    font-weight: 600;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 767px) {
    .hpcs-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .hpcs-recommendations {
        padding: 30px 0;
    }
}

@media (max-width: 575px) {
    .hpcs-products-grid .row > div {
        margin-bottom: 15px;
    }
}

/* Usuń białe ramki z obrazków w rekomendacjach */
.hpcs-recommendations-section .product-thumbnail img,
.hpcs-recommendations-section .thumbnail-container img {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Upewnij się że obrazki mają odpowiedni rozmiar */
.hpcs-recommendations-section .product-thumbnail,
.hpcs-recommendations-section .thumbnail-container {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Dopasuj do rozmiaru jak w innych sekcjach */
.hpcs-recommendations-section .thumbnail-container {
    max-height: none !important;
}

/* Równe wysokości kart — flex na rowie */
.hpcs-recommendations-section .products.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.hpcs-recommendations-section .products.row > [class*="col-"] {
    display: flex !important;
}

/* Karta produktu na pełną wysokość kolumny */
.hpcs-recommendations-section .product-miniature {
    width: 100%;
}

.hpcs-recommendations-section .product-miniature .card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Tło opisu produktu */
.hpcs-recommendations-section .product-miniature .product-description {
    background: #fff !important;
}

/* card-body rośnie, ale NIE ruszamy product-description */
.hpcs-recommendations-section .product-miniature .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Nazwa produktu — stała wysokość, ucięcie długiego tekstu */
.hpcs-recommendations-section .product-miniature .product-title,
.hpcs-recommendations-section .product-miniature h2,
.hpcs-recommendations-section .product-miniature h3 {
    height: 80px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

/* Przycisk przyklejony do dołu — tylko margin na .add, bez flex na rodzicu */
.hpcs-recommendations-section .product-miniature .add {
    margin-top: auto !important;
    padding-top: 10px !important;
}

/* Wrapper dla rekomendacji - ograniczenie szerokości i wyśrodkowanie */
.hpcs-recommendations-wrapper {
    max-width: 1400px; /* dostosuj do potrzeb, np. 1200px, 1400px, 1600px */
    margin: 0 auto;
    padding: 0 15px;
}

/* Zmniejszenie odstępów między produktami */
.hpcs-recommendations-section .products .product-miniature {
    margin-bottom: 1rem; /* domyślnie może być 2rem lub więcej */
}

/* Zmniejszenie paddingu w kolumnach */
.hpcs-recommendations-section .products [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* Dostosowanie row żeby kompensować mniejszy padding */
.hpcs-recommendations-section .products.row {
    margin-left: -8px;
    margin-right: -8px;
}


/**********************************/
/*  Sekcja kategorii zdrowotnych - strona główna  */
/**********************************/

.hpcs-categories-section {
    padding: 40px 0;
}

.hpcs-categories-grid {
    margin: 0 -10px;
}

.hpcs-categories-grid > div {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Kontener kategorii - BEZ TŁA, BEZ RAMKI */
.hpcs-category-item {
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

/* Hover na całym item */
.hpcs-category-item:hover {
    transform: translateY(-8px);
}

/* Link - usuń podkreślenie */
.hpcs-category-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer; /* ← to dodaj */
}

.hpcs-category-link:hover {
    text-decoration: none !important;
}

/* Obrazek kategorii */
.hpcs-category-image {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.hpcs-category-item:hover .hpcs-category-image {
    transform: scale(1.15);
}

.hpcs-category-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

/* Nazwa kategorii (h4) */
h4.hpcs-category-name {
    font-family: notoserif;
    align-content: center;
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0 15px 0;
    min-height: 48px;
    color: #333;
    transition: color 0.3s ease;
}

/* HOVER - zmiana koloru tekstu na ZŁOTY */
.hpcs-category-item:hover h4.hpcs-category-name {
    color: rgb(226, 187, 83) !important;
}

/* Przycisk "Zobacz więcej" */
.hpcs-category-button {
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hpcs-category-item:hover .hpcs-category-button {
    background-color: rgb(226, 187, 83) !important;
    border-color: rgb(226, 187, 83) !important;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    .hpcs-categories-grid > div {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .hpcs-category-image img {
        width: 60px;
        height: 60px;
    }

    h4.hpcs-category-name {
        font-size: 14px;
    }
}
/**********************************/
/*  Sekcja kategorii PrestaShop  */
/**********************************/

.hpcs-ps-categories-section {
    padding: 40px 0;
}

/* Wyrównanie wysokości boxów */
.hpcs-ps-categories-section .row {
    display: flex;
    flex-wrap: wrap;
}

.hpcs-ps-categories-section .row > .col-md-6 {
    margin-bottom: 30px;
    display: flex;
}

.hpcs-ps-category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.hpcs-ps-category-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: #E2BB53;
}

.hpcs-ps-category-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex: 1;
}

.hpcs-ps-category-link:hover {
    text-decoration: none !important;
}

.hpcs-ps-category-content {
    display: flex;
    align-items: stretch;
    min-height: 280px;
    flex: 1;
}

/* Lewa strona - 50% */
.hpcs-ps-category-text {
    flex: 0 0 50%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hpcs-ps-category-name {
    font-family: notoserif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.hpcs-ps-category-link:hover .hpcs-ps-category-name {
    color: #E2BB53;
}

.hpcs-ps-category-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.hpcs-ps-category-description p {
    margin-bottom: 10px;
}

.hpcs-ps-category-description p:last-child {
    margin-bottom: 0;
}

.hpcs-ps-category-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 10px 20px;
}

.hpcs-ps-category-button .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hpcs-ps-category-card:hover .hpcs-ps-category-button .material-icons {
    transform: translateX(5px);
}

/* Prawa strona - 50% */
.hpcs-ps-category-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 15px;*/
}

.hpcs-ps-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.hpcs-ps-category-card:hover .hpcs-ps-category-image img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    .hpcs-ps-category-content {
        min-height: 220px;
    }

    .hpcs-ps-category-text {
        padding: 25px 20px;
    }

    .hpcs-ps-category-name {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .hpcs-ps-categories-section .row > .col-md-6 {
        margin-bottom: 20px;
    }

    .hpcs-ps-category-content {
        flex-direction: column;
        min-height: auto;
    }

    .hpcs-ps-category-text {
        flex: 1;
        padding: 20px;
    }

    .hpcs-ps-category-image {
        flex: 1;
        min-height: 200px;
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .hpcs-ps-categories-section {
        padding: 30px 0;
    }

    .hpcs-ps-category-name {
        font-size: 18px;
    }

    .hpcs-ps-category-description {
        font-size: 13px;
    }
}

/**********************************/
/*  Sekcja Nasi Eksperci  */
/**********************************/

.hpcs-experts-section {
    padding: 40px 0;
}

.hpcs-expert-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hpcs-expert-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.hpcs-expert-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    padding-bottom: 120%; /* Zwiększona wysokość - zdjęcie wyższe niż szerokość */
}

.hpcs-expert-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Skupienie na górnej części zdjęcia (twarz) */
    transition: transform 0.3s ease;
}

.hpcs-expert-card:hover .hpcs-expert-image img {
    transform: scale(1.05);
}

.hpcs-expert-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hpcs-expert-name {
    font-size: 18px;
    font-weight: 700;
    color: #E2BB53; /* Kolor złoty */
    margin: 0 0 10px 0;
}

.hpcs-expert-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.hpcs-expert-description p {
    margin-bottom: 10px;
}

.hpcs-expert-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .hpcs-expert-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hpcs-experts-section {
        padding: 30px 0;
    }

    .hpcs-expert-name {
        font-size: 16px;
    }

    .hpcs-expert-description {
        font-size: 13px;
    }

    .hpcs-expert-image {
        padding-bottom: 130%; /* Na mobile jeszcze wyższe zdjęcie */
    }
}
/**********************************/
/*  Sekcja Blog WordPress  */
/**********************************/

.hpcs-blog-section {
    padding: 40px 0;
}

.hpcs-blog-section .row {
    display: flex;
    flex-wrap: wrap;
}

.hpcs-blog-section .row > div {
    display: flex;
}

.hpcs-blog-post {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hpcs-blog-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    border-color: #E2BB53;
}

.hpcs-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hpcs-post-link:hover {
    text-decoration: none;
    color: inherit;
}

.hpcs-post-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
    flex-shrink: 0; /* Zapobiega zmniejszaniu obrazka */
}

.hpcs-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hpcs-blog-post:hover .hpcs-post-image img {
    transform: scale(1.1);
}

.hpcs-post-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.hpcs-post-date .material-icons {
    font-size: 14px;
}

.hpcs-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hpcs-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    /* Dokładnie 3 linie wysokości */
    height: 67px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hpcs-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    /* Dokładnie 4 linie wysokości */
    height: 90px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.hpcs-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #E2BB53;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    flex-shrink: 0; /* Zapobiega zmniejszaniu przycisku */
}

.hpcs-read-more .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hpcs-blog-post:hover .hpcs-read-more .material-icons {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hpcs-blog-section .row > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hpcs-blog-section {
        padding: 30px 0;
    }

    .hpcs-post-title {
        font-size: 15px;
        height: auto;
        -webkit-line-clamp: unset;
        display: block;
        margin-bottom: 10px;
    }

    .hpcs-post-excerpt {
        font-size: 13px;
        height: auto;
        -webkit-line-clamp: unset;
        display: block;
    }
}



.mainpage-seventh-section {
    width: 100vw;
    position: relative;
    margin-left: -50vw;
    left: 48.9%;
    display: flex;
    padding: 0 !important;
    max-width: unset !important;
}

.mainpage-seventh-section .col-md-6 {
    float: none !important;
    width: 50% !important;
    flex: 1 !important;
    padding: 60px 5% !important;
    text-align: left;
}

.mainpage-seventh-section .col-md-6:first-child {
    background-color: #F5F0EA !important;
}

.mainpage-seventh-section .col-md-6:last-child {
    background-color: #FAF9F8 !important;
}

@media (max-width: 768px) {
    .mainpage-seventh-section {
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
        left: 0 !important;
    }

    .mainpage-seventh-section .col-md-6 {
        width: 100% !important;
    }
}