/*
 * DXN Storefront
 * Naponta jobban design system
 */

.dxn-storefront {
    --dxn-bg: #FAF8F3;
    --dxn-surface: #ffffff;
    --dxn-white: #ffffff;

    --dxn-primary: #2E5E4E;
    --dxn-secondary: #7FA78B;
    --dxn-accent: #C89B3C;

    --dxn-text: #2B2B2B;
    --dxn-muted: #66706b;

    --dxn-border: rgba(43, 43, 43, 0.10);

    --dxn-radius: 16px;

    background: var(--dxn-bg);
    color: var(--dxn-text);

    min-height: 60vh;
}


.dxn-catalog {
    padding:
        clamp(56px, 7vw, 104px)
        20px;
}


.dxn-catalog__container {
    width: min(100%, 1280px);
    margin: 0 auto;
}


/* =========================================================
   CATALOG HEADER
   ========================================================= */

.dxn-catalog__header {
    max-width: 720px;
    margin-bottom:
        clamp(40px, 5vw, 64px);
}


.dxn-catalog__eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-family:
        Manrope,
        sans-serif;

    font-size: 13px;
    font-weight: 700;

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

    color: var(--dxn-secondary);
}


.dxn-catalog__title {
    margin: 0 0 20px;

    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-size:
        clamp(38px, 5vw, 58px);

    font-weight: 400;
    line-height: 1.08;

    color: var(--dxn-primary);
}


.dxn-catalog__intro {
    margin: 0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 17px;
    line-height: 1.7;

    color: var(--dxn-muted);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.dxn-product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(min(100%, 280px), 1fr)
        );

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.dxn-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    min-width: 0;

    background: var(--dxn-surface);

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

    border-radius:
        var(--dxn-radius);

    box-shadow:
        0 18px 42px
        rgba(43, 43, 43, 0.045);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


@media (hover: hover) {

    .dxn-product-card:hover {
        transform:
            translateY(-4px);

        box-shadow:
            0 24px 55px
            rgba(43, 43, 43, 0.075);

        border-color:
            rgba(46, 94, 78, 0.20);
    }

}


/* =========================================================
   IMAGE
   ========================================================= */

.dxn-product-card__image-link {
    display: block;

    color: inherit;
    text-decoration: none;
}


.dxn-product-card__image-wrap {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #f5f3ee;
}


.dxn-product-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition:
        transform 300ms ease;
}


@media (hover: hover) {

    .dxn-product-card:hover
    .dxn-product-card__image {
        transform: scale(1.035);
    }

}


.dxn-product-card__image-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-size: 32px;

    color:
        rgba(46, 94, 78, 0.35);
}


/* =========================================================
   BADGE
   ========================================================= */

.dxn-product-card__badge {
    position: absolute;

    top: 16px;
    left: 16px;

    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding:
        5px
        11px;

    border-radius: 999px;

    background:
        rgba(200, 155, 60, 0.94);

    color: #fff;

    font-family:
        Manrope,
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.025em;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.dxn-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px;
}


/* categories */

.dxn-product-card__categories {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 13px;
}


.dxn-product-card__category {
    display: inline-flex;

    padding:
        5px
        9px;

    border-radius: 999px;

    background:
        rgba(127, 167, 139, 0.12);

    color: var(--dxn-primary);

    font-family:
        Manrope,
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background 150ms ease;
}


.dxn-product-card__category:hover {
    background:
        rgba(127, 167, 139, 0.22);
}


/* title */

.dxn-product-card__title {
    margin:
        0
        0
        10px;

    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-size:
        clamp(22px, 2vw, 26px);

    font-weight: 400;
    line-height: 1.2;
}


.dxn-product-card__title a {
    color: var(--dxn-primary);

    text-decoration: none;
}


/* subtitle */

.dxn-product-card__subtitle {
    margin:
        0
        0
        20px;

    font-family:
        Manrope,
        sans-serif;

    font-size: 14px;
    line-height: 1.55;

    color: var(--dxn-muted);
}


/* =========================================================
   META / PRICE
   ========================================================= */

.dxn-product-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 14px;

    border-top:
        1px solid
        var(--dxn-border);
}


.dxn-product-card__package {
    font-family:
        Manrope,
        sans-serif;

    font-size: 13px;

    color: var(--dxn-muted);
}


.dxn-product-card__price {
    font-family:
        Manrope,
        sans-serif;

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

    white-space: nowrap;

    color: var(--dxn-primary);
}


/* =========================================================
   AVAILABILITY
   ========================================================= */

