/* ==========================================================================
   Shop pages: product, cart, checkout, order received
   --------------------------------------------------------------------------
   One stylesheet for the four pages a buyer walks through, so the steps look
   like one flow rather than four templates.

   The layout is phone-first and reads like an app there: a sticky action bar
   pinned to the bottom, full-width tap targets, and cards instead of tables.
   From 768px up it opens out into two columns.
   ========================================================================== */

.sp {
    --sp-ink: #0f172a;
    --sp-muted: #64748b;
    --sp-line: #e6eaf0;
    --sp-soft: #f7f9fc;
    --sp-brand: #ff5722;
    --sp-brand-2: #ff7043;
    --sp-green: #059669;
    --sp-red: #e11d48;
    --sp-radius: 16px;
    --sp-shadow: 0 8px 24px rgba(15, 23, 42, .06);

    color: var(--sp-ink);
    padding: 18px 0 34px;
}
.sp, .sp *, .sp *::before, .sp *::after { box-sizing: border-box; }

.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* -- shared furniture ----------------------------------------------------- */
.sp-card {
    background: #fff; border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius); box-shadow: var(--sp-shadow);
    padding: 16px;
}
.sp-card + .sp-card { margin-top: 12px; }
.sp-card-head {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 14px; padding-bottom: 11px;
    border-bottom: 1px dashed var(--sp-line);
    font-size: 16px; font-weight: 700;
}
.sp-card-head i { color: var(--sp-brand); }

.sp-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 14px; font-size: 12.5px; color: var(--sp-muted);
}
.sp-crumb a { color: inherit; text-decoration: none; }
.sp-crumb a:hover { color: var(--sp-brand); }
.sp-crumb i { font-size: 9px; opacity: .6; }

