
/* ======================================================================
   JOY DECOR — UNIVERSAL SEASONAL LANDING PAGE
   CONSOLIDATED PRODUCTION CSS
   Version: 1.0

   IMPORTANT
   ----------------------------------------------------------------------
   Použi tento súbor ako JEDINÝ CSS súbor pre landing page.
   Odstráň / vypni:
   - joydecor-landing-universal.css
   - joydecor-landing-fixes.css
   - všetky neskoršie LP override bloky

   Všetky pravidlá sú scoped pod .jd-lp, aby nekolidovali so Shoptetom.
   ====================================================================== */

.jd-lp,
.jd-lp * ,
.jd-lp *::before,
.jd-lp *::after {
    box-sizing: border-box;
}

.jd-lp {
    --jd-pink: #bf458a;
    --jd-pink-dark: #9f2f70;
    --jd-beige: #c1b295;
    --jd-bg: #fbf8f4;
    --jd-bg-soft: #f5eee5;
    --jd-white: #ffffff;
    --jd-text: #181512;
    --jd-muted: #6f675f;
    --jd-line: rgba(42, 34, 29, .12);
    --jd-shadow: 0 8px 26px rgba(37, 27, 20, .08);
    --jd-radius: 18px;

    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    background: var(--jd-bg);
    color: var(--jd-text);
    overflow: hidden;
}

/* ======================================================================
   TYPOGRAPHY / COMMON
   ====================================================================== */

.jd-lp h2,
.jd-lp h3,
.jd-lp h4,
.jd-lp p {
    margin-top: 0;
}

.jd-lp a {
    text-decoration: none;
}

.jd-lp__section {
    position: relative;
    padding: clamp(52px, 6vw, 96px) clamp(18px, 3.5vw, 54px);
    border-bottom: 1px solid var(--jd-line);
}

.jd-lp__section:last-child {
    border-bottom: 0;
}

.jd-lp__section-head {
    max-width: 980px;
    margin: 0 0 clamp(28px, 4vw, 48px);
}

.jd-lp__section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 48px;
    align-items: end;
}

.jd-lp__section-number {
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--jd-beige);
}

.jd-lp__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--jd-pink);
}

.jd-lp__title {
    margin: 0 0 14px !important;
    font-size: clamp(28px, 3vw, 46px) !important;
    line-height: 1.08 !important;
    color: var(--jd-text) !important;
}

.jd-lp__intro {
    max-width: 820px;
    margin: 0 !important;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.6;
    color: var(--jd-muted);
}

.jd-lp__link {
    align-self: end;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    color: var(--jd-pink) !important;
}

.jd-lp__link:hover {
    color: var(--jd-pink-dark) !important;
    text-decoration: underline;
}

.jd-lp__duo-title {
    margin: 0 0 10px !important;
    font-size: clamp(22px, 2vw, 30px) !important;
    line-height: 1.15 !important;
    color: var(--jd-text) !important;
}

.jd-lp__duo-text {
    margin: 0 0 24px !important;
    color: var(--jd-muted);
    line-height: 1.55;
}

.jd-lp__subsection + .jd-lp__subsection {
    margin-top: 44px;
}

.jd-lp__spacer-lg { height: 48px; }
.jd-lp__spacer-sm { height: 18px; }


/* ======================================================================
   GENERIC CAROUSEL
   ====================================================================== */

.jd-lp__rail-wrap {
    position: relative;
    min-width: 0;
}

.jd-lp__rail {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    min-width: 0;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 2px 2px 14px;
    margin: 0;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.jd-lp__rail::-webkit-scrollbar {
    display: none;
}

.jd-lp__rail > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.jd-lp__rail-btn {
    position: absolute;
    z-index: 20;
    top: 50%;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .97);

    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);

    transform: translateY(-50%);

    font-size: 27px;
    line-height: 1;
    color: #222;

    cursor: pointer;
}

.jd-lp__rail-btn--prev { left: -20px; }
.jd-lp__rail-btn--next { right: -20px; }

.jd-lp__rail-btn:disabled,
.jd-lp__rail-btn.is-disabled {
    opacity: 0;
    pointer-events: none;
}


/* ======================================================================
   SECTION 01 — CHRISTMAS WORLDS
   ====================================================================== */

.jd-lp__theme-card {
    position: relative !important;
    flex: 0 0 clamp(300px, 30vw, 420px) !important;

    min-width: 0;
    min-height: clamp(400px, 43vw, 560px);

    display: grid !important;
    grid-template: 1fr / 1fr;

    overflow: hidden;
    border-radius: var(--jd-radius);
    background: #dedad5;
    box-shadow: var(--jd-shadow);

    color: #fff !important;
}

