:root {
  --primary: #075a83;
  --primary-dark: #06364f;
  --primary-light: #e9f5fa;
  --secondary: #08a6a6;
  --secondary-dark: #078786;

  --background: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --text: #183245;
  --text-secondary: #627789;
  --text-muted: #8797a5;

  --border: #e3eaf0;
  --border-strong: #cfdae3;

  --success: #16865b;
  --success-bg: #e8f7ef;

  --warning: #b7791f;
  --warning-bg: #fff5df;

  --danger: #cf4550;
  --danger-bg: #fcebee;

  --shadow-sm: 0 3px 12px rgba(11, 47, 69, 0.05);
  --shadow-md: 0 12px 35px rgba(11, 47, 69, 0.09);
  --shadow-lg: 0 25px 65px rgba(9, 38, 57, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: 0.22s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(8, 166, 166, 0.35);
  outline-offset: 3px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 5px 14px rgba(7, 90, 131, 0.13);
}

.btn-primary:not(:disabled):hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(7, 90, 131, 0.22);
}

.btn-secondary {
  color: var(--primary);
  background: white;
  border-color: var(--border-strong);
}

.btn-secondary:not(:disabled):hover {
  background: var(--primary-light);
  border-color: #a3c9db;
}

.btn-cart {
  color: white;
  background: var(--secondary-dark);
}

.btn-cart:not(:disabled):hover {
  background: #056e71;
}

