:root {
    --ink: #17183d;
    --ink-soft: #5f617e;
    --muted: #8588a2;
    --purple: #5a46ca;
    --purple-2: #7257e7;
    --purple-3: #927cf1;
    --purple-soft: #f0edff;
    --purple-faint: #f8f7ff;
    --teal: #0089a8;
    --teal-dark: #08708b;
    --green: #29b36a;
    --line: #e4e5f0;
    --line-strong: #d7d8e8;
    --surface: #ffffff;
    --surface-soft: #fafafe;
    --shadow-sm: 0 5px 18px rgba(42, 38, 91, .07);
    --shadow-md: 0 14px 34px rgba(42, 38, 91, .10);
    --shadow-lg: 0 24px 60px rgba(47, 40, 117, .18);
    --radius: 16px;
    --header-h: 74px;
    --chat-w: 410px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow: hidden;
    color: var(--ink);
    background: #f8f7ff;
    font-family: Inter, Manrope, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(90, 70, 202, .22);
    outline-offset: 2px;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

/* Header */
.app-header {
    position: relative;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    height: var(--header-h);
    padding: 0 25px 0 27px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(38, 36, 87, .03);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
}

.brand img {
    width: 238px;
    height: auto;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 0 22px;
    white-space: nowrap;
    color: #23254c;
    background: #fff;
    border: 1px solid #dfe0ec;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(35, 35, 75, .02);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav-pill svg {
    width: 19px;
    height: 19px;
}

.nav-pill:hover {
    transform: translateY(-1px);
    border-color: #c8c2ef;
    box-shadow: 0 6px 15px rgba(49, 41, 120, .08);
}

.nav-pill.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #634bd6 0%, #4e3eb8 100%);
    box-shadow: 0 8px 20px rgba(83, 62, 190, .23);
}

.profile-chip {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    padding: 4px 2px 4px 4px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-align: left;
}

.profile-chip > img {
    width: 46px;
    height: 46px;
    border: 2px solid #ded9fc;
    border-radius: 50%;
    object-fit: cover;
    background: #f2efff;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    min-width: 92px;
    line-height: 1.2;
}

.profile-copy strong {
    font-size: 13px;
    font-weight: 800;
}

.profile-copy small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #777a95;
    font-size: 11px;
}

.profile-copy i {
    width: 8px;
    height: 8px;
    background: #38c979;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(56, 201, 121, .12);
}

.profile-chip > svg {
    width: 17px;
    height: 17px;
    color: #454765;
}

/* Main frame */
.app-shell {
    display: grid;
    grid-template-columns: var(--chat-w) minmax(0, 1fr);
    height: calc(100dvh - var(--header-h));
    min-height: 0;
}

/* Chat */
.chat-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border-right: 1px solid var(--line);
}

.chat-panel-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 16px 16px 13px 10px;
    border-bottom: 1px solid var(--line);
}

.chat-panel-head p {
    margin: 0 0 2px;
    max-width: 280px;
    color: #5b48ce;
    font-size: 13px;
    line-height: 1.24;
    font-weight: 900;
    letter-spacing: .075em;
}

.chat-panel-head h1 {
    margin: 0;
    color: #17183c;
    font-size: 15px;
    font-weight: 900;
}

.new-chat-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, #5d49ca, #493aa9);
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(75, 58, 171, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.new-chat-btn:hover {
    transform: translateY(-1px) rotate(3deg);
    box-shadow: 0 12px 24px rgba(75, 58, 171, .28);
}

.new-chat-btn svg {
    width: 23px;
    height: 23px;
    stroke-width: 2.2;
}

.chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 16px 18px 13px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #8e8e92 transparent;
}

.chat-thread::-webkit-scrollbar,
.workspace::-webkit-scrollbar {
    width: 8px;
}

.chat-thread::-webkit-scrollbar-thumb,
.workspace::-webkit-scrollbar-thumb {
    background: #8d8e95;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
}

.chat-thread::-webkit-scrollbar-track,
.workspace::-webkit-scrollbar-track {
    background: transparent;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 11px;
    animation: message-in .26s ease both;
}

