@import url('/assets/fonts/plex.css');

/* ============================================================
   DriveShield warranty storefront — styled after the brand's
   Salla (Selia) store: white header, light gray canvas, red
   primary, dark curved footer.
   ============================================================ */

:root {
    --primary: #d11f30;
    --primary-dark: #ab000a;
    --primary-light: #f74556;
    --dark: #0e0f0f;
    --txt: #111827;
    --txt-2: #374151;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --bdr: #e5e7eb;
    --bg: #f5f5f5;
    --card: #ffffff;
    --ok: #16a34a;
    --ok-soft: #f0fdf4;
    --wa: #22c55e;
    --font: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--txt);
    font-size: 15px;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::selection { background: #fde8ea; color: var(--primary); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

/* ============ Header ============ */
.top-navbar {
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
}
.top-navbar .inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 38px; gap: 10px;
}
.topnav-links { display: flex; align-items: center; }
.topnav-link {
    color: var(--txt-2); padding: 7px 12px; transition: .15s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.topnav-link:hover { color: var(--primary); }
.topnav-mail { direction: ltr; }
.topnav-mail i { font-size: 15px; }
/* below 860px only the email remains — hide the links and center it */
@media (max-width: 860px) {
    .topnav-links { display: none; }
    .top-navbar .inner { justify-content: center; }
}

.main-nav {
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    position: sticky; top: 0; z-index: 90;
    box-shadow: 0 1px 10px rgba(17, 24, 39, .04);
}
.main-nav .inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 62px; gap: 12px; position: relative;
}
.nav-side { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-side.end { justify-content: flex-end; }
.nav-btn {
    background: none; border: none; color: var(--txt);
    font-size: 21px; line-height: 1;
    padding: 8px; border-radius: 9px; transition: .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav-btn:hover { color: var(--primary); background: #faf5f5; }
.nav-btn .menu-word { font-size: 16px; font-weight: 500; }
@media (max-width: 640px) { .nav-btn .menu-word { display: none; } }
.nav-btn .action-word { font-size: 13.5px; font-weight: 500; }
.nav-btn.lang-switch .lang-word { font-size: 13.5px; font-weight: 600; }
.nav-btn.lang-switch .lang-flag { width: 21px; height: 21px; flex: none; }
/* mobile: keep only the language switch — lookup/store live in the menu */
@media (max-width: 640px) {
    .nav-btn .action-word { display: none; }
    .nav-btn.nav-action { display: none; }
}

/* ---- LTR (English) adjustments ---- */
html[dir="ltr"] body { font-size: 14.5px; }
html[dir="ltr"] { font-family: var(--font); }
html[dir="ltr"] .cdrop-btn, html[dir="ltr"] .cdrop-item { text-align: left; }
html[dir="ltr"] .cdrop-dial .cdrop-menu { min-width: 210px; }
html[dir="ltr"] .result-table th, html[dir="ltr"] .result-table td { text-align: left; }
html[dir="ltr"] .next-steps { text-align: left; }
html[dir="ltr"] .trust-badge { text-align: left; }
html[dir="ltr"] .upload-name { text-align: left; }
html[dir="ltr"] i.ri-arrow-left-line,
html[dir="ltr"] i.ri-arrow-right-line,
html[dir="ltr"] i.ri-arrow-left-s-line,
html[dir="ltr"] i.ri-arrow-left-up-line {
    display: inline-block;
    transform: scaleX(-1);
}
.navbar-brand { display: flex; align-items: center; justify-content: center; }
.navbar-brand img { height: 40px; width: auto; object-fit: contain; }
@media (max-width: 640px) { .navbar-brand img { height: 30px; } }

/* mobile / menu drawer */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(14, 15, 15, .45);
    opacity: 0; pointer-events: none; transition: .25s; z-index: 120;
}
.drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
    width: min(320px, 86vw); background: #fff; z-index: 130;
    transform: translateX(100%); transition: transform .28s ease;
    display: flex; flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
}
html[dir="ltr"] .drawer { transform: translateX(-100%); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--bdr);
    font-weight: 700; font-size: 14.5px;
}
.drawer-head button { background: none; border: none; font-size: 20px; color: var(--muted); }
.drawer nav { padding: 10px 8px; overflow-y: auto; }
.drawer nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 10px; font-size: 14px; color: var(--txt-2);
    transition: .13s;
}
.drawer nav a:hover { background: #faf5f5; color: var(--primary); }
.drawer nav a i { color: var(--primary); font-size: 17px; }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
    padding: 18px 0 4px;
    font-size: 13px; color: var(--muted);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--txt-2); transition: .13s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { font-size: 14px; color: var(--muted-2); }