.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
    font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: filter .16s, transform .12s, background .16s, border-color .16s;
}
.sp-btn:active { transform: translateY(1px); }
.sp-btn-primary {
    background: linear-gradient(135deg, var(--sp-brand), var(--sp-brand-2));
    color: #fff; box-shadow: 0 8px 18px -8px var(--sp-brand);
}
.sp-btn-primary:hover { filter: brightness(1.06); color: #fff; }
.sp-btn-ghost {
    background: #fff; color: var(--sp-ink); border: 1.5px solid var(--sp-line);
}
.sp-btn-ghost:hover { border-color: var(--sp-brand); color: var(--sp-brand); }
.sp-btn-green {
    background: var(--sp-green); color: #fff;
    box-shadow: 0 8px 18px -8px var(--sp-green);
}
.sp-btn-green:hover { filter: brightness(1.06); color: #fff; }
.sp-btn-block { width: 100%; }

/* quantity stepper, shared by the product page and the cart */
.sp-qty {
    display: inline-flex; align-items: center; overflow: hidden;
    border: 1.5px solid var(--sp-line); border-radius: 11px; background: #fff;
}
.sp-qty button {
    width: 38px; height: 42px; border: 0; padding: 0; cursor: pointer;
    background: var(--sp-soft); color: var(--sp-ink);
    font-size: 17px; font-weight: 700; line-height: 1;
}
.sp-qty button:hover { background: var(--sp-brand); color: #fff; }
.sp-qty input {
    width: 48px; height: 42px; border: 0; text-align: center;
    font-size: 15px; font-weight: 700; color: var(--sp-ink);
    -moz-appearance: textfield;
}
.sp-qty input::-webkit-outer-spin-button,
.sp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* the row of promises every page repeats */
.sp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-trust div {
    display: flex; align-items: center; gap: 8px;
    padding: 10px; border-radius: 11px;
    background: var(--sp-soft); border: 1px solid var(--sp-line);
    font-size: 12px; font-weight: 600; line-height: 1.35;
}
.sp-trust i { color: var(--sp-green); font-size: 15px; flex: 0 0 auto; }

/* ==========================================================================
   Product page
   ========================================================================== */
.sp-product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* -- gallery -------------------------------------------------------------- */
.sp-gallery { position: relative; }
.sp-stage {
    position: relative; overflow: hidden;
    background: var(--sp-soft); border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    aspect-ratio: 1 / 1;
}
.sp-stage img {
    width: 100%; height: 100%; object-fit: contain; display: block;
}
.sp-stage-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 5px 11px; border-radius: 999px;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: #fff; font-size: 12px; font-weight: 800;
    box-shadow: 0 2px 8px rgba(255, 78, 80, .3);
}

.sp-thumbs {
    display: flex; gap: 8px; margin-top: 10px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
}
.sp-thumbs::-webkit-scrollbar { display: none; }
.sp-thumb {
    flex: 0 0 66px; width: 66px; height: 66px; padding: 0; cursor: pointer;
    border: 2px solid var(--sp-line); border-radius: 10px; overflow: hidden;
    background: #fff; transition: border-color .16s;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-thumb.is-on { border-color: var(--sp-brand); }

/* -- summary -------------------------------------------------------------- */
.sp-title { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.35; }
.sp-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin-bottom: 14px; font-size: 12.5px; color: var(--sp-muted);
}
.sp-stars { color: #f59e0b; }
.sp-stock { font-weight: 700; }
.sp-stock.is-in { color: var(--sp-green); }
.sp-stock.is-out { color: var(--sp-red); }

.sp-price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
    padding: 12px 14px; margin-bottom: 16px;
    background: #fff5f5; border-radius: 12px;
}
.sp-price .now { font-size: 27px; font-weight: 800; color: var(--sp-red); line-height: 1; }
.sp-price .was { font-size: 15px; font-weight: 600; color: #94a3b8; text-decoration: line-through; }
.sp-price .save {
    padding: 3px 9px; border-radius: 999px;
    background: rgba(5, 150, 105, .12); color: var(--sp-green);
    font-size: 11.5px; font-weight: 800;
}

.sp-field { margin-bottom: 16px; }
.sp-label {
    display: block; margin-bottom: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    color: var(--sp-muted);
}

/* variant chips: a styled radio, so no JavaScript is needed to select one */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { position: relative; }
.sp-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.sp-chip span {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 40px; padding: 0 15px; cursor: pointer;
    border: 1.5px solid var(--sp-line); border-radius: 11px; background: #fff;
    font-size: 13.5px; font-weight: 600;
    transition: border-color .16s, background .16s, color .16s;
}
.sp-chip span:hover { border-color: #cbd5e1; }
.sp-chip input:checked + span {
    border-color: var(--sp-brand); background: #fff5f2; color: var(--sp-brand);
}
.sp-chip input:focus-visible + span { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-chip .swatch {
    width: 17px; height: 17px; border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .15); flex: 0 0 auto;
}

/* combo offers */
.sp-combo { display: flex; flex-direction: column; gap: 9px; }
.sp-combo label {
    display: flex; align-items: center; gap: 11px; margin: 0; cursor: pointer;
    padding: 11px; border-radius: 12px;
    border: 1.5px solid var(--sp-line); background: #fff;
    transition: border-color .16s, background .16s;
}
.sp-combo input { width: 18px; height: 18px; accent-color: var(--sp-brand); flex: 0 0 auto; }
.sp-combo label:has(input:checked) { border-color: var(--sp-brand); background: #fff5f2; }
.sp-combo img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.sp-combo b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.sp-combo small { display: block; font-size: 12px; color: var(--sp-muted); }
.sp-combo .amt { margin-left: auto; font-weight: 800; color: var(--sp-green); white-space: nowrap; }

.sp-actions { display: flex; gap: 9px; }
.sp-actions .sp-btn { flex: 1; }

/* -- tabs ----------------------------------------------------------------- */
.sp-tabs {
    display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px;
    border-bottom: 1px solid var(--sp-line); scrollbar-width: none;
}
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab {
    padding: 11px 16px; border: 0; background: none; cursor: pointer;
    font-size: 14px; font-weight: 700; color: var(--sp-muted); white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sp-tab.is-on { color: var(--sp-brand); border-bottom-color: var(--sp-brand); }
.sp-panel { display: none; line-height: 1.75; }
.sp-panel.is-on { display: block; }
.sp-panel img { max-width: 100%; height: auto; }
.sp-video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sp-review { padding: 13px 0; border-bottom: 1px solid var(--sp-line); }
.sp-review:last-child { border-bottom: 0; }
.sp-review b { font-size: 13.5px; }
.sp-review p { margin: 5px 0 0; font-size: 13.5px; color: var(--sp-muted); line-height: 1.6; }

.sp-section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 26px 0 14px;
}
.sp-section-head h2 { margin: 0; font-size: 18px; font-weight: 800; }

/* -- sticky action bar, phones only --------------------------------------- */
.sp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: none; align-items: center; gap: 10px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--sp-line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .09);
    backdrop-filter: blur(8px);
}
.sp-bar-price { flex: 0 0 auto; line-height: 1.15; }
.sp-bar-price b { display: block; font-size: 18px; font-weight: 800; color: var(--sp-red); }
.sp-bar-price small { font-size: 11px; color: var(--sp-muted); text-decoration: line-through; }
.sp-bar .sp-btn { flex: 1; height: 46px; font-size: 14.5px; padding: 0 12px; }

/* ==========================================================================
   Cart
   ========================================================================== */
.sp-lines { display: flex; flex-direction: column; gap: 10px; }
.sp-line {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-areas: "img info" "qty qty";
    gap: 12px 12px; align-items: start;
    padding: 12px; border-radius: 14px;
    background: #fff; border: 1px solid var(--sp-line); box-shadow: var(--sp-shadow);
}
.sp-line-img { grid-area: img; }
.sp-line-img img {
    width: 74px; height: 74px; border-radius: 11px; object-fit: cover; display: block;
    background: var(--sp-soft);
}
.sp-line-info { grid-area: info; min-width: 0; }
.sp-line-name {
    display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35;
    color: var(--sp-ink); text-decoration: none;
}
.sp-line-name:hover { color: var(--sp-brand); }
.sp-line-vars { margin-top: 3px; font-size: 12px; color: var(--sp-muted); }
.sp-line-unit { margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--sp-brand); }
.sp-line-foot {
    grid-area: qty; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-top: 10px; border-top: 1px dashed var(--sp-line);
}
.sp-line-total { font-size: 16px; font-weight: 800; }
.sp-line-drop {
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--sp-line); color: var(--sp-muted);
    transition: all .16s;
}
.sp-line-drop:hover { border-color: var(--sp-red); color: var(--sp-red); background: #fff5f6; }

.sp-sum-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 9px; font-size: 14px; color: var(--sp-muted);
}
.sp-sum-row.is-total {
    margin: 0; padding-top: 10px; border-top: 1px dashed var(--sp-line);
    font-size: 18px; font-weight: 800; color: var(--sp-ink);
}
.sp-sum-row.is-total span:last-child { color: var(--sp-brand); }

.sp-empty { text-align: center; padding: 46px 18px; }
.sp-empty i { font-size: 44px; color: #cbd5e1; }
.sp-empty p { margin: 12px 0 18px; font-size: 15px; color: var(--sp-muted); }

/* ==========================================================================
   Checkout
   ========================================================================== */
.sp-input { position: relative; display: block; }
.sp-input > i,
.sp-input > svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: #9ca3af; pointer-events: none;
}
.sp-input input, .sp-input select, .sp-input textarea {
    width: 100%; padding: 13px 14px 13px 40px;
    border: 1.5px solid var(--sp-line); border-radius: 12px;
    font-size: 15px; color: var(--sp-ink); background: #fff;
    outline: 0; transition: border-color .16s, box-shadow .16s;
    appearance: none;
}
.sp-input textarea { padding-left: 14px; min-height: 84px; resize: vertical; }
.sp-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
    padding-right: 34px;
}
.sp-input input:focus, .sp-input select:focus, .sp-input textarea:focus {
    border-color: var(--sp-brand);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, .14);
}
.sp-err { display: block; margin-top: 5px; font-size: 12px; color: var(--sp-red); font-style: normal; }

