:root {
    --green-900: #1f6b36;
    --green-800: #25753a;
    --green-700: #2f8742;
    --green-600: #3f9a4d;
    --green-500: #54ab54;
    --green-300: #dff0df;
    --green-200: #edf6eb;
    --green-100: #f5faf3;
    --yellow-soft: #fff4b3;
    --peach-soft: #ffdcb5;
    --blue-soft: #d7eef7;
    --pink-soft: #f6dff2;
    --text-900: #1e2b1f;
    --text-700: #4e5f4d;
    --text-500: #788a76;
    --line: rgba(30, 43, 31, 0.08);
    --danger: #d64f4f;
    --white: #ffffff;
    --shadow: 0 12px 26px rgba(34, 58, 28, 0.08);
    --shadow-soft: 0 8px 18px rgba(34, 58, 28, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #edf4ea;
    color: var(--text-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
}

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

button {
    border: 0;
    background: none;
    cursor: pointer;
}

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

.app-shell {
    width: min(100%, 460px);
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #edf4ea 0%, #edf4ea 100%);
}

.mobile-app {
    min-height: 100vh;
    padding-bottom: 112px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
    color: var(--white);
    padding: 18px 16px 14px;
    box-shadow: 0 8px 24px rgba(24, 66, 34, 0.14);
}

.topbar-section {
    padding: 12px 16px 10px;
}

.topbar-section .topbar-row {
    gap: 10px;
}

.topbar-section .topbar-logo {
    width: 58px;
    height: 34px;
}

.topbar-section .topbar-title h1 {
    font-size: 0.96rem;
    line-height: 1.1;
}

.topbar-section .topbar-title p {
    margin-top: 1px;
    font-size: 0.7rem;
}

.topbar-section .topbar-action {
    width: 32px;
    height: 32px;
}

.topbar-section .topbar-max-link {
    width: 36px;
}

.topbar-section .topbar-max-icon {
    width: 26px;
    height: 26px;
}

.topbar-section .topbar-max-link span {
    font-size: 0.52rem;
}

.topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 68px;
    height: 40px;
    background: transparent;
    overflow: visible;
    flex: 0 0 auto;
}

.topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-title {
    min-width: 0;
    flex: 1;
}

.topbar-max-link {
    width: 40px;
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
}

.topbar-max-icon {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    display: block;
    box-shadow: 0 8px 18px rgba(10, 28, 78, 0.18);
    overflow: hidden;
}

.topbar-max-icon svg,
.topbar-max-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.topbar-max-link span {
    font-size: 0.54rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(13, 48, 22, 0.26);
}

.topbar-cart {
    padding: 12px 16px 10px;
}

.topbar-cart .topbar-row {
    gap: 10px;
}

.topbar-cart .topbar-logo {
    width: 60px;
    height: 36px;
}

.topbar-cart .topbar-title h1 {
    font-size: 0.96rem;
    line-height: 1.1;
}

.topbar-cart .topbar-title p {
    margin-top: 1px;
    font-size: 0.7rem;
}

.topbar-title h1,
.page-head h2,
.page-title,
.modal-title,
.admin-content h2,
.admin-card h3 {
    margin: 0;
    font-weight: 800;
}

.topbar-title h1 {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.topbar-title p {
    margin: 2px 0 0;
    font-size: 0.76rem;
    opacity: 0.82;
}

.topbar-action,
.back-link,
.favorite-fab,
.mini-icon-btn,
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.topbar-action,
.mini-icon-btn,
.modal-close {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.page {
    padding: 14px 12px 0;
}

.page.stack {
    padding-bottom: 20px;
}

.stack {
    display: grid;
    gap: 12px;
}

.search-shell {
    display: grid;
    gap: 10px;
}

.search-field {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(40, 115, 52, 0.22);
    background: var(--white);
    border-radius: 12px;
    padding: 11px 12px;
    box-shadow: var(--shadow-soft);
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-900);
}

.search-muted {
    color: var(--text-500);
    font-size: 0.85rem;
}

.back-button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(40, 115, 52, 0.16);
    background: linear-gradient(180deg, #f7fbf3, #edf6e7);
    box-shadow: var(--shadow-soft);
    color: var(--green-700);
    font-weight: 800;
}

.search-clear-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(214, 79, 79, 0.12);
    color: var(--danger);
    font-weight: 800;
}

.search-clear-placeholder {
    width: 24px;
    height: 24px;
    display: block;
}

.section-label {
    color: var(--text-700);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-label-row,
.catalog-currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-currency-row {
    justify-content: flex-end;
}

.currency-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-700);
    font-weight: 800;
    font-size: 0.84rem;
    white-space: nowrap;
}

.currency-switcher select {
    height: 36px;
    min-width: 84px;
    border-radius: 12px;
    border: 1px solid rgba(44, 95, 50, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--green-900);
    font-weight: 800;
    padding: 0 32px 0 12px;
    box-shadow: 0 8px 18px rgba(53, 90, 56, 0.08);
}

.section-list {
    display: grid;
    gap: 10px;
}

.section-card {
    width: 100%;
    padding: 0;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: hidden;
    text-align: left;
}

.section-card-visual {
    min-height: 74px;
    height: 100%;
    display: grid;
    place-items: center;
}

.section-card-visual img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.visual-icon {
    object-fit: contain;
}

.visual-icon-adjuvants {
    transform: scale(1.18);
}

.section-card-body {
    padding: 12px 10px;
    min-width: 0;
}

.section-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.section-card-desc {
    margin: 4px 0 0;
    font-size: 0.83rem;
    color: var(--text-700);
}

.section-card-end {
    padding-right: 12px;
    display: grid;
    align-items: center;
    gap: 8px;
    justify-items: end;
}

