/*
 * Voyage theme — warm editorial layout on top of storefront-market.css.
 * Scoped to html[data-theme="voyage"]; other themes are untouched.
 * Look: sand surfaces, tall lifestyle hero with a text-link CTA, two large
 * spotlight banners, portrait category tiles, soft rounded product cards,
 * pill buttons and badges, a dark newsletter panel.
 */

html[data-theme="voyage"] {
    --sf-mk-gap: 16px;
    --sf-mk-radius: 14px;
}

/* ---------- Announcement bar: still, centred ---------- */

html[data-theme="voyage"] .sf-ticker {
    background: var(--theme-color-surface);
    color: var(--theme-color-text);
    border-bottom: 0;
    font-size: 0.8rem;
}

html[data-theme="voyage"] .sf-ticker-track {
    animation: none;
    width: auto;
    justify-content: center;
}

html[data-theme="voyage"] .sf-ticker-list[aria-hidden="true"] {
    display: none;
}

html[data-theme="voyage"] .sf-ticker-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
}

@media (max-width: 767.98px) {
    /* One line on phones: only the first benefit */
    html[data-theme="voyage"] .sf-ticker-list li:not(:first-child) {
        display: none;
    }
}

/* ---------- Masthead ---------- */

html[data-theme="voyage"] .sf-masthead {
    border-bottom: 0;
}

html[data-theme="voyage"] .sf-masthead .sf-search {
    max-width: 520px;
}

html[data-theme="voyage"] .sf-masthead .sf-search-input {
    border: 0;
    border-radius: 999px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    background: var(--theme-color-surface);
    padding-inline-start: 20px;
}

html[data-theme="voyage"] .sf-masthead .sf-search-input:focus {
    background: var(--theme-color-primary-soft);
}

html[data-theme="voyage"] .sf-search-btn,
[dir="rtl"][data-theme="voyage"] .sf-search-btn {
    background: var(--theme-color-surface);
    color: var(--theme-color-text);
}

html[data-theme="voyage"] .sf-search-btn {
    border-radius: 0 999px 999px 0;
}

[dir="rtl"][data-theme="voyage"] .sf-search-btn {
    border-radius: 999px 0 0 999px;
}

html[data-theme="voyage"] .sf-search-btn:hover {
    background: var(--theme-color-primary-soft);
}

html[data-theme="voyage"] .sf-action:hover {
    background: var(--theme-color-surface);
}

/* ---------- Category bar ---------- */

html[data-theme="voyage"] .sf-catbar {
    border-top: 1px solid var(--theme-color-border);
}

@media (min-width: 992px) {
    html[data-theme="voyage"] .sf-catbar-list {
        justify-content: center;
        gap: 0.75rem;
    }

    html[data-theme="voyage"] .sf-catbar-secondary.is-push {
        margin-inline-start: 0;
    }
}

html[data-theme="voyage"] .sf-catbar-link:hover,
html[data-theme="voyage"] .sf-catbar-link.active {
    color: var(--theme-color-secondary);
    border-bottom-color: var(--theme-color-secondary);
}

/* ---------- Page rhythm ---------- */

html[data-theme="voyage"] .sf-main:has(.sf-home) {
    background: var(--theme-color-bg);
}

html[data-theme="voyage"] .sf-home {
    padding-top: 0;
}

html[data-theme="voyage"] .sf-block {
    margin-top: 3.5rem;
}

html[data-theme="voyage"] .sf-row-head {
    margin-bottom: 1.25rem;
}

html[data-theme="voyage"] .sf-row-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: var(--theme-weight-semibold);
    letter-spacing: -0.01em;
}

html[data-theme="voyage"] .sf-row-link {
    color: var(--theme-color-text);
    font-weight: var(--theme-weight-medium);
    text-decoration: underline;
    text-underline-offset: 5px;
}

html[data-theme="voyage"] .sf-row-link .sf-arrow {
    display: none;
}

/* ---------- Hero: tall full-bleed banner, spotlights below ---------- */

html[data-theme="voyage"] .sf-hero-grid {
    max-width: none;
    padding-inline: 0;
    grid-template-columns: 1fr;
    gap: var(--sf-mk-gap);
}

html[data-theme="voyage"] .sf-hero-main {
    border-radius: 0;
}