.sp-pay { display: flex; flex-direction: column; gap: 9px; }
.sp-pay label {
    display: flex; align-items: center; gap: 11px; margin: 0; cursor: pointer;
    padding: 13px; border-radius: 12px;
    border: 1.5px solid var(--sp-line); background: #fff;
    font-size: 14px; font-weight: 600;
    transition: border-color .16s, background .16s;
}
.sp-pay input { width: 18px; height: 18px; accent-color: var(--sp-brand); }
.sp-pay label:has(input:checked) { border-color: var(--sp-brand); background: #fff5f2; }
.sp-pay img { height: 22px; margin-left: auto; }

.sp-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.sp-mini + .sp-mini { border-top: 1px solid var(--sp-line); }
.sp-mini img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.sp-mini-info { min-width: 0; flex: 1; }
.sp-mini-info b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.sp-mini-info small { font-size: 12px; color: var(--sp-muted); }
.sp-mini .amt { font-size: 14px; font-weight: 800; white-space: nowrap; }

.sp-coupon { display: flex; gap: 8px; }
.sp-coupon .sp-input { flex: 1; }
.sp-coupon .sp-input input { padding-left: 14px; }

/* ==========================================================================
   Order received
   ========================================================================== */
.sp-done { max-width: 640px; margin: 0 auto; text-align: center; }
.sp-done-mark {
    width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 38px; color: #fff;
    background: linear-gradient(135deg, #10b981, var(--sp-green));
    box-shadow: 0 14px 30px -12px var(--sp-green);
    animation: sp-pop .45s ease;
}
@keyframes sp-pop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-done-mark { animation: none; } }
.sp-done h1 { margin: 0 0 8px; font-size: 23px; font-weight: 800; }
.sp-done > p { margin: 0 0 20px; color: var(--sp-muted); line-height: 1.7; }

.sp-ref {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 12px; margin-bottom: 20px;
    background: var(--sp-soft); border: 1px dashed var(--sp-brand);
}
.sp-ref small { font-size: 11.5px; color: var(--sp-muted); }
.sp-ref b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }

.sp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 20px; }
.sp-step { text-align: center; font-size: 11px; color: var(--sp-muted); }
.sp-step i {
    display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px;
    border-radius: 50%; background: var(--sp-soft); border: 1px solid var(--sp-line);
    font-size: 13px;
}
.sp-step.is-done i { background: var(--sp-green); border-color: var(--sp-green); color: #fff; }
.sp-step.is-done { color: var(--sp-ink); font-weight: 700; }

.sp-done-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 768px) {
    .sp { padding: 24px 0 44px; }
    .sp-wrap { padding: 0 20px; }
    .sp-card { padding: 20px; }

    .sp-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
    .sp-title { font-size: 25px; }

    /* Two columns: the goods on the left, what you pay on the right. */
    .sp-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
    .sp-aside { position: sticky; top: 88px; }

    .sp-line {
        grid-template-columns: 84px minmax(0, 1fr) auto;
        grid-template-areas: "img info qty";
        align-items: center;
    }
    .sp-line-img img { width: 84px; height: 84px; }
    .sp-line-foot {
        grid-area: qty; padding-top: 0; border-top: 0;
        justify-content: flex-end; gap: 16px;
    }
}

@media (min-width: 992px) {
    .sp-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; }
}

/* -- phones: the app-like bits -------------------------------------------- */
@media (max-width: 767.98px) {
    /* The bar is fixed over the page, so the page needs room to scroll past it. */
    body.has-sp-bar { padding-bottom: 78px; }
    .sp-bar { display: flex; }

    /* The page's own buttons would duplicate the bar. */
    .sp-actions.is-bar-hidden { display: none; }

    .sp-trust { grid-template-columns: minmax(0, 1fr); }
    .sp-trust div { padding: 9px 11px; }
    .sp-title { font-size: 19px; }
    .sp-price .now { font-size: 24px; }
    .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 6px; }
    .sp-done-actions .sp-btn { width: 100%; }
}

/* -- magnifier ------------------------------------------------------------ */
/* A round lens that follows the cursor and shows the same image enlarged.
   Hidden until the pointer is over the stage, and never built on touch --
   the script only binds it for a fine pointer. */
