/* Domio CZ — Vzdušný rozcestník, 2026-12-01.
   Server-rendered homepage fragments and native Shoptet product cards.
   Scope is the homepage only. Slider+ must be disabled for the HP product
   group in its own administration; this sheet does not turn a Swiper into a
   grid. Original custom rules that exclude category cards must also exclude
   HP cards, including the native action hiding at the end of category CSS.
   Parent banner / welcome / content containers own the outside page gutter. */

body.in-index {
    --domio-home-mint: #A7D6CB;
    --domio-home-green: #245B56;
    --domio-home-green-hover: #173E3A;
    --domio-home-ink: #46535A;
    --domio-home-steel: #70899C;
    --domio-home-soft: #EDF1F3;
    --domio-home-border: #DCE2E1;
    --domio-home-space: 52px;
}

/* Native banner rows have negative gutters intended for image carousels. */
body.in-index #content .banners-row {
    width: 100%;
    margin-inline: 0;
}

body.in-index .content-wrapper.homepage-box.welcome-wrapper {
    padding: 0 20px 52px;
    background: #fff;
}

body.in-index .content-wrapper.homepage-box.welcome-wrapper .container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding: 0;
}

body.in-index .welcome > div {
    max-width: none;
}

body.in-index .domio-home-top,
body.in-index .domio-home-bottom {
    width: 100%;
    max-width: 1240px;
    min-width: 0;
    margin-inline: auto;
    color: var(--domio-home-ink);
    font-family: Nunito, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

body.in-index :is(.domio-home-top, .domio-home-bottom) *,
body.in-index #content .products-block * {
    box-sizing: border-box;
}

body.in-index :is(.domio-home-top, .domio-home-bottom) :is(h1, h2, p) {
    margin: 0;
}

body.in-index :is(.domio-home-top, .domio-home-bottom) a {
    color: inherit;
    text-decoration: none;
}

body.in-index :is(.domio-home-top, .domio-home-bottom) a:hover {
    color: var(--domio-home-green);
}

body.in-index :is(.domio-home-top, .domio-home-bottom) img {
    display: block;
    max-width: 100%;
}

body.in-index .domio-home-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

body.in-index .domio-home-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding: 37px 0 26px;
}

body.in-index .domio-home-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--domio-home-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.in-index .domio-home-intro h1 {
    max-width: 580px;
    font-size: clamp(30px, 3.3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

body.in-index .domio-home-intro p {
    max-width: 460px;
    margin-top: 12px;
    font-size: 15px;
}

body.in-index a.domio-home-text-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--domio-home-green);
    font-size: 14px;
    font-weight: 700;
}

body.in-index .domio-home-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

body.in-index .domio-home-category {
    display: block;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

body.in-index .domio-home-category-photo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 9px;
    padding: 10px;
    overflow: hidden;
    border-radius: 6px;
    background: #F4F7F7;
}

body.in-index .domio-home-category-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.in-index .domio-home-category-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.3;
}

body.in-index .domio-home-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
    padding: 20px 0;
    border-block: 1px solid var(--domio-home-border);
    font-size: 13px;
}

body.in-index .domio-home-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
}

body.in-index .domio-home-benefit .domio-home-icon {
    color: var(--domio-home-steel);
}

body.in-index .domio-home-section {
    margin-top: var(--domio-home-space);
}

body.in-index .domio-home-section h2 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

body.in-index .domio-home-promo {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 30px;
    border-radius: 6px;
    background: var(--domio-home-soft);
}

body.in-index .domio-home-promo h2 {
    max-width: 390px;
    font-size: 30px;
}

body.in-index .domio-home-promo p {
    max-width: 380px;
    margin: 14px 0 20px;
    font-size: 15px;
}

body.in-index a.domio-home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--domio-home-green);
    border-radius: 6px;
    background: var(--domio-home-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

body.in-index a.domio-home-cta:hover {
    border-color: var(--domio-home-green-hover);
    background: var(--domio-home-green-hover);
    color: #fff;
}

body.in-index .domio-home-promo-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.in-index .domio-home-promo-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.in-index .domio-home-about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 45px;
    padding: 8px 0;
}

body.in-index .domio-home-about p {
    margin: 13px 0 8px;
    font-size: 15px;
}

body.in-index .domio-home-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 22px;
    padding: 24px;
    border-block: 1px solid var(--domio-home-border);
    background: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* Native data, names, prices, stocks, rating text, and forms are retained.
   display:contents makes layout available from the first render, without
   waiting for JavaScript to move availability below the price. */
body.in-index #content .homepage-group-title {
    max-width: 1240px;
    margin: var(--domio-home-space) auto 24px;
    color: var(--domio-home-ink);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: left;
    text-transform: none;
}

