/* ===== Shop / Teaching Materials Page ===== */

/* ── Hero Section ── */
.shop-hero {
    padding: 36px 0 20px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 20% 40%, rgba(59, 130, 246, .06), transparent 60%),
        radial-gradient(500px 300px at 80% 60%, rgba(34, 211, 238, .04), transparent 50%);
    pointer-events: none;
}

.shop-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, .18);
    background: rgba(59, 130, 246, .06);
    color: var(--brand2);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 16px;
}

.kicker-icon {
    font-size: 16px;
}

.shop-hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -.03em;
    color: var(--txt);
}

.gradient-accent {
    background: linear-gradient(135deg, #3B82F6, #0891B2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-hero-desc {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 24px;
    max-width: 48ch;
}

.shop-hero-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-val {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted2);
}

/* Hero Floating Cards */
.shop-hero-visual {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
    font-weight: 700;
    font-size: 14px;
    color: var(--txt);
    transition: transform .4s ease;
    animation: float-card 5s ease-in-out infinite;
}

.hero-float-card svg {
    color: var(--brand);
}

.hero-float-card.c1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-float-card.c2 {
    top: 40%;
    right: 5%;
    animation-delay: 1.5s;
}

.hero-float-card.c3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    75% {
        transform: translateY(4px) rotate(-0.5deg);
    }
}

/* ── Category Tab Filter ── */
.shop-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 18px;
    background: var(--soft);
    border: 1px solid rgba(0, 0, 0, .06);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, .06);
    color: var(--brand2);
}

.tab-btn.active {
    background: #fff;
    color: var(--brand2);
    border-color: rgba(59, 130, 246, .18);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .08);
}

.tab-btn svg {
    opacity: .7;
    flex-shrink: 0;
}

.tab-btn.active svg {
    opacity: 1;
}

/* ── Section Headers ── */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--txt);
    letter-spacing: -.02em;
}

.section-title svg {
    color: var(--brand);
    flex-shrink: 0;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ── Video Cards ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-card {
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    transition: all .35s ease;
    opacity: 0;
    transform: translateY(20px);
}

.video-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .18);
    transform: translateY(-4px);
}

.video-card.visible:hover {
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1E3A8A, #1D4ED8);
    overflow: hidden;
}

.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-body {
    padding: 18px 20px 20px;
}

.video-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.vbadge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.vbadge.hot {
    background: rgba(239, 68, 68, .08);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, .18);
}

.vbadge.best {
    background: rgba(16, 185, 129, .08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, .18);
}

.vbadge.new {
    background: rgba(59, 130, 246, .08);
    color: #1D4ED8;
    border: 1px solid rgba(59, 130, 246, .18);
}

.vbadge.exam {
    background: rgba(139, 92, 246, .08);
    color: #7C3AED;
    border: 1px solid rgba(139, 92, 246, .18);
}

.vbadge.level {
    background: var(--soft);
    color: var(--muted);
    border: 1px solid rgba(0, 0, 0, .08);
}

.video-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--txt);
    letter-spacing: -.01em;
}

.video-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.video-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vm-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted2);
}

.vm-item svg {
    opacity: .6;
}

.video-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

/* ── PDF Cards ── */
.pdf-card {
    transition: all .35s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pdf-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pdf-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, .10);
    border-color: rgba(59, 130, 246, .18);
    transform: translateY(-4px);
}

.pdf-card.visible:hover {
    transform: translateY(-4px);
}

.pdf-icon-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pdf-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, .2);
}

.pdf-icon.grad-blue {
    background: linear-gradient(145deg, #3B82F6, #60A5FA);
}

.pdf-icon.grad-blue-light {
    background: linear-gradient(145deg, #60A5FA, #93C5FD);
}

.pdf-icon.grad-blue-dark {
    background: linear-gradient(145deg, #1D4ED8, #3B82F6);
}

.pdf-type {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .15);
    letter-spacing: .04em;
}

.pdf-type.bundle {
    color: #059669;
    background: rgba(16, 185, 129, .08);
    border-color: rgba(16, 185, 129, .15);
}

/* ── Book Cards (School Program) ── */
.book-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    box-shadow: 0 16px 48px rgba(59, 130, 246, .14);
    border-color: rgba(59, 130, 246, .18);
    transform: translateY(-6px);
}

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f4f8;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .4s ease;
}

