:root {
    --navy: #0b1830;
    --navy-soft: #152543;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --teal: #11b7a2;
    --ink: #111827;
    --muted: #667085;
    --line: #e4e9f2;
    --surface: #ffffff;
    --surface-alt: #f6f8fc;
    --success: #047857;
    --success-bg: #ecfdf3;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --shadow: 0 20px 50px rgba(10, 24, 48, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.03em;
}

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

button {
    cursor: pointer;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--blue);
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
    transform: translateY(-1px);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
}

.full-width {
    width: 100%;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 1.17rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.brand-mark {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    font-size: 1.25rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(21, 128, 61, .12);
}

.admin-brand-logo,
.login-brand-logo {
    width: 44px;
    height: 44px;
}

.gromart-site {
    --grocery-green: #178f32;
    --grocery-green-dark: #0f6f26;
    --grocery-lime: #80c41c;
    --grocery-orange: #e68116;
    --grocery-cream: #fff9ed;
    background: #fffdfa;
}

.gromart-site .site-header {
    border-bottom: 1px solid rgba(23, 143, 50, .12);
    background: rgba(255, 253, 250, .92);
}

.gromart-site .nav-links a:not(.button):hover,
.gromart-site .eyebrow {
    color: var(--grocery-green);
}

.gromart-brand span {
    color: #153919;
}

.grocery-button {
    background: linear-gradient(135deg, var(--grocery-green), var(--grocery-lime));
    box-shadow: 0 14px 28px rgba(23, 143, 50, .22);
}

.grocery-button:hover {
    background: linear-gradient(135deg, var(--grocery-green-dark), var(--grocery-green));
}

.button-ghost {
    border: 1px solid rgba(23, 143, 50, .18);
    color: var(--grocery-green-dark);
    background: #ffffff;
}

.button-ghost:hover {
    color: #ffffff;
    background: var(--grocery-green);
}

.gromart-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 88px;
    background:
        radial-gradient(circle at 78% 15%, rgba(128, 196, 28, .25), transparent 30%),
        radial-gradient(circle at 10% 78%, rgba(230, 129, 22, .16), transparent 34%),
        linear-gradient(135deg, #fffdf6 0%, #ecfff0 100%);
}

.gromart-hero::before {
    position: absolute;
    inset: auto -90px -160px auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(230, 129, 22, .14);
    content: "";
}

.gromart-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: center;
    gap: 72px;
}

.gromart-hero-copy h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: #123018;
    font-size: clamp(2.65rem, 5vw, 4.75rem);
}

.gromart-hero-copy .hero-text {
    max-width: 650px;
    color: #52645a;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.gromart-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.gromart-stats span {
    min-width: 150px;
    padding: 14px 18px;
    border: 1px solid rgba(23, 143, 50, .12);
    border-radius: 18px;
    color: #577064;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 34px rgba(23, 143, 50, .08);
}

.gromart-stats strong {
    display: block;
    color: var(--grocery-green-dark);
    font-size: 1.25rem;
}

.gromart-phone-card {
    display: grid;
    place-items: center;
}

.phone-frame {
    width: min(100%, 360px);
    min-height: 560px;
    padding: 24px;
    border: 10px solid #153919;
    border-radius: 42px;
    background: #fbfff8;
    box-shadow: 0 35px 70px rgba(20, 58, 28, .25);
}

.phone-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #153919;
    font-size: 1.2rem;
    font-weight: 800;
}

.phone-top img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.search-pill {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 16px;
    color: #6b7d70;
    background: #eef8eb;
}

.mini-banner {
    min-height: 150px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .28), transparent 22%),
        linear-gradient(135deg, var(--grocery-orange), #f4a21f);
}

.mini-banner span {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mini-banner strong {
    display: block;
    max-width: 200px;
    font-size: 1.7rem;
    line-height: 1.1;
}

.mini-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-products div {
    min-height: 104px;
    padding: 14px 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 143, 50, .09);
}

.mini-products span,
.mini-products strong {
    display: block;
}

.mini-products span {
    color: #758577;
    font-size: .82rem;
}

.mini-products strong {
    margin-top: 22px;
    color: #153919;
}

.gromart-section {
    padding: 82px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(23, 143, 50, .1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 143, 50, .08);
}

.benefit-check {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: var(--grocery-green);
    font-weight: 900;
}

.benefit-card h3 {
    margin-bottom: 0;
    color: #173f20;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.gromart-band {
    padding: 82px 0;
    background: var(--grocery-cream);
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(89, 55, 12, .08);
}

.category-tile span {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(23, 143, 50, .95), rgba(128, 196, 28, .95));
}

.category-tile:nth-child(2) span {
    background: linear-gradient(135deg, rgba(230, 129, 22, .95), rgba(244, 162, 31, .95));
}

.category-tile p {
    margin-bottom: 0;
    color: #657366;
}

.live-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.live-category-strip span {
    padding: 10px 16px;
    border-radius: 999px;
    color: #175c28;
    background: #ffffff;
    font-weight: 700;
}

.delivery-section {
    padding: 86px 0;
}

.delivery-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 42px;
    align-items: center;
    padding: 42px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 12%, rgba(128, 196, 28, .32), transparent 28%),
        linear-gradient(135deg, #143b1a, #0f6f26);
    box-shadow: 0 24px 54px rgba(15, 111, 38, .22);
}

.delivery-panel h2,
.delivery-panel .eyebrow {
    color: #ffffff;
}