.sp-lens {
    position: absolute; z-index: 3; pointer-events: none;
    width: 190px; height: 190px; margin: -95px 0 0 -95px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .28);
    background-repeat: no-repeat;
    background-color: #fff;
    opacity: 0; transform: scale(.85);
    transition: opacity .16s ease, transform .16s ease;
}
.sp-stage.is-zooming { cursor: crosshair; }
.sp-stage.is-zooming .sp-lens { opacity: 1; transform: scale(1); }

@media (max-width: 767.98px) {
    .sp-lens { display: none; }
}

/* ==========================================================================
   Sign in, register, forgot password
   --------------------------------------------------------------------------
   One narrow card centred on the page. Same fields and same buttons as the
   rest of the shop, so signing in does not look like a different site.
   ========================================================================== */
.sp-auth { max-width: 430px; margin: 0 auto; }
.sp-auth-head { text-align: center; margin-bottom: 20px; }
.sp-auth-mark {
    width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
    display: grid; place-items: center; font-size: 23px; color: #fff;
    background: linear-gradient(135deg, var(--sp-brand), var(--sp-brand-2));
    box-shadow: 0 10px 22px -10px var(--sp-brand);
}
.sp-auth-head h1 { margin: 0 0 5px; font-size: 21px; font-weight: 800; }
.sp-auth-head p { margin: 0; font-size: 13.5px; color: var(--sp-muted); }

.sp-auth .sp-field { margin-bottom: 14px; }
.sp-auth-links {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px;
}
.sp-auth-links a { color: var(--sp-brand); text-decoration: none; font-weight: 600; }
.sp-auth-links a:hover { text-decoration: underline; }

.sp-auth-foot {
    margin-top: 16px; padding-top: 14px; text-align: center;
    border-top: 1px dashed var(--sp-line);
    font-size: 13.5px; color: var(--sp-muted);
}
.sp-auth-foot a { color: var(--sp-brand); font-weight: 700; text-decoration: none; }
.sp-auth-foot a:hover { text-decoration: underline; }

/* ==========================================================================
   My account
   ========================================================================== */
.sp-account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.sp-me {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: var(--sp-radius);
    background: linear-gradient(135deg, var(--sp-brand), var(--sp-brand-2));
    color: #fff;
}
.sp-me img, .sp-me-blank {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .2);
    flex: 0 0 auto;
}
.sp-me-blank { display: grid; place-items: center; font-size: 22px; }
.sp-me small { display: block; font-size: 12px; opacity: .85; }
.sp-me b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }

/* The account menu is a scrolling row of pills on a phone and a list on a
   desktop -- the same markup either way. */
.sp-nav { display: flex; flex-direction: column; gap: 6px; }
.sp-nav a, .sp-nav button {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1px solid var(--sp-line); color: var(--sp-ink);
    font-size: 14px; font-weight: 600; text-decoration: none; text-align: left;
    width: 100%; transition: border-color .16s, background .16s, color .16s;
}
.sp-nav a:hover, .sp-nav button:hover { border-color: var(--sp-brand); color: var(--sp-brand); }
.sp-nav a.is-on {
    background: linear-gradient(135deg, var(--sp-brand), var(--sp-brand-2));
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 18px -10px var(--sp-brand);
}
.sp-nav i { width: 18px; text-align: center; }
.sp-nav .is-danger:hover { border-color: var(--sp-red); color: var(--sp-red); }

.sp-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.sp-fact {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 0; border-bottom: 1px solid var(--sp-line);
}
.sp-fact:last-child { border-bottom: 0; }
.sp-fact-key {
    flex: 0 0 118px; font-size: 12.5px; font-weight: 700;
    letter-spacing: .02em; text-transform: uppercase; color: var(--sp-muted);
}
.sp-fact-val { min-width: 0; font-size: 14.5px; word-break: break-word; }
.sp-fact-val img { max-width: 96px; border-radius: 10px; }

