.shop-section {
  padding-top: 42px;
}

.shop-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 34px;
  align-items: end;
  max-width: 1180px;
}

.shop-hero-panel {
  padding: 24px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.shop-hero-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.22);
}

.shop-hero-panel span {
  display: block;
  color: var(--accent);
  font-size: 4rem;
  line-height: 0.9;
  font-weight: 900;
}

.shop-hero-panel p {
  margin-top: 14px;
  color: var(--text);
  font-weight: 900;
}

.shop-hero-panel strong {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.shop-control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-search,
.shop-sort {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
  transition: border-color var(--transition), background-color var(--transition);
}

.shop-search span,
.shop-sort span {
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-search input,
.shop-sort select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.shop-search input {
  padding: 0 13px;
}

.shop-search input:focus,
.shop-sort select:focus {
  outline: 0;
  border-color: rgba(29, 78, 216, 0.44);
  box-shadow: 0 0 0 0.18rem rgba(29, 78, 216, 0.13);
}

.shop-sort select {
  padding: 0 10px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.shop-sidebar h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.filter-pill:hover {
  transform: translateX(3px);
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--accent);
  border-color: rgba(29, 78, 216, 0.22);
  background: rgba(29, 78, 216, 0.07);
}

.shop-note {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shop-note h3 {
  font-size: 1rem;
}

.shop-note p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.shop-note .btn {
  width: 100%;
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.shop-toolbar h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.shop-toolbar > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.shop-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-card .product-footer {
  margin-top: auto;
}

.product-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 218px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  color: var(--accent);
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.product-card:hover .product-badge {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.3);
}

.custom-product-card {
  border-color: rgba(22, 163, 74, 0.24);
}

.shop-empty {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.shop-empty p {
  margin-top: 8px;
  color: var(--muted);
}