.delivery-panel p {
    color: rgba(255, 255, 255, .78);
}

.delivery-steps {
    display: grid;
    gap: 12px;
}

.delivery-steps span {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    font-weight: 700;
}

.app-cta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-bottom: 88px;
    padding: 30px;
    border: 1px solid rgba(23, 143, 50, .12);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(23, 143, 50, .1);
}

.app-cta img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.app-cta h2,
.app-cta p {
    margin-bottom: 8px;
}

/* Public website */
.site-body {
    background: var(--surface);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(228, 233, 242, .8);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #475467;
    font-weight: 500;
}

.nav-links a:not(.button):hover {
    color: var(--blue);
}

.menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 14px;
    background: #fff;
}

.hero {
    overflow: hidden;
    padding: 84px 0 82px;
    background:
        radial-gradient(circle at 85% 18%, rgba(17, 183, 162, .14), transparent 29%),
        radial-gradient(circle at 8% 70%, rgba(37, 99, 235, .1), transparent 32%),
        var(--surface-alt);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 385px;
    align-items: center;
    gap: 78px;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(2.65rem, 5vw, 4.2rem);
}

.hero-text {
    max-width: 580px;
    margin-bottom: 37px;
    color: var(--muted);
    font-size: 1.17rem;
}

.hero-card {
    position: relative;
    min-height: 280px;
    padding: 46px 38px;
    border-radius: 26px;
    color: #e4ebfb;
    background: var(--navy);
    box-shadow: 0 25px 55px rgba(11, 24, 48, .21);
}

.hero-card::after {
    position: absolute;
    right: -25px;
    bottom: -25px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(17, 183, 162, .22);
    content: "";
}

.hero-card p {
    margin: 22px 0 18px;
    color: #8da5cb;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero-card strong {
    display: block;
    color: #fff;
    font-size: 1.58rem;
    line-height: 1.35;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 7px rgba(17, 183, 162, .16);
}

.posts-section {
    padding: 78px 0 88px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 2.05rem;
}

