.card {
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card--hero {
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.btn--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 32px rgba(51, 72, 93, 0.28);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  color: var(--text);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.btn--ghost {
  color: var(--primary);
  background: rgba(51, 72, 93, 0.08);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 36, 48, 0.16);
}

.icon-button img {
  width: 18px;
  height: 18px;
}

.icon-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
}

.icon-button--compact {
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  justify-content: center;
}

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

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 36, 48, 0.1);
  background: rgba(255,255,255,0.92);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(51, 72, 93, 0.4);
  box-shadow: 0 0 0 4px rgba(51, 72, 93, 0.08);
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.form-status--success {
  color: var(--green);
  font-weight: 700;
}

.form-status--error {
  color: var(--danger);
  font-weight: 700;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.checkbox--consent {
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.checkbox--consent a {
  color: var(--primary);
  font-weight: 700;
}

.text-page {
  display: grid;
  gap: 18px;
  padding: 30px;
  line-height: 1.75;
}

.text-page h2 {
  margin-top: 10px;
  font-size: 1.16rem;
}

.text-page h2:first-child {
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 280px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245, 239, 231, 0.7));
}

.product-card__image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.product-card__image--catalog img {
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
}

.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.78);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  flex: 1;
}

.product-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.product-card__title {
  font-size: 1.16rem;
  line-height: 1.28;
  min-height: 2.95em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__desc {
  color: var(--text-muted);
  line-height: 1.65;
  min-height: 6.6em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.product-card__swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__swatches span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.86);
  box-shadow: 0 6px 14px rgba(31, 36, 48, 0.12);
}

.product-card__price-row {
  display: grid;
  gap: 14px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price strong {
  font-size: 1.35rem;
}

.price span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.price--request strong {
  color: var(--primary);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.card-actions .btn {
  width: 100%;
  padding: 0 14px;
}

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

.meta-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}

.meta-list li:last-child {
  border-bottom: 0;
}

.info-card,
.contact-form,
.cart-summary,
.store-card,
.filters,
.store-filter-card,
.store-map-card {
  padding: 24px;
}

.store-map-card--frame {
  padding: 0;
  overflow: hidden;
}

.store-map-card--frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.info-stack {
  display: grid;
  gap: 20px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 24px;
}

.contact-list li {
  line-height: 1.65;
}

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

.mini-grid--single {
  grid-template-columns: 1fr;
}

.mini-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
}

.mini-card--soft {
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(255,255,255,0.62);
}

.mini-card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.mini-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-cta-grid,
.mobile-menu__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.form-note {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(31, 36, 48, 0.92);
  box-shadow: var(--shadow);
  z-index: 140;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 700;
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(111, 138, 114, 0.16);
}

.status--low {
  color: var(--gold);
}

.status--empty {
  color: var(--danger);
}

.active-filters {
  margin-top: 12px;
}

.route-list {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 20px;
}

.route-list li {
  list-style: disc;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(255,255,255,0.84);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle strong {
  font-size: 0.92rem;
}

.mobile-menu {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 85;
}

.mobile-menu__inner {
  display: grid;
  gap: 14px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-nav__link,
.mobile-menu__meta {
  border-radius: 24px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(246, 247, 244, 0.98);
  box-shadow: var(--shadow);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  font-weight: 700;
}

.mobile-nav__link img {
  width: 18px;
  height: 18px;
}

.mobile-nav__link.is-active {
  color: var(--primary);
  border-color: rgba(51, 72, 93, 0.18);
}

.mobile-menu__meta {
  padding: 18px;
}

.mobile-menu__title {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.mobile-menu__text {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: rgba(31, 36, 48, 0.28);
}


.mobile-tabbar {
  display: none;
}

.mobile-tabbar__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  position: relative;
}

.mobile-tabbar__link img {
  width: 18px;
  height: 18px;
}

.mobile-tabbar__link.is-active {
  color: var(--primary);
}

.mobile-tabbar__count {
  position: absolute;
  top: -2px;
  right: 10px;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 0.66rem;
  display: inline-grid;
  place-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(31,36,48,.08);
  align-items: center;
}

.cart-item__image {
  width: 120px;
  height: 120px;
  padding: 8px;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-sizing: border-box;
}

.cart-item__body {
  display: grid;
  gap: 10px;
}

.cart-item__title {
  font-size: 1.2rem;
}

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

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cart-item__price {
  font-size: 1.15rem;
  text-align: right;
}

@media (max-width: 1080px) {
  .products-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .contact-cta-grid,
  .mobile-menu__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {


  .mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 24px;
    border: 1px solid rgba(31, 36, 48, 0.08);
    background: rgba(246, 247, 244, 0.96);
    box-shadow: 0 18px 36px rgba(31, 36, 48, 0.16);
    backdrop-filter: blur(16px);
  }
  .products-grid,
  .mini-grid,
  .contact-cta-grid,
  .mobile-menu__actions {
    grid-template-columns: 1fr;
  }

  .product-card__image {
    min-height: 220px;
    max-height: 220px;
    padding: 14px;
  }

  .product-card__content {
    gap: 12px;
    padding: 16px;
  }

  .product-card__meta {
    font-size: 0.84rem;
  }

  .product-card__title {
    font-size: 1.04rem;
  }

  .product-card__desc {
    font-size: 0.96rem;
    -webkit-line-clamp: 3;
  }

  .price strong {
    font-size: 1.22rem;
  }

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

  .info-card,
  .contact-form,
  .cart-summary,
  .store-card,
  .filters,
  .store-map-card {
    padding: 18px;
  }

  .store-map-card--frame iframe {
    min-height: 300px;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 86px;
    max-width: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cart-item__image {
    width: 100%;
    max-width: 140px;
  }

  .cart-item__price {
    text-align: left;
  }
}


.product-card { border-radius: var(--radius-lg); background: rgba(255,255,255,0.94); border: 1px solid rgba(31,36,48,.08); height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(45, 105, 86, .18); box-shadow: 0 22px 44px rgba(31,36,48,.1); }
.product-card__image { min-height: 0; max-height: none; aspect-ratio: 1 / 1; padding: 24px 18px 20px; isolation: isolate; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238, 242, 238, 0.88)); }
.product-card__image img { width: auto; height: auto; max-width: 88%; max-height: 88%; object-fit: contain; object-position: center center; filter: drop-shadow(0 22px 34px rgba(33, 38, 47, 0.14)); }
.product-card__content { gap: 12px; }
.product-card__desc { min-height: 5em; }
.product-card__bottom { margin-top: auto; }
.product-card__price-row { display: grid; gap: 12px; }
.product-card .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card .card-actions .btn { width: 100%; min-height: 44px; white-space: nowrap; }
.price--request { padding: 12px 14px; border-radius: 16px; background: rgba(45,105,86,.08); border: 1px solid rgba(45,105,86,.12); }
@media (max-width: 720px) { .product-card:hover { transform:none; } .product-card__image { min-height: auto; padding: 18px 14px 16px; } .product-card__image img { max-width: 84%; max-height: 84%; } .product-card__desc { min-height: auto; } .product-card .card-actions { grid-template-columns: 1fr; } }
