/* Storefront MVP — mobile-first styles */

/* Base */
body {
    background-color: #f8f7f4;
    -webkit-text-size-adjust: 100%;
    font-family: 'Poppins', sans-serif;
}

/* Navbar: desktop nav vs. mobile burger menu */
.hide-mobile {
    display: block;
}
.hide-desktop {
    display: none;
}
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    .hide-desktop {
        display: block;
    }
}

/* Touch-friendly tap targets */
button, a, .mantine-Button-root, .mantine-ActionIcon-root {
    min-height: 44px;
    min-width: 44px;
}

/* Save button heart animation */
.bi-heart-fill {
    color: #e03131;
}

/* Store page hero photo banner */
.store-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.store-hero img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* Charts: prevent overflow on mobile */
.js-plotly-plot, .plotly {
    width: 100% !important;
}
.js-plotly-plot .plotly .main-svg {
    width: 100% !important;
}

/* AG Grid: horizontal scroll on mobile */
.ag-root-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* QR code centered on mobile */
.qr-container {
    text-align: center;
}
.qr-container img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Compact padding on small screens */
@media (max-width: 768px) {
    .mantine-Container-root {
        padding-left: 12px;
        padding-right: 12px;
    }
    .mantine-Card-root {
        padding: 12px !important;
    }
    .mantine-AppShell-main {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ---- Front page (/welcome): light, fresh, soft ------------------------- */
.b33-hero {
    background: radial-gradient(1200px 420px at 50% -80px, rgba(201,106,70,0.16), rgba(250,247,242,0) 70%),
                linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
}
.b33-section-tint { background: linear-gradient(180deg, #FAF7F2 0%, #FFF 100%); }
.b33-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 26px;
    height: 100%;
    box-shadow: 0 1px 2px rgba(35,35,35,0.04), 0 14px 34px -18px rgba(201,106,70,0.35);
    border: 1px solid rgba(201,106,70,0.10);
}
/* Panels are not clickable, so they do not react to the pointer. */
.b33-media img, .b33-media video { border-radius: 16px; box-shadow: 0 12px 28px -14px rgba(35,35,35,0.45); }

.b33-tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.6vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
    margin: 0;
    color: #232323;
}
.b33-tagline em { font-style: normal; color: #C96A46; }

.b33-audiences {
    display: grid; gap: 16px; width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.b33-aud {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border-radius: 22px; padding: 22px 22px 20px;
    border: 1px solid rgba(201,106,70,0.12);
    box-shadow: 0 14px 34px -20px rgba(201,106,70,0.45);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.b33-aud:hover { transform: translateY(-4px); border-color: rgba(201,106,70,0.45);
    box-shadow: 0 24px 46px -20px rgba(201,106,70,0.55); }
.b33-aud .b33-ico {
    width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 14px;
    background: linear-gradient(135deg, #E08A63 0%, #C96A46 100%);
    box-shadow: 0 10px 20px -8px rgba(201,106,70,0.7);
}
.b33-aud h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.b33-aud p { margin: 0 0 12px; color: #6b6b6b; font-size: .92rem; line-height: 1.45; }
.b33-aud .b33-more { margin-top: auto; color: #C96A46; font-weight: 600; font-size: .9rem; }

.b33-points {
    display: grid; gap: 12px; width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.b33-point {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(255,255,255,0.75); backdrop-filter: blur(6px);
    border-radius: 16px; padding: 14px 16px; font-size: .9rem; line-height: 1.4; font-weight: 500;
    border: 1px solid rgba(201,106,70,0.10);
}
.b33-point i { color: #C96A46; font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }

.b33-price { font-weight: 800; color: #C96A46; letter-spacing: -0.5px; }
.b33-pill-btn .mantine-Button-root {
    border-radius: 999px; background: linear-gradient(135deg, #E08A63 0%, #C96A46 100%);
    box-shadow: 0 12px 22px -10px rgba(201,106,70,0.8); border: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.b33-pill-btn .mantine-Button-root:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -10px rgba(201,106,70,0.9); }

.b33-tile { display: block; text-align: center; padding: 10px 6px; border-radius: 16px; transition: transform .2s ease, background .2s ease; }
.b33-tile:hover { transform: translateY(-3px); background: rgba(201,106,70,0.06); }
.b33-tile img { border-radius: 14px; box-shadow: 0 10px 22px -12px rgba(35,35,35,0.5); }

.b33-fade { animation: b33-fade .7s ease both; }
.b33-fade.d2 { animation-delay: .12s; } .b33-fade.d3 { animation-delay: .24s; }
@keyframes b33-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    .b33-fade { animation: none; }
    .b33-aud, .b33-tile, .b33-pill-btn .mantine-Button-root { transition: none; }
    html { scroll-behavior: auto; }
}



/* ---- Shop dashboard screens ------------------------------------------------ */
.b33-back { display: inline-block; margin: 6px 0 2px; color: #C96A46; font-weight: 600; text-decoration: none; }
.b33-view-logo { display: block; height: 44px; width: auto; margin: 10px auto 14px; }
.b33-view-title { margin: 0 0 18px; }
.b33-view-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.b33-home-header { text-align: center; background: #fff; border-radius: 22px; padding: 22px 18px; margin: 14px 0 16px;
    box-shadow: 0 14px 34px -20px rgba(201,106,70,0.45); border: 1px solid rgba(201,106,70,0.12); }
.b33-home-btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none;
    font-weight: 700; letter-spacing: .3px; color: #232323; background: #fff; border-radius: 18px; padding: 18px 14px;
    border: 1px solid rgba(201,106,70,0.18); box-shadow: 0 10px 26px -18px rgba(201,106,70,0.55);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.b33-home-btn i { color: #C96A46; font-size: 1.3rem; }
.b33-home-btn:hover { transform: translateY(-3px); border-color: rgba(201,106,70,0.5); box-shadow: 0 18px 32px -18px rgba(201,106,70,0.7); }
.b33-home-btn.big { color: #fff; background: linear-gradient(135deg, #E08A63 0%, #C96A46 100%); border: 0; font-size: 1.1rem; padding: 22px 14px; }
.b33-home-btn.big i { color: #fff; }
.b33-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 18px; }
.b33-credit { background: #fff; border-radius: 18px; padding: 14px 18px 12px; margin: 16px 0 6px;
    border: 1px solid rgba(201,106,70,0.12); box-shadow: 0 10px 26px -20px rgba(201,106,70,0.55); }
.b33-credit-title { text-align: center; font-weight: 700; margin-bottom: 10px; }
.b33-credit-bar { position: relative; display: flex; height: 14px; border-radius: 999px; overflow: visible; }
.b33-credit-bar .seg { display: block; height: 100%; }
.b33-credit-bar .seg.red { background: #e03131; border-radius: 999px 0 0 999px; }
.b33-credit-bar .seg.yellow { background: #fcc419; }
.b33-credit-bar .seg.green { background: #2f9e44; border-radius: 0 999px 999px 0; }
.b33-credit-bar .marker { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px;
    background: #232323; box-shadow: 0 0 0 2px #fff; }
.b33-credit-n { text-align: center; font-size: .85rem; color: #6b6b6b; margin-top: 10px; }


/* ---- QR manager cards ----------------------------------------------------- */
.b33-bar { margin: 26px 0 12px; padding: 10px 14px; text-align: center; font-size: 1rem; font-weight: 800; letter-spacing: 1px;
    background: #fff; border-radius: 14px; border: 1px solid rgba(201,106,70,0.18); box-shadow: 0 8px 22px -18px rgba(201,106,70,0.6); }
.b33-items { display: flex; flex-direction: column; gap: 12px; }
.b33-item { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px;
    border: 1px solid rgba(201,106,70,0.12); box-shadow: 0 10px 26px -20px rgba(201,106,70,0.5); flex-wrap: wrap; }
.b33-item-img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; flex-shrink: 0; background: #f1ece4; }
.b33-item-img.placeholder { display: flex; align-items: center; justify-content: center; color: #c9bfae; font-size: 1.8rem; }
.b33-item-body { flex: 1 1 180px; min-width: 0; }
.b33-item-side { flex: 0 0 auto; text-align: left; }
.b33-item-actions { flex: 0 0 auto; margin-left: auto; min-width: 92px; }
.b33-add { margin-top: 12px; background: #fff; border-radius: 16px; border: 1px dashed rgba(201,106,70,0.45); padding: 4px 14px; }
.b33-add > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: #C96A46; list-style: none; }
.b33-add > summary::before { content: "+  "; font-weight: 800; }
.b33-add[open] > summary::before { content: "–  "; }
.b33-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px; }


/* ---- Print shop design picker ---------------------------------------------- */
.b33-designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; }
.b33-designs label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
    padding: 10px 6px; border-radius: 14px; border: 2px solid transparent; text-align: center; font-weight: 600; font-size: .85rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.b33-designs label:hover { transform: translateY(-2px); background: rgba(201,106,70,0.05); }
.b33-designs label:has(input:checked) { border-color: #C96A46; background: rgba(201,106,70,0.08); }
.b33-designs input { position: absolute; opacity: 0; pointer-events: none; }
.b33-design { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.b33-design img { width: 100%; max-width: 110px; height: auto; border-radius: 8px; box-shadow: 0 10px 20px -12px rgba(35,35,35,0.55); }


/* ---- Tables on the stats screen ------------------------------------------------ */
.b33-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.b33-table th { text-align: left; font-weight: 700; color: #6b6b6b; padding: 6px 4px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.b33-table td { padding: 7px 4px; border-bottom: 1px solid rgba(0,0,0,0.05); font-variant-numeric: tabular-nums; }


/* ---- The scan page (/store/<slug>) ----------------------------------------------- */
.b33-store-name { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 6px; }
.b33-store-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 22px -12px rgba(35,35,35,0.5); }
.b33-store-box { display: flex; flex-direction: column; gap: 6px; }


/* ---- The "SAVE +33%" poster, as HTML ------------------------------------------------ */
.b33-poster { width: 100%; max-width: 190px; margin: 0 auto; padding: 18px 14px 14px; text-align: center; background: #FAF7F2;
    border: 1px solid rgba(35,35,35,0.12); border-radius: 12px; box-shadow: 0 1px 2px rgba(35,35,35,0.06);
    font-family: 'Oswald', 'Arial Narrow', Impact, sans-serif; color: #232323; text-transform: uppercase; }
.b33-poster-save { font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: .5px; }
.b33-poster-pct { font-weight: 700; font-size: 2.6rem; line-height: 1.05; color: #C96A46; }
.b33-poster-sub { font-weight: 500; font-size: .72rem; letter-spacing: .3px; text-transform: none; margin: 2px 0 6px; }
.b33-poster-scan { font-weight: 700; font-size: 1.45rem; line-height: 1.1; margin-bottom: 8px; }
.b33-poster-qr { display: inline-block; padding: 7px; background: #fff; border: 2px solid #C96A46; border-radius: 10px; }
.b33-poster-qr img { display: block; width: 100px; height: 100px; }
.b33-poster-logo { display: block; height: 20px; width: auto; margin: 10px auto 2px; }
.b33-poster-tag { font-family: 'Poppins', sans-serif; font-size: .62rem; letter-spacing: .4px; color: #6b6b6b; text-transform: none; }


/* ---- Front page: flat. Depth comes from borders and spacing, not shadows. ---------- */
.b33-welcome, .b33-welcome * { box-shadow: none !important; text-shadow: none !important; }
.b33-welcome .b33-card { border-color: rgba(35,35,35,0.10); }
.b33-welcome .b33-aud { border-color: rgba(35,35,35,0.10); }
.b33-welcome .b33-aud:hover { transform: none; border-color: #C96A46; }
.b33-welcome .b33-pill-btn .mantine-Button-root:hover { transform: none; filter: brightness(0.95); }
.b33-welcome .b33-tile:hover { transform: none; }
.b33-welcome .b33-media img, .b33-welcome .b33-media video { border: 1px solid rgba(35,35,35,0.08); }


/* ---- Front page layout (flat, calmer) -------------------------------------------- */
.b33-welcome .b33-tagline { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 820px; margin: 0; }
.b33-welcome .b33-h { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 14px; }
.b33-welcome .b33-p { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; color: #3d3d3d; text-align: left; }
.b33-welcome .b33-p.strong { font-weight: 600; color: #232323; }
.b33-welcome .b33-p.accent { color: #C96A46; }
.b33-welcome .b33-p.center { text-align: center; }
.b33-welcome .b33-copy { max-width: 560px; margin: 0 auto; }
.b33-welcome .b33-tags { margin: 6px 0 0; font-size: .85rem; font-weight: 600; color: #6b6b6b; text-align: left; }
.b33-welcome .b33-price { margin: 18px 0 10px; text-align: left !important; }

.b33-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.b33-btn-ghost { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 999px;
    border: 1.5px solid #232323; color: #232323; font-weight: 600; font-size: .95rem; text-decoration: none; }
.b33-btn-ghost:hover { background: #232323; color: #fff; }
.b33-hero-search { width: min(420px, 100%); text-align: center; }
.b33-hero-search-label { display: block; font-size: .85rem; color: #6b6b6b; margin-bottom: 6px; }
.b33-search { display: flex; gap: 8px; }
.b33-search-btn { height: 44px; width: 52px; border: 0; border-radius: 8px; background: #232323; color: #fff;
    font-size: 1rem; cursor: pointer; }

.b33-welcome .b33-audiences { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.b33-welcome .b33-aud { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; }
.b33-welcome .b33-aud .b33-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem; margin: 0; flex-shrink: 0; }
.b33-aud-title { font-weight: 700; flex: 1; }
.b33-aud-arrow { color: #C96A46; }
.b33-welcome .b33-points { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.b33-welcome .b33-point { background: transparent; border: 0; padding: 6px 4px; justify-content: center; align-items: center;
    font-weight: 600; font-size: .9rem; }

.b33-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; max-width: 760px; margin: 8px auto 0; }
.b33-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #232323;
    font-weight: 700; font-size: .9rem; }
.b33-welcome .b33-tile img { width: 100%; max-width: 140px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px;
    border: 1px solid rgba(35,35,35,0.08); }
.b33-welcome .b33-tile:hover span { color: #C96A46; }

.b33-media-block { display: flex; flex-direction: column; gap: 8px; }
.b33-caption { margin: 0; text-align: center; font-weight: 600; font-size: .9rem; }
.b33-video { position: relative; border-radius: 16px; overflow: hidden; background: #232323; }
.b33-video video, .b33-video img { display: block; width: 100%; height: auto; border: 0 !important; border-radius: 0 !important; }
.b33-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
    border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); color: #C96A46; font-size: 2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.b33-play:hover { background: #fff; }
.b33-video.playing .b33-play { display: none; }
.b33-play-idle .b33-play { cursor: default; opacity: .75; }

.b33-signup { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: .9rem; }
.b33-boss { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px; }
.b33-earn { margin: 0; font-weight: 800; color: #C96A46; font-size: 1.05rem; }