.section-heading > p {
    max-width: 350px;
    margin-bottom: 4px;
    color: var(--muted);
    text-align: right;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.post-card {
    display: flex;
    min-height: 284px;
    flex-direction: column;
    padding: 29px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.post-card h3 {
    margin-bottom: 14px;
    font-size: 1.38rem;
}

.post-card > p:not(.article-meta) {
    color: var(--muted);
}

.post-card a {
    margin-top: auto;
    color: var(--blue);
    font-weight: 600;
}

.article-meta {
    margin-bottom: 18px;
    color: #7a869a;
    font-size: .86rem;
    font-weight: 500;
}

.article-view {
    max-width: 820px;
    min-height: calc(100vh - 168px);
    padding: 74px 0;
}

.article-view h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.article-content {
    margin-top: 42px;
    color: #344054;
    font-size: 1.08rem;
    line-height: 1.9;
}

.empty-state, .setup-panel {
    margin: 70px auto;
    padding: 54px;
    border: 1px dashed #cad5e6;
    border-radius: var(--radius);
    text-align: center;
}

.setup-panel {
    max-width: 720px;
}

.setup-panel code {
    color: var(--blue-dark);
}

.empty-state.compact {
    margin: 0;
    padding: 46px 28px;
}

.site-footer {
    padding: 29px 0;
    color: #98a2b3;
    background: var(--navy);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-layout strong {
    color: #fff;
}

.footer-layout p {
    margin: 0;
}

/* Authentication */
.login-body {
    min-height: 100vh;
    background: var(--surface-alt);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.03fr .97fr;
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 9vw, 112px);
    color: #b9c7e2;
    background:
        radial-gradient(circle at 75% 20%, rgba(17, 183, 162, .21), transparent 27%),
        var(--navy);
}

.login-intro .brand {
    position: absolute;
    top: 42px;
    color: #fff;
}

.login-intro .eyebrow {
    color: #63daca;
}

.login-intro h1 {
    max-width: 620px;
    margin-bottom: 25px;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.login-intro > p:last-child {
    max-width: 500px;
    font-size: 1.06rem;
}

.login-panel {
    width: min(470px, calc(100% - 56px));
    margin: auto;
    padding: 48px 45px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-panel h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.login-panel .muted {
    margin-bottom: 29px;
}

.back-link {
    display: block;
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
    font-size: .93rem;
}

/* Admin */
.admin-body {
    background: #f3f6fb;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 27px 15px 17px 21px;
    color: #aebcda;
    background: var(--navy);
}

.sidebar-brand {
    flex: 0 0 auto;
    margin: 0 18px 25px 6px;
    color: #fff;
}

.sidebar-nav {
    overflow-y: auto;
    min-height: 0;
    padding-right: 6px;
    display: grid;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .26);
}

.sidebar-group {
    display: grid;
    gap: 6px;
    margin: 4px 0 10px;
    padding: 10px 8px 8px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.sidebar-group-title {
    padding: 0 9px 3px;
    color: #7f8fb3;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sidebar-nav a {
    padding: 12px 17px;
    border-radius: 9px;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.view-site {
    flex: 0 0 auto;
    margin: 18px 21px 0 9px;
    color: #d4dcf0;
    font-size: .92rem;
}

.admin-main {
    min-width: 0;
}

.topbar {
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0 42px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.topbar-label {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
}

.text-link {
    color: var(--blue);
    font-weight: 500;
}

.admin-content {
    max-width: 1240px;
    padding: 42px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.page-heading .eyebrow {
    margin-bottom: 8px;
}

.page-heading h1 {
    margin: 0;
    font-size: 2.15rem;
}

.heading-copy {
    margin: 11px 0 0;
    color: var(--muted);
}

.filter-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
    padding: 19px 21px;
    border: 1px solid #e5ebf4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 24, 48, .035);
}

.filter-fields {
    display: flex;
    align-items: end;
    flex: 1;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-fields label {
    display: grid;
    min-width: 170px;
    gap: 6px;
}

.filter-fields label > span {
    color: #526177;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.filter-fields .filter-search {
    min-width: min(260px, 100%);
    flex: 1;
}

.product-filters label:not(.filter-search) {
    min-width: 145px;
}

.filter-fields input,
.filter-fields select {
    min-height: 43px;
    padding-top: 9px;
    padding-bottom: 9px;
    background: #f9fbfe;
}

.clear-filter {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 5px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
}

.clear-filter:hover {
    color: var(--blue);
}

.result-count {
    margin: 0 0 10px;
    white-space: nowrap;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
}

.pagination a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #526177;
    background: #fff;
    font-weight: 600;
}

.pagination a:hover,
.pagination a.active {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 27px;
}

.stat-card, .panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.stat-card {
    padding: 25px;
}

.stat-card p {
    margin-bottom: 13px;
    color: var(--muted);
    font-weight: 500;
}

.stat-card strong {
    color: var(--navy);
    font-size: 2rem;
}

.dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
}

.dashboard-stats .stat-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    border: 0;
    padding: 23px 25px;
    color: #fff;
    box-shadow: 0 15px 32px rgba(23, 38, 78, .13);
}

.dashboard-stats .stat-card::after {
    position: absolute;
    right: -28px;
    bottom: -44px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    content: "";
}

.dashboard-stats .stat-card strong {
    display: block;
    margin: 12px 0 1px;
    color: #fff;
    font-size: 2.35rem;
}

.dashboard-stats .stat-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
}

.stat-label {
    color: rgba(255, 255, 255, .9);
    font-size: .81rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gradient-blue {
    background: linear-gradient(135deg, #2463eb, #39a5ff);
}

.gradient-green {
    background: linear-gradient(135deg, #059669, #19c9a0);
}

.gradient-purple {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.gradient-orange {
    background: linear-gradient(135deg, #ea580c, #fbad34);
}

.panel {
    padding: 29px;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-charts .panel,
.dashboard-products {
    border: 0;
    box-shadow: 0 8px 30px rgba(10, 24, 48, .055);
}

.chart-kicker {
    margin-bottom: 5px;
    color: #8b96a9;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.availability-layout {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-top: 11px;
}

.donut-chart {
    display: grid;
    width: 168px;
    height: 168px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#13b986 var(--percentage), #f04452 0);
}

.donut-chart::before {
    position: absolute;
    content: "";
}

.donut-chart > div {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #fff;
}

.donut-chart strong {
    color: var(--navy);
    font-size: 1.85rem;
    line-height: 1.1;
}

.donut-chart span {
    color: var(--muted);
    font-size: .79rem;
}

.chart-legend {
    display: grid;
    gap: 17px;
}

.chart-legend div {
    display: grid;
    grid-template-columns: 12px auto;
    align-items: center;
    gap: 1px 11px;
}

.chart-legend strong {
    color: var(--navy);
    font-size: 1.15rem;
}

.chart-legend small {
    grid-column: 2;
    color: var(--muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.green {
    background: #13b986;
}

.legend-dot.red {
    background: #f04452;
}

.bar-chart {
    display: grid;
    gap: 22px;
    padding-top: 13px;
}

.bar-row {
    display: grid;
    grid-template-columns: 118px 1fr 38px;
    align-items: center;
    gap: 16px;
}

.bar-label span {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.bar-label small {
    color: var(--muted);
}

.bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: #edf1f7;
}

.bar-fill {
    display: block;
    min-width: 8px;
    height: 100%;
    border-radius: inherit;
}

.color-1 {
    background: linear-gradient(90deg, #2563eb, #50a8fb);
}

.color-2 {
    background: linear-gradient(90deg, #14b8a6, #53d9b5);
}

.color-3 {
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.color-4 {
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.bar-row > strong {
    color: var(--navy);
    text-align: right;
}

.dashboard-products .content-table {
    margin-top: 2px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 21px;
}

.panel-header h2, .publish-panel h2 {
    margin: 0;
    font-size: 1.28rem;
}

.content-table {
    border-top: 1px solid var(--line);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 118px 55px;
    align-items: center;
    gap: 22px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
}

.table-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.manage-table .table-row {
    grid-template-columns: 1fr 118px minmax(170px, auto);
}

.customer-table {
    overflow-x: auto;
}

.customer-row {
    display: grid;
    min-width: 930px;
    grid-template-columns: 1.1fr 1fr 1.5fr .8fr .8fr 102px;
    align-items: center;
    gap: 22px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: #344054;
}

.customer-row:last-child {
    border-bottom: 0;
}

.customer-head {
    padding-top: 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.customer-action-icons {
    display: flex;
    align-items: center;
    gap: 9px;
}

.view-address-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--blue);
    background: #eff6ff;
    font-size: 1.32rem;
}

.view-address-button small {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 1px 5px;
    border-radius: 12px;
    color: #fff;
    background: var(--blue);
    font-size: .66rem;
    font-weight: 700;
    line-height: 17px;
}

.view-address-button:hover,
.view-address-button:focus {
    color: #fff;
    background: var(--blue);
}

.view-address-button:hover small,
.view-address-button:focus small {
    color: var(--blue);
    background: #fff;
}

.view-wishlist-button {
    color: #db2777;
    background: #fdf2f8;
}

.view-wishlist-button small {
    background: #db2777;
}

.view-wishlist-button:hover,
.view-wishlist-button:focus {
    color: #fff;
    background: #db2777;
}

.view-wishlist-button:hover small,
.view-wishlist-button:focus small {
    color: #db2777;
    background: #fff;
}

.address-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 26px;
}

.address-modal[hidden] {
    display: none;
}

.wishlist-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 26px;
}

.wishlist-modal[hidden] {
    display: none;
}

.address-modal-backdrop,
.wishlist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .52);
    backdrop-filter: blur(3px);
}

.address-modal-dialog,
.wishlist-modal-dialog {
    position: relative;
    display: flex;
    width: min(840px, 100%);
    max-height: min(720px, calc(100vh - 52px));
    flex-direction: column;
    overflow: hidden;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.address-modal-header,
.wishlist-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px 18px;
    border-bottom: 1px solid var(--line);
}

.address-modal-header h2,
.wishlist-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.38rem;
}

.address-modal-header small,
.wishlist-modal-header small {
    color: var(--muted);
}

.address-modal-close,
.wishlist-modal-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #526177;
    background: #f3f6fb;
    font-size: 1.55rem;
    line-height: 1;
}

.address-modal-close:hover,
.wishlist-modal-close:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.address-card-list,
.wishlist-card-list {
    display: grid;
    overflow-y: auto;
    gap: 15px;
    padding: 20px 27px;
    background: #fbfcff;
}

.wishlist-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2eaf6;
    border-radius: 13px;
    background: #fff;
}

.wishlist-card > img {
    width: 94px;
    height: 94px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface-alt);
}

.address-card {
    padding: 17px 19px;
    border: 1px solid #e2eaf6;
    border-radius: 13px;
    background: #fff;
}

.address-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.address-card-heading strong {
    color: var(--navy);
}

.address-type {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 12px;
    color: var(--blue);
    background: #eff6ff;
    font-size: .76rem;
    font-weight: 600;
}

.address-card p {
    margin-bottom: 7px;
    color: #344054;
}

.address-card > small {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
}

.address-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
}

.address-modal-footer,
.wishlist-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 17px 27px;
    border-top: 1px solid var(--line);
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-summary span {
    display: grid;
    min-width: 112px;
    padding: 12px 17px;
    border: 1px solid #dce7f5;
    border-radius: 12px;
    color: var(--muted);
    background: #fff;
    font-size: .82rem;
}

.cart-summary strong {
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1.25;
}

.cart-table {
    overflow-x: auto;
}

.cart-customer-row {
    display: grid;
    min-width: 970px;
    grid-template-columns: 1.35fr 1.05fr .8fr .9fr 1fr 1fr 58px;
    align-items: center;
    gap: 18px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
    color: #344054;
}

.cart-customer-row:last-child {
    border-bottom: 0;
}

.view-cart-items {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 10px;
    border: 0;
    color: var(--blue);
    background: #eff6ff;
    font-size: 1.15rem;
    transition: background .18s ease, color .18s ease;
}

.view-cart-items:hover,
.view-cart-items:focus {
    color: #fff;
    background: var(--blue);
}

.modal-open {
    overflow: hidden;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 26px;
}

.cart-modal[hidden] {
    display: none;
}

.cart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .52);
    backdrop-filter: blur(3px);
}

.cart-modal-dialog {
    position: relative;
    width: min(990px, 100%);
    max-height: min(680px, calc(100vh - 52px));
    overflow: hidden;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px 18px;
    border-bottom: 1px solid var(--line);
}

.cart-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.38rem;
}

.cart-modal-header small {
    color: var(--muted);
}

.cart-modal-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #526177;
    background: #f3f6fb;
    font-size: 1.55rem;
    line-height: 1;
}

.cart-modal-close:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.cart-item-details {
    max-height: min(410px, calc(100vh - 245px));
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    padding: 17px 27px;
    background: #fbfcff;
}

.cart-item-row {
    display: grid;
    min-width: 810px;
    grid-template-columns: 1.65fr .7fr .65fr .9fr 1fr 1fr;
    align-items: center;
    gap: 18px;
    padding: 12px 3px;
    border-bottom: 1px solid #dfe7f3;
    color: #344054;
}

.cart-item-row:last-child {
    border-bottom: 0;
}

.cart-item-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.cart-item-row .stock-badge {
    margin: 0;
}

.cart-head {
    padding-top: 0;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cart-item-head {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cart-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 27px;
    border-top: 1px solid var(--line);
}

.cart-modal-footer strong {
    color: var(--navy);
}

.order-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    width: min(720px, 100%);
}

.order-summary article {
    position: relative;
    overflow: hidden;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .18);
}