.chat-message.user {
    justify-content: flex-end;
    padding-left: 42px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    background: #f0edff;
    border: 1px solid #ded9f2;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(37, 34, 86, .08);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble {
    position: relative;
    max-width: 278px;
    padding: 12px 14px 10px;
    color: #151638;
    background: #f6f6fb;
    border: 1px solid #dedfea;
    border-radius: 15px 15px 15px 4px;
    box-shadow: 0 2px 4px rgba(37, 35, 75, .02);
    font-size: 13px;
    line-height: 1.55;
}

.chat-message.user .chat-bubble {
    max-width: 260px;
    padding: 10px 15px 8px;
    color: #fff;
    background: linear-gradient(135deg, #7358e7 0%, #5b45cc 100%);
    border: 0;
    border-radius: 15px 15px 4px 15px;
    box-shadow: 0 8px 18px rgba(84, 63, 196, .18);
}

.chat-bubble .sender {
    display: block;
    margin: 0 0 5px;
    font-weight: 900;
}

.chat-bubble p {
    margin: 0 0 7px;
}

.chat-bubble p:last-of-type {
    margin-bottom: 0;
}

.chat-bubble ul {
    margin: 6px 0;
    padding-left: 18px;
}

.chat-bubble li {
    margin: 2px 0;
}

.chat-bubble strong.total-highlight {
    color: #6650d6;
    font-size: 15px;
}

.chat-bubble .summary-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    font-weight: 900;
}

.chat-bubble .summary-title i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: #43bd64;
    border-radius: 50%;
    font-style: normal;
    font-size: 13px;
}

.chat-time {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 7px;
    color: #8a8ca1;
    font-size: 9px;
    line-height: 1;
}

.chat-message.user .chat-time {
    justify-content: flex-end;
    color: rgba(255, 255, 255, .72);
}