.pill-count {
    min-width: 30px;
    height: 26px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    background: #eef7e8;
    color: var(--green-700);
    font-size: 0.83rem;
    font-weight: 800;
}

.section-arrow,
.cell-arrow {
    color: var(--text-500);
    font-size: 1rem;
}

.page-head {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 10px;
}

.page-head-section {
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.page-head-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    row-gap: 2px;
    min-width: 0;
}

.page-head-title-row h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.38rem;
    line-height: 1.08;
}

.page-head p {
    margin: 0;
    color: var(--white);
    font-size: 0.88rem;
}

.page-head-title-row p {
    flex: 0 0 auto;
    font-size: 0.82rem;
    line-height: 1.1;
    opacity: 0.9;
}

.page-head-cart h2 {
    font-size: 1.08rem;
    line-height: 1.08;
}

.page-head-cart {
    margin-top: 8px;
}

.page-head-cart .page-head-back-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.86rem;
}

.page-head-back-button {
    justify-self: start;
    margin-top: 6px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 800;
}

.page-head-section .page-head-back-button {
    margin-top: 0;
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.92rem;
}

.toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-filters-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.quick-filters-row::-webkit-scrollbar {
    display: none;
}

.catalog-section-layout {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.catalog-filters-sidebar {
    min-width: 0;
}

.catalog-filters-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
    position: sticky;
    top: 10px;
}

.catalog-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.catalog-filters-title {
    color: var(--green-800);
    font-weight: 900;
    font-size: 0.9rem;
}

.catalog-reset-link {
    padding: 0;
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 800;
}

.catalog-results-panel {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.catalog-toolbar-row {
    margin-bottom: 0;
    grid-template-columns: minmax(0, 1fr) 120px;
}

.catalog-results-meta {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    color: var(--text-700);
    font-weight: 700;
    font-size: 0.86rem;
}

.catalog-toolbar-compact {
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
}

.catalog-filters-panel.inline .drawer-section:first-of-type {
    border-top: 1px solid rgba(30, 43, 31, 0.06);
}

.quick-filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(40, 115, 52, 0.14);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    color: var(--green-700);
    font-weight: 800;
}

.quick-filter-btn.accent {
    background: linear-gradient(180deg, #eef8e4, #e5f2d8);
}

.section-structure-block {
    display: grid;
    gap: 10px;
}

.section-structure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.section-structure-item {
    min-width: 0;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(40, 115, 52, 0.12);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.section-structure-item.active {
    background: linear-gradient(180deg, #eef8e4, #e2f0d4);
    border-color: rgba(40, 115, 52, 0.34);
}

.section-structure-name {
    color: var(--green-800);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-structure-count {
    flex: 0 0 auto;
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(40, 115, 52, 0.08);
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
}

.section-tab-btn.active {
    background: linear-gradient(180deg, var(--green-800), var(--green-700));
    color: var(--white);
    border-color: rgba(40, 115, 52, 0.72);
    box-shadow: 0 12px 18px rgba(27, 61, 18, 0.18);
}

.toolbar-button,
.toolbar-select {
    border-radius: 12px;
    border: 1px solid rgba(40, 115, 52, 0.14);
    background: var(--white);
    min-height: 42px;
    box-shadow: var(--shadow-soft);
}

.toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--green-700);
    font-weight: 800;
}

.toolbar-icon-button {
    width: 42px;
    padding: 0;
    flex: 0 0 auto;
}

.toolbar-select {
    padding: 0 12px;
    color: var(--text-700);
}

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

.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:active {
    transform: translateY(1px) scale(0.995);
}

.product-card-visual {
    position: relative;
    height: 142px;
    min-height: 0;
    padding: 14px;
    display: grid;
    place-items: center;
}

.product-card-visual img,
.gallery-stage img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(16, 43, 18, 0.08));
}

.product-card-visual .visual-icon-adjuvants,
.gallery-stage .visual-icon-adjuvants {
    transform: scale(1.14);
}

.favorite-fab {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(27, 61, 18, 0.10);
    color: var(--text-500);
}

.favorite-fab.active {
    color: #e25d6f;
}

.product-share-fab {
    position: absolute;
    top: 10px;
    right: 58px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(27, 61, 18, 0.10);
    color: var(--green-900);
    font-size: 0.98rem;
}