html[data-theme="voyage"] .sf-hero-main .swiper-hero,
html[data-theme="voyage"] .sf-hero-main .hero-slide {
    height: clamp(380px, 56vw, 640px);
}

html[data-theme="voyage"] .sf-hero-main .hero-overlay {
    background: linear-gradient(to top, rgba(26, 19, 15, 0.55), rgba(26, 19, 15, 0) 55%);
}

html[data-theme="voyage"] .sf-hero-main .hero-content {
    max-width: 36rem;
    padding: clamp(1.5rem, 5vw, 4rem);
}

html[data-theme="voyage"] .sf-hero-tag {
    border-radius: 999px;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #2a211c;
}

html[data-theme="voyage"] .sf-hero-title {
    font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
    font-weight: var(--theme-weight-semibold);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

[dir="rtl"][data-theme="voyage"] .sf-hero-title {
    letter-spacing: 0;
    line-height: 1.25;
}

/* CTA as an underlined text link rather than a box */
html[data-theme="voyage"] .sf-btn-light {
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    font-size: 1.05rem;
}

html[data-theme="voyage"] .sf-btn-light:hover {
    background: transparent;
    color: #ffffff;
    text-decoration-thickness: 3px;
}

/* The two promo tiles become wide spotlight banners under the hero */
html[data-theme="voyage"] .sf-hero-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--sf-mk-gap);
    /* Line the spotlights up with the Bootstrap container below them */
    padding-inline: max(12px, calc((100% - var(--vg-content, 100%)) / 2));
}

@media (min-width: 576px) { html[data-theme="voyage"] { --vg-content: 516px; } }
@media (min-width: 768px) { html[data-theme="voyage"] { --vg-content: 696px; } }
@media (min-width: 992px) { html[data-theme="voyage"] { --vg-content: 936px; } }
@media (min-width: 1200px) { html[data-theme="voyage"] { --vg-content: 1116px; } }
@media (min-width: 1400px) { html[data-theme="voyage"] { --vg-content: 1296px; } }

html[data-theme="voyage"] .sf-promo-tile,
html[data-theme="voyage"] .sf-promo-tile.is-alt {
    min-height: 260px;
    justify-content: flex-end;
    padding: 2rem;
    border-radius: var(--theme-radius-lg);
    box-shadow: none;
}

html[data-theme="voyage"] .sf-promo-tile,
html[data-theme="voyage"] .sf-promo-tile:hover {
    background: #e7d8c6;
    color: #2a211c;
}

html[data-theme="voyage"] .sf-promo-tile.is-alt,
html[data-theme="voyage"] .sf-promo-tile.is-alt:hover {
    background: #8a4f2f;
    color: #ffffff;
}

html[data-theme="voyage"] .sf-promo-tile .sf-promo-tag {
    border-radius: 999px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.55);
    color: inherit;
}

html[data-theme="voyage"] .sf-promo-tile.is-alt .sf-promo-tag {
    background: rgba(255, 255, 255, 0.18);
}

html[data-theme="voyage"] .sf-promo-title {
    font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
    font-weight: var(--theme-weight-semibold);
}

html[data-theme="voyage"] .sf-promo-cta {
    text-decoration: underline;
    text-underline-offset: 5px;
    white-space: nowrap;
}

html[data-theme="voyage"] .sf-promo-cta .sf-arrow {
    display: none;
}

@media (max-width: 767.98px) {
    html[data-theme="voyage"] .sf-hero-side {
        grid-template-columns: 1fr;
    }

    html[data-theme="voyage"] .sf-promo-tile,
    html[data-theme="voyage"] .sf-promo-tile.is-alt {
        min-height: 180px;
        padding: 1.5rem;
    }

    html[data-theme="voyage"] .sf-promo-text {
        display: block;
    }
}

/* ---------- Category tiles: portrait cards, label below ---------- */

html[data-theme="voyage"] .sf-chips {
    gap: var(--sf-mk-gap);
}

html[data-theme="voyage"] .sf-chip {
    width: 200px;
    align-items: flex-start;
}

html[data-theme="voyage"] .sf-chip-media {
    width: 200px;
    height: 250px;
    border: 0;
    border-radius: var(--sf-mk-radius);
    background: var(--theme-color-surface);
}

html[data-theme="voyage"] .sf-chip-label {
    font-size: 1rem;
    text-align: start;
}

