/*
 * Shop footer and the phone bottom bar (frontend/partials/footer.blade.php), on every shop page.
 * Loaded by frontend/partials/head.blade.php with a ?v= file-time, so a change reaches visitors at once.
 * Near-black base for every store; the store's own colour only marks hover, focus and the active tab.
 */

/* ---------- phone and tablet bottom bar ---------- */
.shop-tabbar { display: none; }
@media (max-width: 991px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
    .shop-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; margin: 0; background: #fff; border-top: 1px solid #ebebe7; padding: 0 0 env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(20,24,30,.06); font-family: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif; }
    .shop-tabbar a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; min-width: 44px; margin: 0; padding: 0; color: #5b6068 !important; font-size: 11.5px; font-weight: 500; line-height: 1.2; text-decoration: none; }
    .shop-tabbar a i { font-size: 19px; line-height: 1; }
    .shop-tabbar a span { font-size: 11.5px; }
    .shop-tabbar a.is-on { color: var(--primary-color) !important; }
    .shop-tabbar .fn-cart .cart-count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary-color); color: #fff; font: 700 10.5px/17px system-ui, sans-serif; text-align: center; }
    .shop-tabbar .fn-cart .cart-count[hidden] { display: none; }
    /* floating buttons sit above the bar and above each other: chat, then back-to-top */
    #lc-btn { bottom: 76px !important; }
    #lc-box { bottom: 138px !important; }
    .live-sale-popup { bottom: 74px !important; }
    #backto-top, .back-to-top.show { right: 23px !important; bottom: 146px !important; }
}
@media (min-width: 992px) {
    .shop-tabbar { display: none !important; }
    /* back-to-top above the cart / WhatsApp / chat stack on the right */
    #backto-top.show, .back-to-top.show { right: 31px !important; bottom: 258px !important; }
}
[data-theme="dark"] .shop-tabbar { background: #12161b; border-color: #232931; }
[data-theme="dark"] .shop-tabbar a { color: #aab0b8 !important; }

/* ---------- footer ---------- */
.site-footer.ftr {
    --ftr-bg: #131517;
    --ftr-ink: #f4f4f2;
    --ftr-text: #b3b7bd;
    --ftr-mute: #868b93;
    --ftr-faint: #5f646c;
    --ftr-line: rgba(255,255,255,.1);
    --ftr-gut: 24px;
    position: relative;
    margin: 0;
    border: 0;
    background: var(--ftr-bg);
    color: var(--ftr-text);
    font-family: 'Anek Bangla', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.site-footer.ftr * { box-sizing: border-box; }
.site-footer.ftr ul { list-style: none; margin: 0; padding: 0; }
.site-footer.ftr li { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; font-family: inherit; }
.site-footer.ftr p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.site-footer.ftr a { color: var(--ftr-text); text-decoration: none; transition: color .15s; }
.site-footer.ftr a:hover { color: var(--ftr-ink); text-decoration: underline; text-decoration-color: var(--primary-color, currentColor); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer.ftr a:focus-visible, .site-footer.ftr summary:focus-visible, .site-footer.ftr button:focus-visible { outline: 2px solid var(--ftr-ink); outline-offset: 3px; border-radius: 4px; }

/* the floating buttons stack on the right from 992px: the footer keeps that strip clear */
.site-footer.ftr .ftr-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--ftr-gut); }
@media (min-width: 992px) {
    .site-footer.ftr { --ftr-gut: max(24px, calc(104px - max(0px, (100vw - 1320px) / 2))); }
}

/* top: brand on the left, link columns */
.site-footer.ftr .ftr-top { display: grid; grid-template-columns: minmax(220px, 1.15fr) 3.2fr; gap: 56px; padding: 72px 0 56px; }
.site-footer.ftr .ftr-logo { display: inline-flex; align-items: center; }
.site-footer.ftr .ftr-logo img { display: block; max-width: 168px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.site-footer.ftr .ftr-logo--chip { padding: 8px 12px; border-radius: 10px; background: #fff; }
.site-footer.ftr .ftr-logo--chip img { max-height: 34px; }
.site-footer.ftr .ftr-about { margin-top: 18px; max-width: 34ch; color: var(--ftr-mute); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.site-footer.ftr .ftr-apps { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.site-footer.ftr .ftr-apps img { height: 36px; width: auto; display: block; }

.site-footer.ftr .ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 40px; }
.site-footer.ftr .ftr-h { display: block; margin: 0; padding: 0 0 16px; /* padding: an old global rule zeroes heading margins with !important */ color: var(--ftr-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; list-style: none; cursor: default; }
.site-footer.ftr summary.ftr-h::-webkit-details-marker { display: none; }
.site-footer.ftr summary.ftr-h::marker { content: ''; }
.site-footer.ftr .ftr-col li + li { margin-top: 10px; }
.site-footer.ftr .ftr-col a { font-size: 14px; }
.site-footer.ftr .ftr-contact a, .site-footer.ftr .ftr-contact .ftr-addr { display: inline-flex; align-items: flex-start; gap: 10px; }
.site-footer.ftr .ftr-contact i { width: 14px; flex: 0 0 14px; margin-top: 4px; font-size: 13px; color: var(--ftr-mute); text-align: center; }
.site-footer.ftr .ftr-contact span { min-width: 0; overflow-wrap: anywhere; }
.site-footer.ftr .ftr-addr { color: var(--ftr-mute); }
.site-footer.ftr .ftr-addr .ftr-more-link { display: block; width: fit-content; margin-top: 4px; color: var(--ftr-text); text-decoration: underline; text-decoration-color: var(--ftr-faint); text-underline-offset: 3px; }

/* middle: we accept, popular searches */
.site-footer.ftr .ftr-mid { display: grid; gap: 18px; padding: 24px 0; border-top: 1px solid var(--ftr-line); }
.site-footer.ftr .ftr-label { display: inline-block; margin-right: 14px; color: var(--ftr-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.site-footer.ftr .ftr-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; }
.site-footer.ftr .ftr-pay ul { display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer.ftr .ftr-pm { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--ftr-line); border-radius: 5px; background: rgba(255,255,255,.035); color: var(--ftr-text); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.site-footer.ftr .ftr-pm--visa { font-style: italic; font-weight: 700; letter-spacing: .04em; }
.site-footer.ftr .ftr-tags { font-size: 12.5px; line-height: 2; }
.site-footer.ftr .ftr-tags ul, .site-footer.ftr .ftr-tags li { display: inline; }
.site-footer.ftr .ftr-tags li + li::before { content: '\00b7'; margin: 0 8px; color: var(--ftr-faint); }
.site-footer.ftr .ftr-tags a { color: var(--ftr-mute); font-size: 12.5px; white-space: nowrap; }
.site-footer.ftr .ftr-tags a:hover { color: var(--ftr-ink); }
.site-footer.ftr .ftr-tags-more { display: none; }

/* base: copyright, legal, language | social */
.site-footer.ftr .ftr-base { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--ftr-line); }
.site-footer.ftr .ftr-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; color: var(--ftr-mute); font-size: 13px; }
.site-footer.ftr .ftr-legal a { color: var(--ftr-mute); font-size: 13px; }
.site-footer.ftr .ftr-lang { display: inline-flex; align-items: center; gap: 10px; }
.site-footer.ftr .ftr-lang i { font-size: 12px; color: var(--ftr-faint); }
.site-footer.ftr .ftr-lang b { color: var(--ftr-ink); font-weight: 500; }
.site-footer.ftr .ftr-social { display: flex; gap: 8px; }
.site-footer.ftr .ftr-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ftr-line); border-radius: 50%; color: var(--ftr-text); font-size: 14px; transition: background .15s, color .15s, border-color .15s; }
.site-footer.ftr .ftr-social a:hover { background: var(--ftr-ink); border-color: var(--ftr-ink); color: var(--ftr-bg); text-decoration: none; }
.site-footer.ftr .ftr-credit { color: var(--ftr-faint); font-size: 13px; }
.site-footer.ftr .ftr-sep { width: 1px; height: 18px; background: var(--ftr-line); margin: 0 -6px; }   /* the thin line between the copyright and "Managed by" */
.site-footer.ftr .ftr-credit a { color: var(--ftr-mute); font-size: 13px; }
.site-footer.ftr .ftr-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: -16px 0 24px; padding: 8px 6px 8px 14px; border: 1px solid var(--ftr-line); border-radius: 8px; color: var(--ftr-mute); font-size: 12.5px; width: fit-content; max-width: 100%; }
.site-footer.ftr .ftr-promo[hidden] { display: none; }
.site-footer.ftr .ftr-promo a { color: var(--ftr-text); font-size: 12.5px; }
.site-footer.ftr .ftr-promo button { width: 32px; height: 32px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ftr-mute); font-size: 18px; line-height: 1; cursor: pointer; }
.site-footer.ftr .ftr-promo button:hover { color: var(--ftr-ink); background: rgba(255,255,255,.06); }

[data-theme="dark"] .site-footer.ftr { --ftr-bg: #0e1012; border-top: 1px solid #1f242a; }

/* tablets */
@media (max-width: 991px) {
    .site-footer.ftr .ftr-top { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
}

/* phones: link columns fold into rows, contact stays open, everything stacks */
@media (max-width: 767px) {
    .site-footer.ftr { --ftr-gut: 20px; }
    .site-footer.ftr .ftr-top { gap: 28px; padding: 44px 0 32px; }
    .site-footer.ftr .ftr-cols { grid-template-columns: 1fr; gap: 0; }
    .site-footer.ftr details.ftr-col { border-bottom: 1px solid var(--ftr-line); }
    .site-footer.ftr details.ftr-col:first-child { border-top: 1px solid var(--ftr-line); }
    .site-footer.ftr summary.ftr-h { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 0; cursor: pointer; font-size: 15px; }
    .site-footer.ftr summary.ftr-h::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--ftr-mute); border-bottom: 1.5px solid var(--ftr-mute); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
    .site-footer.ftr details[open] > summary.ftr-h::after { transform: rotate(-135deg) translateY(-1px); }
    .site-footer.ftr details.ftr-col ul { padding: 0 0 12px; }
    .site-footer.ftr .ftr-col li + li { margin-top: 0; }
    .site-footer.ftr details.ftr-col a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
    .site-footer.ftr .ftr-contact { padding-top: 28px; }
    .site-footer.ftr .ftr-contact li + li { margin-top: 4px; }
    .site-footer.ftr .ftr-contact a { min-height: 44px; align-items: center; font-size: 15px; }
    .site-footer.ftr .ftr-contact i { margin-top: 0; }
    .site-footer.ftr .ftr-contact .ftr-addr { padding-top: 10px; font-size: 14px; }
    .site-footer.ftr .ftr-contact .ftr-addr i { margin-top: 4px; }
    .site-footer.ftr .ftr-addr .ftr-more-link { display: flex; align-items: center; min-height: 44px; margin-top: 0; }
    .site-footer.ftr .ftr-label { display: block; margin: 0 0 8px; }
    .site-footer.ftr .ftr-pay { display: block; }
    .site-footer.ftr .ftr-tags li:nth-child(n+9) { display: none; }
    .site-footer.ftr .ftr-tags.is-all li:nth-child(n+9) { display: inline; }
    .site-footer.ftr .ftr-tags { line-height: 1.6; }
    .site-footer.ftr .ftr-tags a { display: inline-block; padding: 7px 0; font-size: 13.5px; }
    .site-footer.ftr .ftr-tags-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--ftr-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .site-footer.ftr .ftr-base { flex-direction: column-reverse; align-items: flex-start; gap: 20px; padding-top: 24px; }
    .site-footer.ftr .ftr-legal { gap: 0 18px; }
    .site-footer.ftr .ftr-legal > * { display: inline-flex; align-items: center; min-height: 40px; }
    .site-footer.ftr .ftr-legal .ftr-copy { flex-basis: 100%; min-height: 0; margin-bottom: 4px; }
    .site-footer.ftr .ftr-social a { width: 44px; height: 44px; font-size: 16px; }
    /* room under the last line for the chat button that floats above the bottom bar */
    .site-footer.ftr .ftr-sep { display: none; }
    .site-footer.ftr .ftr-credit { flex-basis: 100%; min-height: 0; margin-bottom: 4px; }
    .site-footer.ftr .ftr-base { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer.ftr a, .site-footer.ftr summary.ftr-h::after, .site-footer.ftr .ftr-social a { transition: none; }
}