body.in-index #content .products-block:not(.swiper-wrapper) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 36px 24px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
}

body.in-index #content .products-block::before,
body.in-index #content .products-block::after {
    display: none;
}

body.in-index #content .products-block > .product {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.in-index #content .products-block .p {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 22px minmax(3em, 1fr) auto auto auto auto;
    height: 100%;
    min-width: 0;
    padding: 0;
    text-align: left;
}

body.in-index #content .products-block :is(.p-in, .p-in-in, .ratings-wrapper, .p-bottom),
body.in-index #content .products-block .p-bottom > div[data-micro="offer"] {
    display: contents;
}

body.in-index #content .products-block .p > a.image {
    display: block;
    position: relative;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1.15;
    margin: 0 0 16px;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

body.in-index #content .products-block .p > a.image::before,
body.in-index #content .products-block .p > a.image::after {
    display: none;
}

body.in-index #content .products-block .p > a.image > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
}

body.in-index #content .products-block .domio-card-brand {
    display: block;
    grid-row: 2;
    min-height: 17px;
    margin: 0 0 5px;
    color: #56646C;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.in-index #content .products-block .p .name {
    display: block;
    grid-row: 3;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: var(--domio-home-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

body.in-index #content .products-block .p .name::first-letter {
    text-transform: none;
}

body.in-index #content .products-block .p .name:hover {
    color: var(--domio-home-green);
}

body.in-index #content .products-block .stars-placeholder {
    display: none;
}

body.in-index #content .products-block .stars-wrapper {
    display: flex;
    grid-row: 4;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 8px 0 0;
}

body.in-index #content .products-block .prices {
    display: flex;
    grid-row: 5;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 18px 0 5px;
    text-align: left;
}

body.in-index #content .products-block .price-final {
    margin: 0;
    line-height: 1.2;
}

body.in-index #content .products-block .price-final strong,
body.in-index #content .products-block .price-final > span:not(.pr-list-unit) {
    color: var(--domio-home-ink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.in-index #content .products-block .price-final .pr-list-unit,
body.in-index #content .products-block :is(.price-additional, .price-measure) {
    color: var(--domio-home-ink);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

body.in-index #content .products-block :is(.price-additional, .price-measure) {
    margin-top: 4px;
}

body.in-index #content .products-block .availability {
    display: block;
    grid-row: 6;
    height: auto;
    min-height: 36px;
    max-height: none;
    margin: 0 0 15px;
    overflow: visible;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.in-index #content .products-block .p-tools {
    display: flex;
    grid-row: 7;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0;
    text-align: left;
}

body.in-index #content .products-block .p-tools form.pr-action {
    width: 100%;
    margin: 0;
}

body.in-index #content .products-block .p-tools .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--domio-home-green);
    border-radius: 6px;
    box-shadow: none;
    background: #fff;
    color: var(--domio-home-green);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

body.in-index #content .products-block .p-tools :is(.btn-cart, .add-to-cart-button) {
    background: var(--domio-home-green);
    color: #fff;
}

body.in-index #content .products-block .p-tools .btn:hover {
    border-color: var(--domio-home-green-hover);
    background: var(--domio-home-soft);
    color: var(--domio-home-green-hover);
}

body.in-index #content .products-block .p-tools :is(.btn-cart, .add-to-cart-button):hover {
    background: var(--domio-home-green-hover);
    color: #fff;
}

body.in-index :is(.domio-home-top, .domio-home-bottom) a:focus-visible,
body.in-index #content .products-block :is(a.image, a.name, .p-tools .btn):focus-visible {
    outline: 3px solid var(--domio-home-steel);
    outline-offset: 3px;
}

body.in-index #content .products-block .flags-default {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px;
    pointer-events: none;
}

body.in-index #content .products-block .flags-default .flag {
    display: inline-flex;
    width: auto;
    height: auto;
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

body.in-index #content .products-block .image .flags-extra {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    width: auto;
}

body.in-index #content .products-block .image .flags-extra .flag {
    display: inline-flex;
    flex-direction: row;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
}

body.in-index #content .products-block .image .flags-extra .flag-discount {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

body.in-index #content .products-block .image .flag-discount :is(.price-standard, .price-standard > span, .price-save) {
    display: inline;
    position: static;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

/* Hidden product fragments must remain hidden with flex/grid presentation. */
body.in-index :is(.domio-home-top, .domio-home-bottom) [hidden],
body.in-index #content .products-block [hidden] {
    display: none !important;
}

/* Use the native header, search form, cart and mobile navigation. Do not
   change the logo geometry, navigation list, native dialogs, or sticky clone. */