.order-summary article:nth-child(2) {
    background: linear-gradient(135deg, #0891b2, #0ea5e9);
}

.order-summary article:nth-child(3) {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.order-summary article:nth-child(4) {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.order-summary span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.order-summary strong {
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.15;
}

.order-panel {
    padding: 22px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.order-table {
    display: grid;
    gap: 12px;
    overflow: visible;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .78fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, .84fr) 150px;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dce7f5;
    border-radius: 18px;
    color: #344054;
    background: #fff;
    box-shadow: 0 12px 30px rgba(11, 24, 48, .06);
}

.order-row > span {
    min-width: 0;
}

.order-row strong,
.order-row small {
    overflow-wrap: anywhere;
}

.order-row:not(.order-head):hover {
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .1);
}

.order-row small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.order-head {
    min-height: auto;
    padding: 10px 18px;
    border: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.order-item-head {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.status-pill,
.payment-chip,
.delivery-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .72rem;
    font-weight: 800;
}

.order-status-delivered {
    color: #047857;
    background: #ecfdf3;
}

.order-status-cancelled {
    color: #b42318;
    background: #fff1f3;
}

.order-status-out-for-delivery,
.order-status-packed,
.order-status-accepted,
.order-status-getting-ready,
.order-status-ready-to-pickup {
    color: #b54708;
    background: #fffaeb;
}

.payment-chip {
    color: #6d28d9;
    background: #f5f3ff;
}

.delivery-chip {
    color: #0369a1;
    background: #e0f2fe;
}

.order-amount {
    color: var(--navy);
}

.view-order-items {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 12px 24px rgba(124, 58, 237, .25);
    font-size: 1.12rem;
    justify-self: end;
    transition: transform .18s ease, box-shadow .18s ease;
}

.order-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.order-action-buttons form {
    margin: 0;
}

.order-icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(11, 24, 48, .16);
    transition: transform .18s ease, box-shadow .18s ease;
}

.order-icon-button.accept {
    background: linear-gradient(135deg, #039855, #12b76a);
}

.order-icon-button.cancel {
    background: linear-gradient(135deg, #d92d20, #f04438);
}

.order-icon-button.update {
    background: linear-gradient(135deg, #f79009, #f97316);
}

.order-icon-button:hover,
.order-icon-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(11, 24, 48, .24);
}

.view-order-items:hover,
.view-order-items:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(124, 58, 237, .34);
}

.order-modal,
.order-update-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 26px;
}

.order-modal[hidden],
.order-update-modal[hidden] {
    display: none;
}

.order-modal-backdrop,
.order-update-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .52);
    backdrop-filter: blur(3px);
}

