/* =========================================================
   ESPAGLOBAL - PRODUCT PAGE
========================================================= */

.espa-product-page {
    --pp-primary: var(--espa-primary, #ef233c);
    --pp-heading: var(--espa-heading, #102a43);
    --pp-text: var(--espa-text, #334155);
    --pp-muted: var(--espa-text-muted, #64748b);
    --pp-border: var(--espa-border, #e5e7eb);
    --pp-bg: var(--espa-body-bg, #f6f8fb);
    background: var(--pp-bg);
}


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

.espa-product-page__hero {
    position: relative;
    overflow: visible;
    background:
            linear-gradient(120deg, #0f3553 0%, #1d4263 48%, #313a59 100%);
    color: #fff;
}

.espa-product-page__hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.espa-product-page__hero.has-image .espa-product-page__hero-bg {
    background:
            linear-gradient(
                    90deg,
                    rgba(8, 35, 57, .95) 0%,
                    rgba(15, 53, 83, .86) 46%,
                    rgba(40, 47, 74, .72) 100%
            ),
            var(--product-hero-image) center / cover no-repeat;
}

.espa-product-page__hero-bg::before,
.espa-product-page__hero-bg::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
}

.espa-product-page__hero-bg::before {
    width: 420px;
    height: 420px;
    right: -175px;
    top: -225px;
}

.espa-product-page__hero-bg::after {
    width: 240px;
    height: 240px;
    left: -130px;
    bottom: -130px;
}

.espa-product-page__hero-container {
    position: relative;
    z-index: 2;
}

.espa-product-page__hero-content {
    padding: 52px 0 54px;
}

.espa-product-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.espa-product-page__breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.espa-product-page__breadcrumb a:hover {
    color: #fff;
}

.espa-product-page__breadcrumb iconify-icon {
    width: 13px;
    height: 13px;
}

.espa-product-page__hero-copy {
    max-width: 760px;
}

.espa-product-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.espa-product-page__eyebrow iconify-icon {
    width: 15px;
    height: 15px;
}

.espa-product-page__hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
}

.espa-product-page__hero-copy > p {
    max-width: 700px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.75;
}

.espa-product-page__hero-meta {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.espa-product-page__hero-stat {
    min-height: 62px;
    min-width: 132px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.espa-product-page__hero-stat strong {
    color: #fff;
    font-size: 16px;
    font-weight: 750;
}

.espa-product-page__hero-stat span {
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

.espa-product-page__hero-stat iconify-icon {
    width: 19px;
    height: 19px;
    margin-bottom: 4px;
    color: rgba(255,255,255,.8);
}


/* =========================================================
   SEARCH HOST
========================================================= */

.espa-product-page__search-zone {
    position: relative;
    z-index: 100;
    width: 100%;
    margin-top: 42px;
}

.espa-product-page__search-zone .espa-tour-search {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
}

.espa-product-page__search-zone .espa-tour-search__form {
    width: 100%;
}

.espa-product-page__search-zone .espa-tour-search__dropdown {
    z-index: 9999 !important;
}

.espa-product-page__search-zone .espa-tour-search__field {
    z-index: 1;
}

.espa-product-page__search-zone .espa-tour-search__field:focus-within,
.espa-product-page__search-zone .espa-tour-search__field:has(.espa-tour-search__dropdown:not([hidden])) {
    z-index: 500;
}


/* =========================================================
   CATEGORIES
========================================================= */

.espa-product-page__categories {
    padding: 56px 0 68px;
    background: #fff;
}

.espa-product-page__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.espa-product-page__section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--pp-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.espa-product-page__section-head h2 {
    margin: 0;
    color: var(--pp-heading);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.espa-product-page__section-head p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--pp-muted);
    font-size: 13px;
    line-height: 1.65;
}

.espa-product-page__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--pp-bg);
    color: var(--pp-muted);
    font-size: 11px;
}

.espa-product-page__count strong {
    color: var(--pp-heading);
}

.espa-product-page__count iconify-icon {
    width: 16px;
    height: 16px;
    color: var(--pp-primary);
}

.espa-product-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


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

.espa-product-card {
    min-width: 0;
}

.espa-product-card__link {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition:
            transform .22s ease,
            border-color .22s ease,
            box-shadow .22s ease;
}

.espa-product-card__link:hover {
    border-color: color-mix(in srgb, var(--pp-primary) 25%, var(--pp-border));
    box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
    transform: translateY(-4px);
}

.espa-product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef2f6;
}

.espa-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.espa-product-card__link:hover .espa-product-card__media img {
    transform: scale(1.045);
}

.espa-product-card__overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    transparent 38%,
                    rgba(9, 30, 48, .34) 100%
            );
}

.espa-product-card__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.56);
    border-radius: 50%;
    background: rgba(255,255,255,.90);
    color: var(--pp-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition:
            background .18s ease,
            color .18s ease,
            transform .18s ease;
}

.espa-product-card__arrow iconify-icon {
    width: 17px;
    height: 17px;
}

.espa-product-card__link:hover .espa-product-card__arrow {
    background: var(--pp-primary);
    color: #fff;
    transform: rotate(5deg);
}

.espa-product-card__price-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    min-width: 110px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(15,23,42,.12);
    backdrop-filter: blur(10px);
}