@media (min-width: 768px) {
    body.in-index #header .header-top {
        display: grid;
        grid-template-columns: 116px minmax(150px, 1fr) auto;
        align-items: center;
        gap: 35px;
        height: auto;
        min-height: 100px;
        padding-block: 20px;
    }

    body.in-index #header .site-name-wrapper,
    body.in-index #header .site-name {
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.in-index #header .site-name img {
        display: block;
        width: 116px;
        height: auto;
        max-height: none;
        aspect-ratio: 483 / 250;
        object-fit: contain;
    }

    body.in-index #header .search {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.in-index #header .search-form {
        width: 100%;
        margin: 0;
    }

    body.in-index #header .navigation-buttons {
        min-width: 150px;
        margin: 0;
    }
}

body.in-index #header .search-form fieldset {
    position: relative;
    width: 100%;
    height: 48px;
}

body.in-index #header .search-form .search-input {
    width: 100%;
    height: 48px;
    min-width: 0;
    padding-right: 74px;
    border: 1px solid var(--domio-home-border);
    border-radius: 6px;
    background: #fff;
    color: var(--domio-home-ink);
}

body.in-index #header .search-form .btn {
    top: 1px;
    right: 1px;
    height: 46px;
    min-width: 48px;
    padding-inline: 12px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--domio-home-green);
    color: #fff;
}

body.in-index #header .search-form .btn:hover {
    background: var(--domio-home-green-hover);
}

@media (max-width: 900px) {
    body.in-index #content .products-block:not(.swiper-wrapper) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    body.in-index .domio-home-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 750px) {
    body.in-index .domio-home-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 18px;
    }
}

/* The old injected phone overlaps the native mobile search toggle. The
   homepage already exposes the phone in its assistance link and footer. */
@media (max-width: 767px) {
    body.in-index #header .project-phone {
        display: none;
    }
}

@media (max-width: 540px) {
    body.in-index {
        --domio-home-space: 36px;
    }

    body.in-index .content-wrapper.homepage-box.welcome-wrapper {
        padding: 0 10px 36px;
    }

    body.in-index .domio-home-intro {
        display: block;
        padding: 21px 0 24px;
        border-top: 1px solid var(--domio-home-border);
    }

    body.in-index .domio-home-intro h1 {
        max-width: 300px;
        font-size: 30px;
    }

    body.in-index .domio-home-intro p {
        font-size: 14px;
    }

    body.in-index .domio-home-intro > .domio-home-text-link {
        display: none;
    }

    body.in-index .domio-home-kicker {
        font-size: 11px;
    }

    body.in-index .domio-home-categories {
        gap: 10px;
    }

    body.in-index .domio-home-category {
        font-size: 12px;
    }

    body.in-index .domio-home-category-photo {
        margin-bottom: 3px;
        padding: 7px;
    }

    body.in-index .domio-home-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 20px;
        padding: 10px 0;
    }

    body.in-index .domio-home-benefit {
        justify-content: flex-start;
        min-height: 44px;
    }

    body.in-index .domio-home-section h2,
    body.in-index #content .homepage-group-title {
        font-size: 25px;
    }

    body.in-index #content .homepage-group-title {
        margin-bottom: 20px;
    }

    body.in-index #content .products-block:not(.swiper-wrapper) {
        gap: 30px 14px;
    }

    body.in-index #content .products-block .p > a.image {
        aspect-ratio: 1.1;
        margin-bottom: 12px;
    }

    body.in-index #content .products-block .p .name {
        font-size: 15px;
    }

    body.in-index #content .products-block .price-final strong,
    body.in-index #content .products-block .price-final > span:not(.pr-list-unit) {
        font-size: 22px;
    }

    body.in-index #content .products-block .flags-default {
        top: 6px;
        right: 6px;
        left: 6px;
    }

    body.in-index #content .products-block .flags-default .flag {
        padding: 4px 6px;
        font-size: 10px;
    }

    body.in-index .domio-home-promo {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 24px 20px;
    }

    body.in-index .domio-home-promo h2 {
        font-size: 28px;
    }

    body.in-index .domio-home-promo-visual {
        justify-self: center;
        width: 100%;
        max-width: 300px;
    }

    body.in-index .domio-home-promo-visual img {
        max-height: 140px;
    }

    body.in-index .domio-home-brands {
        gap: 15px;
        padding: 24px 0;
        font-size: 20px;
    }

    body.in-index a.domio-home-cta {
        padding: 10px;
    }
}

@media (max-width: 383px) {
    body.in-index #content .products-block:not(.swiper-wrapper) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.in-index #content .products-block .p > a.image {
        aspect-ratio: 4 / 3;
    }

    body.in-index #content .products-block .p .name {
        font-size: 16px;
    }

    body.in-index #content .products-block .availability {
        min-height: 0;
    }

    body.in-index .domio-home-category {
        font-size: 11px;
    }
}
