/**
 * Other Spirit
 * Homepage styles
 */


/* ---------------------------------------------------------
   Homepage Hero
--------------------------------------------------------- */

.os-home-hero {
    position: relative;
    min-height: min(760px, 82vh);
    overflow: hidden;

    background: var(--os-bg);
    border-bottom: 1px solid var(--os-border);
}


/* Hero image – exactly aligned with .os-container */
.os-home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.os-home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.os-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(7, 8, 9, 0.96) 0%,
            rgba(7, 8, 9, 0.82) 24%,
            rgba(7, 8, 9, 0.42) 50%,
            rgba(7, 8, 9, 0.08) 76%,
            rgba(7, 8, 9, 0.02) 100%
        );

    pointer-events: none;
}

.os-home-hero__inner {
    position: relative;
    z-index: 2;

    min-height: inherit;
    padding-block: 64px;

    display: flex;
    align-items: center;
}

.os-home-hero__content {
    width: min(560px, 48%);
}


.os-home-hero__title {
    margin: 0 0 2rem;

    color: var(--os-accent);

    font-family: var(--os-font-heading);
    font-size: clamp(2.5rem, 3.8vw, 4.3rem);
    font-weight: 400;

    line-height: 1.13;
    letter-spacing: 0.015em;
}

.os-home-hero__lead {
    max-width: 500px;
    margin: 0 0 2.4rem;

    color: var(--os-muted);

    font-family: var(--os-font-body);
    font-size: 0.95rem;

    line-height: 1.7;
    letter-spacing: 0.03em;
}


/* ---------------------------------------------------------
   Worlds
--------------------------------------------------------- */

.os-home-worlds {
    background: var(--os-bg);
}

.os-home-worlds__header {
    margin-bottom: clamp(35px, 5vw, 65px);
    text-align: center;
}

.os-home-worlds__title {
    margin: 0;

    color: var(--os-accent);

    font-size: clamp(1.5rem, 2.2vw, 2.4rem);

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Grid
--------------------------------------------------------- */

.os-world-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 12px;
}


/* Card
--------------------------------------------------------- */

.os-world-card {
    position: relative;

    min-height: 520px;

    overflow: hidden;

    border: 1px solid var(--os-border);
}

.os-world-card__link {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    height: 100%;

    min-height: inherit;

    color: var(--os-text);
}


/* Card media
--------------------------------------------------------- */

.os-world-card__media {
    position: absolute;
    inset: 0;
}

.os-world-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform 700ms ease,
        filter 500ms ease;
}

.os-world-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(7, 8, 9, 0.96) 0%,
            rgba(7, 8, 9, 0.72) 32%,
            rgba(7, 8, 9, 0.22) 66%,
            rgba(7, 8, 9, 0.08) 100%
        );
}


/* Card text
--------------------------------------------------------- */

.os-world-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 24px 24px;
}

.os-world-card__title {
    margin: 0 0 0.8rem;

    color: var(--os-accent);

    font-size: clamp(1.25rem, 1.7vw, 1.8rem);

    line-height: 1.15;
}

.os-world-card__excerpt {
    margin: 0 0 1.4rem;

    color: var(--os-muted);

    font-size: 0.86rem;
    line-height: 1.55;
}

.os-world-card__cta {
    color: var(--os-accent);
}



/* Hover
--------------------------------------------------------- */

.os-world-card:has(a):hover .os-world-card__image,
.os-world-card:focus-within .os-world-card__image {
    transform: scale(1.035);
}

.os-world-card:has(a):hover,
.os-world-card:focus-within {
    border-color: rgba(231, 216, 181, 0.45);
}


/* ---------------------------------------------------------
   Manifest
--------------------------------------------------------- */

.os-home-manifest {
    padding-block: var(--os-section-space);
}

.os-home-manifest .os-manifest {
    max-width: 900px;

    margin: clamp(40px, 5vw, 72px) auto;

    font-size: clamp(2rem, 3.3vw, 3.8rem);
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1200px) {

    .os-world-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .os-world-card:nth-child(4),
    .os-world-card:nth-child(5) {
        min-height: 440px;
    }
}


@media (max-width: 768px) {

    .os-home-hero {
        min-height: 680px;
    }

    .os-home-hero__overlay {
        background:
            linear-gradient(
                to top,
                rgba(7, 8, 9, 0.96) 0%,
                rgba(7, 8, 9, 0.66) 58%,
                rgba(7, 8, 9, 0.25) 100%
            );
    }

    .os-home-hero__media img {
        object-position: 68% center;
    }

    .os-home-hero__inner {
        align-items: flex-end;
    }

    .os-home-hero__content {
        width: 100%;

        padding-top: 200px;
        padding-bottom: 70px;
    }

    .os-home-hero__title {
        max-width: 520px;
    }

    .os-world-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .os-world-card,
    .os-world-card:nth-child(4),
    .os-world-card:nth-child(5) {
        min-height: 470px;
    }
}