.dxn-product-card__status {
    margin:
        12px
        0
        0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 12px;
    font-weight: 600;

    color: #C85A5A;
}


.dxn-product-card__status--neutral {
    color: var(--dxn-muted);
}


.dxn-product-card.is-unavailable
.dxn-product-card__image {
    opacity: 0.58;
}


/* =========================================================
   FOOTER
   ========================================================= */

.dxn-product-card__footer {
    margin-top: 20px;
}


.dxn-product-card__details {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--dxn-primary);

    font-family:
        Manrope,
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}


.dxn-product-card__details span {
    color: var(--dxn-accent);

    transition:
        transform 150ms ease;
}


.dxn-product-card__details:hover span {
    transform:
        translateX(3px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.dxn-catalog__pagination {
    margin-top: 56px;
}


.dxn-catalog__pagination
.nav-links {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.dxn-catalog__pagination
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 42px;

    padding: 8px 12px;

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

    border-radius: 8px;

    background: #fff;

    color: var(--dxn-primary);

    font-family:
        Manrope,
        sans-serif;

    text-decoration: none;
}


.dxn-catalog__pagination
.page-numbers.current {
    background:
        var(--dxn-primary);

    color: #fff;

    border-color:
        var(--dxn-primary);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.dxn-catalog__empty {
    padding: 56px 0;

    font-family:
        Manrope,
        sans-serif;
}


.dxn-catalog__empty h2 {
    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    color: var(--dxn-primary);
}


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

@media (max-width: 640px) {

    .dxn-catalog {
        padding:
            48px
            20px
            72px;
    }


    .dxn-product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .dxn-product-card__body {
        padding: 20px;
    }


    .dxn-product-card__image-wrap {
        aspect-ratio: 16 / 11;
    }

}

.dxn-catalog__eyebrow--link {
    text-decoration: none;
    transition: color 150ms ease;
}

.dxn-catalog__eyebrow--link:hover {
    color: var(--dxn-primary);
}

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */

.dxn-product {
    padding:
        clamp(40px, 6vw, 80px)
        20px
        clamp(72px, 8vw, 120px);
}


.dxn-product__container {
    width: min(100%, 1280px);
    margin: 0 auto;
}


.dxn-product__back {
    display: flex;

    width: max-content;

    margin-bottom: 32px;

    font-family:
        Manrope,
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
    text-decoration: none;

    color: var(--dxn-secondary);

    transition:
        color 150ms ease;
}


.dxn-product__back:hover {
    color: var(--dxn-primary);
}


/* =========================================================
   HERO LAYOUT
   ========================================================= */

.dxn-product__hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap:
        clamp(48px, 7vw, 96px);

    align-items: start;
}


/* =========================================================
   MEDIA
   ========================================================= */

.dxn-product__media {
    position: sticky;
    top: 120px;
}


.dxn-product__image-wrap {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 520px;

    padding:
        clamp(28px, 5vw, 56px);

    overflow: hidden;

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

    border-radius: 20px;

    background: #f5f3ee;
}


.dxn-product__image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 500px;

    object-fit: contain;
}


.dxn-product__image-placeholder {
    display: grid;
    place-items: center;

    min-height: 360px;

    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-size: 56px;

    color:
        rgba(46, 94, 78, 0.28);
}


.dxn-product__badge {
    position: absolute;

    top: 20px;
    left: 20px;

    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding:
        6px
        12px;

    border-radius: 999px;

    background:
        var(--dxn-accent);

    color: #fff;

    font-family:
        Manrope,
        sans-serif;

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


/* =========================================================
   SUMMARY
   ========================================================= */

.dxn-product__summary {
    padding-top: 12px;
}


.dxn-product__categories {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;
}


.dxn-product__category {
    display: inline-flex;

    padding:
        6px
        10px;

    border-radius: 999px;

    background:
        rgba(127, 167, 139, 0.12);

    color: var(--dxn-primary);

    font-family:
        Manrope,
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}


.dxn-product__title {
    margin:
        0
        0
        18px;

    max-width: 680px;

    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-size:
        clamp(42px, 5vw, 64px);

    font-weight: 400;
    line-height: 1.08;

    color:
        var(--dxn-primary);
}


.dxn-product__subtitle {
    margin:
        0
        0
        24px;

    max-width: 620px;

    font-family:
        Manrope,
        sans-serif;

    font-size:
        clamp(18px, 2vw, 21px);

    line-height: 1.55;

    color:
        var(--dxn-muted);
}


.dxn-product__excerpt {
    max-width: 620px;

    margin-bottom: 32px;

    font-family:
        Manrope,
        sans-serif;

    font-size: 16px;
    line-height: 1.75;

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


.dxn-product__excerpt p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PRODUCT META
   ========================================================= */

.dxn-product__purchase-meta {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}


.dxn-product__meta-item {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 16px;

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

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.65);

    font-family:
        Manrope,
        sans-serif;
}


.dxn-product__meta-label {
    font-size: 11px;
    font-weight: 700;

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

    color: var(--dxn-muted);
}


.dxn-product__meta-item strong {
    font-size: 17px;

    color:
        var(--dxn-primary);
}


.dxn-product__price {
    font-size: 22px !important;
}


/* =========================================================
   AVAILABILITY
   ========================================================= */

.dxn-product__availability {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;

    padding:
        7px
        11px;

    border-radius: 999px;

    font-family:
        Manrope,
        sans-serif;

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


.dxn-product__availability.is-available {
    background:
        rgba(92, 143, 92, 0.12);

    color: #456f45;
}


.dxn-product__availability.is-unavailable {
    background:
        rgba(200, 90, 90, 0.10);

    color: #a04444;
}


.dxn-product__availability.is-unknown {
    background:
        rgba(43, 43, 43, 0.06);

    color: var(--dxn-muted);
}



/* =========================================================
   PURCHASE
   ========================================================= */

.dxn-product__purchase {
    display: grid;

    grid-template-columns:
        120px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        48px;

    grid-template-areas:
        "label ."
        "input button";

    column-gap: 12px;
    row-gap: 6px;

    margin-top: 4px;
}


.dxn-product__quantity-label {
    grid-area: label;

    margin: 0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

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

    color: var(--dxn-muted);
}


.dxn-product__quantity-input {
    grid-area: input;

    box-sizing: border-box;

    display: block;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0;

    padding:
        10px
        12px;

    border:
        1px solid
        var(--dxn-secondary);

    border-radius: 8px;

    background: #fff;

    color: var(--dxn-text);

    font-family:
        Manrope,
        sans-serif;

    font-size: 16px;

    outline: none;
}


.dxn-product__quantity-input:focus {
    border-color:
        var(--dxn-primary);

    box-shadow:
        0 0 0 3px
        rgba(46, 94, 78, 0.10);
}


.dxn-product__add-to-cart {
    grid-area: button;

    box-sizing: border-box;

    align-self: stretch;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0;

    padding:
        0
        24px;

    border: 0;

    border-radius: 8px;

    background:
        var(--dxn-accent);

    color: #fff;

    font-family:
        Manrope,
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}


.dxn-product__add-to-cart:not(:disabled):hover {
    transform: translateY(-1px);
}


.dxn-product__add-to-cart:not(:disabled):active {
    transform: translateY(0);
}


.dxn-product__add-to-cart:disabled {
    cursor: not-allowed;

    opacity: 0.45;
}


.dxn-product__add-to-cart.is-success {
    background: #5C8F5C;
}


.dxn-product__purchase-note {
    margin:
        10px
        0
        0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 12px;

    color: var(--dxn-muted);
}


.dxn-product__official-note {
    margin:
        28px
        0
        0;

    padding-top: 20px;

    border-top:
        1px solid
        var(--dxn-border);

    font-family:
        Manrope,
        sans-serif;

    font-size: 12px;
    line-height: 1.6;

    color: var(--dxn-muted);
}

/* =========================================================
   LONG CONTENT
   ========================================================= */

.dxn-product__content-section {
    margin-top:
        clamp(72px, 9vw, 120px);

    padding-top:
        clamp(48px, 6vw, 72px);

    border-top:
        1px solid
        var(--dxn-border);
}


.dxn-product__content {
    width: min(100%, 820px);

    margin: 0 auto;

    font-family:
        Manrope,
        sans-serif;

    font-size: 17px;
    line-height: 1.8;

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


.dxn-product__content h2,
.dxn-product__content h3,
.dxn-product__content h4 {
    font-family:
        "Libre Caslon Text",
        Georgia,
        serif;

    font-weight: 400;

    color:
        var(--dxn-primary);
}


.dxn-product__content h2 {
    margin:
        56px
        0
        20px;

    font-size:
        clamp(30px, 4vw, 40px);
}


.dxn-product__content h3 {
    margin:
        40px
        0
        16px;

    font-size: 28px;
}


.dxn-product__content a {
    color:
        var(--dxn-primary);
}


/* =========================================================
   SINGLE PRODUCT RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dxn-product__hero {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .dxn-product__media {
        position: static;
    }


    .dxn-product__image-wrap {
        min-height: 420px;
    }

}


@media (max-width: 640px) {

    .dxn-product {
        padding:
            32px
            20px
            72px;
    }


    .dxn-product__back {
        margin-bottom: 24px;
    }


    .dxn-product__hero {
        gap: 32px;
    }


    .dxn-product__image-wrap {
        min-height: 340px;

        padding: 28px;
    }


    .dxn-product__title {
        font-size:
            clamp(36px, 11vw, 46px);
    }


    .dxn-product__purchase-meta {
        grid-template-columns: 1fr;
    }


    .dxn-product__purchase {
        grid-template-columns: 100px 1fr;
    }


    .dxn-product__content-section {
        margin-top: 64px;
        padding-top: 48px;
    }

}

.dxn-product__cart-feedback {
    margin:
        12px
        0
        0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    color: #456f45;
}



/* =========================================================
   BUNDLE CARDS
   ========================================================= */

.dxn-bundle-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;

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

    border-radius: 24px;

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


.dxn-bundle-card__media {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 300px;

    padding: 28px;

    background:
        rgba(127, 167, 139, 0.08);

    text-decoration: none;
}


.dxn-bundle-card__image {
    display: block;

    width: 100%;
    height: 260px;

    object-fit: contain;
}


.dxn-bundle-card__placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 260px;

    font-family:
        "Libre Caslon Text",
        serif;

    font-size: 42px;

    color:
        var(--dxn-primary);
}


.dxn-bundle-card__badge {
    position: absolute;

    top: 20px;
    left: 20px;

    padding: 8px 13px;

    border-radius: 999px;

    background:
        var(--dxn-accent);

    color: #fff;

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


.dxn-bundle-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px;
}


.dxn-bundle-card__type {
    margin:
        0
        0
        8px;

    font-size: 12px;
    font-weight: 700;

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

    color:
        var(--dxn-secondary);
}


.dxn-bundle-card__title {
    margin:
        0
        0
        8px;

    font-family:
        "Libre Caslon Text",
        serif;

    font-size: 30px;
    line-height: 1.06;

    color:
        var(--dxn-primary);
}


.dxn-bundle-card__title a {
    color: inherit;

    text-decoration: none;
}


.dxn-bundle-card__title a:hover {
    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;
}


.dxn-bundle-card__subtitle {
    margin:
        0
        0
        18px;

    color:
        var(--dxn-muted);

    line-height: 1.55;
}


.dxn-bundle-card__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    margin-bottom: 16px;

    font-size: 13px;
    font-weight: 600;

    color:
        var(--dxn-primary);
}


.dxn-bundle-card__contents {
    display: grid;

    gap: 7px;

    margin:
        0
        0
        24px;

    padding: 0;

    list-style: none;

    color:
        var(--dxn-text);

    font-size: 14px;
}


.dxn-bundle-card__contents li {
    line-height: 1.4;
}


.dxn-bundle-card__contents strong {
    color:
        var(--dxn-primary);
}


.dxn-bundle-card__contents-more {
    color:
        var(--dxn-muted);
}


.dxn-bundle-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 18px;

    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid
        var(--dxn-border);
}


.dxn-bundle-card__price-label {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;
    font-weight: 700;

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

    color:
        var(--dxn-muted);
}


.dxn-bundle-card__price {
    display: block;

    font-size: 22px;

    color:
        var(--dxn-primary);
}


.dxn-bundle-card__details {
    flex: 0 0 auto;

    font-weight: 700;

    color:
        var(--dxn-primary);

    text-decoration: none;
}


.dxn-bundle-card__availability {
    width: fit-content;

    margin:
        2px
        0
        20px;

    padding:
        8px
        12px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
}


/* Available-t jelenleg nem rendereljük,
   de legyen definiálva későbbre. */
.dxn-bundle-card__availability.is-available {
    background:
        rgba(92, 143, 92, 0.12);

    color:
        #456f45;
}


.dxn-bundle-card__availability.is-unavailable {
    background:
        rgba(200, 90, 90, 0.11);

    color:
        #a34646;
}


.dxn-bundle-card__availability.is-unknown {
    background:
        rgba(200, 155, 60, 0.14);

    color:
        #86651f;
}


.dxn-bundle-card__availability.is-incomplete {
    background:
        rgba(200, 90, 90, 0.11);

    color:
        #9d4141;
}


/* =========================================================
   BUNDLE SINGLE
   ========================================================= */

.dxn-bundle__eyebrow {
    display: inline-flex;

    width: fit-content;

    margin-bottom: 18px;

    padding:
        8px
        13px;

    border-radius: 999px;

    background:
        rgba(127, 167, 139, 0.13);

    font-size: 12px;
    font-weight: 700;

    color:
        var(--dxn-primary);
}


/*
 * Bundle purchase markup:
 *
 * .dxn-bundle__purchase
 * ├── .dxn-bundle__quantity-label
 * ├── .dxn-bundle__quantity-input
 * └── .dxn-bundle__add-to-cart
 *
 * A label külön grid sorban van, az input és a CTA pedig
 * ugyanabban a 48px magas sorban, ezért minden viewporton
 * pontosan egy vonalba kerülnek.
 */
.dxn-bundle__purchase {
    display: grid;

    grid-template-columns:
        120px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        48px;

    grid-template-areas:
        "label ."
        "input button";

    column-gap: 12px;
    row-gap: 6px;

    align-items: stretch;

    margin-top: 22px;
}


.dxn-bundle__quantity-label {
    grid-area: label;

    margin: 0;

    font-family:
        Manrope,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

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

    color:
        var(--dxn-muted);
}


.dxn-bundle__quantity-input {
    grid-area: input;

    box-sizing: border-box;

    display: block;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0;

    padding:
        10px
        12px;

    border:
        1px solid
        var(--dxn-secondary);

    border-radius: 8px;

    background: #fff;

    color:
        var(--dxn-text);

    font-family:
        Manrope,
        sans-serif;

    font-size: 16px;

    outline: none;
}


.dxn-bundle__quantity-input:focus {
    border-color:
        var(--dxn-primary);

    box-shadow:
        0 0 0 3px
        rgba(46, 94, 78, 0.10);
}


.dxn-bundle__quantity-input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}


