@font-face {
    font-family: "Poppins";
    src: url("/assets/fonts/poppins-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("/assets/fonts/poppins-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("/assets/fonts/poppins-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Serif";
    src: url("/assets/fonts/ibm-plex-serif-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --black: #000;
    --ink: #282128;
    --violet: #663366;
    --violet-dark: #4d244d;
    --coral: #ff6666;
    --paper: #fff;
    --page: #f6f4f6;
    --muted: #6e666e;
    --line: #e4dde4;
    --success: #2f7c4c;
    --shadow: 0 22px 65px rgba(42, 24, 42, .14);
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Poppins", Arial, sans-serif;
    color: var(--ink);
    background: var(--black);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--black);
}

a {
    color: inherit;
}

.header-inner,
.footer-inner {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.utility-bar {
    background: var(--black);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    font-size: 11px;
    letter-spacing: .025em;
}

.utility-inner {
    min-height: 31px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-inner div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.utility-inner a {
    text-decoration: none;
}

.utility-inner a:hover,
.utility-inner a:focus-visible {
    text-decoration: underline;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--black);
    color: #fff;
}

.main-header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 28px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand img,
.footer-brand img {
    display: block;
    width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: clamp(20px, 2.5vw, 38px);
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #e8cfe8;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.redeem-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 15px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .025em;
}

.redeem-cta svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.redeem-cta:hover,
.redeem-cta:focus-visible {
    background: #ff7a7a;
}

.page-shell {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 64px 24px 78px;
    background: var(--page);
}

.entry-page .page-shell {
    min-height: 690px;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .52) 48%, rgba(0, 0, 0, .18) 100%),
        url("/assets/wishlist-cofanetti-regalo.webp");
    background-position: center;
    background-size: cover;
}

.entry-page:has(.hero-download) .page-shell {
    background-position: 65% center;
}

.hero,
.content-card {
    width: min(980px, 100%);
    position: relative;
}

.hero {
    color: #fff;
    justify-self: center;
    padding: 46px 0;
}

.hero > * {
    max-width: 760px;
}

.hero-download > * {
    max-width: 720px;
}

.content-card {
    padding: clamp(34px, 6vw, 66px);
    border-top: 6px solid var(--violet);
    border-radius: 0 0 20px 20px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.content-card.wide {
    width: min(1080px, 100%);
}

.eyebrow {
    margin-bottom: 12px;
    color: #ffd1d1;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 700;
}

.content-card .eyebrow {
    color: var(--violet);
}

h1 {
    max-width: 880px;
    margin: 0 0 20px;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(38px, 5.3vw, 66px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.028em;
}

.entry-page h1 {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, .7);
}

.content-card h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    color: var(--violet);
}

p {
    line-height: 1.65;
}

.hero > p {
    margin: 0;
    color: #fff;
    font-size: 17px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

.code-form,
.pin-form {
    margin-top: 34px;
}

.code-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.code-fields label {
    flex: 1;
}

.code-fields input,
.pin-form input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: var(--violet);
    padding: 17px 10px;
    text-align: center;
    font: 700 clamp(18px, 4vw, 27px)/1 "Poppins", sans-serif;
    letter-spacing: .16em;
    outline: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

.code-fields input:focus,
.pin-form input:focus {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 102, 102, .35), 0 8px 25px rgba(0, 0, 0, .2);
}

.separator {
    color: #fff;
    font-weight: 700;
}

.hero button,
.details-form button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 28px;
    background: var(--violet);
    color: #fff;
    padding: 14px 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font: 600 14px/1.2 "Poppins", sans-serif;
    letter-spacing: .035em;
    transition: transform .18s ease, background-color .18s ease;
}

.hero button {
    background: var(--coral);
}

.hero button:hover,
.hero button:focus-visible,
.details-form button:hover,
.details-form button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    background: var(--violet-dark);
    transform: translateY(-2px);
}

.privacy-note,
.email-hint {
    margin: 19px 0 0 !important;
    color: #fff !important;
    font-size: 12px !important;
}

