/* ==========================================================================
   1. GLOBÁLNÍ PRVKY A ROZLOŽENÍ
   ========================================================================== */

/* Informační proužek */
.site-msg.information,
div.message.notice-message {
    background: #FBBC04;
    font-size: 1em;
    color: black;
}

/* Nastavení vedlejších stránek (články) */
article {
    max-width: 80rem;
    margin: 0 auto;
}

/* ==========================================================================
   2. HLAVIČKA A NAVIGACE
   ========================================================================== */
/* Zamezení zalamování textu v podmenu */
.menu-level-2 a span {
    white-space: nowrap !important;
}
/* Úprava první položky v menu */
@media only screen and (min-width: 768px) {
    #navigation ul.menu-level-1 > li:first-child a {
        padding-left: 35px !important;
    }
}

/* Skrytí 3. úrovně menu a úprava Mega menu */
@media only screen and (min-width: 768px) {
    #navigation .menu-level-3,
    #navigation .menu-level-3 ul {
        display: none !important;
    }
    #navigation ul.menu-level-1 > li .menu-level-2 {
        padding-left: 12vw !important;
        padding-right: 12vw !important;
        margin-top: 12px;
    }
    #navigation ul.menu-level-1 > li .menu-level-2 li {
        margin-bottom: 0;
        min-height: 0;
    }
    #navigation ul.menu-level-1 > li .menu-level-2 li > div > a {
        color: #666666;
        margin-bottom: 16px !important;
        margin-top: 16px !important;
    }
    #navigation ul.menu-level-1 > li .menu-level-2 li > div > a:hover {
        color: #000000;
    }
}

/* ==========================================================================
   3. HOMEPAGE, BANNERY A CAROUSEL
   ========================================================================== */

/* Texty v bannerech a carouselu */
#carousel .carousel-slide-caption,
.custom-banners-line .custom-banner .banner-caption,
.hp-bottom-banner .banner-caption,
.hp-middle-banner .banner-caption {
    background: hsla(0, 0%, 100%, 0.7);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2);
}