/* ============ Page title block ============ */
.page-title-block { text-align: center; padding: 34px 16px 8px; }
.page-title-block h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; color: var(--txt); }
.page-title-block .intro { color: var(--muted); font-size: 16px; margin-top: 8px; }
.title-line {
    position: relative; width: 230px; max-width: 60%; height: 2px;
    background: var(--primary); margin: 22px auto 0; border-radius: 99px;
}
.title-line::after {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg); border: 2.5px solid var(--primary);
}
.page-features {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
    margin-top: 24px; font-size: 13.5px; font-weight: 500; color: var(--txt-2);
}
.page-features .feat { display: inline-flex; align-items: center; gap: 7px; }
.page-features .feat i { color: var(--primary); font-size: 17px; }

/* ============ Cards / form ============ */
.wrap { width: 100%; max-width: 672px; margin: 0 auto; padding: 8px 16px 70px; flex: 1; }

.card {
    background: var(--card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 26px 24px;
    margin-top: 18px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
}

/* review summary (step 4) */
.review-grid { display: flex; flex-direction: column; }
.review-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 2px; border-bottom: 1px dashed var(--bdr);
    font-size: 13.5px;
}
.review-row:last-child { border-bottom: none; }
.review-row > i { color: var(--primary); font-size: 17px; flex: none; }
.rv-label { color: var(--muted); font-size: 12.5px; flex: none; min-width: 92px; }
.rv-value { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.rv-edit {
    background: none; border: 1px solid var(--bdr); border-radius: 7px;
    color: var(--muted); font-size: 14px; padding: 3px 8px; flex: none; transition: .14s;
}
.rv-edit:hover { color: var(--primary); border-color: var(--primary-light); background: #fdf1f2; }
.card-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 700; margin-bottom: 18px;
}
.card-title i { font-size: 18px; color: var(--primary); }
.req { color: var(--primary); }

label.f-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 500; margin-bottom: 7px; color: var(--txt-2);
}
label.f-label i { font-size: 14px; color: var(--txt-2); }
label.f-label small { font-weight: 400; color: var(--muted); }

.f-input, .f-select, textarea.f-input {
    width: 100%;
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 10px 15px;
    background: var(--bg);
    transition: .18s;
    color: var(--txt);
}
.f-input::placeholder { color: var(--muted-2); }
.f-input:focus, .f-select:focus, textarea.f-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 2.5px rgba(209, 31, 48, .12);
}
.f-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .f-row { grid-template-columns: 1fr; } }
.f-group { margin-bottom: 15px; }

/* phone */
.phone-row { display: flex; gap: 8px; direction: ltr; }
.phone-row .f-input { flex: 1; text-align: left; }