.dxn-bundle__add-to-cart {
    grid-area: button;

    box-sizing: border-box;

    align-self: stretch;

    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;

    margin: 0;

    padding:
        0
        24px;

    border: 0;

    border-radius: 8px;

    background:
        var(--dxn-accent);

    color: #fff;

    font-family:
        Manrope,
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}


.dxn-bundle__add-to-cart:not(:disabled):hover {
    transform: translateY(-1px);
}


.dxn-bundle__add-to-cart:not(:disabled):active {
    transform: translateY(0);
}


.dxn-bundle__add-to-cart:disabled {
    cursor: not-allowed;

    opacity: 0.45;
}


.dxn-bundle__add-to-cart.is-success {
    background: #5C8F5C;
}


@media (max-width: 640px) {

    .dxn-bundle__purchase {
        grid-template-columns:
            100px
            minmax(0, 1fr);
    }

}

/* =========================================================
   BUNDLE COMPONENTS
   ========================================================= */

.dxn-bundle-components {
    margin-top: 72px;

    padding-top: 52px;

    border-top: 1px solid
        var(--dxn-border);
}


.dxn-bundle-components__header {
    max-width: 680px;

    margin-bottom: 34px;
}


.dxn-bundle-components__header h2 {
    margin:
        0
        0
        12px;

    font-family:
        "Libre Caslon Text",
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            50px
        );

    line-height: 1.04;

    color:
        var(--dxn-primary);
}


