/* ──────────────────────────────────────────────
    Inspirations Carousel & List
    ────────────────────────────────────────────── */

.inspirations-list-page {
    position: relative;
    padding-bottom: 20px;
}

/* ── Overrides for inspiration cards using product-grid classes ── */
.inspirations-list-page .splide__slide > div {
    height: 100%;
}

.inspirations-list-page .pd_div5 {
    height: 100%;
}

.inspirations-list-page .pd_div5_top_nohover {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inspirations-list-page .pd_title {
    height: auto;
    min-height: 0;
    padding: 6px 8px 0;
    text-align: center;
}

.inspirations-list-page .pd_div5 .flexitron {
    margin-top: auto;
}

.inspirations-list-page .pd_div5 .cbx {
    height: 4px;
}

.inspirations-list-page .pd_div5 .basketnew {
    text-align: center;
}

.inspiration-slide-wrap {
    padding: 10px 8px;
    box-sizing: border-box;
    height: 100%;
}

.inspiration-card {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.inspiration-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
    border-color: rgba(0, 0, 0, 0.1);
}

.inspiration-card-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inspiration-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);*/
}

.inspiration-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);*/
}

/*
.inspiration-card:hover .inspiration-card-img {
    transform: scale(1.08);
}
*/
.inspiration-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 42px;
}

.inspiration-card-body {
    /* padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;*/
    background: #ffffff;
}

.inspiration-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    transition: color 0.2s ease;
}

.inspiration-card:hover .inspiration-card-title {
    color: var(--primary, #e93d49);
}

.inspiration-card-cta {
    background-color: #505050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-top: auto;
    /*padding-top: 8px;*/
    /*border-top: 1px solid #f0f0f0;*/
    transition: transform 0.2s ease;
}

.inspiration-card-cta i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.inspiration-card:hover .inspiration-card-cta i {
    transform: translateX(4px);
}

/* ── Splide Arrows & Positioning for Inspirations ── */
.inspirations-list-page .splide {
    position: relative;
    padding: 0;
}


/* ── Add-all-to-cart button ───────────────── */

.add-all-to-cart-wrap {
    padding: 12px 12px
}

.add-all-btn {
    background: #505050;
    color: #ffffff;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px #40404066;
    user-select: none;
}

.add-all-btn:hover {
    background: #303030;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px #40404066;
}

/* ──────────────────────────────────────────────
   Inspirations Detail — Hotspots & Product Popup
   ────────────────────────────────────────────── */

/* ── Inspiration Banner (full-width) ──────── */

.insp-custom-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 24px;
    margin-top: -25px;
}

.insp-custom-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.master-text-box {
    display: block;
    position: absolute;
    top: 30px;
    padding: 10px;
    text-align: left;
}

.insp-custom-banner .master-text-box.insp-banner-title {
    top: 15px;
    bottom: auto;
    left: 5%;
    right: auto;
    width: auto;
    max-width: 90%;
    margin: 0;
    z-index: 2;
    font-size: 28px;
    font-weight: inherit;
    line-height: 1.25;
}

.insp-banner-title .insp-title-text {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    text-align: left;
}

/* ── Mobile banner overrides ──────────────── */

/* On mobile the text-box starts a bit lower so it
   clears the top edge of a portrait image. */
@media (max-width: 991.98px) {
    .insp-custom-banner .master-text-box {
        top: 15px;
    }

    .insp-custom-banner .master-text-box.insp-banner-title {
        top: 15px;
        bottom: auto;
        left: 5%;
        font-size: 18px;
        padding: 6px 12px;
    }
}

.catpath {
    font-size: 14px;
    text-align: left;
}

.catpath a {
    color: #fff;
    text-decoration: underline;
}


:root {
    --hs-bg: rgba(255, 255, 255, 0.95);
    --hs-border: rgba(99, 102, 241, 0.8);
    --hs-shadow: rgba(99, 102, 241, 0.25);
    --hs-shadow-hover: rgba(99, 102, 241, 0.35);
    --hs-pulse: rgba(99, 102, 241, 0.4);
    --popup-accent: #505050;
    --popup-radius: 16px;
    --popup-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ── Inspiration container ─────────────────── */

.inspiration h1 {
    text-align: center;
    padding: 32px 16px 24px;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Image card ────────────────────────────── */

.image-wrapper {
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(102, 91, 91, 0.56);
}

.image-hotspot-container {
    position: relative;
    display: block;
    width: 100%;
}

.image-hotspot-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Image label ──────────────────────────── */
.image-title {
    text-align: center;
    padding: 12px 16px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1c2025;
    letter-spacing: 0.01em;
}

.image-label {
    text-align: left;
    padding: 12px 16px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.01em;
}

/* ── Hotspot dot (responsive) ──────────────── */

.hotspot {
    --size: clamp(28px, 5vw, 36px);
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: var(--hs-bg);
    border: 2px solid var(--hs-border);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 700;
    color: var(--popup-accent);
    box-shadow: 0 4px 16px var(--hs-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 24px var(--hs-shadow-hover);
}

/* Pulse animation ring */
.hotspot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--hs-pulse);
    animation: hotspotPulse 2s ease-in-out infinite;
}

@keyframes hotspotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ── Product popup ─────────────────────────── */

.product-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: var(--popup-radius);
    box-shadow: var(--popup-shadow);
    z-index: 10000;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
}

.product-popup.active {
    display: block;
    animation: popupIn 0.25s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.product-popup .popup-body {
    padding: 24px;
}

.product-popup .popup-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-popup .popup-body .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--popup-accent);
    margin-bottom: 0;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-popup .popup-body .btn-product {
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.product-popup .popup-body .btn-product:hover {
    background: #e5e7eb;
    color: #111827;
}

.popup-actions .basketnew {
    flex: 1;
    background: #505050;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 12px #404040;
}

.popup-actions .basketnew:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px #404040;
    background: #303030;
}

/* Close button */
.product-popup .close-popup {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s;
    z-index: 1;
}

.product-popup .close-popup:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

/* Loading spinner */
.popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.popup-loading .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--popup-accent);
    border-radius: 50%;
    animation: spinnerRotate 0.6s linear infinite;
}

@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* ── Overlay / backdrop ────────────────────── */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 768px) {
    .inspiration h1 {
        padding: 24px 16px 16px;
    }

    .image-wrapper {
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .image-title {
        font-size: 1.2rem;
    }

    .image-label {
        font-size: 1.0rem;
    }

    .product-popup {
        min-width: 260px;
        max-width: calc(100% - 32px);
    }

    .hotspot {

        --size: clamp(20px, 5vw, 27px);
        color: #ffffff;
        background: rgba(50, 50, 50, 0.55);
        border: rgba(0, 0, 0, 0.06)
    }

    .insp-custom-banner {
        margin-top: -22px;
    }

    .inspiration-item {
        margin-top: 25px;
    }
}