/* E-Book purchase page (ebook_buy.php) */

.ebuy-cover.t1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.ebuy-cover.t2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.ebuy-cover.t3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.ebuy-cover.t4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.ebuy-cover.t5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ebuy-cover.t6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.ebuy-cover.t7 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.ebuy-cover.t8 { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); }

.ebuy-topbar-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.ebuy-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 18px 0 8px;
    border-bottom: 1px solid #eef2f8;
}

.ebuy-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.ebuy-breadcrumb a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 500;
}

.ebuy-breadcrumb a:hover {
    text-decoration: underline;
}

.ebuy-breadcrumb span {
    color: #0f172a;
    font-weight: 600;
}

.ebuy-main {
    padding: 36px 0 80px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.ebuy-showcase {
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(10, 15, 44, 0.06);
}

.ebuy-cover-wrap {
    position: relative;
    padding: 32px 32px 0;
}

.ebuy-cover {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(10, 15, 44, 0.18);
}

.ebuy-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebuy-cover-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.ebuy-cover-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #0a0f2c;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ebuy-cover-glow {
    position: absolute;
    inset: auto 10% -18px;
    height: 36px;
    background: radial-gradient(ellipse at center, rgba(67, 56, 202, 0.22) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.ebuy-info {
    padding: 28px 32px 32px;
}

.ebuy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ebuy-tag {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ebuy-tag.outline {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.ebuy-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #0a0f2c;
    line-height: 1.25;
    margin-bottom: 16px;
}

.ebuy-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.ebuy-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.ebuy-rating i {
    color: #f59e0b;
    fill: #f59e0b;
}

.ebuy-rating strong {
    color: #0f172a;
    font-weight: 700;
}

.ebuy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.ebuy-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
}

.ebuy-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.ebuy-spec {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f8;
    border-radius: 14px;
}

.ebuy-spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebuy-spec-icon.si-1 {
    background: #eef2ff;
    color: #4338ca;
}

.ebuy-spec-icon.si-2 {
    background: #ecfdf5;
    color: #059669;
}

.ebuy-spec-icon.si-3 {
    background: #fff7ed;
    color: #ea580c;
}

.ebuy-spec-icon.si-4 {
    background: #fdf2f8;
    color: #db2777;
}

.ebuy-spec strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.ebuy-spec span {
    font-size: 12px;
    color: #64748b;
}

.ebuy-includes h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0a0f2c;
    margin-bottom: 12px;
}

.ebuy-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.ebuy-includes li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.ebuy-includes li i {
    color: #059669;
    flex-shrink: 0;
}

.ebuy-purchase-card {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 16px 48px rgba(10, 15, 44, 0.08);
}

.ebuy-purchase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.ebuy-purchase-label {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0a0f2c;
}

.ebuy-purchase-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 20px;
}

.ebuy-price-block {
    padding: 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    margin-bottom: 14px;
}

.ebuy-price-main {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    margin-bottom: 8px;
}

.ebuy-price-currency {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4338ca;
    margin-top: 8px;
    margin-right: 2px;
}

.ebuy-price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #0a0f2c;
}

.ebuy-price-mrp {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.ebuy-price-mrp del {
    color: #94a3b8;
}

.ebuy-save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.ebuy-price-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 20px;
}

.ebuy-purchase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.ebuy-purchase-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.ebuy-purchase-features li i {
    color: #4338ca;
    flex-shrink: 0;
}

.ebuy-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(67, 56, 202, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.ebuy-cta:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(67, 56, 202, 0.42);
}

.ebuy-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.ebuy-cta-sub {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 500;
}

.ebuy-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.ebuy-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 12px 8px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.ebuy-trust-item i {
    color: #4338ca;
}

.ebuy-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
}

.ebuy-guarantee i {
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
}

.ebuy-guarantee strong {
    display: block;
    font-size: 13px;
    color: #065f46;
    margin-bottom: 4px;
}

.ebuy-guarantee p {
    font-size: 12px;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .ebuy-purchase-card {
        position: static;
    }

    .ebuy-cover {
        height: 220px;
    }

    .ebuy-info {
        padding: 22px 20px 24px;
    }

    .ebuy-cover-wrap {
        padding: 20px 20px 0;
    }
}

@media (max-width: 576px) {
    .ebuy-specs {
        grid-template-columns: 1fr;
    }

    .ebuy-trust-grid {
        grid-template-columns: 1fr;
    }

    .ebuy-price-amount {
        font-size: 36px;
    }
}
