/* SkillzBook public "Courses" shop — Xbox-store-style hero carousel + cover-art
   tiles. Layered on landing.css (header/footer/eyebrow/final CTA reused).
   Brand: purple #7c3aed/#6d28d9, blue #1ea7e1, dark #1c1528, muted #5d546f. */

.sb-shop-page { background: #ffffff; }
.sb-hp-nav .sb-hp-navlink-active { background: #1590cc; color: #ffffff; }

/* ============================ HERO CAROUSEL ============================ */
.sb-shop-herowrap {
    background: radial-gradient(1300px 480px at 70% -10%, #241a39 0%, #140f1f 60%);
    padding: clamp(34px, 5vw, 66px) 24px clamp(44px, 5vw, 76px);
}
.sb-shop-hero {
    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 40px 100px -46px rgba(0, 0, 0, 0.75);
}
.sb-shop-track { display: flex; transition: transform 0.55s cubic-bezier(.22,.61,.36,1); }
.sb-shop-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: clamp(420px, 48vw, 580px);
    padding: clamp(40px, 6vw, 86px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, var(--c1, #7c3aed), var(--c2, #a855f7));
    color: #ffffff;
}
.sb-shop-slide-z {
    position: absolute;
    right: -6%;
    bottom: -22%;
    width: min(62%, 520px);
    height: 120%;
    fill: rgba(255, 255, 255, 0.13);
    pointer-events: none;
}
.sb-shop-slide-body { position: relative; z-index: 2; max-width: 620px; }
.sb-shop-kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.92);
}
.sb-shop-kicker span { width: 26px; height: 2px; background: rgba(255,255,255,0.8); }
.sb-shop-slide-title {
    margin: 14px 0 10px;
    font-size: clamp(30px, 4.6vw, 54px); line-height: 1.02; font-weight: 800;
    letter-spacing: -0.03em; text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}
.sb-shop-slide-desc { margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: rgba(255,255,255,0.92); max-width: 520px; }
.sb-shop-slide-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.sb-shop-slide-price { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.sb-shop-slide-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #ffffff; color: #1c1528 !important; font-weight: 800; font-size: 16px;
    padding: 13px 26px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 10px 26px -12px rgba(0,0,0,0.45); transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.sb-shop-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0,0,0,0.55); color: #1c1528; text-decoration: none; }
.sb-shop-slide-badge {
    position: absolute; z-index: 2; right: clamp(28px, 5vw, 70px); top: 50%; transform: translateY(-50%);
    width: clamp(90px, 12vw, 150px); height: clamp(90px, 12vw, 150px); border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(38px, 6vw, 68px); color: #ffffff;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(3px);
}
@media (max-width: 760px) { .sb-shop-slide-badge { display: none; } .sb-shop-slide-desc { display: none; } }

/* Arrows */
.sb-shop-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(20, 15, 31, 0.42); color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.14s ease, transform 0.14s ease; backdrop-filter: blur(4px);
}
.sb-shop-arrow:hover { background: rgba(20, 15, 31, 0.72); }
.sb-shop-prev { left: 16px; } .sb-shop-next { right: 16px; }
@media (max-width: 620px) {
    .sb-shop-arrow { top: auto; bottom: 14px; transform: none; width: 38px; height: 38px; }
}

/* Auto-advance progress bar (Netflix/Xbox-style) */
.sb-shop-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.16); z-index: 4; }
.sb-shop-progress-bar { height: 100%; width: 0; background: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Dots */
.sb-shop-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 18px; display: flex; gap: 9px; justify-content: center; }
.sb-shop-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,0.45); transition: width 0.2s ease, background 0.2s ease;
}
.sb-shop-dots button.is-active { width: 26px; background: #ffffff; }

/* ============================== SHELVES =============================== */
.sb-shop-shelf { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 5vw, 66px) 24px; }
.sb-shop-shelf-alt { background: #faf8fd; border-radius: 26px; margin-top: 14px; margin-bottom: 14px; }
.sb-shop-shelfhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sb-shop-h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: #1c1528; }
.sb-shop-shelflead { margin: 0; color: #5d546f; font-size: 15px; max-width: 360px; }

.sb-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px; }

/* Tile = store cover + body + CTA */
.sb-tile {
    position: relative; display: flex; flex-direction: column;
    background: #ffffff; border: 1px solid #ece7f3; border-radius: 16px; overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.sb-tile:hover { transform: translateY(-4px); border-color: #e0d4f5; box-shadow: 0 22px 44px -26px rgba(76, 29, 149, 0.5); }

.sb-tile-cover {
    position: relative; width: 100%; height: 136px; overflow: hidden;
    background: linear-gradient(130deg, var(--c1, #7c3aed), var(--c2, #a855f7));
}
.sb-tile-z {
    position: absolute; right: -14%; bottom: -30%; width: 74%; height: 150%;
    fill: rgba(255,255,255,0.16); transition: transform 0.35s ease;
}
.sb-tile:hover .sb-tile-z { transform: scale(1.08) rotate(-3deg); }
.sb-tile-ic { position: absolute; left: 18px; top: 16px; font-size: 34px; color: rgba(255,255,255,0.95); filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18)); }
.sb-tile-tag {
    position: absolute; right: 12px; top: 12px; z-index: 2;
    background: #ffffff; color: #1c1528; font-weight: 800; font-size: 14px;
    padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3);
}
.sb-tile-pill, .sb-tile-count {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.26);
    border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 4px 10px;
}
.sb-tile-count { left: auto; right: 12px; bottom: 12px; top: auto; }

.sb-tile-body { padding: 16px 18px 10px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; }
.sb-tile-title { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.25; color: #1c1528; }
.sb-tile-meta { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.04em; color: #7c3aed; }
.sb-tile-desc { margin: 0; font-size: 13px; line-height: 1.5; color: #6b6280;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sb-tile-btn {
    margin: 10px 14px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #7c3aed; color: #fff; font-weight: 700; font-size: 14.5px;
    padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: background 0.14s ease;
}
.sb-tile-btn:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.sb-tile-btn-ghost { background: #fff; color: #6d28d9; border: 2px solid #e0d4f5; padding: 8px 14px; }
.sb-tile-btn-ghost:hover { background: #f3eefe; border-color: #7c3aed; color: #6d28d9; }

@media (max-width: 560px) {
    .sb-shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .sb-tile-title { font-size: 14.5px; } .sb-tile-desc { display: none; }
    .sb-tile-btn { margin: 8px 10px 12px; }
}