.btn-full {
  width: 100%;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 50px;
  color: var(--secondary-dark);
  background: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 15px max(32px, calc((100vw - 1280px) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #087da6 0%,
    #075a83 55%,
    #06364f 100%
  );
  box-shadow: 0 5px 12px rgba(7, 90, 131, 0.19);
}

.mountain {
  position: absolute;
  display: block;
  bottom: 10px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.mountain-left {
  left: 4px;
  width: 31px;
  height: 28px;
  background: #8ed9e5;
}

.mountain-center {
  left: 12px;
  width: 37px;
  height: 42px;
  background: #ffffff;
  z-index: 2;
}

.mountain-right {
  right: 2px;
  width: 29px;
  height: 26px;
  background: #5bc5d2;
  z-index: 3;
}

.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 12px;
  z-index: 4;
  width: 32px;
  height: 5px;
  border-radius: 4px;
  background: #06364f;
}

.brand-text h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.brand-text p {
  margin: 4px 0 0;
  color: var(--secondary-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

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

main {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 75px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: 55px;
  min-height: 375px;
  padding: 52px 55px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    120deg,
    #06364f 0%,
    #075a83 55%,
    #087c9d 100%
  );
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -5px;
  right: -40px;
  width: 75%;
  height: 60%;
  background: rgba(255, 255, 255, 0.09);
  clip-path: polygon(
    0% 100%,
    16% 52%,
    26% 76%,
    43% 13%,
    57% 67%,
    72% 29%,
    100% 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 43%;
  background: rgba(8, 166, 166, 0.11);
  clip-path: polygon(
    0% 100%,
    25% 78%,
    40% 100%,
    63% 28%,
    77% 81%,
    88% 50%,
    100% 83%,
    100% 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 23px;
  padding: 9px 14px;
  color: #d5f7fa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 670px;
  margin-bottom: 19px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.17;
}

.hero-content > p {
  max-width: 590px;
  color: #d8eaf2;
  font-size: 0.94rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn-primary {
  color: var(--primary-dark);
  background: #ffffff;
}

.hero-actions .btn-primary:hover {
  background: #e1f5f7;
}

.hero-actions .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-card {
  position: relative;
  z-index: 2;
  padding: 25px 24px;
  color: #fff;
  background: rgba(5, 35, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39dbc1;
  box-shadow: 0 0 0 5px rgba(57, 219, 193, 0.13);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  padding-left: 15px;
  border-left: 3px solid #43c9d4;
  color: #dbeef3;
  font-size: 0.8rem;
  line-height: 1.65;
}

.status-list strong {
  color: #fff;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 22px;
  margin-top: 26px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-block {
  position: relative;
}

.search-block label {
  display: block;
  margin-bottom: 11px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.search-block input {
  display: block;
  width: 100%;
  height: 49px;
  padding: 0 18px 0 44px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.87rem;
  outline: none;
  transition: all var(--transition);
}

.search-block::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 48px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  pointer-events: none;
}

.search-block::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 61px;
  width: 7px;
  height: 2px;
  background: var(--text-muted);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.search-block input:focus {
  background: white;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(8, 166, 166, 0.09);
}

.search-block input::placeholder {
  color: #98a7b3;
}

.suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  padding: 7px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 0.84rem;
  transition: background var(--transition);
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: var(--primary-light);
}

.suggestion-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--background);
  border-radius: 9px;
}

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

.selected-store-box,
.store-stock-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 13px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.selected-store-box {
  background: var(--primary-light);
  border-color: #d2e8f1;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.selected-store-box strong,
.store-stock-box strong {
  color: var(--primary-dark);
  font-size: 0.82rem;
  line-height: 1.4;
}

.selected-store-box small,
.store-stock-box small {
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.45;
}

.catalog-section {
  margin-top: 47px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 25px;
}

.section-header h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.section-header p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 9px 15px;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition);
}

.chip:hover {
  color: var(--primary);
  border-color: #a8cbdc;
  background: var(--primary-light);
}

.chip.active {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #cbdfe9;
  box-shadow: var(--shadow-md);
}

.product-media,
.product-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7fafc, #edf4f7);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.product-emoji {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 4.5rem;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--primary);
  background: white;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.product-category {
  margin-bottom: 7px;
  color: var(--secondary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.product-name {
  min-height: 43px;
  margin: 0 0 11px;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.45;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.product-price {
  color: var(--primary-dark);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.product-unit {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-stock.available,
.stock-pill.available,
.stock-pill.in-stock {
  color: var(--success);
  background: var(--success-bg);
}

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

.product-stock.low,
.stock-pill.low {
  color: var(--warning);
  background: var(--warning-bg);
}

.product-add-btn,
.add-to-cart-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all var(--transition);
}

.product-add-btn:not(:disabled):hover,
.add-to-cart-btn:not(:disabled):hover {
  background: var(--primary-dark);
}

.product-card.out-of-stock .product-media {
  opacity: 0.7;
}

.empty-results,
.empty-state {
  padding: 42px 18px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
}

.empty-results {
  grid-column: 1 / -1;
}

.empty-results h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 31, 48, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 33px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.25s ease;
}

.modal-lg {
  max-width: 650px;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  background: #f1f5f8;
  border: none;
  border-radius: 9px;
  font-size: 1.4rem;
  line-height: 1;
  transition: all var(--transition);
}

.modal-content > .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

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

.modal-header {
  margin-bottom: 26px;
  padding-right: 25px;
}

.modal-header h3 {
  margin-bottom: 9px;
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.modal-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}

.form-field input:focus {
  background: white;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(8, 166, 166, 0.1);
}

.form-field input::placeholder {
  color: #a0acb6;
}

.demo-note {
  margin-top: 23px;
  padding: 15px;
  background: var(--primary-light);
  border: 1px solid #cce4f0;
  border-radius: 11px;
}

.demo-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.79rem;
}

.demo-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.stores-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  text-align: left;
  transition: all var(--transition);
}

.store-card:hover {
  background: var(--primary-light);
  border-color: #9acadd;
}

.store-card.selected {
  background: var(--primary-light);
  border: 2px solid var(--secondary);
}

.store-card-info {
  min-width: 0;
}

.store-card-info h4 {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.store-card-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.store-card-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100dvh;
  background: white;
  box-shadow: -20px 0 60px rgba(7, 34, 52, 0.19);
  animation: drawerEnter 0.25s ease;
}

@keyframes drawerEnter {
  from {
    opacity: 0.7;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.77rem;
}

.cart-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-items .empty-state {
  margin-top: 25px;
}

.cart-item {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  background: var(--background);
  border-radius: 11px;
  font-size: 2rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
}

.cart-item-price {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.quantity-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 800;
}

.quantity-btn:hover {
  background: #d4eaf3;
}

.quantity-value {
  font-size: 0.8rem;
  font-weight: 800;
}

.cart-item-remove {
  margin-left: auto;
  padding: 5px;
  color: var(--danger);
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-footer {
  padding: 23px 24px 27px;
  background: white;
  border-top: 1px solid var(--border);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-summary span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-summary strong {
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.cart-note {
  display: block;
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 1000;
  max-width: min(460px, calc(100% - 30px));
  padding: 14px 22px;
  color: white;
  background: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  animation: toastEnter 0.2s ease;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .hero {
    gap: 30px;
    padding: 42px;
  }

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

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

  .section-header {
    align-items: flex-start;
  }
}

@media (max-width: 850px) {
  .topbar {
    padding: 15px 24px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-actions .btn {
    padding: 10px 12px;
    font-size: 0.76rem;
  }

  main {
    width: calc(100% - 40px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 30px;
  }

  .hero-card {
    max-width: 100%;
  }

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

@media (max-width: 600px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text h1 {
    font-size: 1.15rem;
  }

  .brand-text p {
    font-size: 0.65rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .topbar-actions .btn {
    min-width: 0;
    min-height: 41px;
    padding: 9px 7px;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }

  main {
    width: calc(100% - 26px);
    padding-top: 15px;
  }

  .hero {
    gap: 26px;
    padding: 31px 23px;
    border-radius: 17px;
  }

  .hero h2 {
    font-size: 1.8rem;
    letter-spacing: -0.8px;
  }

  .hero-content > p {
    font-size: 0.84rem;
    line-height: 1.75;
  }

  .eyebrow {
    font-size: 0.63rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 0.75rem;
  }

  .hero-card {
    padding: 19px;
  }

  .toolbar {
    margin-top: 15px;
    padding: 17px;
    border-radius: 17px;
  }

  .toolbar-meta {
    grid-template-columns: 1fr;
  }

  .catalog-section {
    margin-top: 35px;
  }

  .section-header h3 {
    font-size: 1.35rem;
  }

  .section-header p {
    font-size: 0.8rem;
  }

  .catalog-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 7px;
  }

  .chip {
    flex-shrink: 0;
  }

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

  .product-media,
  .product-image-wrapper {
    height: 135px;
  }

  .product-emoji {
    font-size: 3.5rem;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 0.79rem;
    min-height: 48px;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-add-btn,
  .add-to-cart-btn {
    font-size: 0.72rem;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .store-card {
    padding: 14px;
  }

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

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-media,
  .product-image-wrapper {
    height: 175px;
  }

  .topbar-actions .btn {
    font-size: 0.62rem;
  }
}

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