/* Mayabin Pay — Single Product v6.1.5 (exact design) */

/* ============ RESET ============ */
.sp-pd-wrap,
.sp-pd-wrap * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, sans-serif; }
.sp-pd-wrap img { max-width: 100%; height: auto; display: block; }

/* ============ ROOT ============ */
.sp-pd-wrap {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #e11d48;
    --accent-hover: #be123c;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px 0 40px;
    min-height: 60vh;
}
.sp-pd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============ HERO ============ */
.sp-pd-hero {
    background: var(--bg-white);
    padding: 35px 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.sp-pd-badge {
    background: #dbeafe;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    line-height: 1.4;
}
.sp-pd-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
    word-wrap: break-word;
}
.sp-pd-hero-img-wrapper {
    margin: 20px auto 25px auto;
    max-width: 420px;
}
.sp-pd-main-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin: 0 auto;
}
.sp-pd-price-card {
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.sp-pd-current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}
.sp-pd-old-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
}
.sp-pd-discount-tag {
    background: var(--accent-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
}
.sp-pd-cta-btn {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: var(--accent-color);
    color: #fff !important;
    text-decoration: none;
    padding: 16px 25px;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
}
.sp-pd-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}
.sp-pd-alert-warn {
    background: #fff8e6;
    color: #6f5400;
    border: 1px solid #f3dc9b;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 8px;
    line-height: 1.5;
}

/* ============ SECTION HEADER ============ */
.sp-pd-section-header {
    text-align: center;
    margin-bottom: 25px;
}
.sp-pd-section-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    margin: 0;
    line-height: 1.3;
}
.sp-pd-section-header h2::after {
    content: '';
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ============ DETAILS SECTION ============ */
.sp-pd-details-section { margin-bottom: 25px; }
.sp-pd-details-box {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    text-align: center;
}
.sp-pd-details-box h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.sp-pd-details-list {
    list-style: none;
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 550px;
}
.sp-pd-details-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.sp-pd-details-list li:last-child { border-bottom: none; }
.sp-pd-icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    flex: 0 0 auto;
    line-height: 1.4;
}

/* ============ FEATURES GRID ============ */
.sp-pd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.sp-pd-feature-card {
    background: var(--bg-white);
    padding: 20px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.sp-pd-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.sp-pd-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}
.sp-pd-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}
.sp-pd-feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ============ CHECKOUT ============ */
.sp-pd-checkout { margin-bottom: 20px; }
.sp-pd-checkout-wrapper {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.sp-pd-err {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Summary */
.sp-pd-summary-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    text-align: center;
}
.sp-pd-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
    font-size: 0.95rem;
}
.sp-pd-summary-item span:first-child {
    flex: 1;
    color: var(--text-muted);
    min-width: 0;
    word-break: break-word;
    text-align: left;
}
.sp-pd-summary-item span:last-child {
    font-weight: 600;
    color: var(--text-main);
    flex: 0 0 auto;
}
.sp-pd-summary-disc span:last-child { color: #059669; }
.sp-pd-summary-total {
    border-top: 1px dashed var(--border-color);
    margin-top: 6px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}
.sp-pd-summary-total span:first-child,
.sp-pd-summary-total span:last-child {
    color: var(--accent-color);
    font-weight: 700;
}

/* Form */
.sp-pd-form-group {
    margin-bottom: 18px;
    text-align: left;
}
.sp-pd-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}
.sp-pd-form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
    color: var(--text-main);
    line-height: 1.4;
}
.sp-pd-form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Payment Methods Card */
.sp-pd-payment-methods-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: center;
}
.sp-pd-payment-methods-card p {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}
.sp-pd-gateways-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sp-pd-gateway-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.sp-pd-gateway-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.sp-pd-gateway-letter {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    flex: 0 0 auto;
}

/* Submit */
.sp-pd-submit-btn {
    width: 100%;
    background: #10b981;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transition: background 0.3s ease;
    font-family: inherit;
    line-height: 1.3;
}
.sp-pd-submit-btn:hover { background: #059669; }
.sp-pd-submit-btn:active { transform: translateY(1px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
    .sp-pd-wrap { padding: 16px 0 32px; }
    .sp-pd-container { padding: 0 15px; }
    .sp-pd-hero { padding: 26px 16px; margin-bottom: 20px; }
    .sp-pd-title { font-size: 1.6rem; margin-bottom: 16px; }
    .sp-pd-current-price { font-size: 1.8rem; }
    .sp-pd-old-price { font-size: 1.1rem; }
    .sp-pd-price-card { padding: 8px 20px; gap: 10px; margin-bottom: 20px; }
    .sp-pd-cta-btn { font-size: 1.1rem; padding: 14px 20px; }
    .sp-pd-section-header h2 { font-size: 1.4rem; }
    .sp-pd-details-box { padding: 20px 15px; }
    .sp-pd-details-box h3 { font-size: 1.15rem; }
    .sp-pd-details-list li { font-size: 1rem; padding: 9px 0; }
    .sp-pd-features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sp-pd-feature-card { padding: 16px 12px; }
    .sp-pd-feature-icon { font-size: 1.8rem; }
    .sp-pd-feature-card h4 { font-size: 0.98rem; }
    .sp-pd-feature-card p { font-size: 0.82rem; }
    .sp-pd-checkout-wrapper { padding: 22px 16px; }
    .sp-pd-summary-box { padding: 16px; margin-bottom: 20px; }
    .sp-pd-summary-item { font-size: 0.9rem; }
    .sp-pd-summary-total { font-size: 1.05rem; }
    .sp-pd-form-group input { padding: 12px 13px; font-size: 0.95rem; }
    .sp-pd-payment-methods-card { padding: 14px; }
    .sp-pd-gateway-badge { padding: 5px 9px; font-size: 0.82rem; gap: 5px; }
    .sp-pd-gateway-badge img { width: 18px; height: 18px; }
    .sp-pd-submit-btn { font-size: 1.1rem; padding: 14px; }
}

@media (max-width: 480px) {
    .sp-pd-title { font-size: 1.4rem; }
    .sp-pd-current-price { font-size: 1.6rem; }
    .sp-pd-old-price { font-size: 1rem; }
    .sp-pd-discount-tag { font-size: 0.75rem; padding: 2px 8px; }
    .sp-pd-section-header h2 { font-size: 1.25rem; }
    .sp-pd-features-grid { grid-template-columns: 1fr; }
    .sp-pd-checkout-wrapper { padding: 20px 14px; }
    .sp-pd-gateways-list { gap: 6px; }
    .sp-pd-submit-btn { font-size: 1rem; padding: 13px; }
}

@media (max-width: 359px) {
    .sp-pd-container { padding: 0 12px; }
    .sp-pd-hero { padding: 20px 14px; }
    .sp-pd-title { font-size: 1.2rem; }
    .sp-pd-current-price { font-size: 1.4rem; }
    .sp-pd-cta-btn { font-size: 0.95rem; padding: 12px 14px; }
    .sp-pd-details-box { padding: 16px 12px; }
    .sp-pd-checkout-wrapper { padding: 18px 12px; }
}
