.mobile-only {
  display: none !important;
}
@media (min-width: 1700px) {
  .main {
    padding-top: 38px;
  }
  .hero {
    min-height: 195px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .product-row {
    padding-block: 20px;
  }
  .product-title {
    font-size: 12px;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .summary {
    top: 112px;
  }
  .product-image {
    width: 67px;
    height: 72px;
  }
}
@media (max-width: 1350px) {
  .shell {
    grid-template-columns: 207px minmax(0, 1fr);
  }
  .sidebar {
    width: 207px;
    padding-inline: 15px;
  }
  .main {
    padding: 26px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 17px;
  }
  .catalog-header,
  .product-row {
    grid-template-columns: minmax(142px, 1.5fr) 77px 85px 95px 23px;
    padding-inline: 14px;
    gap: 7px;
  }
  .product-image {
    width: 47px;
    height: 56px;
  }
  .product-id {
    gap: 8px;
  }
  .product-title {
    font-size: 10px;
  }
  .qty-group {
    width: 91px;
  }
  .qty-group input {
    width: 33px;
  }
  .qty-min {
    width: 91px;
    font-size: 8px;
  }
  .variant-controls select {
    width: 77px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 15px;
  }
  .global-search {
    min-width: 150px;
  }
  .topbar-tools {
    gap: 5px;
  }
  .hero-art {
    width: 210px;
  }
  .summary-bottom,
  .summary-numbers {
    padding-inline: 17px;
  }
  .summary-head {
    padding: 18px 17px 13px;
  }
  .summary-supplier,
  .summary-saving {
    margin-inline: 17px;
  }
  .product-card .qty-group {
    width: 91px;
  }
}
@media (max-width: 1140px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .nav-item {
    font-size: 11px;
    padding: 10px;
  }
  .brand {
    padding-inline: 5px;
  }
  .brand-name {
    font-size: 25px;
  }
  .org-switch {
    padding: 8px;
    font-size: 10px;
  }
  .org-switch strong {
    font-size: 10px;
  }
  .sidebar-foot {
    flex-direction: column;
    gap: 8px;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary {
    position: static;
  }
  .summary-lines {
    max-height: 180px;
  }
  .summary-empty {
    padding: 15px;
  }
  .summary-note {
    display: none;
  }
  .summary-head {
    padding: 17px 20px;
  }
  .summary-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .summary-total {
    border: 0;
    padding: 0;
    margin: 0;
    grid-column: 1/-1;
  }
  .summary-bottom > .btn {
    width: auto;
    min-width: 250px;
  }
  .summary-bottom {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 20px;
  }
  .summary-bottom > p {
    margin: 0;
  }
  .hero-art {
    width: 190px;
  }
  .topbar .profile > div:not(.avatar) {
    display: none;
  }
  .global-search {
    min-width: 0;
    width: 150px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .catalog-header,
  .product-row {
    grid-template-columns: minmax(170px, 1.5fr) 100px 100px 110px 30px;
    padding-inline: 20px;
    gap: 10px;
  }
  .variant-controls select {
    width: 95px;
  }
  .qty-group {
    width: 103px;
  }
  .qty-group input {
    width: 43px;
  }
  .product-image {
    width: 59px;
    height: 66px;
  }
  .product-title {
    font-size: 11px;
  }
  .catalog-tools .switch-label {
    margin-inline-start: auto;
  }
  .catalog-search {
    max-width: 290px;
  }
  .hero h2 {
    font-size: 23px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.2s;
    width: 244px;
    padding-inline: 19px;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar.open + .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #172d2170;
    backdrop-filter: blur(3px);
  }
  .shell {
    display: block;
  }
  .workspace {
    width: 100%;
  }
  .mobile-only {
    display: inline-grid !important;
  }
  .topbar {
    height: 69px;
    padding-inline: 20px;
    gap: 10px;
  }
  .main {
    padding: 25px 20px;
  }
  .topbar-tools .profile {
    display: none;
  }
  .topbar-separator {
    display: none;
  }
  .nav-item {
    font-size: 12px;
  }
  .org-switch strong {
    font-size: 12px;
  }
  .sidebar-foot {
    flex-direction: row;
  }
  .page-footer {
    font-size: 9px;
  }
  .topbar .global-search {
    width: 190px;
  }
  .topbar .breadcrumbs {
    font-size: 10px;
  }
  .summary {
    position: static;
  }
  .hero-art {
    width: 230px;
  }
  .hero {
    padding-inline: 24px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .topbar .brand-mobile {
    display: flex;
  }
  .catalog-layout {
    gap: 20px;
  }
}
@media (max-width: 660px) {
  .topbar {
    padding-inline: 14px;
    gap: 7px;
    height: 63px;
  }
  .topbar-tools {
    gap: 2px;
  }
  .global-search {
    display: none;
  }
  .topbar .breadcrumbs {
    font-size: 10px;
  }
  .topbar .demo-mini {
    font-size: 8px;
    padding: 3px 6px;
  }
  .topbar .icon-btn {
    width: 31px;
    height: 31px;
  }
  .main {
    padding: 22px 14px;
  }
  .page-top {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
  .page-top p {
    font-size: 11px;
  }
  .page-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sector-select {
    width: 100%;
    max-width: none;
    padding: 9px 11px;
    font-size: 11px;
  }
  .page-top-actions .btn {
    flex-shrink: 0;
    font-size: 10px;
    min-height: 38px;
    padding: 8px 11px;
  }
  .hero {
    padding: 20px 19px;
    min-height: 166px;
    margin-bottom: 19px;
  }
  .hero h2 {
    font-size: 21px;
    max-width: 240px;
  }
  .hero p {
    font-size: 10px;
    max-width: 218px;
  }
  .hero-art {
    position: absolute;
    left: -40px;
    bottom: 7px;
    width: 190px;
    height: 138px;
    opacity: 0.45;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-meta {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 9px;
    max-width: 270px;
  }
  .hero-meta span:last-child {
    display: none;
  }
  .hero-kicker {
    font-size: 9px;
  }
  .panel-heading {
    padding: 17px 15px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading small {
    font-size: 9px;
  }
  .panel-heading .btn {
    font-size: 9px;
    min-height: 30px;
    padding: 6px 8px;
  }
  .catalog-tools {
    padding: 0 14px 13px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .catalog-search {
    max-width: none;
    flex-basis: 100%;
  }
  .catalog-tools .switch-label {
    margin-inline-start: 0;
    font-size: 10px;
  }
  .view-switch {
    margin-inline-start: auto;
  }
  .categories {
    padding: 0 14px 13px;
    gap: 6px;
  }
  .category {
    font-size: 9px;
    padding: 5px 10px;
  }
  .catalog-header {
    display: none;
  }
  .product-row {
    grid-template-columns: minmax(0, 1fr) 100px 31px;
    gap: 10px;
    padding: 16px 14px;
  }
  .product-id {
    grid-column: 1/3;
    grid-row: 1;
    gap: 11px;
  }
  .product-image {
    width: 61px;
    height: 66px;
  }
  .product-title {
    font-size: 12px;
  }
  .product-sku {
    font-size: 9px;
  }
  .product-row > .favorite {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }
  .variant-controls {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 7px;
  }
  .variant-controls select {
    width: auto;
    max-width: 95px;
    height: 30px;
    flex: 1;
    font-size: 10px;
    min-width: 0;
  }
  .product-row .price-cell {
    grid-column: 1;
    grid-row: 3;
  }
  .product-row .quantity-cell {
    grid-column: 2/4;
    grid-row: 2/4;
    justify-self: end;
    align-self: end;
  }
  .unit-price {
    font-size: 14px;
  }
  .qty-group {
    width: 105px;
    height: 36px;
  }
  .qty-group button {
    height: 36px;
    width: 30px;
  }
  .qty-group input {
    width: 45px;
    font-size: 12px;
  }
  .tier-hint {
    font-size: 10px;
    margin-top: 3px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 13px 15px;
  }
  .product-card {
    padding: 9px;
  }
  .product-card .product-image {
    height: 130px;
  }
  .product-card .product-title {
    font-size: 10px;
    min-height: 36px;
  }
  .product-card .product-sku {
    font-size: 8px;
  }
  .product-card .variant-controls {
    gap: 5px;
  }
  .product-card .variant-controls select {
    font-size: 9px;
    width: 50%;
    max-width: none;
    min-width: 0;
  }
  .product-card .unit-price {
    font-size: 12px;
  }
  .product-card .card-bottom {
    display: grid;
    gap: 8px;
  }
  .product-card .qty-group {
    width: 100%;
  }
  .product-card .qty-group input {
    width: 100%;
  }
  .product-card .favorite {
    left: 13px;
    top: 13px;
    width: 26px;
    height: 26px;
  }
  .product-card .tier-hint {
    font-size: 9px;
  }
  .catalog-footer {
    font-size: 9px;
    padding: 12px 14px;
    gap: 10px;
  }
  .summary-head {
    padding-inline: 17px;
  }
  .summary-numbers {
    padding-inline: 17px;
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .summary-total {
    border-top: 1px dashed var(--line);
    padding-top: 12px;
  }
  .summary-bottom {
    display: block;
    padding-inline: 17px;
  }
  .summary-bottom > .btn {
    width: 100%;
  }
  .summary-bottom > p {
    margin-top: 10px;
  }
  .summary-lines {
    max-height: 210px;
  }
  .summary-supplier {
    margin-inline: 17px;
  }
  .summary-empty {
    padding: 24px;
  }
  .page-footer {
    align-items: flex-start;
    font-size: 8px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    max-height: 94dvh;
    border-radius: 16px;
  }
  .modal-header {
    padding: 17px;
  }
  .modal-header h2 {
    font-size: 15px;
  }
  .modal-body {
    padding: 19px 17px;
  }
  .modal-footer {
    padding: 15px 17px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .shipping-options {
    gap: 8px;
  }
  .radio-card {
    font-size: 10px;
    padding: 9px;
  }
  .quote-meta {
    gap: 12px;
    padding: 13px;
  }
  .quote-meta p {
    font-size: 11px;
  }
  .modal-body .data-table {
    font-size: 10px;
  }
  .quote-total strong {
    font-size: 19px;
  }
  .filters {
    padding-inline: 15px;
    gap: 10px;
  }
  .filters .field {
    max-width: none;
    flex-basis: 100%;
  }
  .filters select {
    width: 100%;
    max-width: none;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat strong small {
    font-size: 8px;
    display: block;
  }
  .stat > small {
    font-size: 8px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .settings-panel {
    padding: 19px;
  }
  .guide-section {
    padding: 19px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .guide-step {
    display: grid;
    grid-template-columns: 27px 1fr;
    column-gap: 10px;
    padding: 12px;
  }
  .guide-step > span {
    grid-row: 1/3;
    margin: 0;
  }
  .guide-step p {
    grid-column: 2;
  }
  .toast {
    left: 15px;
    bottom: 15px;
    font-size: 11px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .status-tabs {
    padding-bottom: 4px;
  }
}
@media (max-width: 360px) {
  .hero h2 {
    font-size: 19px;
  }
  .hero-art {
    opacity: 0.25;
  }
  .page-top-actions .btn {
    font-size: 9px;
    padding: 7px 9px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card .product-image {
    height: 210px;
  }
  .product-card .product-title {
    min-height: 0;
  }
  .topbar .demo-mini {
    display: none;
  }
  .product-row {
    grid-template-columns: minmax(0, 1fr) 88px 25px;
  }
  .variant-controls {
    gap: 4px;
  }
  .variant-controls select {
    font-size: 9px;
    max-width: 77px;
  }
}