/* ---------------------------------------------------------
   Gateways
--------------------------------------------------------- */

.os-home-gateways {
    background: var(--os-bg);
}

.os-section-heading {
    max-width: 800px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.os-section-heading h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.os-section-heading p {
    color: var(--os-muted);
}

.os-gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;

    background: var(--os-border);
    border: 1px solid var(--os-border);
}

.os-gateway-card {
    min-height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: clamp(28px, 3vw, 45px);

    background: var(--os-bg);

    transition:
        background var(--os-transition),
        transform var(--os-transition);
}

a.os-gateway-card:hover,
a.os-gateway-card:focus-visible {
    background: #111211;
}

.os-gateway-card h3 {
    margin-bottom: 1rem;
}

.os-gateway-card p {
    max-width: 360px;
    margin-bottom: 1.6rem;

    color: var(--os-muted);
    font-size: 0.9rem;
}

.os-gateway-card .os-ui,
.os-gateway-card .os-cta {
    margin-top: auto;
    color: var(--os-accent);
}

@media (max-width: 900px) {

    .os-gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {

    .os-gateway-grid {
        grid-template-columns: 1fr;
    }
}
/* Quiet supporting sections keep the worlds visually dominant. */
.os-home-hero__actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.os-home-news {
    padding-block: clamp(28px, 4vw, 48px);
    border-bottom: 1px solid var(--os-border);
}

.os-home-news__inner {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2fr);
    gap: 20px 48px;
    align-items: start;
}

.os-home-news h2 {
    margin: 0;
    line-height: 1.7;
}

.os-home-editor-content {
    min-width: 0;
    color: var(--os-muted);
    overflow-wrap: anywhere;
}

.os-home-editor-content > :last-child,
.os-home-wishlist__inner h2 {
    margin-bottom: 0;
}

.os-home-editor-content a:not(.os-cta) {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.os-home-news .os-home-editor-content h2,
.os-home-news .os-home-editor-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.os-home-gateways {
    padding-top: 0;
}

.os-home-wishlist {
    padding-block: 0;
}

.os-home-wishlist__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px clamp(32px, 6vw, 80px);
    align-items: center;
    padding-block: clamp(32px, 5vw, 64px);
    border-block: 1px solid var(--os-border);
}

