/* =========================================================
   BanglaNest — funnel pages + order thank-you page
   ========================================================= */

/* ---------- Page ---------- */
html { scroll-behavior: smooth; }
body.bn-funnel-page {
    margin: 0;
    background: var(--bn-bg);
    color: var(--bn-ink);
    font-family: "BN Bangla", var(--bn-sans);
    -webkit-font-smoothing: antialiased;
}
.bn-funnel-page *, .bn-funnel-page *::before, .bn-funnel-page *::after { box-sizing: border-box; }
.bn-funnel-page img { max-width: 100%; height: auto; }

.bn-fn-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--bn-line);
}
.bn-fn-top .bn-logo.bn-logo-img img { height: 40px; }

.bn-fn { padding: 18px 16px 8px; }
.bn-fn-sec {
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    text-align: center;
}

/* ---------- Type ---------- */
.bn-fn-title {
    margin: 0 0 16px;
    font: 700 clamp(24px, 5.2vw, 34px)/1.3 "BN Bangla", var(--bn-sans);
    color: var(--bn-ink);
}
.bn-fn-sub {
    margin: 18px 0 8px;
    font: 600 clamp(18px, 4.2vw, 22px)/1.45 "BN Bangla", var(--bn-sans);
    color: var(--bn-accent-dark);
}
.bn-fn-h {
    margin: 0 0 16px;
    font: 700 clamp(20px, 4.6vw, 26px)/1.4 "BN Bangla", var(--bn-sans);
    color: var(--bn-ink);
}
.bn-fn-sec > .bn-fn-h:not(:first-child) { margin-top: 22px; }
.bn-fn-text { font-size: 16.5px; line-height: 1.75; color: var(--bn-ink-2); text-align: left; }
.bn-fn-text p { margin: 0 0 12px; }
.bn-fn-text p:last-child { margin-bottom: 0; }
.bn-fn-close { margin: 18px 0 0; font: 600 17px/1.6 "BN Bangla", var(--bn-sans); color: var(--bn-ink); }
.bn-fn-note { max-width: 720px; margin: 0 auto; padding: 18px; text-align: center; background: #fff; border: 1px solid var(--bn-line); border-radius: 12px; }

/* ---------- Lists ---------- */
.bn-fn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.bn-fn-list li {
    padding: 12px 14px;
    background: var(--bn-cream);
    border-left: 3px solid var(--bn-accent);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bn-ink);
}
.bn-fn-sec > * + .bn-fn-list,
.bn-fn-sec > * + .bn-fn-text,
.bn-fn-sec > * + .bn-fn-media,
.bn-fn-sec > * + .bn-fn-slider,
.bn-fn-sec > * + .bn-fn-video,
.bn-fn-sec > * + .bn-fn-faqs { margin-top: 14px; }

/* ---------- Images ---------- */
.bn-fn-media { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bn-card-media); }
.bn-fn-media img { display: block; width: 100%; }
.bn-fn-slider { position: relative; border-radius: 12px; overflow: hidden; background: var(--bn-card-media); }
.bn-fn-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bn-fn-track::-webkit-scrollbar { display: none; }
.bn-fn-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.bn-fn-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-fn-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--bn-ink);
    font: 400 26px/36px var(--bn-sans); cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 0;
}
.bn-fn-arrow.is-prev { left: 10px; }
.bn-fn-arrow.is-next { right: 10px; }
.bn-fn-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.bn-fn-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.08); cursor: pointer; transition: width .2s; }
.bn-fn-dots button.is-active { width: 22px; background: var(--bn-accent); }

@media (min-width: 700px) {
    .bn-fn-sec .bn-fn-slider, .bn-fn-sec .bn-fn-media { max-width: 520px; margin-left: auto; margin-right: auto; }
}
.bn-site button.bn-fq-more { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }

/* ---------- Video ---------- */
.bn-fn-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.bn-fn-video.is-short { aspect-ratio: 9 / 16; max-width: 340px; margin-left: auto; margin-right: auto; }
.bn-fn-video img, .bn-fn-video iframe, .bn-fn-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.bn-fn-video.is-file { cursor: auto; }
.bn-fn-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; border: 0; border-radius: 14px; background: #e0301e; cursor: pointer; padding: 0;
}
.bn-fn-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }

/* ---------- FAQ ---------- */
.bn-fn-faqs { display: grid; gap: 8px; text-align: left; }
.bn-fn-faq { border: 1px solid var(--bn-line); border-radius: 10px; background: #fff; }
.bn-fn-faq summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.bn-fn-faq summary::-webkit-details-marker { display: none; }
.bn-fn-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--bn-accent); }
.bn-fn-faq[open] summary::after { content: "−"; }
.bn-fn-faq p { margin: 0; padding: 0 16px 14px; line-height: 1.65; color: var(--bn-ink-2); }

/* ---------- Price ---------- */
.bn-fn-price {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
    margin: 18px 0 4px; padding: 14px 16px;
    background: var(--bn-cream); border-radius: 12px;
    font-size: 16px;
}
.bn-fn-price-reg { color: var(--bn-muted); }
.bn-fn-price-reg del { color: var(--bn-muted); }
.bn-fn-price-now { color: var(--bn-ink); font-weight: 600; }
.bn-fn-price-now strong { font-size: 24px; color: var(--bn-hot); }
.bn-fn-price-off { padding: 3px 9px; border-radius: 99px; background: var(--bn-hot); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }

