/* Homepage only: the catalog and product pages retain their existing styles. */
.home-hero.home-hero-modern {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 20px;
    padding: clamp(28px, 3vw, 36px);
    margin: 20px 0 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: radial-gradient(ellipse at 92% 12%, rgba(171, 131, 232, .25), transparent 48%),
                linear-gradient(115deg, #533095, #39216b);
    box-shadow: 0 12px 32px rgba(51, 30, 87, .10);
    color: #fff;
    text-align: left;
    isolation: isolate;
}
/* Replace the old dotted decoration, including styles left by earlier versions. */
.home-hero.home-hero-modern::before { content: none; }
.home-hero-modern .home-hero-copy { min-width: 0; position: relative; z-index: 1; }
.home-hero-modern #home-hero-title {
    padding: 0;
    margin: 0;
    max-width: none;
    color: #fff;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1.08;
    text-transform: none;
    text-wrap: balance;
}
.home-hero-modern #home-hero-title span { color: #ead7ff; }
.home-hero-modern .home-subtitle {
    margin: 16px 0 0;
    max-width: 430px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #e3d9ee;
}
.home-hero-modern .site-search { margin: 22px 0 0; max-width: 540px; }
.home-hero-modern .site-search .form-control {
    height: 54px;
    padding: 0 72px 0 48px;
    border: 1px solid #e8e1ef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(26, 10, 51, .08);
    color: #241832;
    font-size: 15px;
    letter-spacing: -.015em;
}
.home-hero-modern .site-search .form-control::placeholder { color: #70687b; opacity: 1; }
.home-hero-modern .site-search:has(.search-clear[hidden]) .form-control { padding-right: 14px; }
.home-hero-modern .site-search .form-control:focus {
    border-color: #d8bdf3;
    outline: 3px solid #d8bdf3;
    outline-offset: 3px;
    box-shadow: none;
}
.home-hero-modern .site-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.home-hero-modern .site-search svg { left: 17px; width: 20px; height: 20px; color: #7044a8; }
.home-hero-modern .site-search .search-clear { right: 8px; font-size: 11px; padding: 9px; }
.home-hero-modern .home-hero-browse {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    margin-top: 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
}
.home-hero-modern .home-hero-browse span { font-size: 21px; line-height: 1; }
.home-hero-modern .home-hero-browse:hover { color: #ead7ff; text-decoration: underline; text-underline-offset: 5px; }
.home-hero-modern .home-hero-browse:focus-visible,
.home-hero-modern .home-hero-preview:focus-visible {
    outline: 3px solid #f9dfa6;
    outline-offset: 6px;
    border-radius: 6px;
}
.home-hero-modern .home-hero-previews {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 6px;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    isolation: isolate;
}
.home-hero-modern .home-hero-preview {
    position: relative;
    display: block;
    flex: 0 1 39%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, .86);
    background: #8e71ac;
    box-shadow: 0 16px 30px rgba(20, 9, 44, .24);
    overflow: hidden;
    color: #fff;
    transform: rotate(-7deg) translateY(8px);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.home-hero-modern .home-hero-preview + .home-hero-preview { margin-left: -9%; }
.home-hero-modern .home-hero-preview:nth-child(2) { transform: translateY(-12px); z-index: 2; }
.home-hero-modern .home-hero-preview:nth-child(3) { transform: rotate(7deg) translateY(12px); }
.home-hero-modern .home-hero-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-hero-modern .home-hero-preview-caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 28px 4px 10px;
    background: linear-gradient(transparent, rgba(20, 13, 35, .9));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.home-hero-modern .home-hero-preview-caption svg { width: 17px; height: 17px; flex: none; }
.home-hero-modern .home-hero-preview-caption > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
    .home-hero-modern .home-hero-preview:hover,
    .home-hero-modern .home-hero-preview:focus-visible {
        transform: translateY(-16px) rotate(0);
        z-index: 3;
        box-shadow: 0 22px 35px rgba(20, 9, 44, .32);
    }
}
.home-hero-modern .home-benefits {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 28px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.home-hero-modern .home-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #e3d9ee;
    font-size: 12px;
    font-weight: 400;
}
.home-hero-modern .home-benefits span::before {
    margin: 0;
    color: #dfbffc;
    font-size: 13px;
    font-weight: 600;
}
.home-hero.home-hero-modern.home-hero-text-only { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
    .home-hero.home-hero-modern { column-gap: 28px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .home-hero-modern #home-hero-title { font-size: 40px; }
    .home-hero-modern .home-subtitle { font-size: 15px; }
    .home-hero-modern .site-search .form-control { font-size: 14px; }
    .home-hero-modern .home-hero-preview-caption { font-size: 9px; }
    .home-hero-modern .home-benefits { gap: 10px 20px; }
}
@media (max-width: 700px) {
    .home-hero.home-hero-modern { display: block; margin: 0 0 24px; padding: 28px 22px 24px; border-radius: 20px; }
    .home-hero-modern #home-hero-title { font-size: clamp(30px, 7.8vw, 46px); letter-spacing: -.05em; }
    .home-hero-modern .home-subtitle { margin-top: 14px; max-width: 450px; font-size: 15px; line-height: 1.55; }
    .home-hero-modern .site-search { margin-top: 22px; max-width: none; }
    .home-hero-modern .site-search .form-control { height: 54px; font-size: 16px; padding-left: 42px; padding-right: 58px; }
    .home-hero-modern .site-search svg { left: 13px; width: 18px; height: 18px; }
    /* The real catalog follows immediately on phones; don't repeat its images. */
    .home-hero-modern .home-hero-previews { display: none; }
    .home-hero-modern .home-benefits { margin-top: 12px; padding-top: 18px; gap: 9px 20px; }
    .home-hero-modern .home-benefits span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero-modern .home-hero-preview { transition: none; }
}
