/* --- ZÁKLADNÍ UPRAVY ROZLOŽENÍ A TEXTŮ --- */
.extended-banner-texts { max-width: 550px; margin: 0 auto; }
.extended-banner-title { font-size: 24px; font-weight: bold; }
.extended-banner-text { font-size: 16px; }
.extended-banner-link { display: block; margin-top: 10px; font-weight: bold; }

/* Sekundární logo vedle hlavního */
a[data-testid="linkWebsiteLogo"] { display: flex !important; align-items: center !important; justify-content: center; gap: 20px; }
#secondary-logo-image { height: 50px !important; width: auto !important; max-width: none !important; }

/* Skrývání elementů */
.products-top-header, #productsTop, .category-title, .basic-description h4, .latest-contribution.latest-contribution-discussion, .buttons-wrapper { display: none; }
.products-block .outer-row-container .quantity { display: none; }
.products-related .detail-parameters, .products-alternative-wrapper .detail-parameters { display: none; }

/* Úpravy popisů a obrázků v textu */
#description iframe, #description p:not(.exclude) > img, .category-perex img:not(.exclude) { float: right; margin-left: 30px; margin-bottom: 20px; width: 50%; z-index: 9; position: relative; }
#description hr { clear: none !important; }

/* Patička a Newsletter */
div.container.footer-rows > div, #footer, .footer-rows .rate-wrapper { background-color: #eeeeee; }
.footer-newsletter::before { content: "✍️ Skvělé novinky a slevy, zajímavé informace ze světa kosmetiky a Jeleního loje ✌️ Nenechte si je utéct!"; }