.espa-product-card__price-badge span {
    display: block;
    color: var(--pp-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.espa-product-card__price-badge strong {
    display: block;
    margin-top: 2px;
    color: var(--pp-primary);
    font-size: 14px;
    font-weight: 800;
}

.espa-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.espa-product-card__placeholder iconify-icon {
    width: 42px;
    height: 42px;
}

.espa-product-card__body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.espa-product-card__mini-label {
    display: block;
    margin-bottom: 5px;
    color: var(--pp-primary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.espa-product-card__body h3 {
    margin: 0;
    color: var(--pp-heading);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.espa-product-card__footer {
    padding-top: 14px;
    border-top: 1px solid #eef2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pp-muted);
    font-size: 11px;
}

.espa-product-card__footer iconify-icon {
    width: 17px;
    height: 17px;
    color: var(--pp-primary);
    transition: transform .18s ease;
}

.espa-product-card__link:hover .espa-product-card__footer iconify-icon {
    transform: translateX(4px);
}


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

.espa-product-page__empty {
    padding: 60px 24px;
    border: 1px dashed var(--pp-border);
    border-radius: 22px;
    background: var(--pp-bg);
    text-align: center;
}

.espa-product-page__empty-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fff;
    color: var(--pp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.espa-product-page__empty-icon iconify-icon {
    width: 28px;
    height: 28px;
}

.espa-product-page__empty h3 {
    margin: 0;
    color: var(--pp-heading);
    font-size: 20px;
    font-weight: 750;
}

.espa-product-page__empty p {
    margin: 7px 0 0;
    color: var(--pp-muted);
    font-size: 12px;
}


/* =========================================================
   SEO
========================================================= */

.espa-product-page__seo {
    padding: 58px 0 76px;
    background: var(--pp-bg);
}

.espa-product-page__seo-card {
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 24px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
    box-shadow: 0 12px 34px rgba(15,23,42,.045);
}

.espa-product-page__seo-aside {
    padding: 34px;
    background:
            linear-gradient(145deg, #102f4a 0%, #293651 100%);
    color: #fff;
}

.espa-product-page__seo-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.espa-product-page__seo-icon iconify-icon {
    width: 22px;
    height: 22px;
}

.espa-product-page__seo-aside > span {
    display: block;
    color: rgba(255,255,255,.56);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.espa-product-page__seo-aside h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.espa-product-page__seo-content {
    padding: 36px;
    color: var(--pp-text);
    font-size: 14px;
    line-height: 1.8;
}

.espa-product-page__seo-content > :first-child {
    margin-top: 0;
}

.espa-product-page__seo-content > :last-child {
    margin-bottom: 0;
}

.espa-product-page__seo-content h2,
.espa-product-page__seo-content h3,
.espa-product-page__seo-content h4 {
    color: var(--pp-heading);
    font-weight: 750;
}

.espa-product-page__seo-content a {
    color: var(--pp-primary);
}


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

@media (max-width: 1199.98px) {
    .espa-product-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .espa-product-page__hero-content {
        padding-top: 42px;
    }

    .espa-product-page__search-zone {
        margin-top: 34px;
    }

    .espa-product-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .espa-product-page__seo-aside {
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    .espa-product-page__hero-content {
        padding: 30px 0 34px;
    }

    .espa-product-page__breadcrumb {
        margin-bottom: 18px;
    }

    .espa-product-page__hero h1 {
        font-size: clamp(32px, 12vw, 46px);
    }

    .espa-product-page__hero-copy > p {
        margin-top: 15px;
        font-size: 13px;
        line-height: 1.65;
    }

    .espa-product-page__search-zone {
        margin-top: 30px;
    }

    .espa-product-page__search-zone .espa-tour-search {
        width: 100% !important;
    }

    .espa-product-page__categories {
        padding: 38px 0 46px;
    }

    .espa-product-page__section-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .espa-product-page__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .espa-product-card__media {
        aspect-ratio: 16 / 10;
    }

    .espa-product-page__seo {
        padding: 38px 0 48px;
    }

    .espa-product-page__seo-card {
        border-radius: 20px;
    }

    .espa-product-page__seo-aside,
    .espa-product-page__seo-content {
        padding: 24px;
    }
}

@media (max-width: 479.98px) {
    .espa-product-page__hero-meta {
        gap: 8px;
    }

    .espa-product-page__hero-stat {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
    }

    .espa-product-card__body {
        padding: 16px;
    }
}