.os-home-wishlist h2 {
    max-width: 560px;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.os-gateway-card h3 {
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
}

.os-gateway-card,
.os-world-card__content {
    overflow-wrap: anywhere;
}

.os-world-card:focus-within {
    outline: 2px solid var(--os-accent);
    outline-offset: 3px;
}

@media (min-width: 601px) and (max-width: 900px) {
    .os-world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .os-world-card,
    .os-world-card:nth-child(4),
    .os-world-card:nth-child(5) { min-height: 440px; }
}

@media (max-width: 768px) {
    .os-home-hero { min-height: 620px; }
    .os-home-hero__inner { padding-block: 0; }
    .os-home-hero__content { padding-top: 140px; padding-bottom: 56px; }
    .os-home-hero__title { font-size: clamp(2rem, 6vw, 3rem); }
    .os-home-news__inner,
    .os-home-wishlist__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .os-world-grid { grid-template-columns: 1fr; }
    .os-world-card,
    .os-world-card:nth-child(4),
    .os-world-card:nth-child(5) { min-height: 440px; }
    .os-home-worlds__title { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
    .os-world-card__image, .os-gateway-card { transition: none; }
    .os-world-card:has(a):hover .os-world-card__image { transform: none; }
}


/* WooCommerce products in homepage News */

.os-home-news .os-news-products,
.os-home-news .os-news-products .products,
.os-home-news .os-news-products .product {
    color: var(--os-muted);
}

.os-home-news .os-news-products h2,
.os-home-news .os-news-products h3,
.os-home-news .os-news-products .woocommerce-loop-product__title,
.os-home-news .os-news-products .woocommerce-loop-product__link {
    color: var(--os-text);
}

.os-home-news .os-news-products p,
.os-home-news .os-news-products li,
.os-home-news .os-news-products .woocommerce-product-details__short-description {
    color: var(--os-muted);
}

.os-home-news .os-news-products .price,
.os-home-news .os-news-products .price .amount {
    color: var(--os-text);
}

/* metadata typu Categories / Tags bych na homepage spíš schoval */
.os-home-news .os-news-products .posted_in,
.os-home-news .os-news-products .tagged_as,
.os-home-news .os-news-products .product_meta {
    display: none;
}



/* Homepage News – product list */
.os-home-news .os-news-products ul.products li.product {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    align-items: start;

    width: 100%;
    margin: 0;
    padding: 24px 0;

    border-bottom: 1px solid var(--os-border);
}

/* image */
.os-home-news .os-news-products ul.products li.product img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;

    object-fit: cover;
    margin: 0 !important;
}

/* text */
.os-home-news .os-news-products ul.products li.product h2,
.os-home-news .os-news-products ul.products li.product h3,
.os-home-news .os-news-products ul.products li.product .woocommerce-loop-product__title {
    color: var(--os-text);
}

/* ordinary text */
.os-home-news .os-news-products ul.products li.product p,
.os-home-news .os-news-products ul.products li.product li {
    color: var(--os-muted);
}

/* price */
.os-home-news .os-news-products ul.products li.product .price,
.os-home-news .os-news-products ul.products li.product .amount {
    color: var(--os-accent);
}

/* internal Woo metadata not needed on homepage */
.os-home-news .os-news-products .product_meta,
.os-home-news .os-news-products .posted_in,
.os-home-news .os-news-products .tagged_as {
    display: none;
}

@media (max-width: 600px) {
    .os-home-news .os-news-products ul.products li.product {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 18px;
    }

    .os-home-news .os-news-products ul.products li.product img {
        width: 110px !important;
        height: 110px !important;
        max-width: 110px !important;
    }
}



/* =========================================================
   HOMEPAGE NEWS – PRODUCT LIST
   ========================================================= */

.os-home-news .os-news-products ul.products {
    display: block !important;
    margin: 0;
}

/* Jeden produkt = dva sloupce */
.os-home-news .os-news-products ul.products li.product {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 6px;

    width: 100% !important;
    margin: 0 !important;
    padding: 28px 0 !important;

    border-bottom: 1px solid var(--os-border);
}

/* Produktový link už nesmí řídit layout */
.os-home-news .os-news-products li.product
.woocommerce-LoopProduct-link {
    display: contents;
}

/* Náhled vlevo */
.os-home-news .os-news-products li.product img {
    grid-column: 1;
    grid-row: 1 / span 20;

    width: 200px !important;
    height: 240px !important;
    max-width: 200px !important;

    object-fit: contain;
    object-position: top center;

    margin: 0 !important;
}

/* Všechno ostatní doprava */
.os-home-news .os-news-products li.product
.woocommerce-loop-product__title,
.os-home-news .os-news-products li.product
.woocommerce-product-details__short-description,
.os-home-news .os-news-products li.product
.price,
.os-home-news .os-news-products li.product
.button {
    grid-column: 2;
}

/* Titulek */
.os-home-news .os-news-products li.product
.woocommerce-loop-product__title {
    margin: 0 0 6px !important;
    padding: 0 !important;

    color: var(--os-text) !important;
    font-size: 1.25rem;
}

/* ---------------------------------------------------------
   Homepage News / WooCommerce list
--------------------------------------------------------- */

.os-home-news {
    background: var(--os-bg);
}

.os-home-news__header {
    margin-bottom: 32px;
}

.os-home-news__header h2 {
    color: var(--os-accent);
}

.os-home-news__header p {
    color: var(--os-muted);
}


/* jeden produkt */
.os-home-news li.product.berocket_lgv_list {
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 0 !important;

    border-bottom: 1px solid var(--os-border);
    background: transparent !important;
}


/* náhled */
.os-home-news li.product.berocket_lgv_list img {
    width: 200px !important;
    max-width: 200px !important;
    height: 240px !important;

    object-fit: contain;
    object-position: top center;

    margin: 0 !important;
}


/* názvy */
.os-home-news li.product.berocket_lgv_list h2,
.os-home-news li.product.berocket_lgv_list h3,
.os-home-news li.product.berocket_lgv_list
.woocommerce-loop-product__title {
    color: var(--os-text) !important;

    font-family: var(--os-font-heading);
    font-size: 1.25rem;
    font-weight: 400;
}


/* popis */
.os-home-news li.product.berocket_lgv_list p,
.os-home-news li.product.berocket_lgv_list li {
    color: var(--os-muted) !important;
    line-height: 1.45;
}


/* cena */
.os-home-news li.product.berocket_lgv_list .price,
.os-home-news li.product.berocket_lgv_list .amount {
    color: var(--os-text) !important;
}


/* tlačítko */
.os-home-news li.product.berocket_lgv_list .button {
    width: auto !important;

    padding: 11px 18px !important;
    margin: 8px 0 0 !important;

    background: transparent !important;
    border: 1px solid var(--os-border) !important;
    border-radius: 0 !important;

    color: var(--os-accent) !important;

    font-size: .75rem !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.os-home-news li.product.berocket_lgv_list .button:hover {
    background: var(--os-accent) !important;
    color: var(--os-bg) !important;
}


/* nepotřebná metadata */
.os-home-news .product_meta,
.os-home-news .posted_in,
.os-home-news .tagged_as {
    display: none !important;
}


/* mobil */
@media (max-width: 700px) {

    .os-home-news li.product.berocket_lgv_list img {
        width: 110px !important;
        max-width: 110px !important;
        height: 155px !important;
    }
}



/* ---------------------------------------------------------
   Homepage News
--------------------------------------------------------- */

.os-home-news {
    background: var(--os-bg);
}

.os-home-news__header {
    margin-bottom: 28px;
}

.os-home-news__header h2 {
    margin-bottom: 8px;
    color: var(--os-accent);
}

.os-home-news__header p {
    margin: 0;
    color: var(--os-muted);
}


/* Product row:
   image | description | purchase
--------------------------------------------------------- */

.os-product-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 170px;
    gap: 32px;

    align-items: start;

    padding: 30px 0;

    border-bottom: 1px solid var(--os-border);
}


/* Image */

.os-product-row__media {
    display: block;
}

.os-product-row__image {
    display: block;

    width: 200px;
    height: 240px;

    object-fit: contain;
    object-position: top center;

    margin: 0;
}


/* Text */

.os-product-row__content {
    min-width: 0;
}

.os-product-row__title {
    margin: 0 0 10px;

    font-family: var(--os-font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
}

.os-product-row__title a {
    color: var(--os-text);
    text-decoration: none;
}

.os-product-row__title a:hover {
    color: var(--os-accent);
}

.os-product-row__excerpt {
    max-width: 760px;

    color: var(--os-muted);

    font-size: 0.95rem;
    line-height: 1.5;
}

.os-product-row__excerpt p {
    margin: 0 0 0.6em;
}


/* Purchase */

.os-product-row__buy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
}

.os-product-row__price {
    color: var(--os-text);

    font-size: 1rem;
    line-height: 1.3;
}

.os-product-row__price del {
    color: var(--os-muted);
}

.os-product-row__price ins {
    color: var(--os-accent);
    text-decoration: none;
}


/* CTA */

.os-product-row__button {
    display: inline-block;

    width: auto;

    padding: 11px 17px;

    border: 1px solid var(--os-border);

    color: var(--os-accent);
    background: transparent;

    font-family: var(--os-font-body);
    font-size: 0.75rem;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        color var(--os-transition),
        background var(--os-transition),
        border-color var(--os-transition);
}

.os-product-row__button:hover {
    color: var(--os-bg);
    background: var(--os-accent);
    border-color: var(--os-accent);
}


/* Tablet / mobile */

@media (max-width: 800px) {

    .os-product-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
    }

    .os-product-row__image {
        width: 120px;
        height: 165px;
    }

    .os-product-row__buy {
        grid-column: 2;

        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}


@media (max-width: 520px) {

    .os-product-row {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 16px;

        padding: 24px 0;
    }

    .os-product-row__image {
        width: 90px;
        height: 130px;
    }

    .os-product-row__title {
        font-size: 1.1rem;
    }

    .os-product-row__excerpt {
        font-size: 0.88rem;
    }
}



.os-product-row__button {
    display: inline-block;
    padding: 11px 18px;

    background: var(--os-accent);
    border: 1px solid var(--os-accent);

    color: var(--os-bg);

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background var(--os-transition),
        color var(--os-transition),
        border-color var(--os-transition);
}

.os-product-row__button:hover {
    background: transparent;
    color: var(--os-accent);
}




/* ---------------------------------------------------------
   Homepage Wishlist
--------------------------------------------------------- */

.os-home-wishlist {
    background: var(--os-bg);
}

.os-home-wishlist__inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.os-home-wishlist__content {
    max-width: 700px;
}

.os-home-wishlist__content > p {
    margin: 0 0 28px;

    color: var(--os-muted);
    line-height: 1.6;
}

.os-home-wishlist__form {
    max-width: 620px;
}


/* Fluent Forms */

.os-home-wishlist .fluentform {
    color: var(--os-text);
}

.os-home-wishlist .fluentform label {
    color: var(--os-text);
}

.os-home-wishlist .fluentform input,
.os-home-wishlist .fluentform textarea,
.os-home-wishlist .fluentform select {
    background: transparent;
    color: var(--os-text);

    border: 1px solid var(--os-border);
    border-radius: 0;
}

.os-home-wishlist .fluentform input::placeholder,
.os-home-wishlist .fluentform textarea::placeholder {
    color: var(--os-muted);
}

.os-home-wishlist .fluentform .ff-btn-submit {
    background: var(--os-accent);
    color: var(--os-bg);

    border: 1px solid var(--os-accent);
    border-radius: 0;

    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.os-home-wishlist .fluentform .ff-btn-submit:hover {
    background: transparent;
    color: var(--os-accent);
}


/* Mobile */

@media (max-width: 768px) {
    .os-home-wishlist__inner {
        grid-template-columns: 1fr;
    }
}