.order-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1080px, 100%);
    max-height: min(740px, calc(100vh - 52px));
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.order-update-modal-dialog {
    position: relative;
    overflow: hidden;
    width: min(520px, 100%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.order-update-form {
    display: grid;
    gap: 20px;
    padding: 24px 27px;
}

.order-update-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: .93rem;
    font-weight: 600;
}

.order-modal-header,
.order-modal-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 27px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    background: linear-gradient(135deg, #111827, #1d4ed8 55%, #7c3aed);
}

.order-modal-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: #344054;
    background: #fff;
}

.order-modal-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.order-modal-footer strong {
    color: var(--navy);
}

.order-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.38rem;
}

.order-modal-header small {
    color: rgba(255, 255, 255, .78);
}

.order-modal-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 1.55rem;
    line-height: 1;
}

.order-modal-close:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.order-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: #fbfcff;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 27px 0;
    background: #fbfcff;
}

.order-info-card {
    padding: 18px;
    border: 1px solid #dfe7f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(11, 24, 48, .05);
}

.order-info-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.order-info-card h3 small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.order-info-card p {
    margin: 0 0 8px;
    color: #475467;
}

.order-info-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.address-card-wide {
    grid-column: 1 / -1;
}

.order-item-details {
    overflow-x: hidden;
    padding: 20px 27px;
    background: #fbfcff;
}

.order-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, .75fr) minmax(0, .65fr) minmax(0, .85fr) minmax(0, .85fr);
    align-items: center;
    gap: 18px;
    padding: 13px 14px;
    border: 1px solid #dfe7f3;
    border-radius: 13px;
    color: #344054;
    background: #fff;
}

.order-item-row + .order-item-row {
    margin-top: 10px;
}

.order-item-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.razorpay-hero {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(360px, 1.4fr);
    align-items: center;
    gap: 24px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #2563eb 55%, #7c3aed);
}

.razorpay-hero h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 2rem;
}

.razorpay-hero p,
.razorpay-hero .chart-kicker {
    color: rgba(255, 255, 255, .78);
}

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

.razorpay-kpi-grid article {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
}

.razorpay-kpi-grid span,
.razorpay-kpi-grid strong {
    display: block;
}

.razorpay-kpi-grid span {
    color: rgba(255, 255, 255, .78);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.razorpay-kpi-grid strong {
    margin-top: 5px;
    color: #fff;
    font-size: 1.35rem;
}

.razorpay-doc-panel code {
    display: block;
    margin: 12px 0;
    padding: 12px 14px;
    overflow-wrap: anywhere;
    border-radius: 12px;
    color: #1d4ed8;
    background: #eff6ff;
}

.razorpay-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.razorpay-tabs a {
    padding: 11px 17px;
    border: 1px solid #dce7f5;
    border-radius: 999px;
    color: #344054;
    background: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(11, 24, 48, .05);
}

.razorpay-tabs a.active,
.razorpay-tabs a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 4px 0 0;
}

.razorpay-payment-panel {
    overflow: hidden;
}

.razorpay-payment-table,
.razorpay-data-table {
    display: grid;
    gap: 11px;
}