.product-card-body {
    padding: 10px 12px 12px;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.product-card-body-many-reproductions {
    gap: 5px;
}

.product-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.product-card-heading-seed {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.product-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.12;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.product-card-body-many-reproductions .product-card-title {
    font-size: 0.84rem;
    line-height: 1.14;
}

.product-card-culture {
    margin: 1px 0 0;
    color: var(--text-500);
    font-size: 0.76rem;
    line-height: 1.08;
}

.product-card-body-many-reproductions .product-card-culture {
    font-size: 0.68rem;
}

.product-card-badge-row {
    display: flex;
    justify-content: flex-start;
    margin-top: -1px;
}

.product-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    max-width: 132px;
}

.product-card-badge-group {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    justify-content: flex-start;
    gap: 4px;
    margin-top: 0;
    max-width: 100%;
}

.product-card-badge-package {
    background: rgba(233, 243, 230, 0.96);
    color: var(--green-800);
    border: 1px solid rgba(40, 115, 52, 0.14);
    margin-top: 2px;
}

.product-card-badge-seed {
    background: rgba(193, 48, 48, 0.12);
    color: #b12828;
    border: 1px solid rgba(177, 40, 40, 0.18);
    margin-top: 2px;
}

.product-card-badge-reproduction {
    width: 44px;
    min-width: 44px;
    height: 30px;
    min-height: 30px;
    padding: 0 2px;
    border-radius: 9px;
    background: #f5faf2;
    border: 1px solid #d8e3d6;
    color: #3f6549;
    font-size: 0.58rem;
    line-height: 1.02;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.product-card-badge-reproduction.active {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--green-800);
    border-width: 2px;
    animation: none;
}

.product-card-badge-reproduction:active {
    transform: scale(0.96);
}

.seed-reproduction-chip {
    border: 1px solid rgba(40, 115, 52, 0.18);
    box-shadow: 0 8px 16px rgba(40, 115, 52, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transform: translateY(0);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.seed-reproduction-chip.active {
    animation: reproductionPulse 2.8s ease-in-out infinite;
}

.seed-reproduction-chip:active {
    transform: translateY(1px);
}

@keyframes reproductionPulse {
    0%,
    100% {
        box-shadow: 0 8px 16px rgba(40, 115, 52, 0.16), 0 0 0 0 rgba(200, 72, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }
    50% {
        box-shadow: 0 10px 20px rgba(40, 115, 52, 0.18), 0 0 0 5px rgba(200, 72, 72, 0), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card-badge-reproduction.active,
    .seed-reproduction-chip.active {
        animation: none;
    }
}

.product-card-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-700);
}

.product-card-body-many-reproductions .product-card-subtitle {
    font-size: 0.72rem;
}

.product-card-detail-list {
    display: grid;
    gap: 1px;
    min-height: 2.35em;
}

.product-card-detail {
    margin: 0;
    color: var(--text-500);
    font-size: 0.8rem;
    line-height: 1.16;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-body-many-reproductions .product-card-detail {
    font-size: 0.72rem;
}

.product-card-preview {
    margin: 0;
    min-height: 3.9em;
    color: var(--text-500);
    font-size: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.old-price {
    color: #afb9ae;
    text-decoration: line-through;
    font-size: 0.76rem;
    font-weight: 700;
}

.price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
}

.price-block {
    display: grid;
    gap: 2px;
    min-width: 0;
    align-content: end;
}

.price-block strong {
    color: var(--green-900);
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1.02;
}

.price-reproduction-note {
    max-width: none;
    color: var(--text-500);
    font-size: 0.4rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.product-card .price-block strong {
    font-size: clamp(0.78rem, 4vw, 0.92rem);
}

.product-card .old-price {
    white-space: nowrap;
}

.price-current-discount {
    color: #d44c4c !important;
}

.price-block.request strong {
    color: #d18f2c;
}

.card-cart-btn,
.qty-stepper,
.primary-btn,
.secondary-btn,
.ghost-btn,
.status-chip,
.filter-chip,
.admin-menu-btn,
.table-action {
    border-radius: 12px;
    font-weight: 800;
}

.card-cart-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--green-700);
    color: var(--white);
    font-size: 1.2rem;
}

.qty-stepper {
    display: inline-grid;
    grid-template-columns: 32px auto 32px;
    align-items: center;
    min-height: 34px;
    background: var(--green-700);
    color: var(--white);
    overflow: hidden;
}

.qty-stepper-card {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 34px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.qty-stepper button {
    color: inherit;
    font-weight: 900;
    font-size: 1rem;
}

.qty-stepper-card button {
    font-size: 1rem;
    min-width: 38px;
}

.qty-stepper-value {
    min-width: 0;
    padding: 2px 4px;
    display: grid;
    justify-items: center;
    gap: 1px;
}

.qty-stepper-value input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
    text-align: center;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    padding: 0;
}

.qty-stepper-value input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.qty-stepper-value small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.52rem;
    line-height: 1;
    white-space: nowrap;
}

.qty-stepper-card .qty-stepper-value small {
    font-size: 0.48rem;
}

.card-qty-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    justify-self: stretch;
    gap: 6px;
    min-width: 0;
}

.card-qty-field {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--green-700);
    color: var(--white);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1px;
}

.card-qty-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    padding: 0;
}

.card-qty-field input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.card-qty-field span {
    font-size: 0.48rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
}

.admin-empty-box {
    margin-top: 4px;
    min-height: auto;
    padding: 18px 16px;
}