.jd-lp__theme-card > img {
    grid-area: 1 / 1;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.jd-lp__theme-card::after {
    content: "";
    grid-area: 1 / 1;
    z-index: 1;
    align-self: stretch;
    justify-self: stretch;

    background: linear-gradient(
        to top,
        rgba(18, 14, 11, .82) 0%,
        rgba(18, 14, 11, .48) 28%,
        rgba(18, 14, 11, .09) 58%,
        rgba(18, 14, 11, 0) 76%
    );

    pointer-events: none;
}

.jd-lp__theme-card-content {
    grid-area: 1 / 1;
    z-index: 2;
    align-self: end;

    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 28px !important;
    transform: none !important;
}

.jd-lp__theme-card-title {
    position: static !important;
    margin: 0 0 8px !important;
    padding: 0 !important;

    font-size: 24px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;

    color: #fff !important;
}

.jd-lp__theme-card-text {
    position: static !important;
    max-width: 92%;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 15px;
    line-height: 1.45;

    color: rgba(255,255,255,.92) !important;
}


/* ======================================================================
   SECTION 02 — TREE THEMES / COLOR PALETTES
   ====================================================================== */

.jd-lp__duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.jd-lp__duo-panel {
    min-width: 0;
    padding: clamp(24px, 3vw, 38px);

    border: 1px solid var(--jd-line);
    border-radius: 20px;

    background: var(--jd-white);
}

.jd-lp__duo-panel:nth-child(2) {
    background: var(--jd-bg-soft);
}

.jd-lp__duo-panel .jd-lp__rail {
    gap: 18px;
}

/* IMPORTANT:
   karta je samostatný GRID.
   Text, gradient aj obrázok vždy patria iba do svojej vlastnej karty.
*/
.jd-lp__visual-card {
    position: relative !important;

    flex: 0 0 min(74%, 320px) !important;
    width: min(74%, 320px) !important;
    min-width: 220px;

    aspect-ratio: 4 / 5;

    display: grid !important;
    grid-template: 1fr / 1fr;

    overflow: hidden;
    border-radius: 14px;

    background: #e5e0da;

    color: #fff !important;
}

.jd-lp__visual-card > img {
    grid-area: 1 / 1;

    position: static !important;
    inset: auto !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;

    object-fit: cover !important;

    z-index: 0;
}

.jd-lp__visual-card::after {
    content: "";

    grid-area: 1 / 1;

    position: static !important;
    inset: auto !important;

    z-index: 1;

    align-self: stretch;
    justify-self: stretch;

    width: auto !important;
    height: auto !important;

    background: linear-gradient(
        to top,
        rgba(18,14,11,.72) 0%,
        rgba(18,14,11,.28) 28%,
        rgba(18,14,11,0) 58%
    );

    pointer-events: none;
}

.jd-lp__visual-card > .jd-lp__visual-card-title {
    grid-area: 1 / 1;

    position: static !important;
    inset: auto !important;

    z-index: 2;

    align-self: end;
    justify-self: stretch;

    width: auto !important;

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

    transform: none !important;

    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;

    text-align: left !important;
    color: #fff !important;
}


/* ======================================================================
   PRODUCT CARDS
   ====================================================================== */

.jd-lp__product {
    position: relative;

    flex: 0 0 230px !important;
    width: 230px;
    min-width: 230px;
    min-height: 360px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--jd-line);
    border-radius: 16px;

    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 27, 20, .05);
}

.jd-lp__product-tag {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;

    max-width: calc(100% - 24px);

    padding: 6px 10px;

    border-radius: 999px;
    background: var(--jd-pink);

    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.jd-lp__product-media {
    display: block;
    flex: 0 0 auto;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 10px;

    background: #fff;
}

.jd-lp__product-media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.jd-lp__product-body {
    flex: 1;
    display: flex;
    flex-direction: column;

    padding: 14px;
}

.jd-lp__product-name {
    min-height: 44px;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;

    color: var(--jd-text) !important;
}

.jd-lp__product-bottom {
    margin-top: auto;
    padding-top: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.jd-lp__product-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jd-lp__product-price {
    font-size: 18px;
    line-height: 1;
    color: var(--jd-text);
}

.jd-lp__product-old-price {
    font-size: 13px;
    color: #8d8580;
}

.jd-lp__product-cart {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f0e8dd;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease;
}

.jd-lp__product-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--jd-pink);
}

.jd-lp__product-cart:disabled {
    opacity: .35;
    cursor: default;
}

.jd-lp__product-cart.is-loading {
    opacity: .55;
    pointer-events: none;
}

.jd-lp__product-unavailable {
    margin-top: 8px;
    font-size: 12px;
    color: #8d8580;
}

.jd-lp__product.is-unavailable .jd-lp__product-media,
.jd-lp__product.is-unavailable .jd-lp__product-name {
    opacity: .58;
}

.jd-lp__product-placeholder {
    min-height: 320px;

    display: grid;
    place-content: center;

    padding: 20px;

    text-align: center;
    color: #857b73;
}

.jd-lp__product-placeholder span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
}


/* ======================================================================
   SECTION 03 — RECIPIENT CARDS
   ====================================================================== */

.jd-lp__recipient-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jd-lp__recipient-card {
    position: relative !important;

    min-height: 280px;

    display: grid !important;
    grid-template: 1fr / 1fr;

    overflow: hidden;
    border-radius: 16px;

    background: #dedad5;

    color: #fff !important;
}