/* ---------- Order button ---------- */
.bn-funnel-page a.bn-fn-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; max-width: 420px; min-height: 52px;
    margin: 20px auto 0; padding: 12px 22px;
    border-radius: 10px;
    background: var(--bn-accent); color: #fff;
    font: 700 18px/1.2 "BN Bangla", var(--bn-sans);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(185, 85, 27, .28);
    animation: bn-fn-pulse 2.4s ease-in-out infinite;
    transition: background .15s;
}
.bn-funnel-page a.bn-fn-btn:hover, .bn-funnel-page a.bn-fn-btn:focus-visible { background: var(--bn-accent-dark); color: #fff; }
@keyframes bn-fn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .bn-funnel-page a.bn-fn-btn { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Order form section ---------- */
.bn-fn-order { max-width: 1060px; margin: 26px auto 0; scroll-margin-top: 12px; }
.bn-fn-order .bn-co-head { margin-bottom: 22px; }
.bn-site .bn-fn-order .bn-co-title.bn-fn-form-title {
    max-width: 720px; margin: 0 auto;
    font: 700 clamp(19px, 4.4vw, 24px)/1.45 "BN Bangla", var(--bn-sans);
}
.bn-fn-order .bn-co-head i { margin: 12px auto; }

/* Option buttons (variable products) in the order card */
.bn-fv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bn-site .bn-fv-opt {
    min-height: 32px; padding: 4px 12px; border: 1px solid #d9d2ca; border-radius: 8px;
    background: #fff; color: var(--bn-ink); font: 500 13px/1.2 "BN Bangla", var(--bn-sans); cursor: pointer;
}
.bn-site .bn-fv-opt:hover { border-color: var(--bn-accent); color: var(--bn-ink); background: #fff; }
.bn-site .bn-fv-opt.is-on { border-color: var(--bn-accent); background: #fbeee6; color: var(--bn-accent-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--bn-accent); }
.bn-site .bn-fv-opt:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.bn-fv.is-busy { opacity: .6; pointer-events: none; }

/* Quantity −/+ in the order card */
.bn-fq { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #d9d2ca; border-radius: 8px; background: #fff; overflow: hidden; }
.bn-fq b { min-width: 34px; text-align: center; font-size: 15px; }
.bn-site .bn-fq-btn {
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0;
    background: var(--bn-cream); color: var(--bn-ink); font: 600 18px/34px var(--bn-sans); cursor: pointer;
}
.bn-site .bn-fq-btn:hover { background: var(--bn-accent); color: #fff; }
.bn-site .bn-fq-btn:disabled { opacity: .45; cursor: default; background: var(--bn-cream); color: var(--bn-ink); }
.bn-fq.is-busy { opacity: .6; pointer-events: none; }
.bn-co-item-name .bn-fq { display: flex; width: max-content; }

.bn-fn-foot { padding: 22px 16px 90px; text-align: center; font-size: 13px; color: var(--bn-muted); }

@media (max-width: 520px) {
    .bn-fn { padding: 12px 10px 4px; }
    .bn-fn-sec { padding: 20px 14px; border-radius: 12px; margin-bottom: 12px; }
    .bn-fn-list li { font-size: 15.5px; }
    .bn-fn-order { margin-top: 18px; }
}

/* =========================================================
   Order received (thank-you) page
   ========================================================= */
.bn-ty { max-width: 760px; margin: 10px auto 40px; font-family: "BN Bangla", var(--bn-sans); }
.bn-ty-card {
    padding: 34px 26px 28px;
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 16px;
    text-align: center;
}
.bn-ty-check { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f5ee; color: #1f8a4c; }
.bn-ty-check svg { width: 34px; height: 34px; }
.bn-ty-card.is-failed { border-color: var(--bn-hot); }
.bn-site .bn-ty-title { margin: 16px 0 8px; font: 700 clamp(26px, 5vw, 34px)/1.25 "BN Bangla", var(--bn-sans); color: var(--bn-ink); }
.bn-ty-msg { max-width: 560px; margin: 0 auto; font-size: 16.5px; line-height: 1.7; color: var(--bn-ink-2); }
.bn-ty-overview {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
    margin: 24px 0 0 !important; padding: 0 !important; list-style: none;
}
.bn-ty-overview li {
    margin: 0 !important; padding: 12px 14px !important;
    background: var(--bn-cream); border: 0 !important; border-radius: 10px;
    text-align: left; float: none !important;
}
.bn-ty-overview span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bn-muted); }
.bn-ty-overview strong { display: block; margin-top: 4px; font-size: 15px; color: var(--bn-ink); }
.bn-ty-details { margin-top: 18px; padding: 22px; background: #fff; border: 1px solid var(--bn-line); border-radius: 16px; }
.bn-ty-details:empty { display: none; }
.bn-ty-details h2 { font: 600 20px/1.3 var(--bn-sans); margin: 0 0 12px; }
.bn-ty-details table { width: 100%; border-collapse: collapse; }
.bn-ty-details th, .bn-ty-details td { padding: 10px 6px; border-bottom: 1px solid var(--bn-line); text-align: left; }
.bn-ty-actions { margin: 20px 0 0; text-align: center; }
.bn-site a.bn-ty-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px;
    border-radius: 10px; background: var(--bn-accent); color: #fff; font-weight: 600; text-decoration: none;
}
.bn-site a.bn-ty-btn.is-ghost { background: transparent; color: var(--bn-accent); border: 1px solid var(--bn-accent); }
.bn-site a.bn-ty-btn:hover { background: var(--bn-accent-dark); color: #fff; }
.bn-ty-overview strong, .bn-ty-overview strong * { font-size: 15px !important; font-weight: 600; white-space: nowrap; }
.bn-ty .woocommerce-column--shipping-address { display: none; }
.bn-ty .woocommerce-columns--addresses .woocommerce-column--billing-address { width: 100%; float: none; }
.bn-ty .woocommerce-customer-details address { padding: 12px 14px; border: 1px solid var(--bn-line); border-radius: 10px; font-style: normal; line-height: 1.6; }
