/* update 1.12.0: Pre-Order (both themes). Loaded only on pages that show pre-order parts.
   Colours: .po (skincare: blush / rose) and .po--classic (Gift Box: plum, coral, cream, gold).
   Import = blue time bar, local-made = warm brown / gold, extra time = red, fast goal = green.
   Phone first: nothing has a fixed width; flex children get min-width: 0 (iPhone row bug). */

.po {
    --po-ink: #2B2B2B; --po-muted: #6f6566; --po-card: #fff; --po-line: #eddcd9; --po-soft: #FBE9E7; --po-page: #FDF7F5;
    --po-head: #8f4e57; --po-main: #B76E79; --po-btn: #B0626A; --po-btn-ink: #fff; --po-chip: #f7e6e3;
    --po-blue: #2c6aa8; --po-blue-soft: #e3edf8; --po-local: #9a6a14; --po-local-2: #c8962e; --po-local-soft: #f7edd8;
    --po-red: #c2372c; --po-red-soft: #fde6e2; --po-green: #2f8a4c; --po-green-2: #8fd19e; --po-green-soft: #e8f5eb;
    --po-book-a: #E8604C; --po-book-b: #D4A24C; --po-track: #f1e6e8; --po-radius: 16px;
    color: var(--po-ink);
}
.po--classic {
    --po-ink: #2a1f27; --po-muted: #6b5d66; --po-line: #efdfd6; --po-soft: #FFF8F1; --po-page: #FFF8F1;
    --po-head: #5B2A4E; --po-main: #5B2A4E; --po-btn: #C4462F; --po-chip: #f6ece8; --po-track: #f2e8ee;
}

.po * { box-sizing: border-box; }
.po-bn { font-family: 'Hind Siliguri', inherit; }

/* ---- small parts ---- */
.po-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; background: var(--po-blue); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-badge--way, .po-badge--ordered { background: #2f5d8a; }
.po-badge--ordered { background: var(--po-main); }
.po-badge--local { background: var(--po-local); }
.po-badge--extra { background: var(--po-red); }
.po-badge--full { background: #8b8189; }
.po-badge--new { background: var(--po-book-b); color: #3a2a06; }
.po-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--po-chip); color: var(--po-head); font-size: 12px; font-weight: 700; }
.po-chip--local { background: var(--po-local-soft); color: var(--po-local); }
.po-chip--blue { background: var(--po-blue-soft); color: var(--po-blue); }
.po-muted { color: var(--po-muted); }
.po-red { color: var(--po-red); }

/* time bar: "⏱ ১০ দিনে আসবে ............ ৩০ দিন" */
.po-time { margin: 8px 0 0; }
.po-time__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--po-muted); }
.po-time__row > span { min-width: 0; }
.po-time__row b { color: var(--po-blue); font-size: 14px; }
.po-time--local .po-time__row b { color: var(--po-local); }
.po-time--extra .po-time__row b { color: var(--po-red); }
.po-bar { position: relative; height: 7px; border-radius: 99px; background: var(--po-track); margin-top: 6px; }
.po-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #2c6aa8, #6aa0d6); }
.po-bar > em { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--po-blue); }
.po-time--local .po-bar > i { background: linear-gradient(90deg, var(--po-local), var(--po-local-2)); }
.po-time--local .po-bar > em { border-color: var(--po-local); }
.po-time--extra .po-bar { background: var(--po-red-soft); }
.po-time--extra .po-bar > em { border-color: var(--po-red); left: 7px !important; }

/* booked bar */
.po-book { margin-top: 8px; }
.po-book__bar { height: 6px; border-radius: 99px; background: var(--po-track); overflow: hidden; }
.po-book__bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--po-book-a), var(--po-book-b)); }
.po-book--full .po-book__bar > i { background: #b9afb5; }
.po-book__row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--po-muted); margin-top: 4px; }
.po-book__row b { color: var(--po-ink); }

/* fast goal (green) */
.po-goal__bar { height: 6px; border-radius: 99px; background: var(--po-green-soft); overflow: hidden; margin-top: 8px; }
.po-goal__bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--po-green), var(--po-green-2)); }
.po-goal__row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--po-muted); margin-top: 4px; }
.po-goal__row b { color: var(--po-green); }