/* Sekce benefitů */
.type-index .benefitBanner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefitBanner .benefitBanner__item {
    display: flex;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.benefitBanner__picture {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .type-index .benefitBanner {
        gap: 1rem;
        grid-template-columns: 1fr;
        padding: 2rem 0 1rem !important;
    }
    .benefitBanner__item {
        flex-direction: row;
    }
    .benefitBanner__data {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   4. KATEGORIE A VÝPIS PRODUKTŮ
   ========================================================================== */

/* Podkategorie (tlačítka) */
.subcategories li a {
    border: none;
    border-radius: 0.625rem;
    background: #F1F3F7;
    font-weight: 600;
}

.subcategories li a:before {
    font-size: 0.75rem;
}

/* Produktové karty */
.products-block.products .product .p .name,
.products-block.products .product a.name span {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 2.5em;
    font-size: 1rem !important;
}

.products-block.products .p .price {
    font-size: 1rem;
}

/* Zobrazení parametrů (např. velikost) v kartě */
.widget-parameter-wrapper[data-parameter-name="Velikost"] .widget-parameter-value {
    display: inline-block !important;
}

.products-block.products .product .widget-parameter-wrapper .widget-parameter-list {
    justify-content: flex-start;
    gap: 0.625rem;
    margin: 0.5rem 0;
}

.products-block.products .product .widget-parameter-value {
    margin: 0;
    border-right: 0;
}

.products-block.products .product .widget-parameter-value a {
    padding: 0;
    min-width: 0;
    border-radius: 0;
    font-size: 1rem;
    background: none;
}

.products-block.products .product .widget-parameter-value a:hover {
    color: #666666;
}

.products-block.products .product .widget-parameter-more {
    display: none !important;
}

/* Responzivita produktových karet */
@media only screen and (min-width: 768px) {
    .products-block.products .product .p-in {
        flex-direction: column-reverse;
        padding: 0;
    }
}

@media only screen and (max-width: 767px) {
    .products-block.products .product .prices {
        margin: 0.5rem 0 0 0;
        min-height: 0;
    }
    .products-block .p-bottom .p-tools {
        display: none;
    }
    .products-block.products .product .widget-parameter-wrapper .widget-parameter-list {
        gap: 0.5rem;
    }
    .products-block.products .product .widget-parameter-value a {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   5. DETAIL PRODUKTU
   ========================================================================== */

/* -- Obecné rozložení vrchní části -- */
.p-detail .p-info-wrapper {
    padding: 0 6% !important;
}

.product-top .p-detail-info {
    padding: 0;
}

.p-image .flags-extra {
    display: none !important;
}

/* -- CENA A BONUSOVÝ SYSTÉM (Sloučeno) -- */
.price-line {
    padding: 1rem 0 !important;
    font-size: 1.125rem;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: start !important;
    flex-wrap: nowrap !important;
    gap: 24px;
}

.p-final-price-wrapper,
.mehub-bonus-product-detail-container {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Úprava vzhledu bonusového kontejneru */
.mehub-bonus-product-detail-container .ellity-link {
    display: none !important;
}

.mehub-bonus-product-detail-container .card .card-text {
    padding: 0 10px;
}

.mehub-bonus-product-detail-container .card-text span {
    font-size: 0 !important;
    color: transparent !important;
}

.mehub-bonus-product-detail-container .card-text span b {
    font-size: 14px !important;
    color: #000 !important;
    font-weight: bold;
    white-space: nowrap !important;
}

.mehub-bonus-product-detail-container .card-text span b::after {
    content: " Věrnostních bodů";
    font-size: 14px !important;
    color: #000 !important;
    font-weight: normal;
}

/* --- RESET STYLŮ KARTY (ODSTRANĚNÍ POZADÍ, STÍNŮ A ODSAZENÍ) --- */
.mehub-bonus-product-detail-container .card {
    background: transparent !important; 
    background-color: transparent !important; 
    box-shadow: none !important;
    padding: 0;
}

/* -- Krátký popis produktu -- */
.product-top .p-detail-info .p-short-description p:first-of-type {
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 1rem !important;
}

.product-top .p-detail-info .p-short-description p:not(:first-of-type) {
    display: none;
}

.product-top .p-detail-info .p-short-description a {
    font-size: 0.875rem !important;
}

/* -- Parametry a Varianty -- */
.product-top .p-detail-info .detail-parameters {
    margin: 0;
    padding: 1rem 0 0.25rem;
}

.product-top .c-product-interconnection-detail-params {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0 !important;
    padding: 0.25rem 0 1rem;
}

.product-top .detail-parameters tr.variant-list {
    padding: 0;
}

.product-top .detail-parameters th,
.product-top .c-product-interconnection-detail-params__type {
    font-size: 1rem;
    font-weight: 500 !important;
    color: #000000 !important;
}

/* Úprava variant (kolečka - barvy i obrázky) */
.c-product-interconnection-detail-params.is-template--Classic .c-product-interconnection-detail-params__type {
    max-width: none;
}

.c-product-interconnection-detail-params__products .item-label {
    display: none !important;
}

.product-top .c-product-interconnection-detail-params__products a.is-current .item-type-bg,
.product-top .c-product-interconnection-detail-params__products a.is-current .item-type-img {
    border: 2px solid #666666 !important;
    color: #000000;
    padding: 3px; 
    background-clip: content-box;
}

.product-top .c-product-interconnection-detail-params__products a.is-current .item-type-bg:before,
.product-top .c-product-interconnection-detail-params__products a.is-current .item-type-img:before {
    background-image: none !important;
    display: none !important;
}

/* Rozšířené parametry (Barva - aktivní kolečko v postranním panelu) */
.advanced-parameter-inner.yes-before {
    box-shadow: 0 0 0 2px #666666;
}

.advanced-parameter-inner.yes-before::before {
    display: none !important;
}

/* Zarovnání výběru velikosti (vedle sebe) */
.product-top .detail-parameters tr.variant-list td {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-top .detail-parameters td select {
    max-width: 50%;
}

.product-top .p-detail-info .detail-parameters #simple-variants {
    width: 57.5%;
    flex-shrink: 0;
}

.type-detail .tab-content .detail-parameters tr th {
    min-width: fit-content;
}

/* -- Tlačítko do košíku -- */
.product-top .add-to-cart {
    margin: 0;
    padding-bottom: 1rem;
}

/* Fixní tlačítko do košíku na mobilu */
@media only screen and (max-width: 767px) {
    .product-top .add-to-cart {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background-color: #ffffff !important;
        z-index: 10 !important;
        box-shadow: 0 -0.125rem 0.625rem rgba(0, 0, 0, 0.1) !important;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
    .product-top .add-to-cart button.add-to-cart-button {
        width: 100%;
    }
    body.type-detail {
        padding-bottom: 6.25rem !important;
    }
}

/* -- Ostatní prvky detailu -- */
.product-top .social-buttons-wrapper {
    margin: 0;
}

.product-top .social-buttons.no-display {
    display: none !important;
}

.piktogramy img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: inline-block;
    margin: 8px 8px 0 0;
    vertical-align: middle;
}

/* -- Tabulka velikostí (Vyskakovací okno) -- */
.size-chart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.size-chart-trigger:hover {
    color: #333;
    text-decoration: underline;
}
 
.size-chart-icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
}

/* Modal Overlay */
.size-chart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, .9);
    z-index: 9998;
    box-sizing: border-box;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.size-chart-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    background: transparent;
    padding: 0;
}

/* Zavírací tlačítko modalu */
.size-chart-modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    background: #000;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.type-detail #colorbox.wide-product-gallery #cboxClose:hover,
.size-chart-modal-close:hover {
    background: #333;
}

.size-chart-modal-close:before {
    content: "\e912";
    font-family: 'shoptet' !important;
    color: #fff;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
}

.size-chart-modal-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* ==========================================================================
   6. PATIČKA - REDESIGN (UX/UI Update)
   ========================================================================== */
/* Podstranky odstranení footer margin */
.type-page footer {
    margin: 0;
}
/* 1. Struktura a rozvržení */
footer .custom-footer {
    gap: 32px;
}

@media (min-width: 992px) {
    footer .custom-footer > div {
        flex-basis: calc(25% - 30px);
    }
}

/* 2. Typografie a Nadpisy */
footer h4 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
}

/* 3. Seznamy odkazů a kontaktů */
footer ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

footer ul li {
    display: flex;     
    align-items: flex-start;
    gap: 12px;
}

footer ul li a,
footer ul li > span {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: #e6e6e6;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer ul li a:hover {
    color: #ffffff;
    transform: translateX(5px); 
    opacity: 1;
}

footer ul li img {
    width: 20px;
    height: auto;
    opacity: 0.8;
    margin-top: 3px;
}

/* 4. Sociální sítě a Heureka */
.social-icons-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons-wrapper a.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons-wrapper a.social-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.social-icons-wrapper a.social-btn img {
    width: 36px;
    height: 36px;
    display: block;
}

.social-icons-wrapper a.heureka-btn img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.social-icons-wrapper a.heureka-btn:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* ==========================================================================
   NEWSLETTER - ÚPRAVA (Vše pod sebou + Barva)
   ========================================================================== */
.odber {
    background-color: #F2F3F7 !important;
}

.odber .newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
    margin: 0;
}

.odber h4 {
    margin: 0 0 16px;
}