/* flag dropdown */
.cdrop { position: relative; }
.cdrop-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; cursor: pointer; }
.cdrop-btn img, .cdrop-item img { width: 22px; height: 22px; flex: none; }
.cdrop-btn > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdrop-caret { border: solid var(--muted); border-width: 0 1.5px 1.5px 0; padding: 3px; transform: rotate(45deg); margin-bottom: 3px; flex: none; }
.cdrop-menu {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0; left: 0;
    background: #fff; border: 1px solid var(--bdr); border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    z-index: 60; overflow: hidden;
}
.cdrop.open .cdrop-menu { display: block; animation: rise .18s ease; }
.cdrop-search { width: 100%; border: none; border-bottom: 1px solid var(--bdr); padding: 11px 14px; outline: none; background: #fff; }
.cdrop-list { max-height: 250px; overflow-y: auto; }
.cdrop-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 10px 14px; font-size: 14px; text-align: right; cursor: pointer; }
.cdrop-item:hover, .cdrop-item.sel { background: #fdf1f2; color: var(--primary); }
.cdrop-item.sel { font-weight: 600; }
.cdrop-dial { width: auto; flex: none; direction: ltr; }
.cdrop-dial .cdrop-btn { width: auto; padding-inline: 12px; gap: 7px; text-align: left; }
.cdrop-dial .cdrop-btn > span { flex: none; }
.cdrop-dial .cdrop-menu { min-width: 210px; left: 0; right: auto; }
.cdrop-dial .cdrop-item { text-align: left; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* choice chips */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.chip {
    position: relative;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    background: var(--bg);
    padding: 16px 8px 14px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
    user-select: none;
    cursor: pointer;
}
.chip > i { font-size: 26px; display: block; margin: 0 auto 8px; color: var(--muted); transition: .16s; }
/* image chips: same box (icon + name), the picture sits behind them as a background */
.chip-img { overflow: hidden; }
.chip-img .chip-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.chip-img:hover .chip-bg { transform: scale(1.06); }
.chip-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, .78), rgba(10, 10, 12, .38));
    pointer-events: none;
}
.chip-img > i, .chip-img .chip-name { position: relative; z-index: 1; }
.chip-img > i { color: #fff !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.chip-img .chip-name { color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.chip-img.on { background: var(--bg); }
.chip-img.on::after { background: linear-gradient(to top, rgba(158, 15, 28, .82), rgba(158, 15, 28, .34)); }
.chip:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(17, 24, 39, .18); }
.chip.on { border-color: var(--primary); background: #fdf1f2; color: var(--primary); box-shadow: 0 0 0 2.5px rgba(209, 31, 48, .1); }
.chip.on > i { color: var(--primary); }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check {
    z-index: 1;
    position: absolute; top: 7px; inset-inline-start: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: none; align-items: center; justify-content: center; font-size: 13px;
    box-shadow: 0 3px 8px rgba(209, 31, 48, .35);
}
.chip.on .chip-check { display: inline-flex; animation: pop-in .22s cubic-bezier(.2, 1.2, .5, 1.3); }
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* product repeater */
.product-item { border: 1px dashed #dcdee2; border-radius: 10px; padding: 15px; margin-bottom: 12px; background: #fbfbfc; transition: border-color .2s, background .2s; }
.product-item.is-ok { border: 1px solid #86e0a8; background: #f6fdf8; }
.product-item.is-err { border: 1px solid #f3aab1; background: #fffafa; }
.product-item .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; }
.product-item .remove-product { background: none; border: none; color: var(--primary); font-size: 12.5px; }
.p-status { font-size: 12.5px; margin-top: 8px; display: none; align-items: center; gap: 6px; }
.p-status.ok { display: flex; color: var(--ok); }
.p-status.err { display: flex; color: var(--primary); }
.p-status.ok::before, .p-status.err::before {
    content: ''; flex: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
}

.btn-ghost {
    width: 100%;
    background: #fff;
    border: 1px dashed var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 500;
    transition: .18s;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-ghost:hover { background: #fdf1f2; }

/* usage areas */
.areas-grid { display: flex; flex-direction: column; gap: 8px; }
.areas-group-title { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.areas-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.area-check {
    display: flex; align-items: center; gap: 7px;
    border: 1px solid var(--bdr); border-radius: 8px;
    background: #fff; padding: 7px 10px;
    font-size: 12.5px; cursor: pointer; transition: .14s; user-select: none;
}
.area-check:hover { border-color: var(--primary-light); }
.area-check:has(input:checked) { border-color: var(--primary); background: #fdf1f2; color: var(--primary); font-weight: 600; }
.area-check input { accent-color: var(--primary); width: 15px; height: 15px; flex: none; }

/* images */
.img-drop {
    border: 2px dashed #dcdee2;
    border-radius: 10px;
    padding: 30px 14px;
    text-align: center;
    color: var(--muted);
    background: var(--bg);
    cursor: pointer;
    transition: .18s;
}
.img-drop:hover, .img-drop.drag { border-color: var(--primary); background: #fdf1f2; color: var(--primary); transform: scale(1.005); }
.img-drop i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%;
    background: #fff; border: 1px solid var(--bdr);
    margin-bottom: 10px; color: var(--primary);
}
.img-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.img-previews .ip { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--bdr); }
.img-previews .ip img { width: 100%; height: 100%; object-fit: cover; }
.img-previews .ip button {
    position: absolute; top: 5px; left: 5px;
    background: rgba(0, 0, 0, .6); color: #fff; border: none;
    width: 22px; height: 22px; border-radius: 50%; font-size: 13px; line-height: 1;
}
.cam-btns { display: flex; gap: 8px; margin-top: 10px; }
.cam-btns .btn-ghost { width: auto; flex: 1; border-style: solid; border-color: var(--bdr); color: var(--txt-2); }
.cam-btns .btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: #fdf1f2; }

/* terms */
.terms-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.terms-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.terms-row a { color: var(--primary); text-decoration: underline; }

/* buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 14.5px;
    font-weight: 600;
    transition: .18s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-primary i { font-size: 18px; }

/* step wizard */
.step { display: none; }
.step.on { display: block; animation: rise .32s ease; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.step-nav .btn-primary { width: auto; padding: 11px 30px; }
.step-nav .btn-ghost { width: auto; padding: 10px 22px; border-style: solid; border-color: var(--bdr); color: var(--txt-2); }
.step-nav .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; }
.s-item { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; }
.s-dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid #dcdee2; color: var(--muted);
    font-weight: 700; font-size: 14px; transition: .2s;
}
.s-lbl { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.s-item.on .s-dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(209, 31, 48, .12); }
.s-item.on .s-lbl { color: var(--primary); font-weight: 700; }
.s-item.done .s-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.s-item.done .s-lbl { color: var(--ok); }
.s-line { flex: 1; max-width: 46px; height: 1.5px; background: #dcdee2; margin-bottom: 18px; }
@media (max-width: 540px) {
    .s-lbl { font-size: 10px; }
    .s-dot { width: 28px; height: 28px; font-size: 12.5px; }
    .s-line { max-width: 18px; margin-bottom: 16px; }
}

/* invalid feedback */
.f-invalid, .f-input.f-invalid, .f-select.f-invalid {
    border-color: var(--primary) !important;
    background: #fff6f7;
    animation: shake .35s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(4px); }
    50% { transform: translateX(-4px); }
    75% { transform: translateX(2px); }
}

/* alerts */
.alert { border-radius: 8px; padding: 13px 16px; font-size: 13.5px; margin-top: 16px; }
.alert-error { background: #fdf1f2; border: 1px solid #f6c6cb; color: #a71425; }
.alert-error ul { margin: 4px 18px 0 0; }
.alert-success { background: var(--ok-soft); border: 1px solid #bbf7d0; color: #15803d; }

/* success page */
.success-box { text-align: center; padding: 44px 20px 10px; }
.success-icon {
    width: 74px; height: 74px; margin: 0 auto 18px;
    background: var(--ok-soft); color: var(--ok);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.success-box h1 { font-size: 25px; margin-bottom: 8px; }
.success-box .desc { color: var(--muted); font-size: 14.5px; max-width: 440px; margin: 0 auto; }
.code-box {
    background: var(--dark); color: #fff;
    border-radius: 10px; padding: 18px;
    max-width: 430px; margin: 24px auto;
}
.code-box label { font-size: 12.5px; color: var(--muted-2); display: block; margin-bottom: 6px; }
.code-value { display: flex; align-items: center; justify-content: center; gap: 10px; direction: ltr; }
.code-value span { font-size: 21px; font-weight: 700; letter-spacing: 1.5px; }
.code-value button { background: rgba(255, 255, 255, .12); border: none; color: #fff; border-radius: 8px; padding: 6px 9px; font-size: 15px; }
.code-value button:hover { background: rgba(255, 255, 255, .22); }
.success-actions { display: flex; flex-direction: column; gap: 10px; max-width: 430px; margin: 0 auto; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--bdr); background: #fff; color: var(--txt);
    border-radius: 8px; padding: 12px 20px; font-size: 14px; font-weight: 500; transition: .16s;
}
.btn-outline:hover { border-color: var(--dark); background: var(--dark); color: #fff; }
.next-steps { max-width: 430px; margin: 26px auto 0; text-align: right; background: #fff; border: 1px solid var(--bdr); border-radius: 8px; padding: 18px; }
.next-steps h3 { font-size: 14.5px; margin-bottom: 10px; }
.next-steps li { font-size: 13.5px; color: var(--muted); margin-inline-start: 18px; margin-bottom: 6px; }

/* lookup */
.result-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.result-table th, .result-table td { padding: 9px 6px; border-bottom: 1px solid var(--bdr); text-align: right; }
.result-table th { color: var(--muted); font-weight: 500; width: 38%; }
.status-pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 600; }
.status-active { background: var(--ok-soft); color: var(--ok); }
.status-inactive { background: #f3f4f6; color: var(--muted); }
.status-cancelled { background: #fdf1f2; color: var(--primary); }

/* loader overlay */
.loader-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, .9);
    z-index: 200;
    align-items: center; justify-content: center; flex-direction: column; gap: 16px;
    backdrop-filter: blur(3px);
}
.loader-overlay.show { display: flex; }
.spinner {
    width: 46px; height: 46px;
    border: 4px solid #fde8ea;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Footer ============ */
.store-footer { position: relative; margin-top: 90px; color: #fff; }
.footer-curve {
    position: absolute; top: 0; width: 100%;
    height: 26px; margin-top: -22px;
    color: var(--dark); display: block;
}
@media (min-width: 640px) { .footer-curve { height: 60px; margin-top: -56px; } }
.footer-body { background: var(--dark); padding-top: 20px; }
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 26px;
    padding: 26px 0 10px;
}
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; } }
/* mobile stacking order: brand (logo + registry badges) → categories → links */
@media (max-width: 959.98px) {
    .footer-brand { order: 1; }
    .footer-col--categories { order: 2; }
    .footer-col--links { order: 3; }
}
.footer-col { text-align: center; }
.footer-col h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 17px; }
.footer-col li a { font-size: 13.5px; color: #d3d5d9; transition: .14s; }
.footer-col li a:hover { color: var(--primary-light); }
.footer-brand { text-align: center; }
@media (min-width: 960px) { .footer-brand { margin-top: -46px; position: relative; z-index: 1; } }
.footer-brand img.brand-logo { width: min(300px, 74%); height: auto; }
.footer-about { color: #cfd2d6; font-size: 13.5px; margin-top: 10px; }
.footer-badges {
    display: flex; justify-content: center; align-items: center; gap: 22px;
    margin-top: 22px; flex-wrap: wrap;
}
.trust-badge { display: flex; align-items: center; gap: 10px; text-align: right; }
.trust-badge img { width: 52px; height: 52px; object-fit: contain; }
.trust-badge p { font-size: 12.5px; color: var(--muted-2); margin-bottom: 2px; }
.trust-badge b { font-size: 13.5px; letter-spacing: .4px; }
.footer-contacts { padding: 22px 0 4px; text-align: center; }
.contact-chips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; }
.contact-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; color: #fff; transition: .16s;
}
.contact-chip:hover { border-color: var(--primary-light); color: var(--primary-light); }
.contact-chip i { font-size: 15px; }
.social-row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; transition: .16s;
}
.social-row a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 24px; }
.footer-bottom .inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 0; font-size: 13px; color: var(--muted-2);
}
@media (max-width: 640px) { .footer-bottom .inner { justify-content: center; text-align: center; } }
.footer-bottom a:hover { color: var(--primary-light); }
.payments-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.payments-row img {
    width: 47px; height: 36px;
    object-fit: contain;
    background: #fff; border-radius: 6px;
    padding: 4px 5px;
}

/* ============ Floating buttons ============ */
.wa-float {
    position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 110;
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--wa); color: #fff;
    border-radius: 999px; padding: 9px 18px;
    font-size: 13.5px; font-weight: 600;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .4);
    transition: .18s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float i { font-size: 19px; }
.to-top {
    position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 110;
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--primary); color: var(--primary);
    font-size: 19px; display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .12); transition: .16s;
}
.to-top.show { display: inline-flex; }
.to-top:hover { background: var(--primary); color: #fff; }

/* ============ Toasts ============ */
.toast-stack {
    position: fixed; bottom: 74px; inset-inline-end: 18px;
    z-index: 500; display: flex; flex-direction: column-reverse; gap: 10px;
    width: min(400px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    --t-color: var(--primary);
    --t-soft: #fdf1f2;
    pointer-events: auto;
    position: relative;
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .07);
    border-radius: 12px; padding: 13px 14px 15px;
    line-height: 1.55;
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, .1), 0 20px 48px -8px rgba(16, 24, 40, .18);
    opacity: 0; transform: translateY(16px) scale(.97);
    transition: opacity .28s ease, transform .28s cubic-bezier(.21, 1.02, .55, 1.12);
    overflow: hidden;
}
.toast.show { opacity: 1; transform: none; }
.toast .t-ic {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--t-soft); color: var(--t-color);
    font-size: 19px;
}
.toast .t-body { flex: 1; min-width: 0; padding-top: 1px; }
.toast .t-title { font-size: 13.5px; font-weight: 700; color: var(--txt); }
.toast .t-msg { font-size: 13px; color: #4b5563; margin-top: 1px; display: block; }
.toast::after {
    content: '';
    position: absolute; bottom: 0; right: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--t-color), color-mix(in srgb, var(--t-color) 55%, #fff));
    border-radius: 999px;
    transform-origin: right;
    animation: toastbar var(--t-dur, 4.5s) linear forwards;
}
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-success { --t-color: var(--ok); --t-soft: var(--ok-soft); }
.toast-info { --t-color: #2563eb; --t-soft: #eff6ff; }
.toast-x {
    background: none; border: none; color: #9ca3af;
    padding: 2px; flex: none; font-size: 16px; line-height: 1;
    border-radius: 6px; transition: .15s; margin-top: 1px;
}
.toast-x:hover { color: var(--txt); background: #f3f4f6; }
@media (max-width: 540px) {
    .toast-stack { inset-inline: 16px; width: auto; bottom: 74px; }
}

