.shop-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.shop-hero {
  padding: 40px 0 22px;
  text-align: center;
}

.shop-hero__eyebrow {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shop-hero__title {
  color: var(--text-main);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 20px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.cat-pill:hover {
  background: var(--primary-soft);
  color: var(--text-main);
}

.cat-pill--active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 8px;
}

.toolbar-triggers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.trigger-btn:hover {
  border-color: #d0d4de;
  background: var(--primary-soft);
  color: var(--text-main);
}

.trigger-btn--active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.trigger-btn--active:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.trigger-label {
  font-size: 12px;
}

.trigger-hint {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.6;
}

.trigger-btn--active .trigger-hint {
  opacity: 0.7;
}

.trigger-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background: #fff;
}

.trigger-btn--active .trigger-dot {
  border-color: rgba(255, 255, 255, 0.6);
  background: #fff;
}

.search-form {
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 200px;
  height: 34px;
  padding-right: 30px;
  padding-left: 32px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition:
    width 0.25s ease,
    border-color 0.15s;
}

.search-input:focus {
  width: 260px;
}

.search-clear {
  position: absolute;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
}

.search-clear:hover {
  background: #ddd;
  color: var(--text-main);
}

.panels-row {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.panels-row--visible {
  max-height: 320px;
}

.panels-row[data-open="2"] {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panels-row[data-open="1"] {
  grid-template-columns: 1fr;
}

.panel {
  margin-bottom: 10px;
  padding: 18px 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.panel[hidden] {
  display: none;
}

.panel__form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
}

.panel__group {
  gap: 4px;
}

.panel__group-label {
  font-size: 9px;
}

.price-range-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.price-sym {
  color: var(--text-muted);
  font-size: 12px;
}

.price-input {
  width: 70px;
  height: 30px;
  font-size: 12px;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.price-input[type="number"] {
  -moz-appearance: textfield;
}

.price-sep {
  color: var(--text-muted);
  font-size: 13px;
}

.cat-radio-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-radio {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.cat-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-radio:hover {
  background: var(--primary-soft);
  color: var(--text-main);
}

.cat-radio--active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-top: 2px;
}

.panel-apply-btn {
  height: 34px;
  padding: 0 16px;
  font-size: 12px;
}

.clear-link {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.15s;
}

.clear-link:hover {
  color: var(--danger);
}

.sort-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.sort-option:hover {
  background: var(--primary-soft);
  color: var(--text-main);
}

.sort-option--active {
  border-color: var(--text-main);
  background: var(--text-main);
  color: #fff;
  font-weight: 500;
}

.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.clear-filter-btn:hover {
  border-color: #ffd4d4;
  background: #fff0f0;
}

.shop-divider {
  display: flex;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.shop-divider__count {
  color: var(--text-muted);
  font-size: 11px;
}

.product-section {
  min-width: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-card__link {
  display: block;
  flex: 1;
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--primary-soft);
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
}

.offer-badge-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(8px);
}

.offer-badge-text {
  display: inline-flex;
  align-items: center;
}

.offer-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(107, 114, 128, 0.25);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.07);
  color: #4b5563;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
  outline: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.offer-info:hover,
.offer-info:focus-visible {
  border-color: rgba(17, 24, 39, 0.35);
  background: #111827;
  color: #fff;
}

.offer-info:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(17, 24, 39, 0.35);
}

.offer-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  right: -5px;
  z-index: 20;
  width: max-content;
  max-width: 145px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    transform 0.15s ease;
}

.offer-tooltip::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: #111827;
  transform: rotate(45deg);
}

.offer-info:hover .offer-tooltip,
.offer-info:focus .offer-tooltip,
.offer-info:focus-visible .offer-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-card__info {
  padding: 11px 13px 10px;
}

