.qa-site-footer {
    background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 45%), var(--qa-footer-bg, #161616);
    color: var(--qa-footer-text, #d8d8d8);
    padding: 28px 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}
.qa-site-footer * { box-sizing: border-box; }
.qa-site-footer__inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}
.qa-site-footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.88fr 1.06fr 1.28fr 1.18fr;
    gap: 30px;
    align-items: start;
}
.qa-site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.qa-site-footer__logo {
    max-width: 110px;
    width: 100%;
    height: auto;
    display: block;
}
.qa-site-footer__tagline {
    margin-top: 8px;
    white-space: pre-line;
    color: #9f9786;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: 1.3px;
    font-weight: 700;
}
.qa-site-footer__column h3 {
    margin: 0 0 10px;
    color: var(--qa-footer-heading, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}
.qa-site-footer__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qa-site-footer__column li {
    margin: 0 0 4px;
    font-size: 9px;
    line-height: 1.4;
}
.qa-site-footer__column a {
    color: var(--qa-footer-text, #d8d8d8);
    text-decoration: none;
}
.qa-site-footer__column a:hover { color: var(--qa-footer-heading, #fff); }
.qa-site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}
.qa-site-footer__icon {
    width: 16px;
    height: 16px;
    color: #b9b59e;
    display: inline-flex;
    flex: 0 0 16px;
}
.qa-site-footer__icon svg,
.qa-site-footer__social-icons svg {
    width: 100%;
    height: 100%;
    display: block;
}
.qa-site-footer__social-block { margin-bottom: 16px; }
.qa-site-footer__social-icons {
    display: flex;
    gap: 11px;
}
.qa-site-footer__social-icons a {
    width: 38px;
    height: 38px;
    border: 1px solid #3f5e50;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b9b59e;
    text-decoration: none;
}
.qa-site-footer__social-icons a:hover {
    color: #fff;
    border-color: #fff;
}
.qa-site-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.qa-site-footer__payments img {
    height: 29px;
    width: auto;
    display: block;
}
.qa-site-footer__bottom {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid var(--qa-footer-divider, rgba(255,255,255,0.18));
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 9px;
    line-height: 1.4;
}
.qa-site-footer__bottom-tagline {
    text-align: right;
    color: var(--qa-footer-text, #d8d8d8);
}
@media (max-width: 1024px) {
    .qa-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .qa-site-footer__social-payments {
        grid-column: 1 / -1;
    }
}
@media (max-width: 767px) {
    .qa-site-footer {
        padding-top: 28px;
        padding-bottom: 16px;
    }
    .qa-site-footer__inner {
        width: min(100%, calc(100% - 28px));
    }
    .qa-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .qa-site-footer__brand {
        justify-content: center;
        text-align: left;
        gap: 12px;
    }
    .qa-site-footer__logo {
        max-width: 140px;
    }
    .qa-site-footer__column,
    .qa-site-footer__social-payments {
        text-align: center;
    }
    .qa-site-footer__contact li {
        justify-content: center;
    }
    .qa-site-footer__social-icons,
    .qa-site-footer__payments {
        justify-content: center;
    }
    .qa-site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .qa-site-footer__bottom-tagline {
        text-align: center;
    }
}


/* QA Footer v2 scale corrections */
.qa-site-footer__social-payments { min-width: 225px; }
.qa-site-footer__social-icons a { width: 38px; height: 38px; min-width: 38px; background:#202320; border-color:#3f5e50; color:#b9b59e; }
.qa-site-footer__social-icons a svg { width:18px; height:18px; }
.qa-site-footer__payments { flex-wrap: nowrap; gap:5px; align-items:center; }
.qa-site-footer__payments img { width:auto; height:auto; max-width:none; max-height:none; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; object-fit:contain; }
.qa-site-footer__payments img:nth-child(1) { width:35px; min-width:35px; max-width:35px; height:21px; min-height:21px; max-height:21px; }
.qa-site-footer__payments img:nth-child(2) { width:34px; min-width:34px; max-width:34px; height:22px; min-height:22px; max-height:22px; }
.qa-site-footer__payments img:nth-child(3) { width:52px; min-width:52px; max-width:52px; height:21px; min-height:21px; max-height:21px; }
.qa-site-footer__payments img:nth-child(4) { width:50px; min-width:50px; max-width:50px; height:22px; min-height:22px; max-height:22px; }
.qa-site-footer__payments-block h3, .qa-site-footer__social-block h3 { font-size:13px; }
.qa-site-footer__tagline { color:#9f9786; font-size:9px; }
@media (max-width: 767px) {
  .qa-site-footer__social-payments { min-width:0; }
  .qa-site-footer__social-icons a { width:34px; height:34px; min-width:34px; }
  .qa-site-footer__social-icons a svg { width:16px; height:16px; }
  .qa-site-footer__payments { flex-wrap:nowrap; gap:5px; }
  .qa-site-footer__payments img { height:22px; max-height:22px; }
}


/* QA Footer v6 - editable logo paragraph + copyright link */
.qa-site-footer__brand-wrap {
    min-width: 0;
}

.qa-site-footer__brand-description {
    margin: 14px 0 0;
    max-width: 245px;
    color: var(--qa-footer-text, #d8d8d8);
    font-size: 10px;
    line-height: 1.55;
    font-weight: 400;
}

.qa-site-footer__copyright a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.qa-site-footer__copyright a:hover,
.qa-site-footer__copyright a:focus {
    color: var(--qa-footer-accent, #d2a94c);
    text-decoration: none;
}

@media (max-width: 767px) {
    .qa-site-footer__brand-wrap {
        text-align: center;
    }

    .qa-site-footer__brand-description {
        max-width: 320px;
        margin: 12px auto 0;
        text-align: center;
    }
}


/* =========================================================
   QA Footer v6.1
   Larger/lower brand paragraph + sharper payment logos
   ========================================================= */

.qa-site-footer__brand-description {
    margin-top: 18px !important;
    max-width: 255px !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
}

/* Keep vector payment marks crisp and centered */
.qa-site-footer__payments img {
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Easypaisa + JazzCash: slightly larger for better readability */
.qa-site-footer__payments > img:nth-of-type(3) {
    width: 58px !important;
    height: 24px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

.qa-site-footer__payments > img:nth-of-type(4) {
    width: 56px !important;
    height: 24px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

@media (max-width: 767px) {
    .qa-site-footer__brand-description {
        margin-top: 16px !important;
        max-width: 300px !important;
        font-size: 11px !important;
        line-height: 1.6 !important;
    }
}


/* =========================================================
   QA Footer v6.2 - crisp payment logos
   ========================================================= */

.qa-site-footer__payments {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.qa-site-footer__payments .qa-payment-logo {
    display: block !important;
    width: auto !important;
    height: 24px !important;
    max-height: 24px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    object-fit: contain !important;
    image-rendering: auto !important;
}


/* =========================================================
   QA Footer v6.3 - ORIGINAL payment icons at native size
   ========================================================= */

/* Do not enlarge the low-resolution originals. Showing them at their
   actual pixel dimensions keeps them as sharp as possible. */
.qa-site-footer__payments .qa-payment-logo--2 {
    width: 52px !important;
    height: 21px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 21px !important;
    max-height: 21px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
    image-rendering: auto !important;
}

.qa-site-footer__payments .qa-payment-logo--3 {
    width: 50px !important;
    height: 22px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
    image-rendering: auto !important;
}


/* =========================================================
   QA Footer v6.4
   Mobile only: move Quick Links below, beside Our Products.
   Desktop/tablet remain unchanged.
   ========================================================= */

@media (max-width: 767px) {

    /* Force a clean 2-column mobile footer layout */
    #qa-site-footer .qa-site-footer__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        column-gap: 18px !important;
        row-gap: 18px !important;
        align-items: start !important;
    }

    /* 1: Brand stays top-left */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__brand-wrap {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
    }

    /* 3rd DOM child = Our Products -> left column, second row */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(3) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: start !important;
    }

    /* 2nd DOM child = Quick Links -> move to right column, second row */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    /* Contact Info goes below both columns */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__contact {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    /* Social + payments below Contact */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__social-payments {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
    }

    /* Keep mobile columns readable/aligned */
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(2),
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(3) {
        text-align: left !important;
    }

    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(2) h3,
    #qa-site-footer .qa-site-footer__grid > .qa-site-footer__column:nth-child(3) h3 {
        margin-top: 0 !important;
    }
}

/* =========================================================
   QA Footer v6.5 - YouTube removed + NayaPay/Raast/Meezan
   ========================================================= */
.qa-site-footer__payments {
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-width: 245px;
}

.qa-site-footer__payments .qa-payment-logo--4 {
    width: 64px !important;
    height: 24px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

.qa-site-footer__payments .qa-payment-logo--5 {
    width: 60px !important;
    height: 24px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

.qa-site-footer__payments .qa-payment-logo--6 {
    width: 76px !important;
    height: 24px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

@media (max-width: 767px) {
    #qa-site-footer .qa-site-footer__payments {
        justify-content: center !important;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================================
   QA Footer v6.6 - payment cleanup + larger brand text
   ========================================================= */
#qa-site-footer .qa-site-footer__payments {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:8px !important;
    max-width:300px !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo {
    object-fit:contain !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo--0 {
    width:40px !important; min-width:40px !important; max-width:40px !important;
    height:24px !important; min-height:24px !important; max-height:24px !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo--1 {
    width:40px !important; min-width:40px !important; max-width:40px !important;
    height:24px !important; min-height:24px !important; max-height:24px !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo--2 {
    width:82px !important; min-width:82px !important; max-width:82px !important;
    height:28px !important; min-height:28px !important; max-height:28px !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo--3 {
    width:76px !important; min-width:76px !important; max-width:76px !important;
    height:28px !important; min-height:28px !important; max-height:28px !important;
}
#qa-site-footer .qa-site-footer__payments .qa-payment-logo--4 {
    width:96px !important; min-width:96px !important; max-width:96px !important;
    height:28px !important; min-height:28px !important; max-height:28px !important;
}
@media (max-width:767px){
  #qa-site-footer .qa-site-footer__payments{
    justify-content:center !important;
    max-width:300px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}