.empty-box,
.info-card,
.cart-item,
.summary-card,
.profile-card,
.profile-section,
.admin-card,
.admin-table,
.checkout-panel {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.empty-box {
    padding: 24px 18px;
    text-align: center;
    color: var(--text-700);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    min-height: 48px;
    padding: 0 16px;
}

.primary-btn {
    background: var(--green-800);
    color: var(--white);
}

.secondary-btn {
    background: var(--green-200);
    color: var(--green-900);
}

.ghost-btn {
    background: var(--white);
    color: var(--green-900);
    border: 1px solid rgba(40, 115, 52, 0.2);
}

.cart-list,
.favorites-grid,
.orders-stack,
.profile-links,
.admin-stack,
.history-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    padding: 12px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.cart-thumb {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.cart-thumb img {
    width: 38px;
    height: 38px;
}

.cart-main {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.cart-main h3 {
    margin: 0;
    font-size: 0.95rem;
}

.cart-meta {
    color: var(--text-700);
    font-size: 0.8rem;
}

.cart-end {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(214, 79, 79, 0.12);
    color: var(--danger);
}

.summary-card {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.summary-grid {
    display: grid;
    gap: 8px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.summary-row strong {
    font-size: 1.2rem;
}

.checkout-panel {
    padding: 14px;
    display: grid;
    gap: 14px;
}

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

.field {
    display: grid;
    gap: 6px;
}

.field label,
.field span,
.admin-field label,
.drawer-section h4 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select,
.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    border: 1px solid rgba(27, 36, 28, 0.28);
    background: #fbfdf9;
    border-radius: 12px;
    padding: 12px 14px;
    outline: 0;
    color: var(--text-900);
}

.field textarea,
.admin-field textarea {
    min-height: 96px;
    resize: vertical;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
    border-color: rgba(214, 79, 79, 0.5);
    background: rgba(214, 79, 79, 0.05);
}

.upload-box {
    border: 1px dashed rgba(40, 115, 52, 0.18);
    background: #f8fcf6;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    color: var(--text-700);
}

.upload-box input {
    display: none;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-500);
}

.attachment-list {
    display: grid;
    gap: 8px;
}

.attachment-item {
    padding: 10px 12px;
    background: #f5faf3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.success-screen {
    padding: 26px 18px;
    text-align: center;
}

.status-tabs,
.profile-status-tabs,
.filter-chips-row,
.admin-menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-chip,
.filter-chip,
.admin-menu-btn,
.table-action {
    padding: 10px 12px;
    background: #f3f7f0;
    color: var(--text-700);
}

.status-chip.active,
.filter-chip.active,
.admin-menu-btn.active {
    background: var(--green-800);
    color: var(--white);
}

.profile-card {
    background: linear-gradient(180deg, var(--green-900), var(--green-800));
    color: var(--white);
    overflow: hidden;
}

.profile-hero {
    padding: 22px 18px;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.profile-hero h2 {
    margin: 0;
    font-size: 1.3rem;
}

.profile-hero p {
    margin: 0;
    opacity: 0.86;
}

.profile-section {
    padding: 14px;
}

.link-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fafdf8;
    color: var(--text-900);
    text-decoration: none;
}

.link-tile-channel {
    border: 1px solid rgba(31, 107, 54, 0.12);
    background: linear-gradient(135deg, #f8fff5, #eef8ec);
}

.link-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    background: var(--green-800);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.link-tile-text strong,
.admin-table th,
.admin-table-title {
    font-size: 0.95rem;
}

.link-tile-text p {
    margin: 4px 0 0;
    color: var(--text-700);
    font-size: 0.82rem;
}

.modal,
.drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.modal-backdrop,
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 21, 11, 0.42);
    backdrop-filter: blur(4px);
}

.modal-sheet,
.drawer-sheet {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: var(--white);
}

.modal-sheet {
    bottom: 0;
    width: min(100%, 460px);
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    overflow: auto;
}

.app-notice {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    min-width: min(320px, calc(100% - 24px));
    max-width: min(520px, calc(100% - 24px));
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(11, 21, 11, 0.16);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.app-notice-success {
    background: #ecf8ee;
    color: #1f6b36;
    border: 1px solid rgba(31, 107, 54, 0.16);
}

.app-notice-error {
    background: #fff0f0;
    color: #b14545;
    border: 1px solid rgba(177, 69, 69, 0.16);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 0;
}

.modal-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-link-copy-btn {
    font-size: 1rem;
    line-height: 1;
}

.modal-head-product .mini-icon-btn,
.modal-head-product .modal-close {
    background: rgba(40, 115, 52, 0.10);
    color: var(--green-900);
}

.modal-title-wrap {
    min-width: 0;
}

.modal-title {
    font-size: 1.2rem;
}

.modal-subtitle {
    margin: 4px 0 0;
    color: var(--text-700);
    font-size: 0.84rem;
}

.product-gallery {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.gallery-stage {
    position: relative;
    min-height: 208px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(64, 86, 61, 0.18);
    color: var(--white);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.gallery-dot.active {
    background: var(--white);
}

.product-detail-body {
    padding: 0 14px 18px;
    display: grid;
    gap: 14px;
}

.product-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-section-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf7e7;
    color: var(--green-800);
    font-size: 0.82rem;
    font-weight: 800;
}

.eyebrow {
    color: var(--green-700);
    font-size: 0.8rem;
    font-weight: 800;
}

.product-detail-body h3 {
    margin: 4px 0 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.product-brand {
    color: var(--text-700);
    font-size: 0.92rem;
}

.packaging-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.packaging-chip {
    padding: 10px 12px;
    border-radius: 999px;
    background: #f2f8ef;
    border: 1px solid rgba(40, 115, 52, 0.12);
    color: var(--green-900);
    font-weight: 700;
}

.detail-paragraph {
    margin: 0;
    color: var(--text-700);
    line-height: 1.55;
}

.detail-price {
    display: grid;
    gap: 4px;
}

.detail-price strong {
    font-size: 1.7rem;
    color: var(--green-900);
}

.product-spec-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 6px;
}

.product-spec-item {
    display: grid;
    gap: 2px;
}

.product-spec-item span {
    color: var(--text-500);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-spec-item strong {
    color: var(--green-950);
    font-size: 0.98rem;
}

.product-copy-block {
    margin: 0;
    line-height: 1.45;
    font-weight: 700;
}

.admin-product-comment-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(40, 115, 52, 0.16);
    border-radius: 14px;
    background: #f8fcf6;
}

.admin-product-comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--green-900);
    font-weight: 800;
}

.admin-product-comment-head small {
    color: var(--text-500);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-product-comment-box textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border: 1px solid rgba(27, 36, 28, 0.2);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-900);
    padding: 12px;
    outline: 0;
}

.admin-product-comment-actions {
    display: flex;
    justify-content: flex-end;
}

.detail-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.detail-footer-sticky {
    position: sticky;
    bottom: 0;
    margin: 4px -14px -18px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250, 252, 247, 0), rgba(250, 252, 247, 0.9) 18%, #f7fbf4 42%);
}

.drawer-sheet {
    bottom: 0;
    width: min(100%, 460px);
    height: min(86vh, calc(100vh - 24px));
    max-height: min(86vh, calc(100vh - 24px));
    border-radius: 24px 24px 0 0;
    padding: 14px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--white);
    color: var(--text-900);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@supports (height: 100svh) {
    .drawer-sheet {
        height: min(86svh, calc(100svh - 24px));
        max-height: min(86svh, calc(100svh - 24px));
    }
}