/* Menu */
.menu-item-978 a b { color: #41c4c0; font-weight: bold; }
.menu-item-978 a b:hover { color: #808080; }

/* Hodnocení */
.ratings-wrapper .stars-wrapper .stars.star-list .star,
.products-block .stars .star.star-on::before, 
.products-block .stars .star.star-half::before { color: gold; }

/* --- ÚPRAVY PRODUKTOVÝCH KARET (GRID) --- */
.products-block > div .p .p-in .p-in-in .name { height: unset!important; color: #000; margin-bottom: 10px; }
.products-block .category-appendix, .products-block .product-appendix { display: block; margin-bottom: 5px; font-weight: 400; font-size: 15px; color: #afafaf; }
.products-block .outer-row-container { display: flex; width: 100%; justify-content: space-around; margin-top: 20px; }
.products-block .outer-row-container .btn.btn-cart::before, 
.products-block .outer-row-container a.btn.btn-cart::before, 
.products-block .outer-row-container .btn.add-to-cart-button::before, 
.products-block .outer-row-container a.btn.add-to-cart-button::before,
.products-block .products-block > div .p .image:before, 
.products-block .product-slider .p .image:before { display: none; }
.products-block .outer-row-container .icon-cart { margin-right: 7px; }
.products-block .ratings-wrapper { margin-bottom: 10px; }
.products-block .flags-default { position: absolute; top: 0; text-align: left; width: unset; display: flex; flex-direction: column; }
.products-block [data-testid="productCardName"] { display: block; }
.products-block .p-price-wrapper .price-final { color: #000; }
.products-block .price.price-final { font-size: 20px; }
.products-block .p-detail-wrapper { display: flex; justify-content: center; align-content: center; align-items: center; }
.products-block .p-detail-wrapper .p-price-wrapper { width: 40%; }
.products-block .p-detail-wrapper .p-to-cart-block { width: 60%; }
.products-block .products-block > div .p .image, .products-block .product-slider .p .image { display: flex; flex-direction: column-reverse; }
.products-block .category-content-wrapper .flags-default, .products-block .product-slider .flags-default { width: 75%; max-width: 150px; min-width: 135px; }
.products-block > div .p { justify-content: stretch; }
.products-block .product .image > img { padding-top: 40px; }
.products-block > div .p .p-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.flags-default .flag { font-size: 13px; line-height: 14px; }

/* Detail produktu */
.description-inner { flex-direction: column; }
.one-column-body .description-inner .basic-description { width: 100%; }

/* Oves kontejner */
.container-oves { display: flex; flex-wrap: wrap; }
.container-oves img, .container-oves p { width: 100%; }

/* Video banner */
.custom-middle-video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background-color: #000; }

/* Hlášky */
.site-msg.information .text { color: white; }

/* Skrytí hlavičky kategorie pro ID 885 */
body.id-885 #category-header { display: none !important; }

/* Velké monitory */
@media (min-width: 1440px) {
  .container { width: 1380px; }
}

/* --- RESPONZIVITA (MOBILY A TABLETY) --- */
@media screen and (max-width: 600px) {
  #description iframe, #description p > img, .category-perex img:not(.exclude) { margin: 0 0 15px 0; float: none; width: 100% !important; }
  #product-detail td { width: 50%; }
  .container-kontakty { width: 100%; float: none; }
  .container-oves img, .container-oves p { width: 100%; }
}

@media only screen and (max-width: 480px) {
  .outer-row-container { flex-direction: column; }
}

/* Mobilní zobrazení produktů */
.mobile .p-detail-wrapper { display: flex; justify-content: start; align-content: center; align-items: start; flex-direction: column; padding: 0 20px; }
.mobile .p-detail-wrapper .p-to-cart-block, .mobile .p-detail-wrapper .p-price-wrapper { width: 100% }
.mobile .p-short-description { padding: 0 20px; }
.mobile .category-content-wrapper .flags-default { width: 55%; }
.mobile .outer-row-container { margin-top: 20px; }
.mobile .category-content-wrapper .p-tools { margin-top: 13px; }
.mobile [data-testid="productCardName"] { font-size: 20px; }
.mobile .p-in-in { padding: 0 10px; }

/* --- DLAŽDICE PODKATEGORIÍ (Jelení lůj - ID 700) --- */
.id-700 .category-top { display: flex; flex-direction: column; align-items: center; }
.id-700 .category-perex { width: 100%; }
.id-700 .category-perex img { width: 100% !important; float: none !important; margin-left: 0 !important; }
.id-700 .subcategories.with-image li a { height: 0; padding-top: 141.4%; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: all 0.3s ease; display: block; position: relative; overflow: hidden; }
.id-700 .subcategories.with-image li a:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.id-700 .subcategories.with-image .image { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
.id-700 .subcategories.with-image .image img { width: 100%; height: 100%; object-fit: cover; }
.id-700 .subcategories.with-image .text, .id-700 .subcategories.with-image li a::after { display: none !important; }
.id-700 ul.subcategories.with-image { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
.id-700 ul.subcategories.with-image > li { width: 16.6667% !important; box-sizing: border-box !important; padding: 0 10px 20px !important; margin-bottom: 0 !important; }

/* Skrytí img a nastavení pozadí pro specifické kategorie */
.id-700 .subcategories.with-image a[href="/tradicni-pomady/"] .image img,
.id-700 .subcategories.with-image a[href="/ovocne-pomady/"] .image img,
.id-700 .subcategories.with-image a[href="/bylinne-pomady/"] .image img,
.id-700 .subcategories.with-image a[href="/specialni-pomady/"] .image img,
.id-700 .subcategories.with-image a[href="/detske-pomady/"] .image img,
.id-700 .subcategories.with-image a[href="/2-v-1---rty-a-ruce/"] .image img { visibility: hidden; }

.id-700 .subcategories.with-image a .image { background-size: cover; background-repeat: no-repeat; background-position: center center; }
.id-700 .subcategories.with-image a[href="/tradicni-pomady/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-tradicni-b.jpg'); }
.id-700 .subcategories.with-image a[href="/ovocne-pomady/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-ovocne.jpg'); }
.id-700 .subcategories.with-image a[href="/bylinne-pomady/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-bylinne.jpg'); }
.id-700 .subcategories.with-image a[href="/specialni-pomady/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-exkluzivni-c.jpg'); }
.id-700 .subcategories.with-image a[href="/detske-pomady/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-detske.jpg'); }
.id-700 .subcategories.with-image a[href="/2-v-1---rty-a-ruce/"] .image { background-image: url('https://www.reginakosmetika.cz/user/documents/upload/jl-kategorie/jeleni-luj-original-kategorie-2v1.jpg'); }

@media (max-width: 767px) {
  .id-700 ul.subcategories.with-image > li { width: 50% !important; box-sizing: border-box !important; }
}

/* --- ÚPRAVA VÝPISU ČLÁNKŮ NA HP (ZOOM UVNITŘ RÁMEČKU) --- */

/* 1. Odstranění tmavého překryvu (patiny) */
.homepage-blog-wrapper .news-item a::after,
.homepage-blog-wrapper .news-item a::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* 2. Změna chování hlavního odkazu na "sloupeček" */
.homepage-blog-wrapper .news-item a {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
}

/* 3. Resetování kontejneru pro obrázek + OŘÍZNUTÍ PŘETEČENÍ */
.homepage-blog-wrapper .news-item .image {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    border-radius: 8px 8px 0 0;
    
    /* TOTO JE KLÍČOVÁ ZMĚNA PROTI PŘEKRÝVÁNÍ DO STRAN: */
    overflow: hidden !important; 
    /* Zajistí, že když se obrázek uvnitř zvětší, "nevyteče" ven z rámečku */
}

/* 4. Vrácení textu "pod" obrázek a jeho zviditelnění */
.homepage-blog-wrapper .news-item .text {
    position: relative !important;
    inset: unset !important;
    transform: none !important;
    
    width: 100% !important;
    height: auto !important;
    padding: 20px 0 !important;
    
    background: transparent !important;
    text-shadow: none !important;
    text-align: left;
    
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 5. Změna barvy textů z bílé na tmavou */
.homepage-blog-wrapper .news-item .text .title {
    color: #000 !important;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 13px;
    display: block;
}

.homepage-blog-wrapper .news-item .text .description {
    color: #555 !important;
    font-size: 14px;
    line-height: 1.5;
}

.homepage-blog-wrapper .news-item .text .read-article {
    color: #41c4c0 !important;
    margin-top: 15px;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

/* 6. Zachování efektu zvětšení obrázku při najetí */
.homepage-blog-wrapper .news-item:hover .image img {
    transform: scale(1.05); /* Zvětší se obrázek */
    transition: transform 0.3s ease;
}

/* 7. Odsazení celého bloku (vráceno na standardní hodnotu) */
.homepage-blog-wrapper .news-item {
    margin-bottom: 30px !important;
}