.shop-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.shop-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-toolbar h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.shop-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.empty {
  padding: 32px 20px;
  border: 1px dashed #d1d5db;
  border-radius: 22px;
  background: #fafafa;
  color: #6b7280;
  text-align: center;
  font-size: 15px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
  border-color: #dddddd;
}

.collection-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.10),
    0 16px 36px rgba(15, 23, 42, 0.10);
  border-color: #cfcfcf;
}

.collection-media {
  position: relative;
  height: 230px;
  background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
  overflow: hidden;
}

.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.collection-card:hover .collection-media img {
  transform: scale(1.03);
}

.collection-placeholder {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.collection-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(17, 24, 39, 0.06);
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.collection-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  gap: 10px;
}

.collection-title {
  margin: 0;
  color: #111111;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.collection-desc {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 4);
}

.collection-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collection-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.collection-arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.collection-card:hover .collection-arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .shop-wrap {
    padding: 22px 16px 40px;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .shop-count {
    min-height: 36px;
    padding: 7px 12px;
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .collection-card {
    min-height: 350px;
    border-radius: 20px;
  }

  .collection-media {
    height: 190px;
  }

  .collection-body {
    padding: 16px 14px 14px;
  }

  .collection-title {
    font-size: 16px;
  }

  .collection-desc {
    font-size: 13px;
    min-height: calc(1.55em * 4);
  }
}

@media (max-width: 640px) {
  .shop-wrap {
    padding: 18px 12px 32px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collection-card {
    min-height: 0;
  }

  .collection-media {
    height: 220px;
  }

  .collection-body {
    gap: 8px;
  }

  .collection-meta {
    padding-top: 6px;
  }
}