/* TruebookShop design system - "Coastal Market".
   One signature palette shared by every shop; --brand is the only colour a client changes
   (Ecommerce > Shop Appearance), and every tint/shade below is derived from it with color-mix,
   so any accent the owner picks gets matching hovers, chips and backgrounds. */

:root {
    --brand: #0E7C86;
    --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
    --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff);
    --brand-tint: color-mix(in srgb, var(--brand) 22%, #fff);

    --sun: #F5A524;
    --sun-soft: #FEF3DC;
    --coral: #F0645A;
    --coral-soft: #FDE7E5;
    --leaf: #22A06B;
    --leaf-soft: #DFF5EA;
    --plum: #7C5CFC;
    --plum-soft: #ECE7FF;
    --sky: #2E9BDA;
    --sky-soft: #E1F1FB;

    --ink: #14213D;
    --text: #334155;
    --muted: #64748B;
    --faint: #94A3B8;
    --line: #E7E2D8;
    --page: #F7F5F0;
    --card: #FFFFFF;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 1px 3px rgba(20, 33, 61, .05);
    --shadow: 0 2px 6px rgba(20, 33, 61, .05), 0 8px 24px rgba(20, 33, 61, .07);
    --shadow-lg: 0 12px 40px rgba(20, 33, 61, .14);

    --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; font-weight: 750; }
::selection { background: var(--brand-tint); }

/* ── Icons ─────────────────────────────────────────────── */
.tb-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.22em; }