.dxn-bundle-components__header > p:last-child {
    margin: 0;

    color:
        var(--dxn-muted);

    line-height: 1.65;
}


.dxn-bundle-components__list {
    display: grid;

    gap: 12px;
}


.dxn-bundle-component {
    display: grid;

    grid-template-columns:
        84px
        minmax(0, 1fr)
        120px
        150px;

    align-items: center;

    gap: 22px;

    padding: 16px;

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

    border-radius: 18px;

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


.dxn-bundle-component.is-missing {
    opacity: 0.65;
}


.dxn-bundle-component__image {
    display: grid;
    place-items: center;

    width: 84px;
    height: 84px;

    overflow: hidden;

    border-radius: 12px;

    background:
        rgba(127, 167, 139, 0.08);
}


.dxn-bundle-component__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.dxn-bundle-component__image span {
    font-family:
        "Libre Caslon Text",
        serif;

    color:
        var(--dxn-primary);
}


.dxn-bundle-component__info {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.dxn-bundle-component__info a,
.dxn-bundle-component__info strong {
    font-size: 17px;
    font-weight: 700;

    color:
        var(--dxn-primary);

    text-decoration: none;
}


.dxn-bundle-component__info a:hover {
    text-decoration: underline;
}


.dxn-bundle-component__info span {
    font-size: 13px;

    color:
        var(--dxn-muted);
}


.dxn-bundle-component__qty,
.dxn-bundle-component__price {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.dxn-bundle-component__qty span,
.dxn-bundle-component__price span {
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    color:
        var(--dxn-muted);
}


.dxn-bundle-component__qty strong,
.dxn-bundle-component__price strong {
    color:
        var(--dxn-primary);
}


.dxn-product__availability.is-incomplete {
    background:
        rgba(200, 90, 90, 0.11);

    color:
        #9d4141;
}


/* =========================================================
   BUNDLE RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dxn-bundle-component {
        grid-template-columns:
            72px
            minmax(0, 1fr)
            100px;
    }


    .dxn-bundle-component__image {
        width: 72px;
        height: 72px;
    }


    .dxn-bundle-component__price {
        grid-column:
            2 / -1;

        padding-top: 10px;

        border-top: 1px solid
            var(--dxn-border);
    }

}


@media (max-width: 640px) {

    .dxn-bundle-card__media {
        min-height: 250px;
    }


    .dxn-bundle-card__image,
    .dxn-bundle-card__placeholder {
        height: 220px;
    }


    .dxn-bundle-card__body {
        padding: 22px;
    }


    .dxn-bundle-card__title {
        font-size: 27px;
    }


    .dxn-bundle-card__footer {
        align-items: flex-start;

        flex-direction: column;
    }





    .dxn-bundle-component {
        grid-template-columns:
            64px
            minmax(0, 1fr);

        gap: 14px;
    }


    .dxn-bundle-component__image {
        width: 64px;
        height: 64px;
    }


    .dxn-bundle-component__qty,
    .dxn-bundle-component__price {
        grid-column:
            2;

        padding-top: 10px;

        border-top: 1px solid
            var(--dxn-border);
    }


    .dxn-bundle-components {
        margin-top: 60px;

        padding-top: 48px;
    }

}


.dxn-card-cart-button {
    min-height: 40px;

    padding:
        0
        18px;

    border:
        1px solid
        var(--dxn-primary);

    border-radius: 10px;

    background:
        var(--dxn-primary);

    color: #fff;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 150ms ease,
        background-color 150ms ease,
        opacity 150ms ease;
}


.dxn-card-cart-button:not(:disabled):hover {
    transform:
        translateY(-1px);
}


.dxn-card-cart-button:not(:disabled):active {
    transform:
        translateY(0);
}


.dxn-card-cart-button:disabled {
    border-color:
        var(--dxn-border);

    background:
        rgba(46, 94, 78, 0.07);

    color:
        var(--dxn-muted);

    cursor:
        not-allowed;
}


.dxn-card-cart-button.is-success {
    border-color:
        #5C8F5C;

    background:
        #5C8F5C;
}


/* =========================================================
   FINAL LAYOUT / RESPONSIVE RULES
   ========================================================= */


/* ---------------------------------------------------------
   BUNDLE ARCHIVE
   --------------------------------------------------------- */

.dxn-bundle-catalog {
    padding-top:
        clamp(
            38px,
            4vw,
            58px
        );
}


.dxn-bundle-catalog
.dxn-catalog__header {
    margin-bottom:
        clamp(
            30px,
            3vw,
            44px
        );
}


.dxn-bundle-catalog .dxn-catalog__grid {
    grid-template-columns: 1fr;
}


@media (min-width: 901px) {

    .dxn-bundle-card {
        display: grid;

        grid-template-columns:
            minmax(300px, 40%)
            minmax(0, 60%);

        min-height: 320px;

        overflow: hidden;
    }


    .dxn-bundle-card__media {
        min-height: 0;
        height: 100%;

        padding:
            clamp(22px, 2.2vw, 34px);

        border-right:
            1px solid
            var(--dxn-border);
    }


    .dxn-bundle-card__image,
    .dxn-bundle-card__placeholder {
        height:
            clamp(
                210px,
                24vw,
                290px
            );
    }


    .dxn-bundle-card__image {
        width: 100%;

        object-fit: contain;
    }


    .dxn-bundle-card__body {
        min-height: 0;

        padding:
            clamp(24px, 2.4vw, 34px);

        justify-content: flex-start;
    }


    .dxn-bundle-card__type {
        margin-bottom: 6px;
    }


    .dxn-bundle-card__title {
        margin-bottom: 6px;

        font-size:
            clamp(
                27px,
                2.2vw,
                34px
            );
    }


    .dxn-bundle-card__subtitle {
        max-width: 650px;

        margin-bottom: 13px;
    }


    .dxn-bundle-card__summary {
        margin-bottom: 12px;
    }


    .dxn-bundle-card__contents {
        gap: 4px;

        margin-bottom: 14px;

        font-size: 13px;
    }


    .dxn-bundle-card__contents li {
        overflow: hidden;

        max-width: 100%;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .dxn-bundle-card__availability {
        margin:
            0
            0
            14px;
    }


    .dxn-bundle-card__footer {
        align-items: center;

        margin-top: auto;

        padding-top: 16px;
    }


    .dxn-bundle-card__price {
        font-size: 21px;
    }


    .dxn-bundle-card__footer-actions {
        display: flex;

        align-items: center;

        gap: 14px;

        margin-left: auto;
    }

}


@media (max-width: 900px) {

    .dxn-bundle-card__footer-actions {
        display: flex;

        flex-wrap: wrap;
        align-items: center;

        gap: 12px;
    }

}


/* ---------------------------------------------------------
   PRODUCT ARCHIVE
   --------------------------------------------------------- */

@media (min-width: 901px) {

    body.post-type-archive-dxn_product
    .dxn-catalog,
    body.tax-dxn_category
    .dxn-catalog {
        padding-top:
            clamp(
                44px,
                4vw,
                58px
            );
    }


    body.post-type-archive-dxn_product
    .dxn-catalog__header,
    body.tax-dxn_category
    .dxn-catalog__header {
        margin-bottom:
            clamp(
                32px,
                3vw,
                42px
            );
    }


    .dxn-product-grid {
        gap: 20px;
    }


    .dxn-product-card__image-wrap {
        aspect-ratio: 16 / 11;
    }


    .dxn-product-card__image {
        padding:
            16px
            18px;
    }


    .dxn-product-card__body {
        padding:
            18px
            20px
            20px;
    }


    .dxn-product-card__categories {
        gap: 5px;

        margin-bottom: 9px;
    }


    .dxn-product-card__category {
        padding:
            4px
            8px;

        font-size: 10px;
    }


    .dxn-product-card__title {
        display: -webkit-box;

        overflow: hidden;

        margin:
            0
            0
            7px;

        font-size:
            clamp(
                21px,
                1.65vw,
                24px
            );

        line-height: 1.18;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .dxn-product-card__subtitle {
        display: -webkit-box;

        overflow: hidden;

        margin:
            0
            0
            14px;

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

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .dxn-product-card__meta {
        padding-top: 12px;
    }


    .dxn-product-card__package {
        font-size: 12px;
    }


    .dxn-product-card__price {
        font-size: 18px;
    }


    .dxn-product-card__footer {
        display: flex;

        align-items: center;

        gap: 12px;

        margin-top: 14px;
    }


    .dxn-product-card__details {
        gap: 6px;

        font-size: 13px;
    }


    .dxn-product-card
    .dxn-card-cart-button {
        min-height: 38px;

        padding:
            0
            16px;

        font-size: 12px;
    }

}


/* ---------------------------------------------------------
   SINGLE PRODUCT / BUNDLE — SHARED BACK LINK
   --------------------------------------------------------- */

.single-dxn_product
.dxn-product__back,
.single-dxn_bundle
.dxn-product__back,
.single-dxn_bundle
.dxn-bundle__back {
    display: flex;

    width: max-content;
}


@media (min-width: 901px) {

    .single-dxn_product
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-bundle__back {
        margin:
            24px
            0
            32px;
    }

}


/* ---------------------------------------------------------
   SINGLE PRODUCT — DESKTOP
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .single-dxn_product .dxn-product__image-wrap {
        min-height:
            clamp(
                420px,
                54vh,
                520px
            );

        padding:
            clamp(
                26px,
                3vw,
                44px
            );
    }


    .single-dxn_product .dxn-product__image {
        max-height:
            min(
                500px,
                52vh
            );
    }


    .single-dxn_product .dxn-product__media {
        top: 96px;
    }


    .single-dxn_product .dxn-product__hero {
        gap:
            clamp(
                44px,
                5vw,
                72px
            );
    }


    .single-dxn_product
    .dxn-product__content-section {
        margin-top:
            clamp(
                48px,
                6vw,
                72px
            );

        padding-top:
            clamp(
                32px,
                4vw,
                48px
            );
    }


    .single-dxn_product .dxn-product {
        padding-bottom:
            clamp(
                56px,
                6vw,
                84px
            );
    }

}


/* ---------------------------------------------------------
   SINGLE BUNDLE — DESKTOP
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .single-dxn_bundle .dxn-product__image-wrap {
        min-height:
            clamp(
                340px,
                40vh,
                440px
            );

        padding:
            clamp(
                24px,
                3vw,
                40px
            );
    }


    .single-dxn_bundle .dxn-product__image {
        max-height:
            min(
                390px,
                38vh
            );
    }


    .single-dxn_bundle .dxn-product__media {
        top: 96px;
    }


    .single-dxn_bundle .dxn-product__hero {
        gap:
            clamp(
                44px,
                5vw,
                72px
            );
    }


    .single-dxn_bundle .dxn-product {
        padding-bottom:
            clamp(
                56px,
                6vw,
                84px
            );
    }


    .single-dxn_bundle
    .dxn-bundle-components {
        margin-top:
            clamp(
                48px,
                6vw,
                72px
            );

        padding-top:
            clamp(
                32px,
                4vw,
                48px
            );
    }

}


/* ---------------------------------------------------------
   SHORT LAPTOP
   --------------------------------------------------------- */

@media
    (min-width: 901px)
    and (max-height: 780px) {

    .single-dxn_product .dxn-product,
    .single-dxn_bundle .dxn-product {
        padding-top: 92px;
    }


    .single-dxn_product .dxn-product__back,
    .single-dxn_bundle .dxn-product__back,
    .single-dxn_bundle .dxn-bundle__back {
        line-height: 1.2;
    }


    .single-dxn_product .dxn-product__title,
    .single-dxn_bundle .dxn-product__title {
        font-size:
            clamp(
                40px,
                4vw,
                54px
            );
    }


    .single-dxn_product .dxn-product__subtitle,
    .single-dxn_bundle .dxn-product__subtitle {
        margin-bottom: 18px;
    }


    .single-dxn_product .dxn-product__excerpt,
    .single-dxn_bundle .dxn-product__excerpt {
        margin-bottom: 24px;
    }


    .single-dxn_product
    .dxn-product__availability,
    .single-dxn_bundle
    .dxn-product__availability {
        margin-bottom: 18px;
    }

}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .single-dxn_product .dxn-product,
    .single-dxn_bundle .dxn-product {
        padding-top: 78px;
    }


    .single-dxn_product
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-bundle__back {
        align-items: center;

        margin-bottom: 18px;

        line-height: 1.2;
    }


    .single-dxn_product
    .dxn-product__image-wrap,
    .single-dxn_bundle
    .dxn-product__image-wrap {
        min-height: 0;

        padding:
            clamp(
                20px,
                4vw,
                32px
            );
    }


    .single-dxn_product
    .dxn-product__image {
        width: auto;
        max-width: 100%;
        height: auto;

        max-height:
            min(
                430px,
                42dvh
            );

        object-fit: contain;
    }


    .single-dxn_bundle
    .dxn-product__image {
        width: auto;
        max-width: 100%;
        height: auto;

        max-height:
            min(
                360px,
                36dvh
            );

        object-fit: contain;
    }


    .single-dxn_product
    .dxn-product__hero,
    .single-dxn_bundle
    .dxn-product__hero {
        gap:
            clamp(
                32px,
                6vw,
                52px
            );
    }


    .single-dxn_product
    .dxn-product__title,
    .single-dxn_bundle
    .dxn-product__title {
        font-size:
            clamp(
                38px,
                7vw,
                52px
            );

        line-height: 0.98;
    }


    .single-dxn_bundle
    .dxn-bundle-components {
        margin-top: 48px;
        padding-top: 36px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .dxn-bundle__purchase {
        grid-template-columns:
            110px
            minmax(0, 1fr);

        gap: 12px;
    }

}


@media (max-width: 520px) {

    .single-dxn_product .dxn-product,
    .single-dxn_bundle .dxn-product {
        padding-top: 74px;
    }


    .single-dxn_product
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-product__back,
    .single-dxn_bundle
    .dxn-bundle__back {
        margin-bottom: 16px;
    }


    .single-dxn_product
    .dxn-product__image-wrap,
    .single-dxn_bundle
    .dxn-product__image-wrap {
        padding: 18px;
    }


    .single-dxn_product
    .dxn-product__image {
        max-height:
            min(
                330px,
                38dvh
            );
    }


    .single-dxn_bundle
    .dxn-product__image {
        max-height:
            min(
                280px,
                31dvh
            );
    }


    .single-dxn_product
    .dxn-product__hero,
    .single-dxn_bundle
    .dxn-product__hero {
        gap: 34px;
    }


    .single-dxn_product
    .dxn-product__title,
    .single-dxn_bundle
    .dxn-product__title {
        font-size:
            clamp(
                36px,
                10vw,
                42px
            );

        line-height: 1;
    }


    .single-dxn_product
    .dxn-product__subtitle,
    .single-dxn_bundle
    .dxn-product__subtitle {
        margin-bottom: 18px;
    }

}
