/* ==========================================================================
   Korners — Shop Hero (Banner + Identity Bar)
   Self-contained stylesheet. Only consumer: resources/views/frontend/partials/Shop_hero.blade.php
   Safe to remove entirely along with that partial with no impact elsewhere.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

.seller-store-header {
  --hero-navy: #020536;
  --hero-text: #070a2f;
  --hero-muted: #747887;
  --hero-line: rgba(7, 10, 47, 0.12);
  --hero-bronze: #8b7154;
}

.seller-hero {
  position: relative;
  width: 100%;
  height: clamp(190px, 23vw, 300px);
  overflow: hidden;
  background: #efe7da;
}

@media (max-width: 991px) {
  .seller-hero { height: clamp(170px, 24vw, 240px); }
}

@media (max-width: 767px) {
  .seller-hero { height: 174px; }
}

@media (max-width: 420px) {
  .seller-hero { height: 158px; }
}

/* Uploaded seller banner: cover + adjustable focal point (banner_x / banner_y) */
.seller-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--banner-x, 50%) var(--banner-y, 50%);
}

/* Very light polish only — must never hide or redesign the seller's own banner */
.seller-hero.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 10, 47, 0.035));
}

/* ---------- No-banner fallback state ---------- */
.seller-hero.no-banner img {
  object-fit: cover;
  object-position: center;
}

.seller-hero.no-banner .hero-storename {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}

.seller-hero.no-banner .hero-storename span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(
    180deg,
    #F8E9B5 0%,
    #E2C16B 34%,
    #C9964A 64%,
    #8E5F2A 82%,
    #E7C975 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Identity bar (floating overlapping card, per agreed design) ---------- */
.identity-shell {
  position: relative;
  z-index: 5;
  margin: -24px auto 0;
}

.seller-identity {
  min-height: 108px;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hero-line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(7, 10, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.seller-identity__left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.seller-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  flex: 0 0 78px;
  background: radial-gradient(circle at 30% 20%, #fffaf0 0%, #f7f0e6 58%, #ece2d5 100%);
  border: 1px solid rgba(139, 113, 84, 0.48);
  box-shadow: 0 12px 30px rgba(7, 10, 47, 0.08), inset 0 0 0 5px rgba(255, 255, 255, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Initials placeholder — used only when the seller has no uploaded logo */
.seller-logo__initials {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 30px;
  color: var(--hero-bronze);
  letter-spacing: 0.02em;
}

.seller-info { min-width: 0; }

.seller-info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.seller-info h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

.hero-verified {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--hero-muted);
}

.hero-stars {
  color: var(--hero-text);
  letter-spacing: 2px;
  font-size: 15px;
  line-height: 1;
}

.hero-location {
  color: var(--hero-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 8px;
}

.hero-social__label {
  font-size: 10px;
  font-weight: 400;
  color: var(--hero-muted);
  text-transform: uppercase;
}

.hero-social .social-md {
  display: flex;
  align-items: center;
}

.hero-social .social-md a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}

.hero-social .facebook { background: #3b5998; }
.hero-social .instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.hero-social .google { background: #db4437; }
.hero-social .twitter { background: #1da1f2; }
.hero-social .youtube { background: #ff0000; }

.hero-follow-btn {
  border: 0;
  background: var(--hero-navy);
  color: #ffffff;
  height: 36px;
  min-width: 150px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 5, 54, 0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.hero-follow-btn:hover,
.hero-follow-btn:focus {
  color: #ffffff;
  text-decoration: none;
}

.hero-follow-btn.followed {
  background: #28a745;
}

.hero-follow-btn span {
  font-size: 18px;
  line-height: 0;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .seller-identity { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 767px) {
  .identity-shell {
    margin-top: -18px;
    padding: 0 14px;
  }

  .seller-identity {
    padding: 16px;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .seller-identity__left { gap: 14px; }
  .seller-logo { width: 62px; height: 62px; flex-basis: 62px; }
  .seller-logo__initials { font-size: 22px; }
  .seller-info h1 { max-width: calc(100vw - 140px); font-size: 17px; }
  .hero-rating, .hero-location { font-size: 12px; }
  .hero-stars { font-size: 13px; letter-spacing: 1.5px; }
  .hero-follow-btn { width: 100%; height: 44px; }
}
