/**
 * Shared store hero (wallpaper + name + description + logo).
 * Used by storefront index and admin design preview so both match.
 * Admin-only edit chrome lives in admin.css (.design-wallpaper-controls, inputs).
 */

.store-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 22rem;
  background-color: transparent;
}

.store-hero.has-wallpaper {
  /*
   * Tall stage (near phone composition). A short wide banner + object-fit:cover
   * zooms into the center and throws away most of the wallpaper on desktop.
   */
  min-height: clamp(40rem, 90svh, 60rem);
}

.store-hero-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  /* Cover still fills the frame, but the taller stage crops far less. */
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.store-hero.has-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Heavier toward the copy band so name + description stay readable on bright photos. */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.4) 42%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.store-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 2rem;
  width: 100%;
  padding: 4.5rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

.store-hero-copy {
  min-width: 0;
}

.store-hero-name {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.store-hero-description {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 1.2rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft, rgba(0, 0, 0, 0.55));
  font-size: 1.05rem;
  line-height: 1.6;
}

body[data-theme="dark"] .store-hero-description {
  color: var(--text-soft, rgba(255, 255, 255, 0.7));
}

body[data-theme="dark"] .store-hero-logo {
  border-color: #E5E5E5;
  background: #000000;
  color: #FFFFFF;
}

.store-hero-logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.store-hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  overflow: hidden;
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.store-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-logo-fallback {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.store-hero.has-wallpaper .store-hero-name,
.store-hero.has-wallpaper .store-hero-description {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.4);
}

.store-hero.has-wallpaper .store-hero-description {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
}

@media (max-width: 800px) {
  .store-hero.has-wallpaper {
    /* Keep the phone-tall fill that already looks right on mobile. */
    min-height: clamp(22rem, 72svh, 36rem);
  }

  .store-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3.2rem;
  }

  .store-hero-name {
    font-size: 3.1rem;
  }

  .store-hero-logo-wrap {
    justify-content: flex-start;
  }

  .store-hero-logo {
    width: 5.5rem;
    height: 5.5rem;
  }
}