.razorpay-payment-row,
.razorpay-data-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #dce7f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 24, 48, .05);
    color: #344054;
}

.razorpay-data-row.payments-layout,
.razorpay-payment-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .62fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr);
}

.razorpay-data-row.compact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .75fr) minmax(0, 1fr);
}

.razorpay-data-row.failures-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, .9fr);
}

.razorpay-payment-row > span,
.razorpay-data-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.razorpay-payment-row small,
.razorpay-data-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.razorpay-payment-head {
    padding: 7px 15px;
    border: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.payment-status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #344054;
    background: #eef2f7;
    font-size: .72rem;
    font-weight: 800;
}

.payment-status-authorized {
    color: #b54708;
    background: #fffaeb;
}

.payment-status-captured {
    color: #047857;
    background: #ecfdf3;
}

.payment-status-failed {
    color: #b42318;
    background: #fff1f3;
}

.razorpay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.razorpay-mini-table {
    display: grid;
    gap: 10px;
}

.razorpay-mini-table > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.razorpay-mini-table > div:last-child {
    border-bottom: 0;
}

.razorpay-mini-table small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.muted-text {
    color: var(--muted);
}

.report-filter-panel {
    align-items: center;
}

.report-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-light {
    border: 1px solid var(--line);
    color: var(--blue);
    background: #fff;
}

.button-light:hover {
    color: #fff;
    background: var(--blue);
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.report-stat-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.report-stat-card span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-stat-card strong {
    color: var(--navy);
    font-size: 1.3rem;
}

.report-panel {
    margin-bottom: 22px;
}

.report-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.report-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    background: #fff;
}

.report-table th,
.report-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: .88rem;
}

.report-table th {
    color: #667085;
    background: #f8fafc;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.report-table tr:last-child td {
    border-bottom: 0;
}

.report-table small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .78rem;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.category-card img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
    background: var(--surface-alt);
}

.category-card-body {
    padding: 13px;
}

.category-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.category-title h2 {
    margin: 2px 0 7px;
    font-size: 1rem;
}

.category-card-body p {
    margin-bottom: 11px;
    color: var(--muted);
    font-size: .8rem;
}

.category-card .actions {
    gap: 11px;
    justify-content: flex-start;
}

.all-category-panel {
    display: grid;
    grid-template-columns: 1fr 160px minmax(260px, 360px);
    align-items: center;
    gap: 24px;
    margin-bottom: 23px;
    box-shadow: 0 8px 24px rgba(10, 24, 48, .035);
}

.all-category-panel h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.all-category-preview,
.all-category-placeholder {
    width: 150px;
    height: 98px;
    border-radius: 14px;
}

.all-category-preview {
    object-fit: cover;
    background: var(--surface-alt);
}

.all-category-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.all-category-form {
    display: grid;
    gap: 12px;
}

.all-category-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: .93rem;
    font-weight: 600;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
}

.banner-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.banner-card img {
    display: block;
    width: 100%;
    height: 184px;
    object-fit: cover;
    background: var(--surface-alt);
}

.banner-card-body {
    padding: 17px;
}

.banner-card-body h2 {
    margin: 2px 0 9px;
    font-size: 1.14rem;
}

.banner-card-body p {
    overflow: hidden;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-card .actions {
    justify-content: flex-start;
}

.category-preview {
    width: min(100%, 340px);
    height: 205px;
    border-radius: 12px;
    object-fit: cover;
}

.banner-preview {
    width: min(100%, 620px);
    height: 230px;
    border-radius: 12px;
    object-fit: cover;
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.product-card > img {
    display: block;
    width: 100%;
    height: 128px;
    object-fit: cover;
    background: var(--surface-alt);
}

.product-card-body {
    padding: 13px;
}

.product-category {
    margin: 3px 0 8px;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card h2 {
    margin: 0 0 9px;
    font-size: 1rem;
    line-height: 1.25;
}

.product-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.product-pricing strong {
    color: var(--navy);
}

.product-pricing del {
    color: var(--muted);
    font-size: .8rem;
}

.product-pricing span {
    color: var(--success);
    font-size: .8rem;
    font-weight: 600;
}

.stock-badge {
    display: inline-flex;
    width: max-content;
    margin: 0 0 9px;
    padding: 4px 9px;
    border-radius: 18px;
    font-size: .74rem;
    font-weight: 600;
}

.in-stock {
    color: var(--success);
    background: var(--success-bg);
}

.out-of-stock {
    color: var(--danger);
    background: var(--danger-bg);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

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

.existing-product-image {
    display: block !important;
}

.existing-product-image img {
    display: block;
    width: 100%;
    height: 98px;
    margin-bottom: 8px;
    border-radius: 8px;
    object-fit: cover;
}

.existing-product-image span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-weight: 400;
}

.existing-product-image input {
    width: auto;
}

.units-editor {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.units-editor .panel-header {
    margin-bottom: 14px;
}

.text-button {
    border: 0;
    padding: 0;
    color: var(--blue);
    background: transparent;
    font-weight: 600;
}

.unit-row {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 10px;
}

.unit-row:first-child {
    margin-top: 0;
}

.unit-row input {
    flex: 1;
}

.unit-price-preview {
    display: inline-flex;
    min-width: 112px;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--success);
    background: var(--success-bg);
    font-size: .86rem;
    font-weight: 700;
}

.stock-layout {
    display: grid;
    grid-template-columns: minmax(550px, 1fr) 325px;
    align-items: start;
    gap: 22px;
}

.stock-table {
    overflow-x: auto;
}

.stock-table-row {
    display: grid;
    min-width: 650px;
    grid-template-columns: 1.7fr 1.2fr 1fr 62px;
    align-items: center;
    gap: 22px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
    color: #344054;
}

.stock-table-row:last-of-type {
    border-bottom: 0;
}

.stock-table-head {
    padding-top: 0;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stock-table-row .stock-badge {
    margin: 0;
}

.stock-edit-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--blue);
    background: #eff6ff;
    font-size: 1.06rem;
    transition: background .18s ease, color .18s ease;
}

.stock-edit-button:hover,
.stock-edit-button:focus {
    color: #fff;
    background: var(--blue);
}

.stock-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 26px;
}

.stock-modal[hidden] {
    display: none;
}

.stock-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .52);
    backdrop-filter: blur(3px);
}