.chat-time .ticks {
    font-weight: 900;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.quick-action {
    padding: 7px 10px;
    color: #5845c8;
    background: #fff;
    border: 1px solid #cec8f3;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: background .17s ease, color .17s ease, transform .17s ease;
}

.quick-action:hover {
    color: #fff;
    background: #5e49cf;
    transform: translateY(-1px);
}

.typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.typing-bubble span {
    width: 7px;
    height: 7px;
    background: #8d8fa6;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) { animation-delay: .13s; }
.typing-bubble span:nth-child(3) { animation-delay: .26s; }

.chat-composer-wrap {
    flex: 0 0 auto;
    padding: 13px 12px 10px 6px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 11px;
}

.chat-composer textarea {
    display: block;
    width: 100%;
    min-height: 58px;
    max-height: 116px;
    resize: none;
    padding: 11px 14px;
    color: #272844;
    background: #fff;
    border: 1px solid #d6d8e7;
    border-radius: 14px;
    line-height: 1.35;
    box-shadow: inset 0 1px 2px rgba(45, 42, 85, .02);
    overflow-y: hidden;
}

.chat-composer textarea::placeholder {
    color: #77798e;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    min-height: 48px;
    padding: 0 15px;
    color: #fff;
    background: linear-gradient(135deg, #7357df, #5141b8);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(81, 65, 184, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 23px rgba(81, 65, 184, .27);
}

.send-btn svg {
    width: 19px;
    height: 19px;
}

.composer-hint {
    margin: 8px 0 0;
    color: #8d8fa4;
    font-size: 9px;
}

/* Workspace */
.workspace {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 17px 24px 16px;
    background:
        radial-gradient(circle at 44% 11%, rgba(150, 128, 238, .14), transparent 31%),
        radial-gradient(circle at 81% 17%, rgba(130, 110, 229, .08), transparent 30%),
        linear-gradient(180deg, #faf9ff 0%, #f8f7ff 100%);
}

.top-stage {
    display: grid;
    grid-template-columns: minmax(520px, 1.17fr) minmax(430px, .93fr);
    gap: 17px;
    min-height: 348px;
}

.hero-panel {
    position: relative;
    min-width: 0;
    min-height: 348px;
    overflow: hidden;
    border-radius: 19px;
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    z-index: -3;
    background:
        radial-gradient(circle at 66% 35%, rgba(123, 98, 218, .22), transparent 33%),
        radial-gradient(circle at 48% 80%, rgba(139, 199, 227, .12), transparent 34%);
}

.hero-net {
    position: absolute;
    z-index: -2;
    left: 24%;
    bottom: -82px;
    width: 340px;
    height: 250px;
    opacity: .22;
    border-radius: 50%;
    background-image:
        linear-gradient(rgba(113, 94, 205, .25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 94, 205, .25) 1px, transparent 1px);
    background-size: 16px 16px;
    transform: rotate(18deg) skewX(-10deg);
    -webkit-mask-image: radial-gradient(circle at center, #000 0 50%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 0 50%, transparent 72%);
}

.hero-birds {
    position: absolute;
    top: 18px;
    left: 55%;
    display: flex;
    gap: 35px;
    color: rgba(103, 79, 197, .14);
    font-family: Georgia, serif;
    font-size: 42px;
    transform: rotate(-8deg);
}

.hero-birds span:last-child {
    margin-top: 20px;
    transform: scale(.65);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 54%;
    max-width: 390px;
    padding: 36px 0 0 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    color: #5945c9;
    background: rgba(240, 236, 255, .92);
    border: 1px solid #ddd6ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.eyebrow svg {
    width: 14px;
    height: 14px;
}

.hero-copy h2 {
    margin: 8px 0 1px;
    color: #5b45c8;
    font-size: clamp(50px, 4.2vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
}

.hero-role {
    margin: 12px 0 0;
    color: #676981;
    font-size: 13px;
}

.hero-tagline {
    margin: 23px 0 0;
    color: #6d57d8;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 21px;
    line-height: 1.4;
    transform: rotate(-2deg);
}

.tagline-stroke {
    display: block;
    width: 135px;
    height: 8px;
    margin: 1px 0 0 4px;
    border-top: 2px solid #6f58da;
    border-radius: 50%;
    transform: rotate(-6deg);
}

.hero-mascot {
    position: absolute;
    z-index: 1;
    right: -12px;
    bottom: -92px;
    width: 425px;
    max-width: none;
    filter: drop-shadow(0 18px 24px rgba(52, 41, 75, .16));
    pointer-events: none;
    user-select: none;
}

/* Order card */
.order-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 348px;
    padding: 16px 17px 14px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(225, 225, 239, .9);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.card-title-row h2,
.catalog-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #1b1c43;
    font-size: 15px;
    font-weight: 900;
}

.card-title-row h2 svg,
.catalog-heading h2 svg {
    width: 22px;
    height: 22px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 33px;
    padding: 0 11px;
    color: #73758c;
    background: #fafafe;
    border: 1px solid #e0e1ed;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    transition: color .17s ease, border-color .17s ease, background .17s ease;
}

.ghost-btn:hover {
    color: #c44351;
    background: #fff7f7;
    border-color: #f0c8cc;
}

.ghost-btn svg {
    width: 15px;
    height: 15px;
}

.order-table-head {
    display: grid;
    grid-template-columns: minmax(130px, 1.55fr) 88px 128px 82px 17px;
    align-items: center;
    min-height: 34px;
    color: #7e8198;
    border-bottom: 1px solid #e7e7f0;
    font-size: 10px;
    font-weight: 700;
}

.order-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 158px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d2d0e5 transparent;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.55fr) 88px 128px 82px 17px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid #e8e8f1;
    animation: row-in .24s ease both;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.order-thumb {
    width: 78px;
    height: 52px;
    flex: 0 0 78px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}

.order-item-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.order-item-copy strong {
    overflow: hidden;
    color: #1f2045;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-price {
    color: #202145;
    font-size: 11px;
    white-space: nowrap;
}

.qty-control {
    display: grid;
    grid-template-columns: 31px minmax(58px, 1fr) 31px;
    align-items: center;
    height: 38px;
    overflow: hidden;
    background: #fbfbff;
    border: 1px solid #e0e1ee;
    border-radius: 10px;
}

.qty-control button {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 0;
    color: #777a96;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.qty-control button:hover {
    color: #5d48ca;
    background: #f0edff;
}

.qty-control svg {
    width: 14px;
    height: 14px;
}

.qty-control span {
    text-align: center;
    color: #303153;
    font-size: 11px;
    white-space: nowrap;
}

.line-total {
    color: #1e2047;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.remove-item {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    color: #70738f;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.remove-item:hover {
    color: #d24b59;
    background: #fff1f2;
}

.remove-item svg {
    width: 15px;
    height: 15px;
}

.order-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: #7e8198;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 9px;
    color: #6e59d6;
    background: #f0edff;
    border-radius: 16px;
}

.order-empty strong {
    color: #303153;
}

.order-empty span {
    max-width: 260px;
    margin-top: 3px;
    font-size: 11px;
}

.order-total-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    margin-top: 11px;
    padding: 9px 10px 9px 15px;
    background: linear-gradient(135deg, #f2efff 0%, #f7f5ff 100%);
    border: 1px solid #d7d0fb;
    border-radius: 13px;
}

.order-total-box > div {
    display: flex;
    flex-direction: column;
}

.order-total-box > div > span {
    color: #654fd1;
    font-size: 11px;
    font-weight: 800;
}

.order-total-box strong {
    margin-top: 2px;
    color: #30315b;
    font-size: 20px;
    line-height: 1.1;
}

.checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 15px;
    color: #fff;
    background: linear-gradient(135deg, #684fd7, #4e3db4);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(77, 58, 176, .18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(77, 58, 176, .25);
}

.checkout-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
    box-shadow: none;
}

.checkout-btn svg {
    width: 18px;
    height: 18px;
}

.checkout-btn .chev {
    width: 14px;
    height: 14px;
    margin-left: 1px;
}

/* Catalog */
.catalog-card {
    min-width: 0;
    min-height: 392px;
    margin-top: 13px;
    padding: 14px 12px 14px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(226, 226, 239, .9);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.catalog-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.catalog-heading h2 {
    margin: 1px 0 8px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    min-height: 29px;
    padding: 0 14px;
    color: #343658;
    background: #f5f5fa;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition: background .17s ease, color .17s ease, transform .17s ease;
}

.category-pill:hover {
    transform: translateY(-1px);
    background: #ece9ff;
}

.category-pill.active {
    color: #fff;
    background: linear-gradient(135deg, #6851d5, #5541bf);
    box-shadow: 0 5px 12px rgba(84, 64, 188, .20);
}

.catalog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
}

.search-box,
.sort-box {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    color: #7c7f98;
    background: #fff;
    border: 1px solid #dfe0eb;
    border-radius: 10px;
}

.search-box {
    width: 185px;
    padding: 0 11px;
}

.search-box svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 0 0 0 8px;
    color: #303153;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.search-box input::placeholder {
    color: #a0a2b4;
}

.sort-box {
    width: 187px;
    padding: 0 32px 0 12px;
}

.sort-box select {
    width: 100%;
    color: #343657;
    background: transparent;
    border: 0;
    outline: 0;
    appearance: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.sort-box svg {
    position: absolute;
    right: 10px;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 76px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe0eb;
    border-radius: 10px;
}

.view-toggle button {
    display: grid;
    place-items: center;
    padding: 0;
    color: #7d8098;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.view-toggle button + button {
    border-left: 1px solid #e6e6ee;
}

.view-toggle button.active {
    color: #5744c4;
    background: #f0edff;
}

.view-toggle svg {
    width: 17px;
    height: 17px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe1eb;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(34, 35, 72, .025);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: card-in .24s ease both;
}

.product-card:hover {
    z-index: 2;
    transform: translateY(-3px);
    border-color: #c9c2ef;
    box-shadow: 0 12px 22px rgba(42, 38, 91, .11);
}

.product-image-wrap {
    position: relative;
    height: 91px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8f8fb);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-category-tag {
    position: absolute;
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 3px 6px;
    overflow: hidden;
    color: #52546d;
    background: rgba(255, 255, 255, .83);
    border: 1px solid rgba(222, 223, 234, .8);
    border-radius: 999px;
    backdrop-filter: blur(5px);
    font-size: 8px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.product-card:hover .product-category-tag {
    opacity: 1;
    transform: translateY(0);
}

.product-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 25px;
    align-items: end;
    gap: 6px;
    min-height: 53px;
    padding: 7px 6px 6px;
}

.product-copy {
    min-width: 0;
}

.product-copy h3 {
    overflow: hidden;
    margin: 0;
    color: #202146;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: block;
    margin-top: 6px;
    color: #0283a1;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.add-product-btn {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    padding: 0;
    color: #5d48ca;
    background: #f0edff;
    border: 1px solid #d7d0fb;
    border-radius: 7px;
    cursor: pointer;
    transition: color .17s ease, background .17s ease, transform .17s ease;
}

.add-product-btn:hover {
    color: #fff;
    background: #5d48ca;
    transform: scale(1.07);
}

.add-product-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.product-grid.list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 92px;
}

.product-grid.list-view .product-image-wrap {
    height: 92px;
}

.product-grid.list-view .product-card-body {
    min-height: 92px;
    padding: 14px 12px;
}

.product-grid.list-view .product-copy h3 {
    font-size: 13px;
}

.product-grid.list-view .product-price {
    margin-top: 8px;
    font-size: 11px;
}

.catalog-no-results {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: #81839a;
    font-weight: 700;
}

/* Bottom services */
.service-strip {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr 1.22fr;
    min-height: 78px;
    margin-top: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #e0e1ed;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.service-strip article {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 17px;
}

.service-strip article + article::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 1px;
    content: "";
    background: #e4e4ee;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-icon.truck { color: #1d77c9; background: #eaf5ff; }
.service-icon.wallet { color: #49a85f; background: #eff9eb; }
.service-icon.headset { color: #4c6cc9; background: #edf1ff; }

.service-strip article > div {
    min-width: 0;
}

.service-strip strong,
.service-strip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-strip strong {
    color: #25264e;
    font-size: 10px;
    font-weight: 900;
}

.service-strip small {
    margin-top: 4px;
    color: #6f7189;
    font-size: 9px;
}

.mobile-promo {
    background: linear-gradient(135deg, #f4f1ff, #fbfaff);
}

.phone-art {
    display: grid;
    place-items: center;
    width: 38px;
    height: 51px;
    flex: 0 0 38px;
    color: #4f43a7;
    background: #fff;
    border: 2px solid #272844;
    border-radius: 8px;
    transform: rotate(-5deg);
    box-shadow: 0 5px 12px rgba(31, 29, 69, .13);
}

.phone-art svg {
    width: 23px;
    height: 31px;
}

.mini-qr {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-left: auto;
    background:
        linear-gradient(90deg, #17182f 8px, transparent 8px) 0 0/16px 16px,
        linear-gradient(#17182f 8px, transparent 8px) 0 0/16px 16px,
        linear-gradient(90deg, transparent 8px, #17182f 8px 12px, transparent 12px) 0 0/16px 16px,
        #fff;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #d8d9e4;
}

/* Mobile cart bar / drawer */
.mobile-cart-bar,
.mobile-cart-drawer,
.drawer-backdrop {
    display: none;
}

/* Modals */
.modal-backdrop,
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 18, 50, .54);
    backdrop-filter: blur(5px);
    animation: fade-in .18s ease both;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    width: min(850px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 27px;
    background: #fff;
    border: 1px solid #e1e1ed;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%);
    animation: modal-in .22s ease both;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #71738b;
    background: #f6f6fb;
    border: 1px solid #e5e5ee;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close:hover {
    color: #d04b59;
    background: #fff3f4;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #5d48ca;
    background: #f0edff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.modal-kicker svg {
    width: 16px;
    height: 16px;
}

.checkout-modal > h2 {
    margin: 12px 45px 3px 0;
    color: #202143;
    font-size: 24px;
    line-height: 1.2;
}

.checkout-modal > p {
    margin: 0;
    color: #72758e;
    font-size: 13px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    gap: 22px;
    margin-top: 24px;
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-form label.full,
.submit-order-btn.full {
    grid-column: 1 / -1;
}

.checkout-form label > span {
    color: #383a5d;
    font-size: 11px;
    font-weight: 800;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #292b4b;
    background: #fbfbfe;
    border: 1px solid #dedfea;
    border-radius: 10px;
    outline: 0;
}

.checkout-form textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-order-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-top: 5px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #6d51df, #4c3aaf);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 10px 23px rgba(78, 58, 176, .22);
}

.submit-order-btn:disabled {
    cursor: wait;
    opacity: .65;
}

.checkout-summary {
    padding: 17px;
    background: #f8f7ff;
    border: 1px solid #e1def5;
    border-radius: 16px;
}

.checkout-summary h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.checkout-summary-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e2f4;
}

.checkout-summary-row img {
    width: 42px;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
}

.checkout-summary-row div {
    min-width: 0;
}

.checkout-summary-row strong,
.checkout-summary-row small {
    display: block;
}

.checkout-summary-row strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-summary-row small {
    color: #777a94;
    font-size: 9px;
}

.checkout-summary-row > span {
    font-size: 10px;
    font-weight: 900;
}

.checkout-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 8px;
}

.checkout-summary-total span {
    font-weight: 800;
}

.checkout-summary-total strong {
    color: #5b47ca;
    font-size: 20px;
}

.checkout-summary > small {
    display: block;
    color: #9294a8;
    font-size: 9px;
    line-height: 1.4;
}

.success-modal {
    width: min(430px, calc(100vw - 32px));
    padding: 36px 30px 30px;
    text-align: center;
}

.success-check {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    color: #fff;
    background: linear-gradient(135deg, #43c976, #26a85c);
    border-radius: 24px;
    box-shadow: 0 13px 25px rgba(38, 168, 92, .24);
}

.success-check svg {
    width: 39px;
    height: 39px;
    stroke-width: 2.4;
}

.success-modal > span {
    color: #2dac62;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.success-modal h2 {
    margin: 5px 0 3px;
    font-size: 28px;
}

.success-modal p {
    margin: 0 0 17px;
    color: #74768d;
}

.order-number,
.success-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: #f8f7ff;
    border: 1px solid #e1def5;
}

.order-number {
    border-radius: 12px 12px 0 0;
}

.success-total {
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.order-number small,
.success-total span {
    color: #797c93;
    font-size: 10px;
}

.order-number strong {
    color: #5b47ca;
    letter-spacing: .04em;
}

.success-total strong {
    font-size: 17px;
}

.success-modal .checkout-btn {
    width: 100%;
    margin-top: 18px;
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    padding: 12px 15px;
    color: #fff;
    background: #232445;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease both;
}

.toast.success { background: #238d55; }
.toast.error { background: #b84250; }

.toast svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

/* Animations */
@keyframes message-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes row-in {
    from { opacity: 0; transform: translateX(7px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translate(-50%, -47%) scale(.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mid-size desktop */
@media (max-width: 1480px) {
    :root { --chat-w: 395px; }

    .app-header {
        grid-template-columns: minmax(195px, 1fr) auto minmax(185px, 1fr);
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand img { width: 215px; }
    .nav-pill { padding: 0 16px; }
    .top-stage { grid-template-columns: minmax(480px, 1.08fr) minmax(410px, .92fr); }
    .hero-mascot { right: -45px; }
    .order-table-head,
    .order-row { grid-template-columns: minmax(110px, 1.35fr) 78px 118px 76px 17px; }
    .order-thumb { width: 62px; flex-basis: 62px; }
}

@media (max-width: 1280px) {
    :root { --chat-w: 370px; }

    .app-header {
        grid-template-columns: 190px minmax(0, 1fr) 160px;
        gap: 10px;
    }

    .brand img { width: 186px; }
    .top-nav { gap: 7px; }
    .nav-pill { min-height: 41px; padding: 0 12px; font-size: 11px; }
    .profile-chip { min-width: auto; }
    .profile-chip > img { width: 41px; height: 41px; }
    .profile-copy { display: none; }

    .workspace { padding-left: 17px; padding-right: 17px; }
    .top-stage { grid-template-columns: 1fr; }
    .hero-panel { min-height: 330px; }
    .order-card { min-height: 340px; }
    .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .service-strip { grid-template-columns: repeat(3, 1fr); }
    .service-strip .mobile-promo { display: none; }
}

/* Tablet/mobile */
@media (max-width: 960px) {
    :root { --header-h: 66px; }

    body {
        overflow: auto;
        padding-bottom: calc(76px + var(--safe-bottom));
        background: #f8f7ff;
    }

    .app-header {
        position: sticky;
        top: 0;
        grid-template-columns: 1fr auto;
        height: var(--header-h);
        padding: 0 13px;
    }

    .brand img { width: 188px; }

    .profile-chip {
        grid-column: 2;
        min-width: auto;
        gap: 0;
    }

    .profile-chip > img { width: 42px; height: 42px; }
    .profile-chip > svg { display: none; }

    .top-nav {
        position: fixed;
        z-index: 39;
        top: var(--header-h);
        left: 0;
        right: 0;
        justify-content: flex-start;
        gap: 7px;
        overflow-x: auto;
        padding: 8px 12px;
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid var(--line);
        scrollbar-width: none;
    }

    .top-nav::-webkit-scrollbar { display: none; }

    .nav-pill {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 13px;
        font-size: 11px;
    }

    .app-shell {
        display: block;
        height: auto;
        padding-top: 55px;
    }

    .chat-panel {
        min-height: 680px;
        height: min(760px, calc(100dvh - 121px));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .chat-panel-head { padding-left: 14px; }
    .chat-thread { padding-left: 14px; padding-right: 14px; }
    .chat-bubble { max-width: min(80vw, 430px); }
    .chat-message.user .chat-bubble { max-width: min(76vw, 400px); }
    .chat-composer-wrap { padding: 12px 12px calc(78px + var(--safe-bottom)); }

    .workspace {
        overflow: visible;
        padding: 16px 13px 20px;
    }

    .top-stage {
        display: block;
        min-height: 0;
    }

    .hero-panel {
        min-height: 350px;
        margin-bottom: 14px;
        background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(237,233,255,.55));
        border: 1px solid rgba(225,223,241,.8);
        box-shadow: var(--shadow-sm);
    }

    .hero-copy {
        width: 56%;
        padding-left: 18px;
    }

    .hero-mascot {
        right: -35px;
        width: 440px;
    }

    .order-card { min-height: 350px; }
    .order-list { max-height: none; overflow-y: visible; }
    .catalog-card { min-height: 0; }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-actions {
        justify-content: stretch;
        padding-top: 0;
    }

    .search-box { flex: 1 1 180px; width: auto; }
    .sort-box { flex: 1 1 180px; width: auto; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .service-strip {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .service-strip article + article::before {
        top: 0;
        right: 15px;
        bottom: auto;
        left: 15px;
        width: auto;
        height: 1px;
    }

    .service-strip .mobile-promo { display: flex; }

    .mobile-cart-bar {
        position: fixed;
        right: 10px;
        bottom: calc(9px + var(--safe-bottom));
        left: 10px;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 8px 12px;
        color: #fff;
        background: linear-gradient(135deg, #614bd0, #4736a3);
        border: 0;
        border-radius: 17px;
        box-shadow: 0 15px 35px rgba(55, 41, 137, .34);
        cursor: pointer;
    }

    .mobile-cart-left,
    .mobile-cart-action {
        display: flex;
        align-items: center;
    }

    .mobile-cart-left { gap: 10px; }
    .mobile-cart-left > svg { width: 25px; height: 25px; }
    .mobile-cart-left span { display: flex; flex-direction: column; text-align: left; }
    .mobile-cart-left small { color: rgba(255,255,255,.72); font-size: 9px; }
    .mobile-cart-left strong { font-size: 16px; }
    .mobile-cart-action { gap: 5px; font-size: 11px; font-weight: 800; }
    .mobile-cart-action svg { width: 16px; height: 16px; transform: rotate(180deg); }

    .drawer-backdrop.open { display: block; }

    .mobile-cart-drawer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 95;
        display: block;
        max-height: 80dvh;
        padding: 9px 15px calc(16px + var(--safe-bottom));
        overflow-y: auto;
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -22px 55px rgba(31, 28, 78, .22);
        transform: translateY(105%);
        transition: transform .25s ease;
    }

    .mobile-cart-drawer.open {
        transform: translateY(0);
    }

    .drawer-handle {
        width: 46px;
        height: 5px;
        margin: 0 auto 9px;
        background: #d8d9e5;
        border-radius: 999px;
    }

    .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 3px 0 10px;
        border-bottom: 1px solid #e8e8f0;
    }

    .drawer-head h2 { margin: 0; font-size: 17px; }
    .drawer-head button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; background: #f5f5fa; border: 0; border-radius: 50%; }
    .drawer-head svg { width: 18px; height: 18px; }
    .drawer-items { padding: 2px 0; }

    .drawer-row {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        border-bottom: 1px solid #ececf2;
    }

    .drawer-row img { width: 66px; height: 50px; object-fit: contain; }
    .drawer-row strong, .drawer-row small { display: block; }
    .drawer-row strong { font-size: 12px; }
    .drawer-row small { color: #777a91; font-size: 10px; }
    .drawer-row > span { font-size: 12px; font-weight: 900; }
    .drawer-total { display: flex; justify-content: space-between; padding: 15px 0; }
    .drawer-total strong { color: #5b47ca; font-size: 20px; }
    .drawer-checkout { width: 100%; min-height: 50px; }

    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { order: -1; }
}

@media (max-width: 620px) {
    .brand img { width: 170px; }
    .chat-panel { min-height: 645px; height: calc(100dvh - 121px); }
    .chat-panel-head { min-height: 76px; }
    .chat-panel-head p { font-size: 11px; }
    .new-chat-btn { width: 38px; height: 38px; }
    .chat-avatar { width: 31px; height: 31px; flex-basis: 31px; }
    .chat-bubble { font-size: 12px; }
    .chat-composer { grid-template-columns: minmax(0, 1fr) 51px; }
    .send-btn { min-width: 51px; width: 51px; padding: 0; }
    .send-btn span { display: none; }
    .composer-hint { font-size: 8px; }

    .workspace { padding-left: 10px; padding-right: 10px; }
    .hero-panel { min-height: 315px; }
    .hero-copy { width: 61%; padding: 24px 0 0 13px; }
    .eyebrow { padding: 5px 8px; font-size: 9px; }
    .hero-copy h2 { margin-top: 7px; font-size: 45px; }
    .hero-role { max-width: 190px; font-size: 10px; }
    .hero-tagline { margin-top: 17px; font-size: 17px; }
    .hero-mascot { right: -93px; bottom: -105px; width: 420px; }

    .order-card { padding: 14px 12px; }
    .order-table-head { display: none; }
    .order-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        min-height: 102px;
        padding: 9px 0;
    }
    .order-item { grid-column: 1 / -1; }
    .order-thumb { width: 70px; height: 50px; flex-basis: 70px; }
    .order-price { display: none; }
    .qty-control { width: 130px; }
    .line-total { justify-self: end; font-size: 13px; }
    .remove-item { position: absolute; right: 8px; margin-top: -62px; }
    .order-total-box { grid-template-columns: 1fr; }
    .order-total-box .checkout-btn { display: none; }

    .catalog-card { padding: 13px 10px; }
    .catalog-toolbar { gap: 11px; }
    .catalog-actions { display: grid; grid-template-columns: 1fr auto; }
    .search-box { grid-column: 1 / -1; width: 100%; }
    .sort-box { width: 100%; }
    .view-toggle { width: 74px; }
    .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .category-pills::-webkit-scrollbar { display: none; }
    .category-pill { flex: 0 0 auto; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-image-wrap { height: 112px; }
    .product-card-body { min-height: 59px; padding: 8px; }
    .product-copy h3 { font-size: 11px; }
    .product-price { font-size: 10px; }
    .product-grid.list-view { grid-template-columns: 1fr; }

    .service-strip article { padding: 12px 14px; }
    .mini-qr { display: none; }

    .modal { padding: 23px 17px; }
    .checkout-modal > h2 { font-size: 21px; }
    .checkout-form { grid-template-columns: 1fr; }
    .checkout-form label.full,
    .submit-order-btn.full { grid-column: auto; }

    .toast-region { right: 10px; bottom: calc(85px + var(--safe-bottom)); left: 10px; }
    .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