@supports (height: 100dvh) {
    .drawer-sheet {
        height: min(86dvh, calc(100dvh - 24px));
        max-height: min(86dvh, calc(100dvh - 24px));
    }
}

.drawer-scroll {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 18px;
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}

.drawer-top {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    z-index: 4;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    background: var(--white);
    color: var(--text-900);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.drawer-top .modal-title {
    color: var(--text-900);
    font-size: 1rem;
    line-height: 1.1;
    white-space: nowrap;
}

.drawer-back-btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f2f8ef;
    color: var(--green-800);
    font-weight: 800;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

.drawer-reset-link {
    padding: 0;
    color: var(--green-700);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

.drawer-section {
    display: grid;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(30, 43, 31, 0.06);
}

.drawer-section:first-of-type {
    border-top: 0;
}

.drawer-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 0;
    color: var(--text-700);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.drawer-section-arrow {
    color: var(--green-700);
    font-size: 0.95rem;
}

.filter-search-box input,
.price-range input {
    width: 100%;
    border: 1px solid rgba(40, 115, 52, 0.12);
    background: #fbfdf9;
    border-radius: 12px;
    padding: 12px 14px;
    outline: 0;
    color: var(--text-900);
}

.filter-grid {
    display: grid;
    gap: 10px;
}

.checkbox-list,
.tree-list {
    display: grid;
    gap: 8px;
}

.checkbox-row,
.tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-700);
    font-size: 0.84rem;
}

.tree-children {
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.tree-node {
    display: grid;
    gap: 8px;
}

.tree-indent {
    width: 14px;
    flex: 0 0 14px;
    color: var(--green-700);
    text-align: center;
}

.checkbox-list-counts .checkbox-row,
.tree-row {
    justify-content: space-between;
}

.checkbox-row span,
.tree-row span:last-child {
    flex: 1;
}

.checkbox-list-counts small {
    color: var(--text-500);
    font-size: 0.74rem;
    font-weight: 700;
}

.filter-empty {
    color: var(--text-500);
    font-size: 0.84rem;
}

.price-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.price-range input {
    min-width: 0;
    width: 100%;
}

.drawer-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: calc(2px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white) 24%, var(--white));
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.drawer-actions .ghost-btn,
.drawer-actions .primary-btn {
    opacity: 1;
    visibility: visible;
}

.admin-layout {
    display: grid;
    gap: 12px;
}

.admin-menu-wrap {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.admin-menu {
    flex-direction: column;
    flex-wrap: nowrap;
}

.admin-content {
    display: grid;
    gap: 12px;
}

.admin-card {
    padding: 14px;
}

.admin-card h3 {
    font-size: 1.02rem;
}

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

.stat-tile {
    background: #f7fbf5;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.stat-tile span {
    color: var(--text-700);
    font-size: 0.78rem;
}

.stat-tile strong {
    font-size: 1.4rem;
}

.admin-toolbar {
    display: grid;
    gap: 10px;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(30, 43, 31, 0.06);
    vertical-align: top;
}

.admin-table td {
    font-size: 0.88rem;
}

.admin-tree {
    display: grid;
    gap: 10px;
}

.admin-tree-group {
    background: #f8fbf6;
    border-radius: 14px;
    padding: 10px;
}

.admin-tree-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-weight: 800;
}

.admin-tree-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.admin-tree-item {
    color: var(--text-700);
    font-size: 0.88rem;
}

.admin-form-grid {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-row-2-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-row-compact {
    align-items: start;
}

.admin-field {
    display: grid;
    gap: 6px;
    position: relative;
}

.admin-field-span-2 {
    grid-column: span 2;
}

.admin-field-span-full {
    grid-column: 1 / -1;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-category-form {
    display: grid;
    gap: 18px;
}

.admin-category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 10px;
}

.admin-category-icon-option {
    position: relative;
    cursor: pointer;
}

.admin-category-icon-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-category-icon-option span {
    display: grid;
    place-items: center;
    height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(31, 107, 54, 0.12);
    background: #f8fbf6;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-category-icon-option.active span,
.admin-category-icon-option input:checked + span {
    border-color: rgba(31, 107, 54, 0.42);
    background: #edf8ec;
    box-shadow: inset 0 0 0 2px rgba(31, 107, 54, 0.18);
}

.admin-category-icon-option img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.admin-category-icon-auto {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(31, 107, 54, 0.12);
    border-radius: 14px;
    background: #f8fbf6;
    color: var(--text-700);
}

.admin-category-icon-auto span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(233, 243, 230, 0.9);
}

.admin-category-icon-auto img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.admin-category-icon-auto strong,
.admin-category-icon-auto p {
    margin: 0;
}

.admin-category-icon-auto p {
    margin-top: 2px;
    color: var(--text-500);
    font-size: 0.86rem;
}

.admin-category-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-category-list-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fbf6;
    border: 1px solid rgba(31, 107, 54, 0.10);
}

.admin-category-list-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #edf8ec;
}

.admin-category-list-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.admin-inline-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 25;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(31, 107, 54, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(11, 21, 11, 0.12);
    gap: 4px;
}

.admin-inline-suggestions.visible {
    display: grid;
}

.admin-suggestion-btn {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--green-900);
    font-weight: 600;
}

.admin-suggestion-btn:hover {
    background: #f2f8f0;
}