.book-card:hover .book-cover-img {
    transform: scale(1.05);
}

.book-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.book-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a3060;
    margin: 0 0 12px;
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.book-info-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.book-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.book-note {
    font-size: 12px;
    color: #888;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}

.book-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.book-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    letter-spacing: .02em;
}

.book-btn.buy {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}

.book-btn.buy:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
    transform: translateY(-2px);
}

.book-btn.view {
    background: #fff;
    color: #2563EB;
    border-color: #2563EB;
}

.book-btn.view:hover {
    background: rgba(192, 57, 43, .08);
    color: #C0392B;
    border-color: #C0392B;
    box-shadow: 0 4px 14px rgba(192, 57, 43, .20);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .book-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* ── Exam Cards ── */
.exam-card {
    transition: all .35s ease;
    opacity: 0;
    transform: translateY(20px);
}

.exam-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.exam-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, .10);
    border-color: rgba(59, 130, 246, .18);
    transform: translateY(-4px);
}

.exam-card.visible:hover {
    transform: translateY(-4px);
}

.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.exam-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1E3A8A, #2563EB);
    box-shadow: 0 6px 20px rgba(30, 58, 138, .25);
}

.exam-icon span {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.exam-includes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.ei-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(59, 130, 246, .04);
    border: 1px solid rgba(59, 130, 246, .08);
    transition: .2s ease;
}

.ei-item:hover {
    background: rgba(59, 130, 246, .08);
    border-color: rgba(59, 130, 246, .15);
}

/* ── CTA Banner ── */
.cta-banner {
    position: relative;
    border-radius: 24px;
    padding: 48px 40px;
    background: linear-gradient(135deg, #1E3A8A, #1D4ED8 50%, #3B82F6);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 138, .25);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.cta-content p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.6;
    max-width: 52ch;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-actions .btn.primary {
    background: #fff;
    color: var(--brand2);
    border-color: rgba(255, 255, 255, .3);
}

.cta-actions .btn.primary:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, .2);
}

.cta-actions .btn.light {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
}

.cta-actions .btn.light:hover {
    background: rgba(255, 255, 255, .2);
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-orb.o1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, .3);
    top: -80px;
    right: -60px;
    animation: pulse-orb 5s ease-in-out infinite;
}

.cta-orb.o2 {
    width: 200px;
    height: 200px;
    background: rgba(34, 211, 238, .2);
    bottom: -60px;
    left: 30%;
    animation: pulse-orb 5s ease-in-out infinite 2s;
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .shop-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .shop-hero-visual {
        height: 200px;
    }

    .shop-hero-title {
        font-size: 32px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .shop-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .cta-banner {
        padding: 32px 24px;
    }

    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .shop-hero {
        padding: 24px 0 12px;
    }

    .shop-hero-title {
        font-size: 26px;
    }

    .shop-hero-desc {
        font-size: 14px;
    }

    .shop-hero-stats {
        gap: 16px;
    }

    .stat-val {
        font-size: 18px;
    }

    .shop-hero-visual {
        display: none;
    }

    .section-title {
        font-size: 22px;
    }

    .section-title svg {
        width: 22px;
        height: 22px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .video-title {
        font-size: 16px;
    }

    .video-meta {
        gap: 10px;
    }

    .cta-banner {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .cta-content h2 {
        font-size: 20px;
    }

    .hero-float-card {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Prevent text overflow on mobile */
    .shop-hero-title,
    .section-title,
    .video-title,
    .book-title,
    .cta-content h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .shop-hero-desc {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .video-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .book-title {
        font-size: 15px;
    }
}

/* ── Stagger animation for scroll reveal ── */
.video-card:nth-child(1) {
    transition-delay: .05s;
}

.video-card:nth-child(2) {
    transition-delay: .15s;
}

.video-card:nth-child(3) {
    transition-delay: .25s;
}

.video-card:nth-child(4) {
    transition-delay: .35s;
}

.pdf-card:nth-child(1) {
    transition-delay: .05s;
}

.pdf-card:nth-child(2) {
    transition-delay: .15s;
}

.pdf-card:nth-child(3) {
    transition-delay: .25s;
}

.exam-card:nth-child(1) {
    transition-delay: .05s;
}

.exam-card:nth-child(2) {
    transition-delay: .15s;
}

.exam-card:nth-child(3) {
    transition-delay: .25s;
}