.alert {
    position: relative;
    z-index: 1;
    margin: 22px 0;
    max-width: 760px;
    padding: 14px 17px;
    border-left: 4px solid var(--coral);
    border-radius: 8px;
    background: #fff;
    color: #762c37;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    line-height: 1.45;
}

.captcha-challenge {
    width: min(520px, 100%);
    margin: 0 0 24px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 13px;
    background: rgba(0, 0, 0, .48);
    color: #fff;
}

.captcha-challenge > p {
    margin: 0 0 13px;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.captcha-image-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-image-row img {
    display: block;
    width: 250px;
    max-width: 70%;
    height: 80px;
    border-radius: 10px;
    background: #fff;
}

.hero .captcha-refresh {
    min-height: auto;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #fff;
    text-transform: none;
    font-size: 11px;
}

.hero .captcha-refresh:hover,
.hero .captcha-refresh:focus-visible {
    background: rgba(255, 255, 255, .15);
    transform: none;
}

.captcha-answer {
    display: block;
    margin-top: 13px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
}

.captcha-answer input,
.pin-form .captcha-answer input {
    display: block;
    width: 190px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: #fff;
    color: var(--violet);
    text-align: center;
    text-transform: uppercase;
    font: 700 18px/1 "Poppins", sans-serif;
    letter-spacing: .16em;
}

.pin-form:has(.captcha-challenge) {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    width: min(760px, 100%);
}

.pin-form:has(.captcha-challenge) .captcha-challenge {
    grid-column: 1 / -1;
    grid-row: 1;
}

.pin-form {
    display: flex;
    gap: 14px;
    align-items: end;
}

.pin-form label {
    flex: 1;
}

.pin-form label span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.pin-form input {
    max-width: 250px;
}

.dedication {
    padding: 15px 18px;
    border-left: 4px solid var(--coral);
    background: #faf5fa;
    color: var(--violet);
}

fieldset {
    border: 0;
    padding: 0;
    margin: 40px 0;
}

legend {
    margin-bottom: 18px;
    color: var(--ink);
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 26px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-height: 460px;
    overflow: auto;
    padding: 4px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.product-card:hover {
    border-color: #ba9cba;
}

.product-card:has(input:checked) {
    border: 2px solid var(--violet);
    background: #fbf7fb;
    box-shadow: 0 7px 20px rgba(102, 51, 102, .12);
}

.product-card input,
.checks input {
    accent-color: var(--violet);
}

.product-icon {
    color: var(--coral);
    font-size: 24px;
}

.product-card small {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.form-grid label {
    font-size: 13px;
    font-weight: 600;
}

.form-grid input {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d6ccd6;
    border-radius: 9px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.form-grid input:focus {
    outline: 3px solid rgba(102, 51, 102, .14);
    border-color: var(--violet);
}

.span-2 {
    grid-column: span 2;
}

.checks {
    display: grid;
    gap: 16px;
    margin: 0 0 26px;
    font-size: 13px;
}

.consent-option {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #faf8fa;
}

.consent-option label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ink);
    font-weight: 600;
}

.consent-option input {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.consent-option em {
    color: var(--coral);
    font-style: normal;
}

.consent-option p {
    margin: 9px 0 0 25px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.seasonal-notice {
    width: min(760px, 100%);
    margin: 20px 0;
    padding: 14px 17px;
    border-left: 4px solid var(--coral);
    border-radius: 8px;
    background: #fff7e8;
    color: #6f4311;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.success-card .seasonal-notice {
    margin-inline: auto;
    text-align: left;
}

.success-card {
    max-width: 720px;
    text-align: center;
}

.success-mark {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e8f5ed;
    color: var(--success);
    font-size: 36px;
}

.error-mark {
    background: #fff0f0;
    color: var(--coral);
}

.success-card p {
    margin-bottom: 27px;
    color: var(--muted);
}

.site-footer {
    padding: 54px 0 0;
    background: var(--black);
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 42px;
}

.footer-inner strong {
    color: #e7cce7;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
}

.footer-inner p {
    margin: 13px 0 0;
    color: #c9c3c9;
    font-size: 12px;
}

.footer-inner a {
    text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-legal {
    padding: 17px 24px;
    border-top: 1px solid #282328;
    color: #969096;
    text-align: center;
    font-size: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .main-header-inner {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .entry-page .page-shell {
        background-position: 62% center;
    }

    .hero {
        padding: 28px 0;
    }
}

@media (max-width: 650px) {
    .header-inner,
    .footer-inner {
        width: min(100% - 30px, 1220px);
    }

    .utility-bar {
        display: none;
    }

    .main-header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .brand img {
        width: 142px;
    }

    .redeem-cta {
        min-height: 39px;
        padding: 0 13px;
        border-radius: 13px;
        font-size: 10px;
    }

    .redeem-cta svg {
        width: 16px;
        height: 16px;
    }

    .page-shell {
        min-height: 560px;
        padding: 40px 15px 50px;
        align-items: start;
    }

    .entry-page .page-shell {
        min-height: 680px;
        background-image:
            linear-gradient(rgba(0, 0, 0, .57), rgba(0, 0, 0, .65)),
            url("/assets/wishlist-cofanetti-regalo.webp");
        background-position: 70% center;
    }

    .hero {
        padding: 34px 0;
    }

    h1 {
        font-size: clamp(35px, 11vw, 48px);
    }

    .hero > p {
        font-size: 15px;
    }

    .content-card {
        padding: 32px 21px;
        border-radius: 0 0 14px 14px;
    }

    .code-fields {
        gap: 6px;
    }

    .separator {
        display: none;
    }

    .code-fields input {
        padding: 15px 3px;
        font-size: 17px;
        letter-spacing: .08em;
    }

    .pin-form {
        display: block;
    }

    .pin-form input {
        max-width: none;
        margin-bottom: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

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

    .product-card {
        min-height: 135px;
        padding: 15px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 420px) {
    .brand img {
        width: 126px;
    }

    .redeem-cta {
        padding: 0 11px;
    }

    .redeem-cta svg {
        display: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

[hidden] {
    display: none !important;
}

.catalog-page .page-shell {
    display: block;
    padding-inline: clamp(15px, 3vw, 42px);
}

.catalog-card {
    width: min(1320px, 100%) !important;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 54px);
}

.catalog-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.catalog-heading h1 {
    margin-bottom: 0;
}

.catalog-heading-side {
    display: flex;
    flex: 0 1 560px;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 300px;
}

.catalog-heading-side > .catalog-search {
    width: min(420px, 100%);
}

.catalog-heading .catalog-courtesy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
}

.catalog-heading .dedication {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.courtesy-line,
.courtesy-dedication {
    margin: 0;
}

.courtesy-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.courtesy-dedication {
    margin-top: 8px;
    font-style: italic;
}

.catalog-collection-image {
    flex: 0 0 auto;
    width: min(160px, 40%);
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.catalog-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: block;
    margin: 0 calc(clamp(28px, 4vw, 54px) * -1) 24px;
    padding: 12px clamp(28px, 4vw, 54px);
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 25px rgba(42, 24, 42, .06);
    backdrop-filter: blur(12px);
}

.category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(5px, .7vw, 10px);
    min-width: 0;
    overflow-x: visible;
    padding: 3px 1px;
}

.category-button,
.load-more-button,
.back-button,
.text-button,
.order-button,
.dialog-close {
    font: inherit;
    cursor: pointer;
}

.category-button {
    flex: 0 1 auto;
    min-height: 38px;
    padding: 8px clamp(9px, 1vw, 14px);
    border: 1px solid #d9ced9;
    border-radius: 20px;
    background: #fff;
    color: var(--violet);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.category-button span {
    margin-left: 4px;
    color: var(--muted);
    font-size: 10px;
}

.category-button:hover,
.category-button:focus-visible,
.category-button.is-active {
    border-color: var(--violet);
    background: var(--violet);
    color: #fff;
}

.category-button.is-active span {
    color: #eaddea;
}

.catalog-search {
    position: relative;
    display: block;
}

.catalog-search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--violet);
    stroke-width: 2;
    stroke-linecap: round;
}

.catalog-search input {
    width: 100%;
    min-height: 44px;
    padding: 10px 15px 10px 44px;
    border: 1px solid #d6ccd6;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    font: 13px "Poppins", sans-serif;
}

.catalog-search input:focus {
    border-color: var(--violet);
    outline: 3px solid rgba(102, 51, 102, .13);
}

.catalog-meta {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.catalog-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(42, 24, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-product:hover {
    transform: translateY(-3px);
    border-color: #c7afc7;
    box-shadow: 0 15px 35px rgba(42, 24, 42, .13);
}

.product-image-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #faf8fa;
    cursor: pointer;
}

.product-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.catalog-product:hover .product-image-button img {
    transform: scale(1.035);
}

.product-image-overlay {
    position: absolute;
    inset: auto 12px 12px auto;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.product-manufacturer {
    min-height: 18px;
    margin: 0 0 6px;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 700;
}

.product-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 49px;
    margin: 0;
    color: var(--violet);
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 19px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-short-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 59px;
    margin: 11px 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.text-button,
.back-button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--violet);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-button,
.load-more-button {
    min-height: 40px;
    padding: 10px 18px;
    border: 0;
    border-radius: 22px;
    background: var(--violet);
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.order-button:hover,
.order-button:focus-visible,
.load-more-button:hover,
.load-more-button:focus-visible {
    background: var(--coral);
}

.catalog-loader,
.catalog-empty {
    margin: 30px 0;
    padding: 22px;
    border-radius: 12px;
    background: #faf7fa;
    color: var(--muted);
    text-align: center;
}

.catalog-sentinel {
    height: 2px;
}

.load-more-button {
    display: block;
    margin: 28px auto 0;
}

.product-dialog {
    width: min(900px, calc(100% - 30px));
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.product-dialog::backdrop {
    background: rgba(20, 12, 20, .72);
    backdrop-filter: blur(3px);
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.product-dialog-layout {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}

.product-dialog-layout > img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: contain;
    background: #faf8fa;
}

.product-dialog-layout > div {
    padding: clamp(36px, 6vw, 66px) clamp(28px, 5vw, 54px);
}

.product-dialog h2,
.checkout-heading h2 {
    margin: 0 0 22px;
    color: var(--violet);
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.product-dialog h3 {
    margin: 22px 0 8px;
    font-size: 15px;
}

.dialog-description {
    max-height: 270px;
    overflow: auto;
    margin: 0 0 26px;
    color: var(--muted);
    white-space: pre-line;
    font-size: 13px;
}

.checkout-heading {
    margin-bottom: 27px;
}

.checkout-heading .back-button {
    margin-bottom: 28px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: start;
}

.checkout-form .form-grid {
    margin-bottom: 28px;
}

.selected-product-summary {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(42, 24, 42, .12);
}

.selected-label {
    padding: 13px 20px;
    background: var(--violet);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    font-weight: 700;
}

.selected-product-summary > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #faf8fa;
}

.selected-product-copy {
    padding: 22px;
}

.selected-product-copy h3 {
    margin: 0;
    color: var(--violet);
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}

.selected-product-copy > p:last-child {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .catalog-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-navigation {
        overflow-x: visible;
    }

    .category-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 900px) {
    .catalog-heading .catalog-courtesy {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .catalog-collection-image {
        width: min(160px, 100%);
    }
}

@media (max-width: 780px) {
    .catalog-heading,
    .checkout-layout,
    .product-dialog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-heading {
        display: block;
    }

    .catalog-heading-side {
        align-items: stretch;
        min-width: 0;
        margin-top: 18px;
    }

    .catalog-heading-side > .catalog-search {
        width: 100%;
    }

    .catalog-heading .catalog-courtesy {
        margin-top: 4px;
    }

    .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .checkout-layout {
        display: flex;
        flex-direction: column-reverse;
    }

    .checkout-form,
    .selected-product-summary {
        width: 100%;
    }

    .selected-product-summary {
        position: static;
    }

    .product-dialog-layout > img {
        min-height: 260px;
        max-height: 360px;
    }
}

@media (max-width: 500px) {
    .catalog-card {
        padding-inline: 15px;
    }

    .catalog-toolbar {
        margin-inline: -15px;
        padding-inline: 15px;
    }

    .catalog-products {
        grid-template-columns: 1fr;
    }

    .product-short-description {
        min-height: auto;
    }

    .product-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }
}