/* ---- card (inside .sk-pcard, same size as the other cards) ---- */
.po-card .sk-pcard__badges { display: flex; justify-content: space-between; gap: 6px; flex-wrap: nowrap; right: 8px; }
.po-card .po-off { background: var(--po-book-a); color: #fff; border-radius: 99px; padding: 3px 8px; font-size: 12px; font-weight: 800; flex: none; }
.po-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; }
.po-card__price b { font-size: 17px; color: var(--po-head); }
.po-card__price s { font-size: 12.5px; color: var(--po-muted); }
.po-card__note { font-size: 12px; color: var(--po-muted); margin-top: 2px; line-height: 1.45; }
.po-card__note b { color: var(--po-blue); }
.po-card .sk-pcard__cta { margin-top: 10px; }
.po-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 99px; border: 0; background: var(--po-btn); color: var(--po-btn-ink); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.po-btn:hover { filter: brightness(.95); }
.po-btn--ghost { background: #fff; color: var(--po-head); border: 2px solid var(--po-head); }
.po-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---- section / page ---- */
.po-sec { background: var(--po-card); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin: 24px 0; }
.po-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; color: #fff; background: linear-gradient(110deg, var(--po-head), var(--po-main)); }
.po--classic .po-sec__head { background: linear-gradient(110deg, #5B2A4E, #7a3a67); }
.po-sec__head > div { min-width: 0; }
.po-sec__title { margin: 0; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; color: #fff; }
.po-sec__sub { margin: 4px 0 0; font-size: 13.5px; opacity: .92; }
.po-sec__all { flex: none; background: #fff; color: var(--po-btn); border-radius: 99px; padding: 9px 16px; font-weight: 800; text-decoration: none; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.po--classic .po-sec__all { background: #E8604C; color: #fff; }
.po-sec__body { padding: 18px 16px 20px; }


.po-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 16px; scrollbar-width: none; }
.po-tabs a { flex: none; padding: 9px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--po-line); color: var(--po-ink); text-decoration: none; font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.po-tabs a.on { background: var(--po-head); border-color: var(--po-head); color: #fff; }

/* ---- product page ---- */
.po-pd__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.po-box { background: #fff; border: 1px solid var(--po-line); border-radius: var(--po-radius); padding: 18px; margin-top: 14px; }
.po-box h2, .po-box h3 { margin: 0 0 12px; font-size: 18px; color: var(--po-ink); }
.po-box__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.po-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.po-price__main { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; color: var(--po-head); }
.po-price s { color: var(--po-muted); font-size: 16px; }
.po-pill { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--po-red-soft); color: var(--po-red); font-size: 13px; font-weight: 700; }
.po-rule { margin-top: 12px; border: 1px dashed #e2c37e; background: #fffaf0; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; }
.po-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 14px; position: relative; }
.po-steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: #eadfe3; }
.po-step { position: relative; text-align: center; font-size: 12.5px; color: var(--po-muted); min-width: 0; }
.po-step i { position: relative; display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: #f3eff1; font-style: normal; font-size: 15px; }
.po-step span { display: block; margin-top: 6px; line-height: 1.3; overflow-wrap: anywhere; }
.po-step.done i { background: var(--po-green-soft); color: var(--po-green); }
.po-step.done span { color: var(--po-green); font-weight: 700; }
.po-step.on i { background: #2f5d8a; color: #fff; box-shadow: 0 0 0 5px var(--po-blue-soft); }
.po-step.on span { color: var(--po-blue); font-weight: 800; }
.po--local .po-step.on i { background: var(--po-local); box-shadow: 0 0 0 5px var(--po-local-soft); }
.po--local .po-step.on span { color: var(--po-local); }
.po-cd { display: flex; gap: 8px; flex-wrap: wrap; }
.po-cd > div { flex: 1 1 0; min-width: 58px; max-width: 76px; background: var(--po-head); color: #fff; border-radius: 12px; padding: 8px 4px; text-align: center; }
.po--local .po-cd > div { background: #8a5a12; }
.po-cd b { display: block; font-size: 22px; line-height: 1.1; }
.po-cd small { font-size: 11.5px; opacity: .9; }
.po-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .po-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.po-goalbox { background: var(--po-green-soft); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.po-goalbox__top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.po-goalbox__top b { color: var(--po-green); }
.po-goalbox p { font-size: 13px; margin: 6px 0 0; line-height: 1.6; }
.po-adv { margin-top: 14px; border: 1px dashed #e2c37e; background: #fffaf0; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.po-buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.po-buy .po-btn { flex: 1 1 180px; width: auto; }
.po-qty { display: inline-flex; align-items: center; border: 1px solid var(--po-line); border-radius: 99px; min-height: 44px; background: #fff; }
.po-qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--po-ink); }
.po-qty input { width: 40px; text-align: center; border: 0; font-weight: 800; font-size: 16px; background: none; -moz-appearance: textfield; }
.po-qty input::-webkit-outer-spin-button, .po-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.po-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--po-line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.po-buybar__p { min-width: 0; line-height: 1.2; }
.po-buybar__p small { display: block; font-size: 11.5px; color: var(--po-muted); }
.po-buybar__p b { font-size: 17px; color: var(--po-head); }
.po-buybar .po-btn { flex: 1; }
@media (min-width: 900px) { .po-buybar { display: none !important; } }
.po-has-buybar { padding-bottom: 84px; }
@media (min-width: 900px) { .po-has-buybar { padding-bottom: 0; } }

/* ---- checkout / order page ---- */
.po-split-note { background: #eef5fc; border: 1px dashed #b8d2ee; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.po-advance { border: 2px solid var(--po-btn); border-radius: 18px; padding: 18px; background: #fff; }
.po-advance h2 { margin: 0 0 4px; font-size: 20px; }
.po-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 12px 0; }
.po-methods label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; border: 1px solid var(--po-line); border-radius: 12px; padding: 8px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: #fff; line-height: 1.25; }
.po-methods input { position: absolute; opacity: 0; pointer-events: none; }
.po-methods input:checked + span { color: var(--po-btn); }
.po-methods label:has(input:checked) { border: 2px solid var(--po-btn); background: #fff5f3; }
.po-acct { display: none; align-items: center; justify-content: space-between; gap: 10px; background: var(--po-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.po-acct.on { display: flex; }
.po-acct > div { min-width: 0; }
.po-acct small { display: block; color: var(--po-muted); font-size: 12px; }
.po-acct b { font-size: 18px; letter-spacing: .5px; overflow-wrap: anywhere; }
.po-copy { flex: none; border: 0; border-radius: 99px; padding: 8px 14px; min-height: 40px; background: var(--po-head); color: #fff; font-weight: 700; cursor: pointer; }
.po-warn { border: 1px dashed #e2c37e; background: #fffaf0; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
.po-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .po-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.po-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.po-field input[type=text], .po-field input[type=tel] { width: 100%; min-height: 46px; border: 1px solid var(--po-line); border-radius: 12px; padding: 10px 12px; font-size: 16px; background: #fff; }
.po-file { display: block; border: 1px dashed var(--po-line); border-radius: 12px; padding: 12px; text-align: center; color: var(--po-muted); cursor: pointer; }
.po-file input { width: 100%; font-size: 14px; }
.po-sum { border: 1px solid var(--po-line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; }
.po-sum--pre { border-color: #f1c7c0; }
.po-sum__tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #e7f4ea; color: var(--po-green); margin-right: 6px; }
.po-sum--pre .po-sum__tag { background: var(--po-red-soft); color: var(--po-red); }
.po-sum__row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.po-sum__row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.po-sum__row--total { border-top: 1px solid var(--po-line); margin-top: 6px; padding-top: 10px; font-weight: 800; }
.po-sum__row--adv { color: var(--po-red); font-weight: 800; }
.po-sum__why { font-size: 12.5px; color: var(--po-muted); margin: 4px 0 0; }
.po-track { list-style: none; margin: 0; padding: 0; }
.po-track li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; color: var(--po-muted); }
.po-track li.done { color: var(--po-ink); }
.po-track li.on { color: var(--po-ink); font-weight: 700; }
.po-state { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; background: #fff3cd; color: #8a5a00; }
.po-state--ok { background: var(--po-green-soft); color: var(--po-green); }
.po-state--bad { background: var(--po-red-soft); color: var(--po-red); }

/* phone: short words so nothing is cut at 360 / 390 (design book phone pages) */
.po-sm { display: none; }
@media (max-width: 599px) {
    .po-lg { display: none !important; }
    .po-sm { display: inline; }
    .po-card .sk-pcard__badges { right: 50px; }
    .po-card .po-badge { font-size: 11px; padding: 3px 8px; }
    .po-card .po-off { display: none; }
    .po-card .po-badge { max-width: 100%; }
        .po-time__row, .po-book__row, .po-goal__row { font-size: 11px; }
    .po-time__row > span, .po-book__row > span, .po-goal__row > span { white-space: nowrap; }
    .po-time__row b { font-size: 12.5px; }
    .po-card__price b { font-size: 15.5px; }
    .po-sec__head { padding: 16px; }
    .po-sec__sub { font-size: 12.5px; }
    .po-sec__all { padding: 8px 12px; font-size: 13px; }
}