.stock-modal-dialog {
    position: relative;
    width: min(540px, 100%);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.stock-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px 18px;
    border-bottom: 1px solid var(--line);
}

.stock-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.38rem;
}

.stock-modal-header small {
    color: var(--muted);
}

.stock-modal-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #526177;
    background: #f3f6fb;
    font-size: 1.55rem;
    line-height: 1;
}

.stock-modal-close:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.stock-modal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    padding: 22px 27px 25px;
}

.stock-modal-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: .93rem;
    font-weight: 600;
}

.stock-note-field,
.stock-modal-actions {
    grid-column: 1 / -1;
}

.stock-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
    padding-top: 5px;
}

.stock-modal-actions .clear-filter {
    border: 0;
    background: transparent;
}

.stock-list {
    display: grid;
    gap: 18px;
}

.stock-row {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.stock-row.selected {
    border-color: rgba(37, 99, 235, .38);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .06);
}

.stock-row small {
    display: block;
    margin: 4px 0 11px;
    color: var(--muted);
}

.stock-form {
    display: grid;
    grid-template-columns: 90px 135px minmax(150px, 1fr) 100px;
    gap: 10px;
    margin-top: 13px;
}

.stock-history h2 {
    margin-bottom: 22px;
    font-size: 1.28rem;
}

.movement-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.movement-row:last-child {
    border-bottom: 0;
}

.movement-row small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.movement-add {
    color: var(--success);
    font-weight: 700;
}

.movement-sale {
    color: var(--danger);
    font-weight: 700;
}

.field-note {
    color: var(--muted);
    font-weight: 400;
}

.badge {
    width: max-content;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
}

.badge-published {
    color: var(--success);
    background: var(--success-bg);
}

.badge-draft {
    color: #b54708;
    background: #fffaeb;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
}

.actions form {
    margin: 0;
}

.danger-link {
    border: 0;
    padding: 0;
    color: var(--danger);
    background: transparent;
}

.form-stack {
    display: grid;
    gap: 21px;
}

.form-stack label,
.publish-panel label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: .93rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #d0d8e5;
    border-radius: 9px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

textarea {
    resize: vertical;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(450px, 1fr) 275px;
    align-items: start;
    gap: 22px;
}

.body-editor {
    min-height: 365px;
    line-height: 1.65;
}

.publish-panel {
    display: grid;
    gap: 24px;
}

.settings-form {
    max-width: 700px;
}

.settings-form .button {
    width: max-content;
}

.delivery-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 380px;
    align-items: start;
    gap: 22px;
}

.delivery-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.delivery-preview {
    display: block;
    width: 100%;
    height: 135px;
    margin-top: 10px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface-alt);
}

.delivery-address-panel {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcff;
}

.delivery-time-tabs {
    display: grid;
    gap: 12px;
}

.delivery-time-tabs > span {
    color: #344054;
    font-size: .93rem;
    font-weight: 600;
}

.delivery-time-group {
    display: grid;
    gap: 8px;
}

.delivery-time-group strong {
    color: var(--muted);
    font-size: .82rem;
}

.delivery-time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.delivery-time-option {
    cursor: pointer;
}

.delivery-time-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-time-option span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--muted);
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    transition: all .18s ease;
}

.delivery-time-option:hover span {
    border-color: rgba(47, 111, 237, .45);
    color: var(--blue);
    background: #f5f8ff;
}

.delivery-time-option input:checked + span {
    border-color: var(--blue);
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #6c5ce7);
    box-shadow: 0 10px 18px rgba(47, 111, 237, .22);
}

.compact-header {
    margin-bottom: 0;
}

.map-picker-trigger {
    width: 44px;
    height: 44px;
}

.shop-map-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: grid;
    place-items: center;
    padding: 26px;
}

.shop-map-modal[hidden] {
    display: none;
}

.shop-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .52);
    backdrop-filter: blur(3px);
}

.shop-map-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(720px, calc(100vh - 52px));
    overflow: hidden;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(11, 24, 48, .28);
}

.shop-map-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px 18px;
    border-bottom: 1px solid var(--line);
}

.shop-map-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.38rem;
}

.shop-map-modal-header small {
    color: var(--muted);
}

.shop-map-modal-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #526177;
    background: #f3f6fb;
    font-size: 1.55rem;
    line-height: 1;
}

.shop-map-body {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
    padding: 24px 27px;
    background: #fbfcff;
}

.shop-map-canvas {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border: 1px dashed #b8c6da;
    border-radius: 16px;
    background: var(--surface-alt);
}

