:root {
  --shop-gradient:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(
      circle at 20% 20%,
      rgba(45, 212, 191, 0.2),
      transparent 40%
    ),
    var(--bg-alt);
}

.page--shop {
  background: var(--shop-gradient);
  min-height: 100vh;
}

.page--creator {
  background: var(--shop-gradient);
  min-height: 100vh;
}

.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(15, 23, 42, 0.75)),
    var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-hero__content h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.shop-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  margin: 0;
}

.shop-hero__copy {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.shop-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-hero__stat {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  align-self: center;
  text-align: left;
}

.shop-hero__stat span {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-secondary);
  display: block;
}

.collection {
  background: rgba(2, 6, 23, 0.85);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.65);
}

.collection__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.collection__header h2 {
  margin: 0.3rem 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.collection__header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 460px;
}

.collection__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.65);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  transition:
    transform 0.2s ease,
    border 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  max-height: 450px;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.product-card__body {
  padding: 1.2rem 1.4rem 1.5rem;
}

.product-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.product-card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-card__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: flex;
  gap: 0.4rem;
}

.product-card__edit,
.product-card__remove {
  background: rgba(2, 6, 23, 0.8);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
}

.product-card__edit {
  border-color: rgba(59, 130, 246, 0.55);
  color: rgba(191, 219, 254, 0.95);
}

.product-card__edit:hover {
  background: rgba(59, 130, 246, 0.12);
}

.product-card__remove {
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: rgba(248, 113, 113, 0.95);
}

.product-card__remove:hover {
  background: rgba(248, 113, 113, 0.12);
}

.product-empty {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.product-empty.hidden {
  display: none;
}

.creator-console {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.creator-console__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.creator-console__logout {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.creator-console__status {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.creator-console__form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(2, 6, 23, 0.65);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.creator-console__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.creator-console__form input,
.creator-console__form select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  padding: 0.75rem;
}

.creator-console__form input:focus,
.creator-console__form select:focus {
  outline: 2px solid rgba(56, 189, 248, 0.4);
}

.creator-console__form--product .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.creator-console__feedback {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 500;
}

.creator-console__feedback.success {
  color: var(--accent);
}

.creator-console__feedback.error {
  color: var(--danger);
}

/* Creator console standalone page */

.creator-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.85)),
    var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.creator-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.creator-hero__stat {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.creator-invite {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.creator-invite__card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  padding: 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.6);
}

.creator-invite__card h2 {
  margin: 0.5rem 0 1rem;
}

.creator-invite__card p {
  color: var(--text-muted);
  max-width: 640px;
}

.creator-invite__card .button {
  margin-top: 1.5rem;
}

.creator-preview {
  background: rgba(2, 6, 23, 0.85);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.creator-preview + .creator-preview {
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .shop-hero,
  .creator-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-main {
    padding: 2rem 1rem 4rem;
  }

  .collection,
  .creator-console,
  .shop-hero {
    padding: 1.8rem 1.4rem;
  }

  .shop-hero__cta {
    flex-direction: column;
  }
}
