/* =====================================================================
   Footer - premium MOBILE skin (<= 767px only; tablet/desktop untouched)
   Useful Link + My Account sit side by side as two cards.
   Markup hooks added in inc/footer.blade.php:
     .ft-brand  .ft-contact  .ft-links  .ft-account  .ft-card
   Re-theme: change --ft-accent / --ft-accent-2.
   ===================================================================== */
@media (max-width: 767.98px) {
    .footer {
        --ft-accent: #2f6bff;
        --ft-accent-2: #6a5cff;
        --ft-warm: #f58a1f;
        --ft-line: rgba(255, 255, 255, .08);
        --ft-card: rgba(255, 255, 255, .045);
        --ft-text: rgba(255, 255, 255, .72);
        background: linear-gradient(180deg, #12274a 0%, #0d1b33 55%, #0a1426 100%);
        /* keep the copyright row clear of the fixed bottom navbar */
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        position: relative;
    }
    .footer::before {
        content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
        background: linear-gradient(90deg, var(--ft-accent), var(--ft-accent-2) 55%, var(--ft-warm));
    }
    .footer .footer-top { padding: 26px 0 6px; }
    .footer .footer-top > .container { padding-left: 12px !important; padding-right: 12px !important; }
    .footer .footer-top .row { margin-left: -6px; margin-right: -6px; }
    .footer .footer-top .row > [class*="col"] { padding-left: 6px; padding-right: 6px; margin-bottom: 12px; }
    .footer .footer-top .row > [class*="col"] > .col { padding-left: 0; padding-right: 0; }

    /* ---------- brand + subscribe ---------- */
    .footer .ft-brand { margin-bottom: 18px; }
    .footer .ft-brand > .col { padding: 0 6px; }
    .footer .ft-brand img { height: 46px; width: auto; max-width: 70%; }
    .footer .ft-brand p {
        margin: 12px auto 16px !important; max-width: 34em;
        font-size: 13px; line-height: 1.65; color: var(--ft-text);
    }
    .footer .ft-brand .d-inline-block { display: block !important; }
    .footer .ft-brand .form-inline { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
    .footer .ft-brand .form-inline .form-group { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; }
    .footer .ft-brand .form-control {
        width: 100%; height: 46px; padding: 0 16px; border-radius: 999px;
        background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
        color: #fff; font-size: 13.5px; box-shadow: none;
    }
    .footer .ft-brand .form-control::placeholder { color: rgba(255, 255, 255, .5); }
    .footer .ft-brand .form-control:focus { border-color: var(--ft-accent); background: rgba(255, 255, 255, .1); }
    .footer .ft-brand .btn {
        flex: 0 0 auto; height: 46px; padding: 0 20px; margin: 0; border: 0; border-radius: 999px;
        background: linear-gradient(135deg, var(--ft-accent), var(--ft-accent-2)) !important; color: #fff !important;
        font-size: 13.5px; font-weight: 700; text-transform: none;
        box-shadow: 0 8px 20px rgba(47, 107, 255, .35);
    }

    /* ---------- cards (contact / useful link / my account) ---------- */
    .footer .ft-card {
        height: 100%; padding: 16px 14px 12px !important;
        background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 18px;
        text-align: left !important;
    }
    .footer .ft-account .ft-card { padding: 16px 14px 14px !important; }
    .footer .ft-card .col, .footer .ft-card .mt-4 { text-align: left !important; }
    .footer .ft-card .col { padding-left: 0 !important; padding-right: 0 !important; flex: none; width: 100%; max-width: 100%; }
    .footer .ft-card .heading {
        position: relative; margin: 0 0 12px !important; padding-bottom: 9px;
        font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .14em;
        color: #fff !important; text-align: left;
    }
    .footer .ft-card .heading::after {
        content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 3px; border-radius: 3px;
        background: linear-gradient(90deg, var(--ft-accent), var(--ft-accent-2));
    }

    /* link lists */
    .footer .ft-card ul.footer-links { margin: 0; padding: 0; }
    .footer .ft-card ul.footer-links > li + li { border-top: 1px solid var(--ft-line); }
    .footer .ft-links .footer-links > li > a,
    .footer .ft-account .footer-links > li > a {
        display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 0;
        font-size: 13.5px; line-height: 1.3; color: var(--ft-text); word-break: break-word;
        transition: color .15s ease, padding-left .15s ease;
    }
    .footer .ft-links .footer-links > li > a::before,
    .footer .ft-account .footer-links > li > a::before {
        content: ""; flex: 0 0 auto; width: 6px; height: 6px;
        border-top: 1.6px solid var(--ft-warm); border-right: 1.6px solid var(--ft-warm);
        transform: rotate(45deg); margin-right: 2px;
    }
    .footer .ft-links .footer-links > li > a:active,
    .footer .ft-account .footer-links > li > a:active { color: #fff; padding-left: 3px; }

    /* be a seller */
    .footer .ft-account .mt-4 { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--ft-line); }
    .footer .ft-account .mt-4 .heading { margin-bottom: 10px !important; }
    .footer .ft-account .btn {
        display: block; width: 100%; padding: 11px 10px; border: 0; border-radius: 12px; text-align: center;
        background: linear-gradient(135deg, var(--ft-warm), #ff6a00) !important; color: #fff !important;
        font-size: 13.5px; font-weight: 700; text-transform: none;
        box-shadow: 0 8px 18px rgba(245, 138, 31, .32);
    }

    /* contact card: icon rows */
    .footer .ft-contact { order: -0; }
    .footer .ft-contact .ft-card { height: auto; }
    .footer .contact-widget > li { position: relative; padding: 4px 0 10px 46px; min-height: 48px; text-align: left; }
    .footer .contact-widget > li:last-child { padding-bottom: 2px; }
    .footer .contact-widget > li::before {
        position: absolute; left: 0; top: 4px; width: 34px; height: 34px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font: normal 15px/1 'FontAwesome'; color: #8fb0ff; background: rgba(47, 107, 255, .16);
    }
    .footer .contact-widget > li:nth-child(1)::before { content: "\f041"; }
    .footer .contact-widget > li:nth-child(2)::before { content: "\f095"; }
    .footer .contact-widget > li:nth-child(3)::before { content: "\f0e0"; }
    .footer .contact-widget .opacity-5 {
        opacity: 1; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
        color: rgba(255, 255, 255, .45);
    }
    .footer .contact-widget li > span.d-block:not(.opacity-5) {
        font-size: 14px; line-height: 1.4; color: #fff; word-break: break-word;
    }
    .footer .contact-widget a { color: #8fb0ff; }

    /* ---------- bottom bar ---------- */
    .footer .footer-bottom { padding: 18px 0 8px !important; background: transparent; border-top: 1px solid var(--ft-line); }
    .footer .footer-bottom .row { flex-direction: column; align-items: stretch; margin: 0; }
    .footer .footer-bottom .row > [class*="col"] { width: 100%; max-width: none; padding: 0 12px; }
    .footer .footer-bottom .row > [class*="col"]:nth-child(2) { order: 1; }   /* social */
    .footer .footer-bottom .row > [class*="col"]:nth-child(3) { order: 2; }   /* payments */
    .footer .footer-bottom .row > [class*="col"]:nth-child(1) { order: 3; }   /* copyright */

    .footer .social-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px !important; padding: 0; }
    .footer .social-nav li { display: block; margin: 0; }
    .footer .social-nav a {
        width: 40px; height: 40px; line-height: 40px; border-radius: 50%;
        background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
        font-size: 17px; color: #fff; transition: transform .15s ease, background .15s ease;
    }
    .footer .social-nav a,
    .footer .social-nav a:hover,
    .footer .social-nav a:focus {
        /* neutralise main.css "model-2" (long diagonal text-shadow + per-network colours) */
        text-shadow: none !important; background: rgba(255, 255, 255, .08) !important; color: #fff !important;
        margin: 0 !important; overflow: visible;
    }
    .footer .social-nav a:active { transform: scale(.94); background: var(--ft-accent) !important; }

    .footer .payment_methods { text-align: center !important; margin-bottom: 14px; padding-bottom: 0 !important; }
    .footer .payment_methods ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
    .footer .payment_methods li { margin: 0; padding: 0; }
    .footer .payment_methods img { height: 26px; width: auto; padding: 3px 7px; border-radius: 7px; background: #fff; }

    .footer .copyright { text-align: center !important; font-size: 12px; color: rgba(255, 255, 255, .55); }
    .footer .copyright .copy-links {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none;
    }
    .footer .copyright .copy-links li { margin: 0; padding: 0; }
    .footer .copyright a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .footer * { transition: none !important; }
}


/* =====================================================================
   Footer - premium DESKTOP / TABLET skin (>= 768px)
   ===================================================================== */
@media (min-width: 768px) {
    .footer {
        --ft-accent: #2f6bff;
        --ft-accent-2: #6a5cff;
        --ft-warm: #f58a1f;
        --ft-line: rgba(255, 255, 255, .09);
        --ft-text: rgba(255, 255, 255, .72);
        background: linear-gradient(180deg, #12274a 0%, #0d1b33 60%, #0a1426 100%);
        position: relative;
    }
    .footer::before {
        content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
        background: linear-gradient(90deg, var(--ft-accent), var(--ft-accent-2) 55%, var(--ft-warm));
    }
    .footer .footer-top { padding: 58px 0 34px; }

    /* ---------- brand + subscribe ---------- */
    .footer .ft-brand img { height: 52px; width: auto; }
    .footer .ft-brand p {
        margin-top: 18px !important; max-width: 30em;
        font-size: 14.5px; line-height: 1.7; color: var(--ft-text);
    }
    .footer .ft-brand .form-inline { display: flex; flex-wrap: nowrap; max-width: 440px; }
    .footer .ft-brand .form-inline .form-group { flex: 1 1 auto; min-width: 0; margin: 0; }
    .footer .ft-brand .form-control {
        width: 100%; height: 48px; padding: 0 20px;
        border-radius: 999px 0 0 999px; border: 1px solid rgba(255, 255, 255, .16); border-right: 0;
        background: rgba(255, 255, 255, .07); color: #fff; font-size: 14px; box-shadow: none;
    }
    .footer .ft-brand .form-control::placeholder { color: rgba(255, 255, 255, .5); }
    .footer .ft-brand .form-control:focus { background: rgba(255, 255, 255, .11); border-color: var(--ft-accent); }
    .footer .ft-brand .btn {
        height: 48px; margin: 0; padding: 0 26px; border: 0; border-radius: 0 999px 999px 0;
        background: linear-gradient(135deg, var(--ft-accent), var(--ft-accent-2)) !important; color: #fff !important;
        font-size: 14px; font-weight: 700; text-transform: none;
        box-shadow: 0 10px 24px rgba(47, 107, 255, .35); transition: filter .15s ease, transform .15s ease;
    }
    .footer .ft-brand .btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

    /* ---------- column headings ---------- */
    .footer .footer-top .heading {
        position: relative; margin-bottom: 20px !important; padding-bottom: 12px;
        font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .14em; color: #fff !important;
    }
    .footer .footer-top .heading::after {
        content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px;
        background: linear-gradient(90deg, var(--ft-accent), var(--ft-accent-2));
    }
    .footer .text-center .heading::after { left: 50%; transform: translateX(-50%); }
    @media (min-width: 768px) { .footer .footer-top .text-md-left .heading::after { left: 0; transform: none; } }

    /* ---------- link lists ---------- */
    .footer .ft-links .footer-links > li > a,
    .footer .ft-account .footer-links > li > a {
        display: inline-flex; align-items: center; padding: 6px 0; font-size: 14px; color: var(--ft-text);
        transition: color .15s ease, transform .15s ease;
    }
    .footer .ft-links .footer-links > li > a,
    .footer .ft-account .footer-links > li > a { position: relative; }
    .footer .ft-links .footer-links > li > a::before,
    .footer .ft-account .footer-links > li > a::before {
        content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; opacity: 0;
        border-top: 1.6px solid var(--ft-warm); border-right: 1.6px solid var(--ft-warm);
        transform: rotate(45deg) translate(-3px, 3px); transition: opacity .15s ease, transform .15s ease;
    }
    .footer .ft-links .footer-links > li > a:hover,
    .footer .ft-account .footer-links > li > a:hover { color: #fff; }
    .footer .ft-links .footer-links > li > a:hover::before,
    .footer .ft-account .footer-links > li > a:hover::before { opacity: 1; transform: rotate(45deg); }

    /* ---------- contact rows with icons ---------- */
    .footer .contact-widget > li { position: relative; padding: 0 0 16px 50px; min-height: 52px; }
    .footer .contact-widget > li:last-child { padding-bottom: 0; }
    .footer .contact-widget > li::before {
        position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font: normal 15px/1 'FontAwesome'; color: #8fb0ff; background: rgba(47, 107, 255, .16);
    }
    .footer .contact-widget > li:nth-child(1)::before { content: "\f041"; }
    .footer .contact-widget > li:nth-child(2)::before { content: "\f095"; }
    .footer .contact-widget > li:nth-child(3)::before { content: "\f0e0"; }
    .footer .contact-widget .opacity-5 {
        opacity: 1; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
    }
    .footer .contact-widget li > span.d-block:not(.opacity-5) { font-size: 14px; line-height: 1.5; color: #fff; }
    .footer .contact-widget a { color: #8fb0ff; }
    .footer .contact-widget a:hover { color: #fff; }

    /* ---------- be a seller ---------- */
    .footer .ft-account .mt-4 { margin-top: 26px !important; }
    .footer .ft-account .btn {
        display: inline-block; padding: 11px 26px; border: 0; border-radius: 999px;
        background: linear-gradient(135deg, var(--ft-warm), #ff6a00) !important; color: #fff !important;
        font-size: 14px; font-weight: 700; text-transform: none;
        box-shadow: 0 10px 22px rgba(245, 138, 31, .32); transition: transform .15s ease, filter .15s ease;
    }
    .footer .ft-account .btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

    /* ---------- bottom bar ---------- */
    .footer .footer-bottom { padding: 20px 0 !important; background: rgba(0, 0, 0, .22); border-top: 1px solid var(--ft-line); }
    .footer .footer-bottom .row { align-items: center; }
    .footer .copyright { font-size: 13px; color: rgba(255, 255, 255, .55); }
    .footer .copyright .copy-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
    .footer .copyright .copy-links li { margin: 0; padding: 0; }
    .footer .copyright a { color: rgba(255, 255, 255, .78); transition: color .15s ease; }
    .footer .copyright a:hover { color: #fff; }

    .footer .social-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0; }
    .footer .social-nav li { display: block; margin: 0; }
    .footer .social-nav a,
    .footer .social-nav a:hover,
    .footer .social-nav a:focus {
        /* neutralise main.css "model-2" diagonal text-shadow + flat network colours */
        text-shadow: none !important; margin: 0 !important; overflow: visible;
        width: 40px; height: 40px; line-height: 40px; border-radius: 50%; font-size: 17px; color: #fff !important;
        background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .12);
        transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }
    .footer .social-nav a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
    .footer .social-nav a.facebook:hover { background: #1877f2 !important; }
    .footer .social-nav a.instagram:hover { background: linear-gradient(45deg, #f9a03c, #e1306c 55%, #833ab4) !important; }
    .footer .social-nav a.twitter:hover { background: #1d9bf0 !important; }
    .footer .social-nav a.youtube:hover { background: #ff0000 !important; }
    .footer .social-nav a.google-plus:hover { background: #dd4b39 !important; }

    .footer .payment_methods { padding-bottom: 0 !important; }
    .footer .payment_methods ul { margin: 0; padding: 0; }
    .footer .payment_methods li { margin-left: 8px; }
    .footer .payment_methods img { height: 26px; width: auto; padding: 3px 7px; border-radius: 7px; background: #fff; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    /* tablet: 3 columns on the second row, tidy spacing */
    .footer .footer-top .row > [class*="col"] { margin-bottom: 26px; }
    .footer .footer-bottom .row > [class*="col"] { margin-bottom: 8px; }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
    .footer * { transition: none !important; }
}

/* =====================================================================
   Footer policy strip (Seller / Return / Support / My Profile)
   DESKTOP only (>= 992px) - the strip is d-none d-lg-block in markup.
   No blade change needed. Re-theme via the 3 variables below.
   ===================================================================== */
@media (min-width: 992px) {
    .footer-top-bar {
        --fs-accent: #2f6bff;
        --fs-accent-2: #6a5cff;
        --fs-warm: #f58a1f;
        padding: 26px 0 !important;
        border: 0 !important;
        background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%) !important;
    }
    .footer-top-bar .container { max-width: 1140px; }
    .footer-top-bar .row {
        background: #fff;
        border: 1px solid rgba(18, 39, 74, .07);
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(18, 39, 74, .08), 0 2px 6px rgba(18, 39, 74, .04);
        overflow: hidden;
    }
    .footer-top-bar .col-lg-3,
    .footer-top-bar .col-lg-3:first-child {
        border: 0;
        position: relative;
    }
    .footer-top-bar .col-lg-3 + .col-lg-3::before {
        content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
        background: linear-gradient(180deg, transparent, rgba(18, 39, 74, .12), transparent);
    }

    .footer-top-bar .footer-top-box {
        padding: 0;
        text-align: left !important;
        position: relative;
        transition: background .25s ease;
    }
    .footer-top-bar .footer-top-box:hover { box-shadow: none; background: #f7f9ff; }
    .footer-top-bar .footer-top-box a {
        display: flex; align-items: center; gap: 16px;
        padding: 24px 26px; color: #12274a;
    }
    .footer-top-bar .footer-top-box a:hover { text-decoration: none; }

    /* icon tile */
    .footer-top-bar .footer-top-box i {
        flex: 0 0 52px; width: 52px; height: 52px; margin: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 26px; line-height: 1;
        color: var(--fs-accent);
        background: linear-gradient(145deg, rgba(47, 107, 255, .12), rgba(106, 92, 255, .08));
        border: 1px solid rgba(47, 107, 255, .14);
        border-radius: 15px;
        transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .25s ease, color .25s ease, box-shadow .25s ease;
    }
    .footer-top-bar .footer-top-box:hover i {
        color: #fff;
        background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2));
        border-color: transparent;
        box-shadow: 0 10px 22px rgba(47, 107, 255, .35);
        transform: translateY(-3px) rotate(-4deg);
    }

    /* title */
    .footer-top-bar .footer-top-box h4 {
        flex: 1 1 auto; margin: 0 !important;
        font-size: 15.5px !important; font-weight: 700; letter-spacing: .2px;
        color: #12274a; transition: color .2s ease;
    }
    .footer-top-bar .footer-top-box:hover h4 { color: var(--fs-accent); }

    /* arrow */
    .footer-top-bar .footer-top-box a::after {
        content: "\2192";
        flex: 0 0 auto; font-size: 18px; color: var(--fs-accent);
        opacity: 0; transform: translateX(-8px);
        transition: opacity .25s ease, transform .25s ease;
    }
    .footer-top-bar .footer-top-box:hover a::after { opacity: 1; transform: translateX(0); }

    /* gradient underline on hover */
    .footer-top-bar .footer-top-box::after {
        content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px;
        border-radius: 3px 3px 0 0;
        background: linear-gradient(90deg, var(--fs-accent), var(--fs-accent-2) 55%, var(--fs-warm));
        transform: scaleX(0); transform-origin: left;
        transition: transform .35s ease;
    }
    .footer-top-bar .footer-top-box:hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-top-bar .footer-top-box,
    .footer-top-bar .footer-top-box i,
    .footer-top-bar .footer-top-box a::after,
    .footer-top-bar .footer-top-box::after { transition: none !important; }
}