/* ── Product Showcase ───────────────────────────────────────────────────── */

/* ── Outer wrapper ── */
.ps-showcase {
    width: 100%;
    padding: 0;
    background: #fff;
}

/* ── Three-column panel row ── */
.ps-showcase__panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

/* ── Individual panel ── */
.ps-showcase__panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 0; /* kill whitespace gap under img */
}


a.ps-showcase__panel {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product image fills the panel */
.ps-showcase__product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ps-showcase__panel:hover .ps-showcase__product-img {
    transform: scale(1.03);
}

/* ── Hover overlay ── */
.ps-showcase__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10%;
    gap: 16px;

    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.ps-showcase__panel:hover .ps-showcase__overlay {
    opacity: 1;
}

/* ── Product title in overlay ── */
.ps-showcase__title {
    font-family: 'Gelo', Arial, sans-serif !important;
    font-size: clamp(14px, 2vw, 26px);
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 12px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* ── Buy Now button ── */
.ps-showcase__buy-now {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* above the overlay */
    width: 140px;
}

.ps-showcase__buy-default {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ps-showcase__buy-hover {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ps-showcase__panel:hover .ps-showcase__buy-default {
    opacity: 0;
}

.ps-showcase__panel:hover .ps-showcase__buy-hover {
    opacity: 1;
}

/* ── Indicator dots row ── */
.ps-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 24px;
    background: #fff;
}

/* Each dot: filled img shown by default, hollow on hover */
.ps-showcase__dot {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: default;
}

.ps-showcase__dot-filled,
.ps-showcase__dot-hollow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.ps-showcase__dot-hollow {
    opacity: 0;
}

/* When the matching panel is hovered, swap the dot */
.ps-showcase__panels:has([data-panel="1"]:hover) ~ .ps-showcase__dots [data-dot="1"] .ps-showcase__dot-filled,
.ps-showcase__panels:has([data-panel="2"]:hover) ~ .ps-showcase__dots [data-dot="2"] .ps-showcase__dot-filled,
.ps-showcase__panels:has([data-panel="3"]:hover) ~ .ps-showcase__dots [data-dot="3"] .ps-showcase__dot-filled {
    opacity: 0;
}

.ps-showcase__panels:has([data-panel="1"]:hover) ~ .ps-showcase__dots [data-dot="1"] .ps-showcase__dot-hollow,
.ps-showcase__panels:has([data-panel="2"]:hover) ~ .ps-showcase__dots [data-dot="2"] .ps-showcase__dot-hollow,
.ps-showcase__panels:has([data-panel="3"]:hover) ~ .ps-showcase__dots [data-dot="3"] .ps-showcase__dot-hollow {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .ps-showcase__panels {
        grid-template-columns: 1fr;
    }

    .ps-showcase__overlay {
        /* Always visible on touch devices */
        opacity: 1;
    }

    .ps-showcase__buy-default {
        opacity: 0;
    }

    .ps-showcase__buy-hover {
        opacity: 1;
    }

    .ps-showcase__title {
        font-size: 18px;
    }
}
