/* =========================================================
   NAILS BY SANDEEP - HOME SHOWCASE (gallery stage + review quotes)
   Colours come from the theme variables, with fallbacks for the
   original pink design.
========================================================= */
.nbs-sc-on .gallery-carousel,
.nbs-sc-on #galleryDots,
.nbs-sc-on .gallery-dots,
.nbs-sc-on .reviews-carousel,
.nbs-sc-on #reviewDots { display: none !important; }

.nbs-gal, .nbs-rev {
    --sc-ink: var(--t-ink, #46343d); --sc-muted: var(--t-muted, #7d6573);
    --sc-accent: var(--t-accent, #d93473); --sc-gold: var(--t-accent2, #c98f78);
    --sc-line: var(--t-line, rgba(168, 69, 107, 0.2)); --sc-card: var(--t-card, #fff);
}

/* ---------- shared bits ---------- */
.nbs-arrow {
    width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; cursor: pointer;
    border-radius: 50%; border: 1px solid var(--sc-line); background: var(--sc-card); color: var(--sc-accent);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nbs-arrow:hover { transform: scale(1.08); background: var(--sc-accent); color: #fff; box-shadow: 0 8px 22px rgba(217, 52, 115, 0.3); }
.nbs-count { font-family: Georgia, "Times New Roman", serif; color: var(--sc-muted); font-size: 15px; letter-spacing: 0.08em; white-space: nowrap; }
.nbs-count b { font-weight: 400; font-size: 30px; color: var(--sc-ink); letter-spacing: 0; }
.nbs-line { height: 2px; border-radius: 2px; background: var(--sc-line); overflow: hidden; }
.nbs-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--sc-gold), var(--sc-accent)); transform-origin: left; transform: scaleX(0); animation: nbsFill var(--fill, 5.6s) linear forwards; }
@keyframes nbsFill { to { transform: scaleX(1); } }

/* ---------- gallery stage ---------- */
.nbs-gal { width: min(1180px, 94%); margin: 8px auto 0; outline: none; }
.nbs-gal-stage {
    position: relative; height: clamp(380px, 37vw, 520px); perspective: 1500px; touch-action: pan-y;
}
.nbs-gal-stage::after {                       /* soft light pool under the front photo */
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 56%; height: 70px; transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--sc-accent), transparent); opacity: 0.22; filter: blur(14px); pointer-events: none;
}
.nbs-gal-card {
    position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: pointer;
    border-radius: 24px; overflow: hidden; background: var(--sc-card);
    transform: translate(-50%, -50%) translateX(var(--x, 0)) rotateY(var(--r, 0deg)) scale(var(--s, 1));
    transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.8s ease;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--sc-line);
    will-change: transform, opacity; backface-visibility: hidden;
}
.nbs-gal-card.is-front { cursor: default; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38), 0 0 0 1.5px var(--sc-gold), 0 0 46px rgba(255, 90, 160, 0.16); }
.nbs-gal-card img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.nbs-gal-card.is-front img { transform: scale(1); }
.nbs-gal-gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 38%); }
.nbs-gal-card:not(.is-front)::after { content: ""; position: absolute; inset: 0; background: rgba(20, 8, 16, 0.25); }
.nbs-gal .nbs-line { --fill: 5.6s; }
.nbs-gal-controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px; width: min(620px, 100%); margin: 26px auto 0; }

/* ---------- reviews ---------- */
.nbs-rev { position: relative; width: min(900px, 92%); margin: 26px auto 0; text-align: center; }
.nbs-rev-mark {
    position: absolute; left: 50%; top: -64px; transform: translateX(-50%); font: 400 190px/1 Georgia, serif;
    color: var(--sc-accent); opacity: 0.16; pointer-events: none; user-select: none;
}
.nbs-rev-stage { position: relative; display: grid; padding: 30px 6px 8px; }
.nbs-rev-slide {
    grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translate3d(0, 18px, 0); pointer-events: none;
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nbs-rev-slide.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.12s; }
.nbs-rev-stars { color: var(--sc-gold); letter-spacing: 7px; font-size: 18px; margin-bottom: 20px; text-shadow: 0 0 16px rgba(233, 185, 163, 0.35); }
.nbs-rev-text {
    margin: 0; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
    font-size: clamp(21px, 2.5vw, 30px); line-height: 1.5; color: var(--sc-ink);
}
.nbs-rev-text.is-mid { font-size: clamp(18px, 2.05vw, 24px); line-height: 1.58; }
.nbs-rev-text.is-long { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.65; }
.nbs-rev-by { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.nbs-rev-by i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--sc-gold)); }
.nbs-rev-by i:last-child { background: linear-gradient(270deg, transparent, var(--sc-gold)); }
.nbs-rev-by b { font: 600 14px/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sc-ink); }
.nbs-rev-by span { font: 500 11px/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc-muted); padding: 6px 11px; border: 1px solid var(--sc-line); border-radius: 999px; }
.nbs-rev-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.nbs-rev-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 540px; }
.nbs-badge {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 1px solid var(--sc-line); background: var(--sc-card); color: var(--sc-muted);
    font: 600 11px/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.04em;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s, color 0.3s, border-color 0.3s;
}
.nbs-badge:hover { transform: translateY(-2px); color: var(--sc-ink); }
.nbs-badge.is-on { transform: scale(1.18); background: linear-gradient(135deg, var(--sc-accent), var(--sc-gold)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(217, 52, 115, 0.28); }
.nbs-rev .nbs-line { --fill: 8.2s; width: min(260px, 60%); margin: 26px auto 0; }
.nbs-rev .nbs-count { display: none; }

/* rating pill above the quotes */
.nbs-sc-on .google-rating-summary { margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
    .nbs-gal-stage { height: clamp(360px, 108vw, 470px); }
    .nbs-gal-card { height: 94%; border-radius: 20px; }
    .nbs-gal-controls { grid-template-columns: auto 1fr auto; gap: 14px; }
    .nbs-gal-controls .nbs-count { display: none; }
    .nbs-gal-controls .nbs-line { grid-column: 2; }
    .nbs-arrow { width: 42px; height: 42px; flex-basis: 42px; }
    .nbs-rev-mark { font-size: 130px; top: -22px; }
    .nbs-rev-badges { display: none; }
    .nbs-rev .nbs-count { display: block; }
    .nbs-rev-nav { gap: 22px; margin-top: 26px; }
    .nbs-rev-by i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nbs-gal-card, .nbs-gal-card img, .nbs-rev-slide { transition: none; }
    .nbs-line i { animation: none; transform: scaleX(1); }
}
