/* ============================================================
   SNR Brand Showcase Widget
   ============================================================ */

/* ---- Outer wrapper ---------------------------------------- */
.snr-bsc-wrap {
    background-color: #FCF9F9;
    padding: 64px 40px;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Jost', system-ui, sans-serif;
}

/* ---- Section header --------------------------------------- */
.snr-bsc-header {
    text-align: center;
    margin-bottom: 48px;
}

.snr-bsc-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C8506A;
    margin-bottom: 10px;
}

.snr-bsc-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: #3D0C1A;
    margin: 0 0 14px;
    line-height: 1.2;
}

.snr-bsc-subtitle {
    font-size: 0.97rem;
    font-weight: 300;
    color: #6B1A30;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.7;
}

/* ---- Search bar ------------------------------------------ */
.snr-bsc-search-wrap {
    position: relative;
    max-width: 440px;
    margin: 0 auto 40px;
}

.snr-bsc-search {
    width: 100%;
    padding: 12px 44px 12px 18px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #3D0C1A;
    background: #ffffff;
    border: 1px solid rgba(200, 80, 106, 0.25);
    border-radius: 999px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.snr-bsc-search::placeholder {
    color: rgba(107, 26, 48, 0.4);
}

.snr-bsc-search:focus {
    border-color: #C8506A;
    box-shadow: 0 0 0 3px rgba(200, 80, 106, 0.15);
}

.snr-bsc-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(107, 26, 48, 0.4);
    pointer-events: none;
}

/* ---- Grid ------------------------------------------------- */
.snr-bsc-grid {
    display: grid;
    grid-template-columns: repeat(var(--snr-bsc-cols, 5), 1fr);
    gap: var(--snr-bsc-row-gap, 20px) var(--snr-bsc-gap, 20px);
}

/* ---- Card ------------------------------------------------- */
.snr-bsc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid rgba(200, 80, 106, 0.12);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(107, 26, 48, 0.06);
    cursor: pointer;
    overflow: hidden;

    /* Transitions */
    transition:
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.35s ease,
        background 0.35s ease;
}

/* Rose shimmer line at bottom */
.snr-bsc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8506A 50%, transparent);
    border-radius: 999px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
    opacity: 0;
}

/* Top glow */
.snr-bsc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(200, 80, 106, 0.4), transparent);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.snr-bsc-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(107, 26, 48, 0.12),
        0 4px 12px rgba(200, 80, 106, 0.10);
    border-color: rgba(200, 80, 106, 0.45);
    z-index: 2;
}

.snr-bsc-card:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.snr-bsc-card:hover::before {
    opacity: 1;
}

/* ---- Product count badge ---------------------------------- */
.snr-bsc-count {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #FEF0F3;
    color: #C8506A;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

.snr-bsc-card:hover .snr-bsc-count {
    background: #C8506A;
    color: #ffffff;
}

/* ---- Logo wrap ------------------------------------------- */
.snr-bsc-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
}

.snr-bsc-logo {
    max-height: 60px;
    max-width: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.snr-bsc-card:hover .snr-bsc-logo {
    transform: scale(1.1);
}

/* Placeholder when no logo is set */
.snr-bsc-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #F8EEF1;
    color: #C8506A;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.snr-bsc-card:hover .snr-bsc-logo-placeholder {
    transform: scale(1.1);
}

/* ---- Brand Name ------------------------------------------ */
.snr-bsc-name {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3D0C1A;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s;
}

.snr-bsc-card:hover .snr-bsc-name {
    color: #C8506A;
}

/* ---- Hidden (search filter) ------------------------------ */
.snr-bsc-card[data-hidden="true"] {
    display: none;
}

/* ── Responsive: Tablet ≤ 1024px ─────────────────────────── */
@media (max-width: 1024px) {
    .snr-bsc-grid {
        grid-template-columns: repeat(var(--snr-bsc-cols, 3), 1fr);
    }

    .snr-bsc-wrap {
        padding: 48px 24px;
    }
}

/* ── Responsive: Mobile ≤ 767px ──────────────────────────── */
@media (max-width: 767px) {
    .snr-bsc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .snr-bsc-wrap {
        padding: 40px 16px;
    }

    .snr-bsc-header {
        margin-bottom: 32px;
    }

    .snr-bsc-card {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .snr-bsc-logo {
        max-height: 44px;
    }
}