.creator-storefront {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px 54px;
}

.creator-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.creator-profile-avatar {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dedede;
  background: #f4f4f4;
}

.creator-profile-copy {
  min-width: 0;
}

.creator-profile-eyebrow {
  margin: 0 0 6px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-profile-name {
  margin: 0;
  color: #151515;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
}

.creator-profile-code {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.creator-profile-bio {
  max-width: 680px;
  margin: 12px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.creator-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 20px;
}
.creator-section-head > div:first-child { min-width: 0; }

.creator-section-head h2 {
  margin: 0;
  color: #171717;
  font-size: 22px;
}

.creator-section-head p {
  margin: 6px 0 0;
  color: #777;
  font-size: 14px;
}

.creator-catalog-controls { display: flex; align-items: flex-start; gap: 12px; flex: 0 1 500px; min-width: 0; max-width: 100%; }
.creator-search-form { display: flex; flex: 1 1 300px; min-width: 0; flex-direction: column; gap: 7px; margin: 0; }
.creator-search-label { font-size: 12px; line-height: 18px; font-weight: 600; color: #555; }
.creator-search-input-row { display: flex; gap: 8px; min-width: 0; }
.creator-search-input-row input { box-sizing: border-box; width: 0; min-width: 0; flex: 1 1 0; height: 44px; padding: 0 12px; border: 1px solid #d8d8d8; border-radius: 9px; background: #fff; color: #171717; font: inherit; font-size: 14px; }
.creator-search-input-row input::placeholder { color: #858585; opacity: 1; }
.creator-search-input-row button { box-sizing: border-box; flex: 0 0 auto; height: 44px; padding: 0 17px; border: 1px solid #111; border-radius: 9px; background: #111; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.creator-search-input-row button:hover { background: #303030; }
.creator-search-input-row button:active { background: #000; }
.creator-search-clear { color: #555; font-size: 12px; line-height: 18px; align-self: flex-start; text-underline-offset: 3px; }
.creator-search-clear:hover { color: #111; }
.creator-search-summary { margin: -4px 0 20px; color: #666; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.creator-catalog-controls :focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.creator-search-input-row input:focus,
.creator-sort-form select:focus { outline: none; box-shadow: none; border-color: #888; }

.creator-sort-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  flex: 0 0 auto;
  margin: 0;
}

.creator-sort-form label {
  color: #555;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.creator-sort-form select {
  min-width: 128px;
  box-sizing: border-box;
  height: 44px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  padding: 0 10px;
}

.creator-design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.creator-design-grid.is-masonry { position: relative; display: block; }
.creator-design-grid.is-masonry > .creator-design-card { position: absolute; }
.creator-design-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.creator-design-link:focus-visible { outline: 3px solid #206757; outline-offset: -3px; }
.storefront-pin-button { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 1px solid rgba(0,0,0,.06); border-radius: 50%; background: rgba(255,255,255,.94); color: #9299a1; box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; }
.storefront-pin-button svg { display: block; width: 23px; height: 23px; pointer-events: none; }
.storefront-pin-button[data-is-pinned="1"] { color: #d73743; }
.storefront-pin-button:hover { background: #fff; }
.storefront-pin-button:disabled { opacity: .6; cursor: wait; }
.storefront-pin-button:focus-visible { outline: 3px solid #206757; outline-offset: 2px; }
.storefront-pin-help,.storefront-pin-message { font-size: 14px; line-height: 1.5; color: #555; }

.creator-design-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.creator-design-card:hover,
.creator-design-card:focus-visible {
  transform: translateY(-3px);
  border-color: #d8d8d8;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  outline: none;
}

.creator-design-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}

.creator-design-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.creator-design-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 16px;
  text-align: center;
}

.creator-design-name {
  width: min(100%, 24ch);
  margin: 0;
  color: #202020;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.creator-design-price {
  color: #202020;
  font-size: 14px;
  font-weight: 700;
}

.creator-design-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #f8f8f8;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.creator-popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.creator-state {
  width: min(680px, 100%);
  margin: 70px auto;
  padding: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  color: #555;
}

.creator-state h1,
.creator-state h2 {
  margin: 0 0 8px;
  color: #171717;
}

.creator-state p {
  margin: 0;
  font-size: 15px;
}

.card-affiliate-link {
  color: #6b6f76;
  text-decoration: none;
}

.card-affiliate-link:hover,
.card-affiliate-link:focus-visible {
  color: #111;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 640px) {
  .creator-storefront {
    padding: 22px 14px 42px;
  }

  .creator-profile-hero {
    align-items: flex-start;
    padding: 18px;
  }

  .creator-profile-avatar {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }

  .creator-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-design-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }
}
.creator-design-variants {
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.35;
}

/* Keep the title and toolbar comfortable before the mobile card breakpoint. */
@media (max-width: 1050px) {
  .creator-section-head { flex-direction: column; gap: 18px; }
  .creator-catalog-controls { flex: 0 1 auto; width: 100%; }
}
@media (max-width: 540px) {
  .creator-catalog-controls { flex-direction: column; gap: 14px; }
  .creator-search-form { flex: 0 1 auto; width: 100%; }
  .creator-sort-form { flex-direction: row; align-items: center; gap: 10px; }
  .creator-sort-form select { min-width: 150px; }
  .creator-section-head { margin-top: 26px; }
}