/* ── Buttons ───────────────────────────────────────────── */
.tb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 650 .95rem/1.2 var(--font-head); cursor: pointer; text-decoration: none;
    transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
    background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent);
}
.tb-btn:hover { background: var(--brand-ink); }
.tb-btn:active { transform: scale(.98); }
.tb-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.tb-btn.block { width: 100%; }
.tb-btn.sm { min-height: 36px; padding: .4rem .9rem; font-size: .85rem; }
.tb-btn.lg { min-height: 52px; font-size: 1.02rem; }
.tb-btn.outline { background: #fff; color: var(--brand); border-color: var(--brand-tint); box-shadow: none; }
.tb-btn.outline:hover { background: var(--brand-soft); border-color: var(--brand); }
.tb-btn.ghost { background: transparent; color: var(--brand); box-shadow: none; padding-left: .5rem; padding-right: .5rem; }
.tb-btn.ghost:hover { background: var(--brand-soft); }
.tb-btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 16px rgba(245, 165, 36, .3); }
.tb-btn.sun:hover { background: #E6951A; }
.tb-btn.danger { background: #fff; color: var(--coral); border-color: var(--coral-soft); box-shadow: none; }
.tb-btn.danger:hover { background: var(--coral-soft); }
.tb-btn.white { background: #fff; color: var(--brand-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }

.tb-link { color: var(--brand); font-weight: 600; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; font-size: .9rem; }
.tb-link:hover { text-decoration: underline; }
.tb-link.danger { color: var(--coral); }

.tb-back { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: .75rem; }
.tb-back:hover { color: var(--brand); }

/* ── Cards / surfaces ──────────────────────────────────── */
.tb-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(20, 33, 61, .04); padding: 1.1rem; margin-bottom: .9rem; }
.tb-card.flat { box-shadow: none; }
.tb-card.pad-lg { padding: 1.5rem; }
.tb-card-title { display: flex; align-items: center; gap: .6rem; font: 750 1.02rem var(--font-head); color: var(--ink); margin: 0 0 .85rem; }
.tb-page { max-width: 720px; margin: 0 auto; }
.tb-page.wide { max-width: 1100px; }
.tb-row { display: flex; align-items: center; gap: .6rem; }
.tb-between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.tb-muted { color: var(--muted); }
.tb-small { font-size: .82rem; }
.tb-divider { border: none; border-top: 1px dashed var(--line); margin: .8rem 0; }

/* ── Chips / pills / badges ────────────────────────────── */
.tb-chip {
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font: 600 .86rem var(--font-body); color: var(--text); cursor: pointer; transition: all .15s;
}
.tb-chip:hover { border-color: var(--brand-tint); color: var(--brand); }
.tb-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tb-chip[disabled] { opacity: .45; cursor: not-allowed; }
.tb-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.tb-chips::-webkit-scrollbar { display: none; }

.tb-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tb-pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tb-pill.sun { background: var(--sun-soft); color: #9A5B00; }
.tb-pill.coral { background: var(--coral-soft); color: #B4332A; }
.tb-pill.leaf { background: var(--leaf-soft); color: #11744B; }
.tb-pill.plum { background: var(--plum-soft); color: #5236CF; }
.tb-pill.sky { background: var(--sky-soft); color: #1B6EA3; }
.tb-pill.grey { background: #EEF0F3; color: var(--muted); }

.tb-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ── Notes ─────────────────────────────────────────────── */
.tb-note { display: flex; gap: .55rem; align-items: flex-start; border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .88rem; margin: .6rem 0; background: var(--brand-soft); color: var(--brand-ink); }
.tb-note.ok { background: var(--leaf-soft); color: #11744B; }
.tb-note.warn { background: var(--sun-soft); color: #8A5200; }
.tb-note.err { background: var(--coral-soft); color: #A42B22; }

/* ── Forms ─────────────────────────────────────────────── */
.tb-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.tb-field > label, .tb-label { font-size: .8rem; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.tb-input, .tb-field input, .tb-field select, .tb-field textarea {
    width: 100%; min-height: 46px; padding: .65rem .85rem; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font-size: .97rem; transition: border-color .15s, box-shadow .15s;
}
.tb-field textarea { min-height: 80px; resize: vertical; }
.tb-input:focus, .tb-field input:focus, .tb-field select:focus, .tb-field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.tb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
@media (max-width: 480px) { .tb-grid2 { grid-template-columns: 1fr; } }

/* ── Choice cards (payment, address, slot) ─────────────── */
.tb-choice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; margin-bottom: .6rem; }
.tb-choice:hover { border-color: var(--brand-tint); }
.tb-choice.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.tb-choice input[type=radio] { accent-color: var(--brand); margin-top: .2rem; width: 18px; height: 18px; }

/* ── Section header ────────────────────────────────────── */
.tb-section { margin: 1.75rem 0 .9rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.tb-section h2 { margin: 0; font-size: 1.22rem; }
.tb-section .sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.tb-section .accent { display: block; width: 34px; height: 4px; border-radius: 4px; margin-bottom: .45rem; background: linear-gradient(90deg, var(--brand), var(--sun)); }

/* ── Quantity stepper ──────────────────────────────────── */
.tb-stepper { display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 999px; height: 36px; overflow: hidden; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 25%, transparent); }
.tb-stepper button { width: 34px; height: 36px; border: none; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tb-stepper button:hover { background: rgba(255, 255, 255, .15); }
.tb-stepper button[disabled] { opacity: .45; cursor: not-allowed; }
.tb-stepper span { min-width: 26px; text-align: center; font-weight: 800; font-size: .92rem; }
.tb-stepper.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.tb-stepper.light button { color: var(--brand); }
.tb-stepper.light button:hover { background: var(--brand-soft); }
.tb-stepper.lg { height: 46px; }
.tb-stepper.lg button { width: 44px; height: 46px; }
.tb-stepper.lg span { min-width: 34px; font-size: 1.05rem; }

/* ── Product grid & card ───────────────────────────────── */
.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 640px) { .tb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 960px) { .tb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tb-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 44%); gap: .8rem; overflow-x: auto; padding: .2rem .1rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tb-rail::-webkit-scrollbar { display: none; }
.tb-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .tb-rail { grid-auto-columns: minmax(190px, 28%); } }
@media (min-width: 960px) { .tb-rail { grid-auto-columns: minmax(200px, 21%); } }

.pc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(20, 33, 61, .05); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(145deg, var(--tint, var(--brand-soft)), #fff 85%); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pc:hover .pc-media img { transform: scale(1.05); }
.pc-media .ph { width: 46%; height: 46%; color: var(--tone, var(--brand)); opacity: .55; }
.pc-off { position: absolute; top: 10px; left: 0; background: var(--coral); color: #fff; font: 800 .72rem var(--font-head); padding: .28rem .6rem .28rem .55rem; border-radius: 0 999px 999px 0; box-shadow: 0 4px 10px rgba(240, 100, 90, .35); letter-spacing: .02em; }
.pc-flag { position: absolute; bottom: 8px; left: 8px; }
.pc-heart { position: absolute; top: 8px; right: 8px; z-index: 2; }
.pc-body { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .8rem .85rem; flex: 1; }
.pc-cat { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tone, var(--brand)); }
.pc-name { font: 650 .92rem/1.3 var(--font-head); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; cursor: pointer; }
.pc-desc { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.pc.out .pc-media { filter: grayscale(.85); opacity: .7; }

.tb-price { display: flex; flex-direction: column; line-height: 1.15; }
.tb-price .now { font: 800 1.05rem var(--font-head); color: var(--ink); }
.tb-price .was { font-size: .78rem; color: var(--faint); text-decoration: line-through; }
.tb-price.lg .now { font-size: 1.6rem; }
.tb-price.lg .was { font-size: .95rem; }
.tb-price.row { flex-direction: row; align-items: baseline; gap: .5rem; }

.tb-add { min-height: 36px; padding: .35rem .95rem; border-radius: 999px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: 800 .8rem var(--font-head); letter-spacing: .05em; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; transition: all .15s; }
.tb-add:hover { background: var(--brand); color: #fff; }
.tb-add[disabled] { border-color: var(--line); color: var(--faint); background: #F4F4F4; cursor: not-allowed; }

/* ── Heart ─────────────────────────────────────────────── */
.wl-heart { border: none; background: rgba(255, 255, 255, .94); border-radius: 50%; width: 36px; height: 36px; color: var(--muted); cursor: pointer; box-shadow: 0 2px 8px rgba(20, 33, 61, .15); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s, color .15s; }
.wl-heart:hover { transform: scale(1.08); color: var(--coral); }
.wl-heart.on { color: var(--coral); }
.wl-heart.on svg { fill: var(--coral); }
.wl-heart.corner { position: absolute; top: 8px; right: 8px; z-index: 2; }

/* ── Empty states ──────────────────────────────────────── */
.tb-empty { text-align: center; padding: 2.5rem 1.25rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.tb-empty .art { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, var(--sun-soft), var(--brand-soft)); color: var(--brand); }
.tb-empty .art .tb-icon { width: 44px; height: 44px; }
.tb-empty h2 { margin: 0 0 .35rem; }
.tb-empty p { color: var(--muted); margin: 0 auto 1.25rem; max-width: 360px; }

/* ── Skeleton ──────────────────────────────────────────── */
.tb-skeleton { background: linear-gradient(90deg, #EFECE5 25%, #F8F6F1 50%, #EFECE5 75%); background-size: 200% 100%; animation: tb-shimmer 1.4s infinite; border-radius: var(--radius); min-height: 90px; }
.tb-skeleton.card { aspect-ratio: 3 / 4.4; }
@keyframes tb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Sticky bottom action bar (cart, product) ──────────── */
.tb-actionbar { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 90; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: .7rem 1rem; box-shadow: 0 -8px 24px rgba(20, 33, 61, .08); }
.tb-actionbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: .9rem; }
.tb-actionbar-inner > .tb-btn { flex: 1; }

/* ── Key/value rows (totals) ───────────────────────────── */
.tb-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .93rem; }
.tb-kv.total { border-top: 1.5px dashed var(--line); margin-top: .4rem; padding-top: .7rem; font: 800 1.1rem var(--font-head); color: var(--ink); }
.tb-kv .save { color: var(--leaf); font-weight: 700; }

/* ── Avatars / list rows ───────────────────────────────── */
.tb-listrow { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: #fff; border-radius: 14px; margin-bottom: .55rem; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tb-listrow:hover { transform: translateX(2px); box-shadow: var(--shadow); }
.tb-listrow .ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tb-listrow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tb-listrow .t { font: 700 .95rem var(--font-head); color: var(--ink); }
.tb-listrow .s { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-listrow .chev { color: var(--faint); }

.tone-brand { background: var(--brand-soft); color: var(--brand); }
.tone-sun { background: var(--sun-soft); color: #C27A00; }
.tone-coral { background: var(--coral-soft); color: var(--coral); }
.tone-leaf { background: var(--leaf-soft); color: var(--leaf); }
.tone-plum { background: var(--plum-soft); color: var(--plum); }
.tone-sky { background: var(--sky-soft); color: var(--sky); }

/* ── Branded hero header for auth/account pages ────────── */
.tb-hero-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tb-hero-card .top { position: relative; padding: 1.6rem 1.4rem 1.4rem; color: #fff; background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 45%), linear-gradient(135deg, var(--brand), var(--brand-ink)); }
.tb-hero-card .top h1, .tb-hero-card .top h2 { color: #fff; margin: 0 0 .25rem; }
.tb-hero-card .top p { margin: 0; opacity: .88; }
.tb-hero-card .body { padding: 1.4rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Fullscreen image viewer (created by js/productImage.js outside the Blazor tree) ── */
.tb-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 16, 32, .94); display: flex; align-items: center; justify-content: center; touch-action: none; }
.tb-lightbox-img { max-width: 96vw; max-height: 92vh; object-fit: contain; transform-origin: center center; user-select: none; -webkit-user-drag: none; border-radius: 8px; }
.tb-lightbox-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.tb-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: reduce) { .main-product-img, .tb-lightbox-img { transition: none !important; transform: none !important; } }

/* ── Sign in / create account (Login.razor, Register.razor) ── */
.login-container { min-height: calc(100vh - 260px); display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 0 2rem; }
.login-card { position: relative; width: 100%; max-width: 430px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 4.4rem 1.6rem 1.6rem; overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--brand), var(--sky), var(--sun), var(--coral)); }
.login-card::after { content: ""; position: absolute; top: 1.4rem; left: 1.6rem; width: 46px; height: 46px; border-radius: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 24px no-repeat,
        linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--sky)));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.login-card h1 { font-size: 1.55rem; margin: 0 0 .3rem; }
.login-card .subtitle { color: var(--muted); margin: 0 0 1.4rem; }
.login-card .form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.login-card .form-group label { font-size: .8rem; font-weight: 650; color: var(--muted); }
.login-card .optional { color: var(--faint); font-weight: 500; }
.login-card .form-group input { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-card .form-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.login-card .code-input { font: 800 1.6rem var(--font-head) !important; letter-spacing: .5em; text-align: center; }
.login-card .hint { font-size: .76rem; color: var(--faint); }
.login-card .login-btn { width: 100%; min-height: 50px; border: none; border-radius: 999px; background: var(--brand); color: #fff; font: 700 1rem var(--font-head); cursor: pointer; margin-top: .3rem;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); transition: background .15s, transform .1s; }
.login-card .login-btn:hover { background: var(--brand-ink); }
.login-card .login-btn:active { transform: scale(.98); }
.login-card .login-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.login-card .error-message { background: var(--coral-soft); color: #A42B22; border-radius: 12px; padding: .65rem .85rem; font-size: .88rem; margin-bottom: 1rem; }
.login-card .notice-message { background: var(--leaf-soft); color: #11744B; border-radius: 12px; padding: .65rem .85rem; font-size: .88rem; margin-bottom: 1rem; }
.login-card .register-link { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .88rem; color: var(--muted); text-align: center; }
.login-card .register-link a { color: var(--brand); font-weight: 700; }
.login-card .alt-method, .login-card .secondary-actions { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1rem; }
.login-card .link-btn { background: none; border: none; color: var(--brand); font-weight: 650; cursor: pointer; padding: .3rem; font-size: .9rem; }
.login-card .link-btn:hover { text-decoration: underline; }
.login-card .link-btn:disabled { opacity: .5; cursor: not-allowed; }
.login-card .sep { color: var(--faint); }
.login-card .google-wrap.hidden { display: none; }
.login-card #google-signin-button { display: flex; justify-content: center; }
.login-card .divider { position: relative; text-align: center; margin: 1.2rem 0; }
.login-card .divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.login-card .divider span { position: relative; background: #fff; padding: 0 .75rem; color: var(--faint); font-size: .8rem; font-weight: 600; }

/* Pages with a sticky action bar (cart, product): lift the WhatsApp button above it and keep the
   footer clear of it on phones. */
@media (max-width: 899px) {
    body:has(.tb-actionbar) .wa-fab { bottom: 150px; }
    body:has(.tb-actionbar) .ftr { padding-bottom: 150px; }
}
/* Compact stepper inside product cards so it never crowds the price. */
.pc .tb-stepper { height: 34px; }
.pc .tb-stepper button { width: 28px; height: 34px; }
.pc .tb-stepper span { min-width: 20px; font-size: .85rem; }