@media (min-width: 768px) {
    .sp-account { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 18px; }
    .sp-account > aside { position: sticky; top: 88px; }
}
@media (max-width: 767.98px) {
    /* On a phone the menu rides sideways so it costs one row, not five. */
    .sp-nav {
        flex-direction: row; overflow-x: auto; padding-bottom: 4px;
        scrollbar-width: none;
    }
    .sp-nav::-webkit-scrollbar { display: none; }
    .sp-nav a, .sp-nav button { width: auto; white-space: nowrap; padding: 10px 14px; }
    .sp-fact { flex-direction: column; gap: 3px; }
    .sp-fact-key { flex: none; }
}

/* Show/hide button inside a password box. */
.sp-peek {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; padding: 0; cursor: pointer;
    display: grid; place-items: center; border-radius: 9px;
    background: none; border: 0; color: var(--sp-muted); font-size: 14px;
}
.sp-peek:hover { color: var(--sp-brand); background: var(--sp-soft); }
.sp-input:has(.sp-peek) input { padding-right: 46px; }

/* -- order list ----------------------------------------------------------- */
.sp-order {
    display: block; padding: 14px; border-radius: 14px; text-decoration: none;
    background: #fff; border: 1px solid var(--sp-line); box-shadow: var(--sp-shadow);
    color: var(--sp-ink); transition: border-color .16s, transform .16s;
}
.sp-order:hover { border-color: var(--sp-brand); transform: translateY(-2px); color: var(--sp-ink); }
.sp-order-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
    padding-bottom: 10px; border-bottom: 1px dashed var(--sp-line);
}
.sp-order-id { font-size: 14.5px; font-weight: 800; }
.sp-order-id small { display: block; font-size: 11.5px; font-weight: 500; color: var(--sp-muted); }
.sp-order-bot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.sp-order-bot .amt { font-size: 17px; font-weight: 800; color: var(--sp-brand); }

.sp-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.sp-badge i { font-size: 6px; }
.sp-badge.is-pending  { background: rgba(245, 158, 11, .14); color: #b45309; }
.sp-badge.is-progress { background: rgba(59, 130, 246, .14); color: #1d4ed8; }
.sp-badge.is-done     { background: rgba(5, 150, 105, .14);  color: var(--sp-green); }
.sp-badge.is-cancel   { background: rgba(225, 29, 72, .12);  color: var(--sp-red); }

/* Two fields to a row where there is room for them. */
.sp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 600px) {
    .sp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -- payment choices -------------------------------------------------------
   Each method carries its own colour (--pay-tone) for the icon tile, so bKash
   reads pink and Nagad orange at a glance. */
.sp-pay label { padding: 11px 13px; }
.sp-pay-ico {
    flex: none; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 11px; font-size: 16px;
    color: var(--pay-tone, var(--sp-brand));
    background: color-mix(in srgb, var(--pay-tone, var(--sp-brand)) 12%, #fff);
}
.sp-pay label:has(input:checked) .sp-pay-ico { color: #fff; background: var(--pay-tone, var(--sp-brand)); }
.sp-pay-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sp-pay-text b { font-size: 14px; font-weight: 700; }
.sp-pay-text small { font-size: 12px; font-weight: 500; color: var(--sp-muted); }

.sp-bank {
    margin-top: 12px; padding: 14px; border-radius: 14px;
    background: var(--sp-soft); border: 1.5px dashed #b6e3ee;
}
.sp-bank-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: 13.5px; font-weight: 700; color: #0e7490;
}
.sp-bank-rows { margin: 0; display: grid; gap: 6px; }
.sp-bank-rows > div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--sp-line);
}
.sp-bank-rows dt { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--sp-muted); }
.sp-bank-rows dd {
    margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0;
    font-size: 13.5px; font-weight: 700; text-align: right; word-break: break-word;
}
.sp-copy {
    flex: none; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 7px; cursor: pointer;
    font-size: 11.5px; font-weight: 600; color: #0e7490;
    background: #ecfeff; border: 1px solid #a5f3fc;
}
.sp-copy em { font-style: normal; }
.sp-copy.is-done { color: var(--sp-green); background: #ecfdf5; border-color: #a7f3d0; }
.sp-bank-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--sp-muted); }