.product-card__category {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__name {
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.product-card__price {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.product-card__old-price {
  color: #9ca3af;
  font-size: 12px;
  text-decoration: line-through;
}

.product-card__vars {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.card-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.cart-form {
  display: flex;
  flex: 3;
}

.wish-form {
  display: flex;
  flex: 1;
  border-left: 1px solid var(--border);
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  height: 36px;
  border: none;
  background: #fff;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.cart-btn:hover {
  background: var(--primary);
  color: #fff;
}

.wish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 36px;
  border: none;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.wish-btn:hover,
.wish-btn--active {
  background: #fff0f0;
  color: var(--danger);
}

.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg {
  opacity: 0.3;
}

.empty-state__title {
  margin-top: 4px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
}

.empty-state__sub {
  margin-bottom: 8px;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.page-btn:hover {
  background: var(--primary-soft);
  color: var(--text-main);
}

.page-btn--active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

.page-btn--arrow {
  padding: 0;
}

.page-ellipsis {
  padding: 0 2px;
  color: var(--text-muted);
  font-size: 13px;
  user-select: none;
}

.variant-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.variant-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.variant-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.2),
    0 8px 24px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.variant-modal-backdrop.active .variant-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.variant-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: stretch;
}

.variant-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #4b5563;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}

.variant-close:hover {
  background: #fff;
  color: #111827;
  transform: rotate(4deg);
}

.variant-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #f6f7f8;
}

.variant-preview-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #eef0f2;
}

.variant-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.variant-preview-image-wrap:hover .variant-preview-image {
  transform: scale(1.02);
}

.variant-image-stock {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.variant-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 30px 26px;
}

.variant-details-head {
  padding-right: 38px;
}

.variant-small-label {
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.variant-product-name {
  margin-bottom: 7px;
  color: var(--text-main);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.variant-helper-text {
  max-width: 340px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.variant-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}

.variant-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.variant-price {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.variant-old-price {
  color: #9ca3af;
  font-size: 14px;
  text-decoration: line-through;
}

.variant-offer-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-discount-pill,
.variant-offer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.variant-discount-pill {
  background: #f9fafb;
  color: #374151;
  font-weight: 650;
}

.variant-offer-pill {
  background: #fff;
  color: #6b7280;
  font-weight: 500;
}

.variant-old-price[hidden],
.variant-offer-pills[hidden],
.variant-image-stock[hidden] {
  display: none !important;
}

.variant-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--border);
}

.variant-section {
  margin-bottom: 20px;
}

.variant-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.variant-label {
  margin: 0;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.variant-selected-value {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.variant-color-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.variant-color {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid #d1d5db;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition:
    outline-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.variant-color:hover {
  transform: translateY(-1px) scale(1.05);
}

.variant-color.active {
  outline: 2px solid #111827;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px #111827;
  transform: scale(0.92);
}

.variant-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-size {
  min-width: 50px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}

.variant-size:hover:not(:disabled):not(.disabled) {
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.variant-size.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.variant-size:disabled,
.variant-size.disabled {
  border-color: #e5e7eb;
  background:
    linear-gradient(
      to top right,
      transparent calc(50% - 0.5px),
      #cbd5e1 50%,
      transparent calc(50% + 0.5px)
    ),
    #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.variant-selection-status {
  min-height: 38px;
}

.variant-stock {
  margin: 0 0 5px;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
}

.variant-error {
  min-height: 17px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

.variant-modal-footer {
  margin-top: auto;
  padding-top: 6px;
}

.variant-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s,
    opacity 0.15s;
}

.variant-confirm-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.17);
  transform: translateY(-1px);
}

.variant-confirm-btn:active:not(:disabled) {
  transform: translateY(0);
}

.variant-confirm-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.48;
}

.variant-footer-note {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-main {
    padding: 0 16px 60px;
  }

  .shop-hero {
    padding: 24px 0 16px;
  }

  .shop-hero__title {
    font-size: 24px;
  }

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

  .toolbar-triggers {
    flex-wrap: wrap;
  }

  .search-form,
  .search-input,
  .search-input:focus {
    width: 100%;
  }

  .panels-row[data-open="2"] {
    grid-template-columns: 1fr;
  }

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

  .panel__actions {
    margin-left: 0;
  }

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

  .variant-modal-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .variant-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 22px 22px 14px 14px;
  }

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

  .variant-preview {
    padding: 16px 16px 0;
    background: #fff;
  }

  .variant-preview-image-wrap {
    width: min(210px, 58vw);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }

  .variant-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .variant-details {
    padding: 20px 18px 18px;
  }

  .variant-details-head {
    padding-right: 34px;
  }

  .variant-product-name {
    font-size: 20px;
  }

  .variant-price {
    font-size: 20px;
  }

  .variant-divider {
    margin: 18px 0;
  }

  .variant-section {
    margin-bottom: 18px;
  }

  .variant-modal-footer {
    position: sticky;
    bottom: 0;
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 480px) {
  .offer-badge-wrap {
    top: 7px;
    right: 7px;
  }

  .offer-badge {
    gap: 5px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .offer-info {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .offer-tooltip {
    right: -5px;
    width: 130px;
    max-width: 130px;
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .price-input {
    width: 64px;
  }

  .product-card__info {
    padding: 10px;
  }

  .product-price-block {
    gap: 5px;
  }

  .product-card__price {
    font-size: 13px;
  }

  .product-card__old-price {
    font-size: 10px;
  }

  .product-card__vars {
    font-size: 9px;
  }
}