.shop-map-canvas .leaflet-container,
.shop-map-canvas {
    height: 360px;
}

.shop-map-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 600;
    transform: translate(-50%, -100%);
    color: #db2777;
    font-size: 2.15rem;
    filter: drop-shadow(0 4px 8px rgba(11, 24, 48, .28));
    pointer-events: none;
}

.map-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-form {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.delivery-slot-list {
    display: grid;
    gap: 12px;
}

.delivery-slot-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.delivery-slot-card:last-child {
    border-bottom: 0;
}

.delivery-slot-card strong,
.delivery-slot-card span {
    display: block;
}

.delivery-slot-card span:not(.badge) {
    color: var(--muted);
    font-size: .88rem;
}

.form-divider {
    margin: 10px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--navy);
    font-weight: 600;
}

.alert {
    margin-bottom: 22px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .94rem;
}

.alert-success {
    border-color: #abefc6;
    color: var(--success);
    background: var(--success-bg);
}

.alert-error {
    border-color: #fecdca;
    color: var(--danger);
    background: var(--danger-bg);
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 1000px) {
    .hero-grid, .login-shell {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-intro {
        display: none;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 20;
        width: 270px;
        transition: left .2s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
        margin-right: auto;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 7px 13px;
        background: #fff;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .razorpay-hero,
    .razorpay-grid {
        grid-template-columns: 1fr;
    }

    .razorpay-payment-head {
        display: none;
    }

    .razorpay-payment-row,
    .razorpay-data-row,
    .razorpay-data-row.payments-layout,
    .razorpay-data-row.compact-layout,
    .razorpay-data-row.failures-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }

    .order-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .order-head {
        display: none;
    }

    .order-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 136px;
        align-items: flex-start;
    }

    .order-row .order-action-buttons {
        grid-column: 3;
        grid-row: 1;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .all-category-panel {
        grid-template-columns: 1fr;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .stock-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .result-count {
        margin: 0;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 34px, 1160px);
    }

    .nav {
        min-height: 70px;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 17px;
        right: 17px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: 62px 0;
    }

    .posts-section {
        padding: 55px 0;
    }

    .section-heading, .footer-layout {
        display: block;
    }

    .section-heading > p {
        margin-top: 18px;
        text-align: left;
    }

    .post-grid, .stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .razorpay-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title-row {
        flex-direction: column;
    }

    .razorpay-payment-row,
    .razorpay-data-row,
    .razorpay-data-row.payments-layout,
    .razorpay-data-row.compact-layout,
    .razorpay-data-row.failures-layout {
        grid-template-columns: 1fr;
    }

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

    .order-row {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .order-row > span:first-child {
        grid-column: 1;
    }

    .order-row > span:not(:first-child) {
        grid-column: 1 / -1;
    }

    .order-row .view-order-items {
        grid-column: 2;
        grid-row: 1;
    }

    .order-item-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .availability-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .bar-row {
        grid-template-columns: 90px 1fr 34px;
        gap: 9px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .delivery-layout,
    .delivery-media-grid,
    .delivery-slot-card,
    .shop-map-body {
        grid-template-columns: 1fr;
    }

    .product-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stock-form {
        grid-template-columns: 1fr;
    }

    .filter-fields,
    .filter-fields label,
    .filter-fields .filter-search,
    .product-filters label:not(.filter-search) {
        width: 100%;
        min-width: 0;
    }

    .filter-fields .button {
        width: 100%;
    }

    .login-panel {
        padding: 37px 26px;
    }

    .topbar, .admin-content {
        padding-left: 19px;
        padding-right: 19px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
    }

    .cart-summary span {
        flex: 1;
    }

    .cart-modal {
        padding: 12px;
    }

    .address-modal,
    .wishlist-modal,
    .order-modal {
        padding: 12px;
    }

    .address-modal-header,
    .address-card-list,
    .address-modal-footer,
    .wishlist-modal-header,
    .wishlist-card-list,
    .wishlist-modal-footer,
    .order-modal-header,
    .order-modal-footer,
    .order-detail-grid,
    .order-item-details {
        padding-right: 18px;
        padding-left: 18px;
    }

    .wishlist-card {
        grid-template-columns: 1fr;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .cart-modal-header,
    .cart-modal-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cart-item-details {
        padding-right: 18px;
        padding-left: 18px;
    }

    .stock-modal {
        padding: 12px;
    }

    .stock-modal-header,
    .stock-modal-form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .stock-modal-form {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }

    .table-row, .manage-table .table-row {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1000px) {
    .gromart-hero-grid,
    .delivery-panel,
    .app-cta {
        grid-template-columns: 1fr;
    }

    .gromart-hero-grid {
        gap: 46px;
    }

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

    .category-showcase {
        grid-template-columns: 1fr;
    }

    .app-cta {
        text-align: center;
    }

    .app-cta img,
    .app-cta .button {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .gromart-hero {
        padding: 62px 0;
    }

    .gromart-hero-copy h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .hero-actions,
    .gromart-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .phone-frame {
        min-height: 500px;
        border-radius: 34px;
    }

    .benefit-grid,
    .mini-products {
        grid-template-columns: 1fr;
    }

    .gromart-section,
    .gromart-band,
    .delivery-section {
        padding: 56px 0;
    }

    .delivery-panel,
    .app-cta {
        padding: 24px;
        border-radius: 26px;
    }
}
