:root {
    --blue: #438bf4;
    --blue-dark: #2771dd;
    --purple: #8b28d7;
    --ink: #17191f;
    --muted: #707680;
    --line: #e8ebf0;
    --soft: #f6f7f9;
    --green: #14b86e;
    --orange: #ff7834;
    --white: #fff;
    --shadow: 0 12px 35px rgba(25, 39, 65, .09);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font: 15px/1.5 "DM Sans", Arial, sans-serif;
}
body.dark {
    --ink: #f5f7fb;
    --muted: #aeb5c0;
    --line: #313745;
    --soft: #242935;
    --white: #1b1f29;
    background: #161a22;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1320px, calc(100% - 42px)); margin-inline: auto; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.wide { width: 100%; }
.hidden { display: none !important; }

.demo-bar {
    position: relative;
    padding: 6px 48px;
    text-align: center;
    color: #846114;
    background: #fff7d8;
    font-size: 13px;
}
.demo-bar button {
    position: absolute;
    right: 24px;
    top: 2px;
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    color: #74809a;
    background: #e7ecf5;
}
.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    background: color-mix(in srgb, var(--white) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-row {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(180px, .7fr) minmax(320px, 1.5fr) auto;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 118px;
    font-family: Outfit, sans-serif;
    line-height: .8;
}
.brand-mark {
    width: 43px;
    height: 43px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    color: white;
    background: linear-gradient(145deg, #1ca4f6, #2563eb 70%, #273c84);
    box-shadow: 0 8px 18px rgba(67,139,244,.3);
    font: 800 25px/1 Outfit, sans-serif;
    transform: skew(-7deg);
}
.brand b { display: block; color: #157bbf; font-size: 17px; }
.brand small { display: block; font-size: 13px; letter-spacing: 1.7px; }
.location-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 0;
    color: var(--ink);
    background: transparent;
}
.location-button span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-form {
    display: flex;
    align-items: center;
    height: 47px;
    padding-left: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}
.search-form input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    padding: 0 12px;
}
.search-form button {
    height: 100%;
    padding: 0 20px;
    border: 0;
    border-radius: 0 11px 11px 0;
    color: white;
    background: var(--blue);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .cart-link {
    position: relative;
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 20px;
}
.cart-link span {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    padding: 1px 5px;
    border-radius: 20px;
    color: white;
    background: var(--orange);
    font-size: 10px;
}
.login-button {
    padding: 10px 17px;
    color: var(--blue-dark);
    background: #eaf2ff;
    border-radius: 11px;
    white-space: nowrap;
}
.category-nav {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-block: 6px 0;
    scrollbar-width: none;
}
.category-nav a {
    min-width: 70px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 5px 10px 10px;
    border-bottom: 2px solid transparent;
    color: #3f4249;
    white-space: nowrap;
}
.dark .category-nav a { color: var(--ink); }
.category-nav a span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--soft);
    font-size: 21px;
}
.category-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.hero-card {
    min-height: 330px;
    padding: 38px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    color: white;
    isolation: isolate;
}
.hero-card::before, .hero-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}
.hero-card::before { width: 330px; height: 330px; right: -90px; bottom: -130px; background: rgba(255,255,255,.15); }
.hero-card::after { width: 150px; height: 150px; right: 100px; top: -70px; background: rgba(255,255,255,.1); }
.hero-card--green { background: linear-gradient(135deg, #0c6a52, #13966b); }
.hero-card--purple { background: linear-gradient(135deg, #311b6c, #7043d6); }
.hero-card .eyebrow { display: inline-block; padding: 5px 11px; border-radius: 30px; background: rgba(255,255,255,.15); }
.hero-card h1 { max-width: 430px; margin: 14px 0 8px; font: 700 clamp(32px, 4vw, 55px)/1.02 Outfit, sans-serif; }
.hero-card p { max-width: 390px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-card .hero-emoji { position: absolute; right: 35px; bottom: 22px; font-size: clamp(85px, 13vw, 180px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }
.hero-card .primary-button { margin-top: 14px; background: white; color: var(--ink); }
.primary-button, .secondary-button, .danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
}
.primary-button { color: white; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { color: var(--blue-dark); background: #eaf2ff; }
.danger-button { color: #c03737; background: #ffebeb; }

.section { padding-block: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font: 700 27px/1.1 Outfit, sans-serif; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head > a { font-weight: 600; }
.brands-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 11px;
}
.brand-chip {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px 8px 12px;
    text-align: center;
}
.brand-chip span {
    width: 100%;
    aspect-ratio: 1.2;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--soft);
    font: 700 20px/1 Outfit, sans-serif;
}
.brand-chip small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo {
    min-height: 190px;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #ffe8cf, #ff8f59);
}
.promo:nth-child(2) { color: white; background: linear-gradient(120deg, #5b2f91, #b82792); }
.promo span { font-size: 58px; float: right; }
.promo h3 { margin: 10px 0 0; font: 700 28px/1.1 Outfit, sans-serif; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}
.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-visual {
    min-height: 185px;
    display: grid;
    place-items: center;
    position: relative;
    background: linear-gradient(140deg, #f0f6ff, #e6edff);
}
.product-visual--green { background: linear-gradient(140deg, #ecfff4, #d8f8e8); }
.product-visual--orange { background: linear-gradient(140deg, #fff6e8, #ffead1); }
.product-visual--pink { background: linear-gradient(140deg, #fff1f7, #f8dfec); }
.product-visual--purple { background: linear-gradient(140deg, #f4edff, #e9dcff); }
.product-visual--yellow { background: linear-gradient(140deg, #fffde9, #fff1b9); }
.product-emoji { font-size: 86px; filter: drop-shadow(0 14px 10px rgba(30,43,60,.16)); transition: transform .25s; }
.product-card:hover .product-emoji { transform: scale(1.08) rotate(-3deg); }
.discount {
    position: absolute;
    left: 0;
    top: 0;
    padding: 5px 10px;
    border-radius: 13px 0 9px 0;
    color: white;
    background: #0bc463;
    font-size: 12px;
}
.wish-button {
    position: absolute;
    right: 9px;
    top: 9px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #687080;
    background: var(--white);
    cursor: pointer;
    font-size: 20px;
}
.wish-button.active { color: #e13565; }
.product-content { padding: 12px; }
.eta { display: inline-block; padding: 3px 7px; margin-bottom: 7px; border-radius: 6px; color: #3c6ebd; background: #eaf2ff; font-size: 11px; font-weight: 700; }
.product-title { height: 42px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 700; line-height: 1.35; }
.store-name { display: block; margin: 5px 0 10px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-row strong { display: block; }
.price-row del { color: #9a9da4; font-size: 11px; }
.add-button {
    min-width: 58px;
    padding: 7px 12px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: var(--blue-dark);
    background: transparent;
    font-weight: 700;
}
.add-button:hover { color: white; background: var(--blue); }

.delivery-banner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 30px;
    margin-block: 35px;
    padding: 50px;
    overflow: hidden;
    color: white;
    background: linear-gradient(120deg, #1059b3, #478cf3 60%, #76a8ff);
    border-radius: 25px;
}
.delivery-banner h2 { margin: 7px 0; font: 700 44px/1.05 Outfit, sans-serif; }
.delivery-art { text-align: center; font-size: 145px; }
.app-banner { display: grid; grid-template-columns: 1fr 320px; gap: 35px; align-items: center; padding: 35px; background: var(--soft); border-radius: 24px; }
.app-banner h2 { font: 700 36px/1.1 Outfit, sans-serif; margin: 8px 0; }
.app-preview { min-height: 245px; display: grid; place-items: center; border-radius: 24px; color: white; background: linear-gradient(145deg, #1d2330, #3c4e6c); font-size: 100px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store-badge { padding: 10px 16px; border-radius: 10px; color: white; background: #13161c; font-weight: 600; }

.benefit-strip {
    width: min(1320px, calc(100% - 42px));
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.benefit-strip > div { padding: 25px; border-right: 1px solid var(--line); }
.benefit-strip > div:last-child { border-right: 0; }
.benefit-strip span { float: left; margin-right: 12px; font-size: 26px; }
.benefit-strip h3 { margin: 0; font-size: 16px; }
.benefit-strip p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.site-footer { margin-top: 35px; padding-top: 55px; color: #d5dceb; background: #141925; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; }
.brand--footer { color: white; }
.brand--footer small { color: white; }
.footer-grid h3 { margin-top: 0; color: white; }
.footer-grid p { max-width: 430px; color: #9fa9bd; }
.footer-grid > div > a { display: block; margin: 9px 0; color: #b7c0d1; }
.trust-list { display: flex; flex-direction: column; gap: 6px; color: #b7c0d1; }
.socials { display: flex; gap: 8px; margin-top: 15px; }
.socials a { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #252d3c; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 45px; padding-block: 18px; border-top: 1px solid #2a3140; color: #8d97a9; font-size: 13px; }
.floating-actions { position: fixed; left: 24px; bottom: 24px; z-index: 45; display: grid; gap: 10px; }
.floating-actions a { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; color: white; background: #151a24; box-shadow: var(--shadow); font-size: 20px; }
.floating-actions .whatsapp { background: #17c96d; }

.page-hero {
    padding: 50px 0;
    background: linear-gradient(135deg, #eff6ff, #f7f2ff);
    border-bottom: 1px solid var(--line);
}
.dark .page-hero { background: linear-gradient(135deg, #1c2b41, #2a2039); }
.page-hero h1 { margin: 0; font: 700 42px/1 Outfit, sans-serif; }
.page-hero p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.breadcrumbs { padding-block: 18px; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.filters a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; }
.filters a.active { color: white; border-color: var(--blue); background: var(--blue); }
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; }
.filter-card { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.filter-card h3 { margin-top: 0; }
.filter-card label { display: block; margin: 10px 0; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; padding-block: 25px 40px; }
.product-detail-visual { min-height: 570px; display: grid; place-items: center; border-radius: 18px; background: var(--soft); }
.product-detail-visual span { font-size: 240px; filter: drop-shadow(0 25px 20px rgba(30,43,60,.18)); }
.product-detail-info .category-label { color: var(--muted); }
.product-detail-info h1 { margin: 8px 0; font: 700 clamp(32px, 4vw, 48px)/1.1 Outfit, sans-serif; }
.product-detail-info .description { color: var(--muted); font-size: 17px; }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; font-size: 30px; font-weight: 800; }
.product-detail-price del { color: #979ba2; font-size: 16px; font-weight: 400; }
.rating { color: #f4b400; }
.stock-badge { display: inline-block; padding: 5px 10px; border-radius: 7px; color: #087944; background: #e2faee; }
.option-group { margin: 20px 0; }
.option-row { display: flex; gap: 8px; margin-top: 8px; }
.option-row button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); }
.option-row button.active { color: white; border-color: var(--blue); background: var(--blue); }
.quantity-row { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.quantity-control button { width: 38px; height: 38px; border: 0; color: var(--ink); background: var(--soft); }
.quantity-control input { width: 45px; height: 38px; border: 0; outline: 0; text-align: center; color: var(--ink); background: var(--white); }
.purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.purchase-actions .primary-button, .purchase-actions .secondary-button { min-height: 50px; }
.purchase-actions .secondary-button { color: white; background: var(--purple); }
.detail-tabs { margin-bottom: 40px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; }
.detail-tabs h2 { font-family: Outfit, sans-serif; }

.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.store-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.store-cover { min-height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, #c8e6ff, #dcd2ff); font-size: 70px; }
.store-card-content { position: relative; padding: 18px; }
.store-logo { width: 58px; height: 58px; display: grid; place-items: center; position: absolute; top: -39px; left: 18px; border: 4px solid var(--white); border-radius: 50%; background: var(--soft); font-size: 28px; }
.store-card h3 { margin: 9px 0 6px; }
.store-card p { height: 38px; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; }
.rating-pill { float: right; padding: 4px 8px; border-radius: 8px; background: white; color: #333; box-shadow: var(--shadow); font-size: 12px; }
.store-detail-header { min-height: 280px; display: flex; align-items: end; padding: 35px; color: white; border-radius: 20px; background: linear-gradient(135deg, #16579a, #753ec6); }
.store-detail-header h1 { margin: 0; font: 700 42px/1 Outfit, sans-serif; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.cart-list, .summary-card, .form-card, .account-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}
.cart-item { display: grid; grid-template-columns: 95px 1fr auto auto; gap: 16px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-size: 45px; }
.cart-item h3 { margin: 0 0 4px; }
.summary-card { padding: 23px; position: sticky; top: 185px; }
.summary-card h2 { margin-top: 0; }
.summary-line { display: flex; justify-content: space-between; margin: 12px 0; }
.summary-line.total { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 800; }
.empty-state { padding: 70px 25px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state span { display: block; font-size: 70px; }

.form-card { padding: 28px; }
.form-card h2 { margin-top: 0; font-family: Outfit, sans-serif; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-weight: 600; }
input, select, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    color: var(--ink);
    background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67,139,244,.12); }
textarea { min-height: 105px; resize: vertical; }
.auth-shell { min-height: 75vh; display: grid; grid-template-columns: 1fr 1fr; margin-block: 35px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.auth-visual { display: grid; place-items: center; padding: 45px; color: white; background: linear-gradient(145deg, #176bc8, #7044db); text-align: center; }
.auth-visual span { font-size: 130px; }
.auth-visual h1 { font: 700 42px/1 Outfit, sans-serif; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.auth-form h2 { margin: 0; font: 700 32px/1 Outfit, sans-serif; }
.auth-form form { display: grid; gap: 15px; margin-top: 25px; }
.demo-credentials { margin-top: 20px; padding: 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 12px; }
.seller-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 35px; min-height: 500px; padding: 55px; color: white; background: linear-gradient(135deg, #111b36, #214e99 60%, #5b81dc); border-radius: 24px; }
.seller-hero h1 { margin: 10px 0; font: 700 52px/1.03 Outfit, sans-serif; }
.seller-hero-art { text-align: center; font-size: 180px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: seller-steps; }
.step-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; }
.step-card::before { counter-increment: seller-steps; content: counter(seller-steps); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.content-card { max-width: 850px; margin: 0 auto; padding: 35px; border: 1px solid var(--line); border-radius: 18px; }
.content-card h2 { font-family: Outfit, sans-serif; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    top: 22px;
    max-width: 360px;
    padding: 13px 18px;
    border-radius: 10px;
    color: white;
    background: #313a4b;
    box-shadow: var(--shadow);
}
.toast--success { background: #13915b; }
.toast--error { background: #c84141; }
.toast--info { background: #2f75d9; }
.location-modal[hidden] { display: none; }
.location-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,21,30,.62); backdrop-filter: blur(5px); }
.modal-card { width: min(590px, 100%); position: relative; z-index: 1; padding: 28px; border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-card h2 { margin: 0; font-family: Outfit, sans-serif; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--ink); background: var(--soft); }
.map-placeholder { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 5px; margin-block: 17px; border-radius: 13px; background: linear-gradient(135deg, #d9e9ff, #e6e0ff); font-size: 50px; text-align: center; }
.map-placeholder strong, .map-placeholder small { display: block; font-size: 14px; }

.panel-body { background: #f3f5f9; color: #1c2230; }
.panel-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.panel-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; color: #cbd4e6; background: #172033; }
.panel-brand { display: flex; align-items: center; gap: 10px; color: white; font: 700 20px Outfit, sans-serif; }
.panel-label { margin: 28px 10px 10px; color: #7f8ca5; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.panel-sidebar nav { display: grid; gap: 5px; }
.panel-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 9px; }
.panel-sidebar nav a:hover, .panel-sidebar nav a.active { color: white; background: #293752; }
.panel-logout { margin-top: auto; padding: 12px; color: #ffb4b4; }
.panel-main { min-width: 0; padding: 28px; }
.panel-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.panel-topbar h1 { margin: 0; font: 700 31px Outfit, sans-serif; }
.panel-user { padding: 8px 13px; border-radius: 10px; background: white; box-shadow: 0 5px 16px rgba(30,45,70,.07); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 22px; border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(30,45,70,.06); }
.stat-card span { font-size: 27px; }
.stat-card h2 { margin: 10px 0 0; font: 700 30px Outfit, sans-serif; }
.stat-card p { margin: 0; color: #7a8496; }
.panel-card { margin-top: 22px; padding: 22px; border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(30,45,70,.06); }
.panel-card h2 { margin-top: 0; font-family: Outfit, sans-serif; }
.panel-table-wrap { overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; }
.panel-table th, .panel-table td { padding: 12px 10px; border-bottom: 1px solid #edf0f4; text-align: left; white-space: nowrap; }
.panel-table th { color: #6f798a; font-size: 12px; text-transform: uppercase; }
.status { display: inline-block; padding: 4px 9px; border-radius: 30px; color: #2c659d; background: #e7f2ff; font-size: 12px; }
.status--delivered, .status--active { color: #168055; background: #e4f9ef; }
.status--cancelled, .status--rejected { color: #aa3434; background: #ffe9e9; }
.status--pending { color: #9a6c10; background: #fff4d9; }
.panel-actions { display: flex; gap: 7px; }
.panel-actions button, .panel-actions a { padding: 6px 9px; border: 0; border-radius: 6px; color: #356fae; background: #eaf3ff; }
.panel-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel-form .full { grid-column: 1 / -1; }
.panel-form button { align-self: end; }
.panel-mobile-toggle { display: none; }

@media (max-width: 1100px) {
    .header-row { grid-template-columns: auto 1fr auto; gap: 13px; }
    .location-button { order: 4; grid-column: 1 / -1; padding: 0 0 10px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .brands-row { grid-template-columns: repeat(6, 1fr); }
    .store-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 24px, 1320px); }
    .demo-bar { padding-inline: 34px; }
    .header-row { min-height: 68px; grid-template-columns: auto 1fr; }
    .brand { min-width: auto; }
    .location-button { grid-column: auto; justify-self: end; }
    .location-button span { max-width: 155px; }
    .search-form { order: 4; grid-column: 1 / -1; margin-bottom: 12px; }
    .header-actions { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; justify-content: space-around; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--white); }
    .header-actions .icon-button { display: none; }
    .login-button { padding: 8px 13px; }
    .category-nav { padding-top: 4px; }
    .hero-grid, .promo-grid, .delivery-banner, .app-banner, .seller-hero { grid-template-columns: 1fr; }
    .hero-card { min-height: 290px; padding: 28px; }
    .hero-card .hero-emoji { opacity: .85; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-row { grid-template-columns: repeat(4, 1fr); }
    .benefit-strip { grid-template-columns: 1fr 1fr; }
    .benefit-strip > div:nth-child(2) { border-right: 0; }
    .benefit-strip > div { border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
    .product-detail { grid-template-columns: 1fr; gap: 25px; }
    .product-detail-visual { min-height: 440px; }
    .product-detail-visual span { font-size: 190px; }
    .store-grid { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-card { display: none; }
    .cart-layout, .checkout-layout, .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .summary-card { position: static; }
    .cart-item { grid-template-columns: 75px 1fr; }
    .cart-item > :nth-child(3), .cart-item > :nth-child(4) { grid-column: 2; }
    .steps-grid { grid-template-columns: 1fr; }
    .seller-hero-art { display: none; }
    .panel-shell { grid-template-columns: 1fr; }
    .panel-sidebar { height: auto; position: static; display: block; }
    .panel-sidebar nav { grid-template-columns: repeat(4, minmax(100px, 1fr)); overflow-x: auto; }
    .panel-logout, .panel-label { display: none; }
    .panel-sidebar nav a { white-space: nowrap; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .panel-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    body { padding-bottom: 62px; }
    .brand b { font-size: 14px; }
    .brand small { font-size: 10px; }
    .brand-mark { width: 36px; height: 36px; font-size: 21px; }
    .location-button { font-size: 12px; }
    .hero-grid { gap: 10px; }
    .hero-card { min-height: 245px; padding: 22px; }
    .hero-card h1 { font-size: 30px; max-width: 250px; }
    .hero-card p { max-width: 250px; font-size: 13px; }
    .hero-card .hero-emoji { right: 12px; bottom: 8px; font-size: 85px; }
    .section { padding-block: 22px; }
    .section-head h2 { font-size: 22px; }
    .section-head p { font-size: 12px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .product-visual { min-height: 135px; }
    .product-emoji { font-size: 63px; }
    .product-content { padding: 9px; }
    .product-title { font-size: 13px; }
    .store-name { font-size: 10px; }
    .price-row strong { font-size: 13px; }
    .add-button { min-width: 45px; padding: 5px 7px; font-size: 12px; }
    .brands-row { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .brand-chip { padding-inline: 3px; }
    .brand-chip span { font-size: 14px; }
    .delivery-banner { padding: 28px; }
    .delivery-banner h2 { font-size: 33px; }
    .delivery-art { font-size: 100px; }
    .app-banner { padding: 25px; }
    .benefit-strip { width: calc(100% - 24px); grid-template-columns: 1fr; }
    .benefit-strip > div { border-right: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 7px; }
    .floating-actions { left: 12px; bottom: 74px; }
    .store-grid { grid-template-columns: 1fr; }
    .form-grid, .purchase-actions { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .auth-form { padding: 30px 22px; }
    .page-hero h1 { font-size: 34px; }
    .product-detail-visual { min-height: 330px; }
    .product-detail-visual span { font-size: 140px; }
    .seller-hero { min-height: 400px; padding: 30px; }
    .seller-hero h1 { font-size: 38px; }
    .stat-grid { grid-template-columns: 1fr; }
    .panel-main { padding: 16px; }
    .panel-sidebar nav { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .panel-form { grid-template-columns: 1fr; }
    .panel-form .full { grid-column: auto; }
}