@media (max-width: 819px) {
    .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-menu-wrap {
        overflow: hidden;
    }

    .admin-menu-btn {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .admin-table-wrap {
        overflow: visible;
        width: 100%;
        min-width: 0;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table {
        min-width: 0;
        table-layout: fixed;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-table tr {
        background: #f7fbf5;
        border: 1px solid rgba(30, 43, 31, 0.08);
        border-radius: 16px;
        padding: 10px;
        min-width: 0;
    }

    .admin-table td {
        border-bottom: 0;
        padding: 6px 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--text-500);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .admin-table .admin-product-cell {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .admin-table .admin-product-cell strong,
    .admin-table .search-muted {
        overflow-wrap: anywhere;
    }

    .admin-table .admin-row-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .admin-table .admin-table-btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        white-space: normal;
    }

    .admin-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-form-row-3,
    .admin-form-row-4,
    .admin-form-row-2-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-field-span-2 {
        grid-column: span 1;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .price-range {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-range span {
        display: none;
    }
}

.admin-split {
    display: grid;
    gap: 12px;
}

.admin-app {
    min-height: 100vh;
    background: #edf4ea;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.admin-page {
    min-height: 100vh;
    padding: 18px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: min(100%, 1440px);
    margin: 0 auto;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    min-height: calc(100vh - 36px);
    border-radius: 24px;
    background: linear-gradient(180deg, #1d6a33 0%, #14572a 100%);
    color: var(--white);
    padding: 18px 14px;
    box-shadow: 0 18px 36px rgba(18, 60, 28, 0.18);
    display: grid;
    gap: 18px;
    align-content: start;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.admin-brand-text {
    display: grid;
    gap: 2px;
}

.admin-brand-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.admin-brand-text span,
.admin-sidebar-label,
.admin-sidebar-footer {
    color: rgba(255, 255, 255, 0.68);
}

.admin-sidebar-group {
    display: grid;
    gap: 8px;
}

.admin-sidebar-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 6px;
}

.admin-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border-radius: 16px;
    padding: 13px 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-menu-btn.active {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(2px);
}

.admin-menu-icon {
    width: 22px;
    flex: 0 0 22px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    opacity: 0.92;
}

.admin-menu-text {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.admin-exit-btn {
    width: 100%;
    margin-top: 4px;
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-align: left;
    font-weight: 700;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 0 6px;
    font-size: 0.75rem;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.admin-header {
    background: var(--white);
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow);
}

.admin-header-copy {
    display: grid;
    gap: 4px;
}

.admin-header-copy p {
    margin: 0;
    color: var(--text-500);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-700);
    font-weight: 700;
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef7e7, #d8ebd3);
    color: var(--green-900);
    font-weight: 800;
}

.admin-content {
    display: grid;
    gap: 18px;
}

.admin-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.admin-card-spacious {
    padding: 22px 24px;
}

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

.admin-section-head h3 {
    margin: 0;
}

.admin-section-head p {
    margin: 4px 0 0;
    color: var(--text-500);
    font-size: 0.9rem;
}

.admin-section-head.compact {
    margin-bottom: 0;
}

.referral-link-text {
    overflow-wrap: anywhere;
}

.admin-primary-btn,
.admin-outline-btn,
.admin-table-btn {
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-primary-btn {
    background: var(--green-800);
    color: var(--white);
}

.admin-outline-btn {
    border: 1px solid rgba(31, 107, 54, 0.18);
    background: var(--white);
    color: var(--green-900);
}

.admin-table-btn {
    background: rgba(31, 107, 54, 0.08);
    color: var(--green-900);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-table-btn.danger,
.ghost-btn.danger {
    color: #c84f4f;
    background: rgba(200, 79, 79, 0.08);
}

.admin-primary-btn[disabled],
.admin-outline-btn[disabled],
.admin-table-btn[disabled],
button[disabled] {
    cursor: not-allowed;
    opacity: 0.52;
}

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

.admin-kpi-card {
    background: var(--white);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 7px;
}

.admin-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f5f8ef;
    color: var(--green-900);
    font-weight: 800;
}

.admin-kpi-card strong {
    font-size: 2rem;
    line-height: 1;
}

.admin-kpi-card span {
    color: var(--text-700);
    font-weight: 700;
}

.admin-kpi-card small {
    color: var(--text-500);
}

.admin-kpi-card.tone-warning .admin-kpi-icon,
.admin-mini-stat.tone-warning {
    background: #fff6d6;
    color: #c48d07;
}

.admin-kpi-card.tone-accent .admin-kpi-icon {
    background: #eef7ff;
    color: #2a77b7;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-status-success {
    background: #e7f6e9;
    color: #2c8141;
}

.admin-status-warning {
    background: #fff6d8;
    color: #b68600;
}

.admin-status-info {
    background: #e6f1ff;
    color: #2f74c5;
}

.admin-status-danger {
    background: #fde7e7;
    color: #c14f4f;
}

.admin-status-muted {
    background: #eff3ef;
    color: var(--text-500);
}

.admin-catalog-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-tree {
    display: grid;
    gap: 12px;
}

.admin-tree-group {
    border: 1px solid rgba(31, 107, 54, 0.08);
    background: #f8fbf7;
    border-radius: 18px;
    padding: 10px;
}

.admin-tree-group.active {
    border-color: rgba(31, 107, 54, 0.24);
    box-shadow: inset 0 0 0 1px rgba(31, 107, 54, 0.08);
}

.admin-tree-title {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.admin-tree-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.checkbox-row-admin {
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 0;
}

.admin-tree-icon,
.admin-product-thumb,
.admin-section-summary-visual {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
}

.admin-tree-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.admin-tree-icon img,
.admin-product-thumb img,
.admin-section-summary-visual img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.admin-tree-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-left: 8px;
}

.admin-tree-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    padding: 10px 12px;
    background: var(--white);
    color: var(--text-700);
    text-align: left;
}

.admin-tree-item.active {
    background: rgba(31, 107, 54, 0.08);
    color: var(--green-900);
    font-weight: 700;
}

.admin-section-summary {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    height: 132px;
    min-height: 132px;
    overflow: hidden;
}

.admin-section-summary-visual {
    width: 76px;
    height: 76px;
}

.admin-section-summary-visual img {
    width: 34px;
    height: 34px;
}

.admin-section-summary-copy {
    min-height: 76px;
    display: grid;
    align-content: center;
}

.admin-section-summary-copy h3 {
    margin: 4px 0 6px;
}

.admin-section-summary-copy .search-muted,
.admin-section-summary-copy p {
    margin: 0;
    color: var(--text-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-section-summary-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: center;
}

.admin-section-summary-actions .admin-outline-btn {
    white-space: nowrap;
}

.admin-link-builder-card {
    max-width: 1120px;
}

.admin-link-builder-grid {
    padding: 0;
}

.admin-link-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-link-filter-card {
    display: grid;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(31, 107, 54, 0.10);
    border-radius: 18px;
    background: #f8fbf7;
}

.admin-link-checkbox-list {
    display: grid;
    gap: 6px;
    align-items: stretch;
    grid-auto-rows: minmax(36px, auto);
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.admin-link-filter-card[data-filter-key="subcategories"] .admin-link-checkbox-list {
    max-height: none;
    overflow: visible;
}

.admin-link-checkbox-row {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 36px;
    height: auto;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    line-height: 1.25;
    overflow: visible;
}

.admin-link-checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.admin-link-checkbox-row span {
    display: block;
    min-width: 0;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-link-products-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(31, 107, 54, 0.10);
    border-radius: 18px;
    background: #f8fbf7;
}

.admin-link-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-link-products-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-link-products-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-link-product-list {
    display: grid;
    gap: 6px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.admin-link-product-row {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 48px;
    height: auto;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}

.admin-link-product-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.admin-link-product-row span,
.admin-link-product-row strong,
.admin-link-product-row small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-link-product-row strong {
    color: var(--green-900);
    font-size: 13px;
    line-height: 1.25;
}

.admin-link-product-row small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.admin-link-product-row small + small {
    margin-top: 2px;
}

.admin-link-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(31, 107, 54, 0.10);
    border-radius: 18px;
    background: #f8fbf7;
}

.admin-link-url {
    margin-top: 6px;
    color: var(--green-900);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-visibility-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eef7eb;
    color: var(--green-900);
    font-weight: 700;
}

.admin-subcategory-list {
    display: grid;
    gap: 10px;
}

.admin-subcategory-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(30, 43, 31, 0.06);
}

.admin-subcategory-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-subcategory-row p {
    margin: 4px 0 0;
    color: var(--text-500);
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-product-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-list-stack.compact {
    display: grid;
    gap: 4px;
}

.admin-list-stack.compact.end {
    justify-items: end;
}

.admin-customer-meta {
    display: grid;
    gap: 4px;
}

.admin-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-customer-files,
.admin-customer-cart-list,
.admin-customer-order-list {
    display: grid;
    gap: 10px;
}

.admin-customer-order-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(30, 43, 31, 0.06);
}

.admin-customer-order-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-toolbar-orders {
    grid-template-columns: minmax(220px, 1.4fr) 180px minmax(240px, 1fr) auto;
    align-items: center;
    margin-bottom: 16px;
}

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

.admin-broadcast-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.admin-broadcast-form {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.admin-upload-icon {
    font-size: 1.7rem;
    color: var(--green-900);
}

.admin-preview-card {
    border-radius: 18px;
    background: #f5faf3;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.admin-preview-title,
.admin-block-title,
.admin-form-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-700);
}

.admin-preview-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
}

.admin-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-mini-stat {
    border-radius: 18px;
    background: #f6faf4;
    padding: 16px;
    display: grid;
    gap: 4px;
    color: var(--green-900);
}

.admin-mini-stat strong {
    font-size: 1.65rem;
}

.admin-mini-stat span {
    color: var(--text-500);
}

.admin-history-list {
    margin-top: 12px;
}

.admin-history-list .history-card {
    border: 1px solid rgba(30, 43, 31, 0.06);
}

.admin-footnote {
    margin-top: 14px;
    color: var(--text-500);
    font-size: 0.85rem;
}

.admin-order-modal-body {
    display: grid;
    gap: 16px;
    padding: 18px 22px 24px;
}

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

.admin-attachments-card .link-tile {
    margin-top: 10px;
}

.admin-actions-panel {
    justify-content: flex-start;
    border-top: 1px solid rgba(30, 43, 31, 0.06);
    padding-top: 14px;
}

.admin-product-form {
    gap: 10px;
    padding: 14px 18px 18px;
}

.admin-form-section {
    display: grid;
    gap: 10px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(30, 43, 31, 0.06);
    border-radius: 20px;
    background: #fbfdf9;
}

.admin-form-section:last-of-type {
    padding-bottom: 0;
}

.admin-form-section-product {
    background: linear-gradient(135deg, #f3fbf2, #fcfef9);
    border-color: rgba(89, 154, 95, 0.16);
}

.admin-form-section-order {
    background: linear-gradient(135deg, #fff8e8, #fffdf6);
    border-color: rgba(220, 169, 62, 0.18);
}

.admin-form-section-meta {
    background: linear-gradient(135deg, #eef8ff, #fbfdff);
    border-color: rgba(90, 151, 208, 0.16);
}

.admin-price-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 0.8fr;
    gap: 10px;
    align-items: center;
}

.admin-form-row-prices {
    align-items: end;
}

.admin-seed-reproduction-price-grid {
    display: grid;
    gap: 12px;
}

.admin-seed-reproduction-price-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(70, 93, 71, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.admin-seed-reproduction-price-title {
    color: var(--text-700);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-seed-reproduction-price-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-price-grid-head {
    color: var(--text-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.modal-sheet-wide {
    width: min(980px, calc(100% - 24px));
}

.modal-sheet-compact {
    width: min(560px, calc(100% - 24px));
}

.modal-sheet-admin-product {
    width: min(1080px, calc(100% - 24px));
    max-height: min(92vh, 980px);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-sheet-admin-product .modal-head {
    padding: 12px 18px 0;
}

.modal-sheet-admin-product .modal-title {
    font-size: 1.08rem;
}

.modal-sheet-admin-product .modal-subtitle {
    font-size: 0.8rem;
}

.modal-sheet-admin-product textarea {
    min-height: 68px;
}

.admin-field-price-result {
    align-self: end;
}

.admin-price-result {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 0 14px;
    background: #fffaf0;
    border: 1px solid rgba(220, 169, 62, 0.22);
    color: var(--green-900);
    font-weight: 800;
    white-space: nowrap;
}

.history-card {
    background: #f7fbf5;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 460px);
    background: var(--white);
    border-top: 1px solid rgba(30, 43, 31, 0.08);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    z-index: 45;
}

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

.nav-btn {
    position: relative;
    min-height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    gap: 5px;
    color: var(--text-700);
}

.nav-btn.active {
    background: rgba(36, 116, 56, 0.08);
    color: var(--green-900);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-badge {
    position: absolute;
    top: 5px;
    right: 14px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #efb122;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
}

.pending-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2b135;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

@media (min-width: 820px) {
    .app-shell {
        width: min(100%, 1180px);
    }

    .mobile-app {
        padding-bottom: 128px;
    }

    .topbar {
        border-radius: 0 0 24px 24px;
    }

    .page {
        padding: 18px;
    }

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

    .product-card-visual {
        height: 170px;
    }

    .modal-sheet {
        width: min(760px, calc(100% - 24px));
    }

    .product-gallery {
        padding: 18px 18px 10px;
    }

    .gallery-stage {
        min-height: 280px;
    }

    .gallery-stage img {
        width: 128px;
        height: 128px;
    }

    .product-detail-body {
        padding: 0 18px 22px;
    }

    .detail-footer-sticky {
        margin: 6px -18px -22px;
        padding: 14px 18px;
    }

    .admin-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        align-items: start;
    }

    .admin-menu {
        flex-direction: column;
    }

    .admin-split {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .modal-sheet,
    .drawer-sheet {
        width: min(680px, calc(100% - 24px));
        border-radius: 24px;
        bottom: 12px;
    }

    .modal-sheet-wide {
        width: min(980px, calc(100% - 24px));
    }

    .modal-sheet-compact {
        width: min(560px, calc(100% - 24px));
    }

    .modal-sheet-admin-product {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        max-height: min(92vh, 980px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .bottom-nav {
        position: fixed;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        width: min(calc(100% - 36px), 1180px);
        border-top: 0;
        background: var(--white);
        border-radius: 28px;
        box-shadow: 0 18px 38px rgba(34, 58, 28, 0.12);
        padding: 8px;
    }

    .bottom-nav-grid {
        background: transparent;
        border-radius: 22px;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .nav-btn {
        min-height: 66px;
    }
}

@media (max-width: 1180px) {
    .admin-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-kpi-grid,
    .admin-order-grid,
    .admin-broadcast-layout,
    .admin-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 819px) {
    .section-label-row {
        align-items: center;
        flex-direction: row;
    }

    .catalog-currency-row {
        justify-content: flex-end;
    }

    .catalog-toolbar-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-seed-reproduction-price-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-page {
        padding: 12px;
    }

    .admin-header,
    .admin-card-spacious {
        padding: 16px;
        border-radius: 20px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .admin-section-head,
    .admin-section-summary {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
    }

    .admin-section-summary {
        height: auto;
        min-height: 0;
        overflow: visible;
        align-items: start;
        gap: 12px;
    }

    .admin-section-summary-copy {
        min-height: 0;
        align-content: start;
    }

    .admin-section-summary-copy .search-muted,
    .admin-section-summary-copy p {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .admin-section-summary-actions {
        justify-items: start;
    }

    .admin-broadcast-layout,
    .admin-catalog-layout,
    .admin-link-filter-grid,
    .admin-order-grid,
    .admin-customer-grid,
    .admin-price-grid,
    .admin-toolbar-orders {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-catalog-layout,
    .admin-catalog-layout > *,
    .admin-catalog-layout .admin-stack,
    .admin-catalog-layout .admin-card,
    .admin-catalog-layout .admin-toolbar,
    .admin-catalog-layout .admin-table-wrap,
    .admin-catalog-layout .admin-table,
    .admin-catalog-layout .admin-tree,
    .admin-catalog-layout .admin-tree-group {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .admin-catalog-layout {
        overflow: hidden;
    }

    .admin-catalog-layout .admin-section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .admin-catalog-layout .admin-section-head h3,
    .admin-catalog-layout .admin-section-head p,
    .admin-catalog-layout .admin-section-summary-copy h3,
    .admin-catalog-layout .admin-section-summary-copy p,
    .admin-catalog-layout .admin-tree-parent span,
    .admin-catalog-layout .admin-tree-item span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-catalog-layout .admin-primary-btn,
    .admin-catalog-layout .admin-outline-btn,
    .admin-catalog-layout .toolbar-select,
    .admin-catalog-layout .search-field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .admin-catalog-layout .admin-primary-btn,
    .admin-catalog-layout .admin-outline-btn {
        white-space: normal;
    }

    .admin-catalog-layout .admin-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-catalog-layout .admin-tree-title,
    .admin-catalog-layout .admin-tree-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .admin-catalog-layout .admin-tree-parent {
        min-width: 0;
    }

    .admin-catalog-layout .pill-count {
        min-width: 28px;
        padding: 0 8px;
    }

    .admin-price-grid-head {
        display: none;
    }

    .admin-price-grid {
        gap: 8px;
    }

    .admin-product-cell {
        align-items: flex-start;
    }

    .admin-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-list-stack.compact.end {
        justify-items: start;
    }
}