html[data-theme="voyage"] .sf-chip:hover .sf-chip-label {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 767.98px) {
    html[data-theme="voyage"] .sf-chip,
    html[data-theme="voyage"] .sf-chip-media {
        width: 140px;
    }

    html[data-theme="voyage"] .sf-chip-media {
        height: 175px;
    }
}

/* ---------- Product card ---------- */

html[data-theme="voyage"] .sf-product-card,
html[data-theme="voyage"] .sf-product-card:hover {
    border: 0;
    box-shadow: none;
    background: transparent;
}

html[data-theme="voyage"] .sf-product-card .sf-product-media {
    aspect-ratio: 4 / 5;
    border-bottom: 0;
    border-radius: var(--sf-mk-radius);
    background: var(--theme-color-surface);
}

html[data-theme="voyage"] .sf-product-card .sf-product-media img {
    padding: 12%;
    mix-blend-mode: multiply;
    transition: transform 400ms ease;
}

html[data-theme="voyage"] .sf-product-card:hover .sf-product-media img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="voyage"] .sf-product-card .sf-product-media img {
        transition: none;
    }

    html[data-theme="voyage"] .sf-product-card:hover .sf-product-media img {
        transform: none;
    }
}

html[data-theme="voyage"] .sf-product-card .sf-product-body {
    padding: 0.8rem 0.15rem 0;
    gap: 0.25rem;
}

html[data-theme="voyage"] .sf-product-card .sf-product-title {
    font-size: 0.95rem;
    font-weight: var(--theme-weight-medium);
}

html[data-theme="voyage"] .sf-price-value {
    font-size: 0.95rem;
    font-weight: var(--theme-weight-regular);
}

html[data-theme="voyage"] .sf-price-currency {
    font-weight: var(--theme-weight-regular);
}

html[data-theme="voyage"] .sf-product-perks {
    color: var(--theme-color-text-muted);
}

html[data-theme="voyage"] .sf-flag {
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: var(--theme-weight-medium);
}

html[data-theme="voyage"] .sf-flag.is-rank {
    background: #ffffff;
    color: var(--theme-color-text);
}

html[data-theme="voyage"] .sf-flag.is-warning {
    background: var(--theme-color-secondary);
}

html[data-theme="voyage"] .sf-product-card .sf-product-actions .btn {
    border-radius: 999px;
}

html[data-theme="voyage"] .sf-product-card .sf-product-actions .btn-primary {
    background: var(--theme-color-primary);
    border-color: var(--theme-color-primary);
}

/* ---------- Budget, reasons, brands, FAQ ---------- */

html[data-theme="voyage"] .sf-budget-card {
    border: 0;
    background: var(--theme-color-surface);
    border-radius: var(--sf-mk-radius);
}

html[data-theme="voyage"] .sf-budget-card:hover {
    background: var(--theme-color-primary-soft);
}

html[data-theme="voyage"] .sf-budget-thumbs img {
    border-color: var(--theme-color-surface);
}

html[data-theme="voyage"] .sf-reasons {
    padding: 1.5rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-color-surface);
}

html[data-theme="voyage"] .sf-reason {
    border: 0;
    background: transparent;
    padding: 0.5rem;
}

html[data-theme="voyage"] .sf-reason > .bi {
    background: var(--theme-color-bg);
    color: var(--theme-color-secondary);
}

html[data-theme="voyage"] .sf-brands .sf-brand-logo {
    border: 0;
    background: var(--theme-color-surface);
}

html[data-theme="voyage"] .sf-faq .accordion-item {
    border-color: var(--theme-color-border);
}

/* ---------- Newsletter: dark panel ---------- */

html[data-theme="voyage"] .sf-newsletter {
    border: 0;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-color-primary);
    color: rgba(255, 255, 255, 0.82);
    padding: clamp(1.5rem, 4vw, 3rem);
}

html[data-theme="voyage"] .sf-newsletter .sf-row-title {
    color: #ffffff;
}

html[data-theme="voyage"] .sf-newsletter-form .form-control {
    border: 0;
    border-radius: 999px;
    padding-inline: 1.25rem;
}

html[data-theme="voyage"] .sf-newsletter-form .btn {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--theme-color-primary);
    padding-inline: 1.5rem;
}

html[data-theme="voyage"] .sf-newsletter-form .btn:hover {
    background: var(--theme-color-primary-soft);
    color: var(--theme-color-primary);
}