.jd-lp__recipient-card > img {
    grid-area: 1 / 1;

    position: static !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;

    object-fit: cover !important;
}

.jd-lp__recipient-card::after {
    content: "";

    grid-area: 1 / 1;

    z-index: 1;

    background: linear-gradient(
        to top,
        rgba(18,14,11,.72) 0%,
        rgba(18,14,11,.24) 35%,
        rgba(18,14,11,0) 66%
    );

    pointer-events: none;
}

.jd-lp__recipient-card-content {
    grid-area: 1 / 1;

    z-index: 2;

    align-self: end;

    position: static !important;

    margin: 0 !important;
    padding: 22px !important;

    transform: none !important;
}

.jd-lp__recipient-card-title {
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    text-align: left !important;
    color: #fff !important;
}


/* ======================================================================
   SECTION 05 — VIDEO + PRODUCTS
   ====================================================================== */

.jd-lp__feature {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
    gap: 34px;
    align-items: center;
}

.jd-lp__video {
    overflow: hidden;

    border-radius: 18px;
    background: #000;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    aspect-ratio: 16 / 9;
}

.jd-lp__video iframe {
    width: 100% !important;
    height: 100% !important;

    display: block;

    border: 0;
}

.jd-lp__feature-products {
    min-width: 0;
}

.jd-lp__feature-products .jd-lp__product {
    flex-basis: 210px !important;
    width: 210px;
    min-width: 210px;
}


/* ======================================================================
   SECTION 06 — MOSAIC / SHOP THE LOOK
   max 3 columns
   ====================================================================== */

.jd-lp__mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 220px;
    gap: 16px;
}

.jd-lp__mosaic-item {
    position: relative;

    min-width: 0;

    overflow: hidden;
    border-radius: 16px;

    background: #ddd;
}

.jd-lp__mosaic-item--wide {
    grid-column: span 2;
}

.jd-lp__mosaic-item--tall {
    grid-row: span 2;
}

.jd-lp__mosaic-item img {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;

    object-fit: cover !important;
}

.jd-lp__mosaic-action {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,.94);
    color: #222;

    font-size: 19px;
    font-weight: 700;
}


/* ======================================================================
   TABLET
   ====================================================================== */

@media (max-width: 991px) {

    .jd-lp__section-head--split,
    .jd-lp__duo,
    .jd-lp__feature {
        grid-template-columns: 1fr;
    }

    .jd-lp__section-head--split {
        align-items: start;
    }

    .jd-lp__recipient-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jd-lp__mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jd-lp__mosaic-item--wide {
        grid-column: span 2;
    }
}


/* ======================================================================
   MOBILE
   ====================================================================== */

@media (max-width: 767px) {

    .jd-lp__section {
        padding: 44px 16px;
    }

    .jd-lp__section-head {
        margin-bottom: 28px;
    }

    .jd-lp__rail {
        gap: 12px;
        padding-bottom: 8px;
    }

    .jd-lp__rail-btn {
        display: none;
    }

    .jd-lp__theme-card {
        flex-basis: 84vw !important;
        min-height: 440px;
    }

    .jd-lp__theme-card-content {
        padding: 22px !important;
    }

    .jd-lp__theme-card-title {
        font-size: 21px !important;
    }

    .jd-lp__theme-card-text {
        max-width: 100%;
        font-size: 14px;
    }

    .jd-lp__duo-panel {
        padding: 20px;
    }

    .jd-lp__visual-card {
        flex-basis: 72vw !important;
        width: 72vw !important;
        max-width: 300px;
        min-width: 0;
    }

    .jd-lp__product,
    .jd-lp__feature-products .jd-lp__product {
        flex-basis: 72vw !important;
        width: 72vw;
        min-width: 72vw;
        max-width: 280px;
    }

    .jd-lp__recipient-grid {
        grid-template-columns: 1fr;
    }

    .jd-lp__recipient-card {
        min-height: 240px;
    }

    .jd-lp__recipient-card-content {
        padding: 18px !important;
    }

    .jd-lp__recipient-card-title {
        font-size: 18px !important;
    }

    .jd-lp__mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .jd-lp__mosaic-item--wide,
    .jd-lp__mosaic-item--tall {
        grid-column: auto;
        grid-row: auto;
    }
}


/* ======================================================================
   SMALL MOBILE
   ====================================================================== */

@media (max-width: 420px) {

    .jd-lp__title {
        font-size: 28px !important;
    }

    .jd-lp__intro {
        font-size: 15px;
    }

    .jd-lp__theme-card {
        flex-basis: 88vw !important;
    }

    .jd-lp__visual-card {
        flex-basis: 78vw !important;
        width: 78vw !important;
    }

    .jd-lp__product,
    .jd-lp__feature-products .jd-lp__product {
        flex-basis: 78vw !important;
        width: 78vw;
        min-width: 78vw;
    }
}
