.shop-page {
  background: linear-gradient(180deg, #faf7ef 0%, var(--color-bg) 13rem);
}

.shop-hero .ui-simple-hero__subtitle {
  max-width: 52rem;
  line-height: 1.5;
}

.hero-actions {
  gap: var(--space-3);
}

.shop-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  padding-bottom: var(--space-12);
  padding-top: var(--space-6);
}

.shop-sidebar {
  position: sticky;
  top: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.panel-kicker {
  margin: 0 0 var(--space-1);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary-600);
  font-weight: 700;
}

.panel-title {
  margin: 0;
  font-size: 1.1rem;
}

.category-list {
  display: grid;
  gap: 0.4rem;
}

.category-link {
  --depth: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.8rem 0.95rem 0.8rem calc(0.95rem + (var(--depth) * 0.95rem));
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.category-link:hover,
.category-link.active {
  background: rgba(250, 207, 10, 0.12);
  border-color: rgba(16, 24, 32, 0.12);
  transform: translateX(1px);
}

.category-link small {
  color: var(--color-text-muted);
}

.cart-card {
  display: block;
}

.panel-empty,
.catalog-state {
  margin: 0;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(16, 24, 32, 0.04);
  color: var(--color-text-muted);
}

.catalog-state-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-danger-600);
}

.text-action,
.line-remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  cursor: pointer;
}

.cart-lines {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.cart-line {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.cart-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-line-copy {
  display: grid;
  gap: 0.25rem;
}

.cart-line-copy strong {
  font-size: 0.96rem;
}

.cart-line-meta,
.cart-line-color {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.cart-line-color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.color-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1px solid rgba(16, 24, 32, 0.12);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.qty-control button {
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 24, 32, 0.06);
  color: var(--color-text);
  cursor: pointer;
}

.qty-control span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 600;
}

.line-total {
  white-space: nowrap;
}

.cart-totals {
  display: grid;
  gap: 0.55rem;
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.cart-total-row-final {
  color: var(--color-text);
  font-size: 1.02rem;
}

.catalog-content {
  display: grid;
  gap: var(--space-6);
}

.catalog-panel {
  display: grid;
  gap: var(--space-5);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem);
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
}

.catalog-counter {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skeleton-card {
  min-height: 400px;
  border-radius: 1.1rem;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.7) 8%,
    rgba(238, 235, 226, 0.95) 18%,
    rgba(255, 255, 255, 0.7) 33%
  );
  background-size: 220% 100%;
  animation: skeleton 1.35s linear infinite;
}

@keyframes skeleton {
  to {
    background-position-x: -220%;
  }
}

@media (max-width: 1080px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }
}

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

  .catalog-head,
  .cart-line-controls,
  .panel-head {
    align-items: start;
    flex-direction: column;
  }
}
