﻿

.tool-card {
    min-height: 100%;
}

.tool-img {
    position: relative;
    height: 170px;
    overflow: hidden;
}

    .tool-img img {
        width: 100%;
        height: 170px;
        object-fit: cover;
    }

.tool-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    background: #198754;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

    .tool-badge.bg-primary {
        background: #0d6efd;
    }

    .tool-badge.bg-secondary {
        background: #6c757d;
    }

    .tool-badge.bg-success {
        background: #198754;
    }

.price-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.old-price {
    font-size: 13px;
    color: #6c757d;
    text-decoration: line-through;
}

.sale-price {
    font-size: 20px;
    font-weight: 800;
}

.discount-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220,53,69,.12);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.25);
}
/* ✅ MOBILE RIGHT-PADDING / OVERFLOW FIX */
@media (max-width: 575.98px) {
    html, body {
        overflow-x: hidden;
    }

    /* reduce container side padding on small screens */
    .custom-container.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* control bootstrap gutter so it doesn't push content */
    .row.g-3 {
        --bs-gutter-x: 12px;
    }

        /* make columns not create extra width */
        .row.g-3 > [class*="col-"] {
            padding-left: 6px !important;
            padding-right: 6px !important;
        }

    /* keep card/image inside width */
    .tool-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tool-img,
    .tool-img img {
        width: 100% !important;
    }
}

/* ✅ extra safety: if any element still forces width */
.tool-card, .tool-img, img, .card {
    max-width: 100%;
}
/* =========================================================
   iOS / Apple-like Payment Block (Only)
   Target: #paymentBlock and its inner classes
   ========================================================= */

#paymentBlock.ios-card-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}

    #paymentBlock.ios-card-wrap .card-body {
        padding: 18px;
    }

/* headings */
#paymentBlock .text-en {
    font-size: .95rem;
    line-height: 1.35;
}

#paymentBlock .text-ur {
    font-size: .95rem;
    line-height: 1.6;
}

/* boxes */
#paymentBlock .ios-paybox,
#paymentBlock .ios-qrbox {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.07);
    background: rgba(255,255,255,.85);
    box-shadow: 0 10px 30px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8);
    padding: 14px;
}

#paymentBlock .ios-qrbox {
    padding: 14px;
}

/* till row */
#paymentBlock #tillId {
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
}

/* =========================================================
   Apple-like buttons (ghost + whatsapp)
   ========================================================= */
#paymentBlock .ios-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
    box-shadow: 0 10px 26px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.65);
}

    #paymentBlock .ios-btn:active {
        transform: translateY(1px) scale(.99);
    }

    #paymentBlock .ios-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
    }

/* small button */
#paymentBlock .ios-btn-sm {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
}

/* Ghost button (Back / Copy / Download) */
#paymentBlock .ios-btn-ghost {
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.10);
    color: #111;
}

    #paymentBlock .ios-btn-ghost:hover {
        filter: brightness(.98);
    }

/* WhatsApp primary */
#paymentBlock .ios-btn-whatsapp {
    color: #fff;
    background: linear-gradient(180deg, #27d367 0%, #0fb256 100%);
    box-shadow: 0 14px 34px rgba(15,178,86,.30), inset 0 1px 0 rgba(255,255,255,.30);
}

    #paymentBlock .ios-btn-whatsapp:hover {
        filter: saturate(1.05) brightness(1.02);
    }

/* =========================================================
   Mobile fixes (your issue: WhatsApp button + layout)
   ========================================================= */
@media (max-width: 576px) {

    #paymentBlock.ios-card-wrap .card-body {
        padding: 14px;
    }

    #paymentBlock .ios-paybox,
    #paymentBlock .ios-qrbox {
        padding: 12px;
        border-radius: 14px;
    }

    /* Make both bottom buttons full width & same height */
    #paymentBlock .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch;
    }

    #paymentBlock #btnBack,
    #paymentBlock #btnWhatsApp {
        width: 100%;
        min-height: 46px;
    }

    /* Make "Copy" not break the row */
    #paymentBlock #btnCopyTill {
        white-space: nowrap;
    }

    /* Better wrapping for till section */
    #paymentBlock .ios-paybox .d-flex.align-items-center.gap-2 {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    #paymentBlock #tillId {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   Optional: QR image polish
   ========================================================= */
#paymentBlock .ios-qrbox img {
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
/* English text */
.text-en {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 12.5px;
    color: rgba(60,60,67,.75);
    line-height: 1.4;
}

/* Urdu text */
.text-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 12.5px;
    color: rgba(60,60,67,.75);
    line-height: 1.9;
    direction: rtl;
    text-align: right;
    display: block;
    margin-top: 4px;
}
