.shop-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 30px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 145px;
  padding: 22px;
}

.filter-panel h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 1.1rem;
}

.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.filter-group h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: .85rem;
}

.filter-group label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 8px 0;
  color: var(--muted);
  font-size: .83rem;
}

.filter-group input {
  accent-color: var(--accent);
}

.filter-group select {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--white);
}

.catalogue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.catalogue-head h2 {
  margin: 5px 0 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.05em;
}

.catalogue-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.sort-select {
  min-width: 165px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
}

/* Dedicated In-Shop Search Bar */
.shop-search-bar-container {
  margin: 20px 0 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(30, 20, 16, 0.04);
}

.shop-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.shop-search-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.shop-catalog-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--primary);
  background: #fdfaf7;
  border: 1.5px solid #e8dbd0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.shop-catalog-search-input:focus {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 86, 36, 0.12);
}

.shop-catalog-search-input::placeholder {
  color: #9c8a80;
}

.shop-search-clear-btn {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #e2d7ce;
  color: #55443c;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.15s;
}

.shop-search-clear-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.08);
}

.shop-search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f2e8df;
}

.quick-tag-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.quick-search-tag {
  background: #f5ebe1;
  border: 1px solid #ecdcd0;
  color: #5c3b28;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-search-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.shop-products {
  grid-template-columns: repeat(4, 1fr);
}

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

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

@media (max-width:820px) {
.filter-panel,
  .summary-card {
    position: static;
  }
}

@media (max-width:820px) {
.filter-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }
}

@media (max-width:820px) {
.filter-panel h2 {
    grid-column: 1/-1;
  }
}

@media (max-width:820px) {
.filter-group {
    padding: 14px 0;
  }
}

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

@media (max-width:560px) {
.section-heading-row,
  .catalogue-head {
    flex-direction: column;
    align-items: start;
  }

  .shop-search-bar-container {
    padding: 12px 14px;
    margin: 14px 0 20px;
    border-radius: 12px;
  }

  .shop-catalog-search-input {
    height: 44px;
    font-size: 0.9rem;
    padding: 0 38px 0 38px;
  }

  .shop-search-icon {
    left: 10px;
    width: 18px;
    height: 18px;
  }

  .shop-search-clear-btn {
    right: 8px;
    width: 24px;
    height: 24px;
  }

  .shop-search-tags {
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
  }

  .quick-search-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
  }
}

@media (max-width:560px) {
.product-grid,
  .shop-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width:560px) {
.filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width:380px) {
.product-grid,
  .shop-products {
    grid-template-columns: 1fr;
  }
}
