/* Seller shop - Lovable storefront reference */
:root {
  --seller-navy: 224 72% 22%;
  --seller-ink: 222 63% 10%;
  --seller-muted: 222 19% 38%;
  --seller-page: 40 33% 97%;
  --seller-panel: 0 0% 100%;
  --seller-soft: 38 26% 94%;
  --seller-gold: 42 82% 53%;
  --seller-gold-soft: 42 86% 88%;
  --seller-teal: 174 48% 38%;
  --seller-line: 35 22% 86%;
}

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

.seller-hero {
  position: relative;
}

.seller-cover {
  background: linear-gradient(135deg, hsl(var(--seller-navy)) 0%, hsl(224 72% 30%) 100%);
  height: 12rem;
}

.seller-profile-panel {
  background: hsl(var(--seller-panel));
  border: 1px solid hsl(var(--seller-line));
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  margin-top: -72px;
  padding: 22px;
  position: relative;
  z-index: 2;
}

.seller-profile-layout {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.seller-profile-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.seller-logo-tile {
  align-items: center;
  background: hsl(var(--seller-gold));
  border-radius: 24px;
  box-shadow: var(--shadow-gold);
  color: hsl(var(--seller-navy));
  display: flex;
  height: 88px;
  justify-content: center;
  width: 88px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.seller-logo-tile svg {
  width: 38px;
  height: 38px;
  stroke-width: 3;
}

.seller-title {
  align-items: center;
  color: hsl(var(--seller-ink));
  display: flex;
  flex-wrap: wrap;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  gap: 8px;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}

.seller-title a {
  color: inherit;
}

.seller-verified {
  align-items: center;
  color: hsl(var(--seller-navy));
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.seller-verified.is-unverified {
  color: hsl(0 72% 48%);
}

.seller-verified svg {
  height: 24px;
  width: 24px;
}

.seller-meta-row {
  align-items: center;
  color: hsl(222 18% 38%);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 20px;
  line-height: 1.2;
  margin: 12px 0 0;
}

.seller-meta-row span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.seller-meta-row svg {
  color: currentColor;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.seller-rating svg {
  color: hsl(var(--seller-gold));
}

.seller-rating strong {
  color: hsl(var(--seller-ink));
  font-weight: 700;
}

.seller-description {
  color: hsl(var(--seller-muted));
  font-size: 15px;
  line-height: 1.625;
  margin: 16px 0 0;
  max-width: 672px;
}

.seller-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
}

.seller-follow-btn,
.seller-contact-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  min-width: 150px;
  padding: 0 24px;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.seller-follow-btn {
  background: hsl(var(--seller-navy));
  color: #fff;
}

.seller-follow-btn:hover {
  background: hsl(224 72% 28%);
  transform: translateY(-1px);
}

.seller-contact-btn {
  background: #fff;
  border: 1px solid hsl(222 24% 82%);
  color: hsl(var(--seller-navy));
  gap: 10px;
}

.seller-contact-btn:hover {
  border-color: hsl(var(--seller-navy));
}

.seller-contact-btn svg {
  height: 16px;
  width: 16px;
}

.seller-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.seller-stat {
  align-items: center;
  background: hsl(var(--seller-soft));
  border-radius: 16px;
  display: flex;
  gap: 12px;
  min-height: 74px;
  padding: 16px;
}

.seller-stat-icon {
  align-items: center;
  background: hsl(var(--seller-gold-soft));
  border-radius: 12px;
  color: hsl(var(--seller-navy));
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.seller-stat-icon svg {
  height: 20px;
  width: 20px;
}

.seller-stat strong,
.seller-stat small {
  display: block;
}

.seller-stat strong {
  color: hsl(var(--seller-ink));
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.08;
}

.seller-stat small {
  color: hsl(222 23% 33%);
  font-size: 12px;
  line-height: 1.25;
  margin-top: 4px;
}

.seller-storefront {
  padding-bottom: 96px;
  padding-top: 40px;
}

.seller-tabs {
  align-items: center;
  background: hsl(var(--seller-soft) / .6);
  border-radius: 999px;
  display: inline-flex;
  height: 44px;
  gap: 0;
  margin-bottom: 32px;
  padding: 4px;
}

.seller-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: hsl(222 18% 38%);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  padding: 0 20px;
}

.seller-tabs button.is-active {
  background: #fff;
  box-shadow: 0 1px 2px hsl(var(--seller-ink) / .06);
  color: hsl(var(--seller-ink));
}

.seller-tab-panel {
  display: none;
  margin-top: 0;
}

.seller-tab-panel.is-active {
  display: block;
}

.seller-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.seller-category-pills span {
  background: hsl(var(--seller-soft));
  border-radius: 999px;
  color: hsl(var(--seller-muted));
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  text-transform: capitalize;
}

.seller-category-pills span.is-active {
  background: hsl(var(--seller-navy));
  color: #fff;
}

.seller-product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-about-grid {
  display: grid;
  gap: 32px;
}

.seller-story-card,
.seller-info-card,
.seller-policy-grid article {
  background: hsl(var(--seller-soft) / .4);
  border-radius: 24px;
  padding: 32px;
}

.seller-info-card {
  background: #fff;
  border: 1px solid hsl(var(--seller-line));
}

.seller-story-card h2,
.seller-info-card h3,
.seller-policy-grid h3 {
  color: hsl(var(--seller-ink));
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
}

.seller-story-card h2:not(:first-child) {
  margin-top: 32px;
}

.seller-story-card p,
.seller-policy-grid p {
  color: hsl(var(--seller-muted));
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.seller-story-card ul {
  color: hsl(var(--seller-muted));
  line-height: 1.7;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seller-story-card li::before {
  content: '- ';
}

.seller-info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.seller-info-card dt {
  color: hsl(var(--seller-muted));
  font-size: 14px;
}

.seller-info-card dd {
  color: hsl(var(--seller-ink));
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.seller-policy-grid {
  display: grid;
  gap: 24px;
}

/* Legacy filtered pages still use these pieces. */
.shop-coupons-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .shop-coupons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .shop-coupons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shop-coupon-card {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  border-radius: 20px;
}

.shop-coupon-card::before {
  background: linear-gradient(135deg, hsl(var(--seller-navy)) 0%, hsl(220 45% 35%) 100%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 0;
}

.shop-coupon-card > * {
  position: relative;
  z-index: 1;
}

.shop-coupon-card.is-seller::before { background: linear-gradient(135deg, #5a9a99 0%, #3d7271 100%); }
.shop-coupon-card.is-welcome::before { background: linear-gradient(135deg, #98b3d1 0%, #5f4a8b 100%); }
.shop-coupon-card.is-admin::before { background: linear-gradient(135deg, #e2583e 0%, #bf1931 100%); }

.shop-coupon-discount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.shop-coupon-shop {
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .9;
  text-transform: uppercase;
}

.shop-coupon-detail {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  opacity: .85;
}

.shop-coupon-code {
  align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, .35);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
}

.shop-coupon-code span {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
}

.shop-coupon-copy {
  align-items: center;
  background: rgba(255, 255, 255, .2);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  transition: background .2s;
  width: 36px;
}

.shop-listing-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .shop-listing-layout {
    grid-template-columns: 260px 1fr;
  }
}

.shop-pagination {
  margin-top: 40px;
}

.shop-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-pagination .page-link,
.shop-pagination .page-item span {
  align-items: center;
  border: 1px solid hsl(var(--seller-line));
  border-radius: 999px;
  color: hsl(var(--seller-muted));
  display: flex;
  font-size: 14px;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
  text-decoration: none;
}

.shop-pagination .page-item.active span {
  background: hsl(var(--seller-navy));
  border-color: hsl(var(--seller-navy));
  color: #fff;
}

.shop-brand-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.shop-brand-option {
  cursor: pointer;
}

.shop-brand-option input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.shop-brand-option-box {
  align-items: center;
  border: 1px solid hsl(var(--seller-line));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.shop-brand-option input:checked + .shop-brand-option-box {
  border-color: hsl(var(--seller-navy));
  box-shadow: 0 0 0 2px hsl(var(--seller-navy) / .15);
}

.shop-brand-option-box img {
  height: 48px;
  margin-bottom: 8px;
  object-fit: contain;
  width: 48px;
}

.shop-brand-option-box span {
  color: hsl(var(--seller-ink));
  font-size: 12px;
  text-align: center;
}

/* Unverified seller page compatibility */
.shop-unverified-page {
  padding-bottom: 96px;
  padding-top: 48px;
}

.shop-unverified-hero {
  margin: 0 auto 40px;
  max-width: 32rem;
  text-align: center;
}

.shop-unverified-card {
  background: #fff;
  border: 1px solid hsl(var(--seller-line));
  border-radius: 24px;
  box-shadow: var(--shadow-elev);
  margin: 0 auto;
  max-width: 28rem;
  padding: 32px;
  text-align: center;
}

.shop-unverified-icon {
  align-items: center;
  background: hsl(var(--seller-gold) / .15);
  border-radius: 999px;
  color: hsl(38 92% 40%);
  display: flex;
  height: 56px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 56px;
}

.shop-unverified-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
}

.shop-unverified-card p {
  color: hsl(var(--seller-muted));
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.shop-unverified-profile {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.shop-hero-logo {
  background: hsl(var(--seller-gold));
  border-radius: 20px;
  box-shadow: 0 8px 24px hsl(var(--seller-ink) / .08);
  flex-shrink: 0;
  height: 88px;
  overflow: hidden;
  width: 88px;
}

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

.shop-hero-eyebrow {
  color: hsl(var(--seller-muted));
  font-size: 11px;
  letter-spacing: .2em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.shop-hero-title {
  align-items: center;
  color: hsl(var(--seller-ink));
  display: flex;
  flex-wrap: wrap;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  gap: 8px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.shop-verified {
  align-items: center;
  color: hsl(var(--seller-navy));
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.shop-verified.is-unverified {
  color: hsl(0 84% 60%);
}

.shop-verified svg {
  height: 16px;
  width: 16px;
}

.shop-hero-meta {
  align-items: center;
  color: hsl(var(--seller-muted));
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px 20px;
}

.shop-hero-stars {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.shop-hero-stars .star {
  color: hsl(var(--seller-gold));
  height: 14px;
  width: 14px;
}

.shop-follow-btn {
  align-items: center;
  background: hsl(var(--seller-navy));
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-width: 180px;
  padding: 12px 24px;
  text-decoration: none;
  transition: all .2s;
}

@media (min-width: 1024px) {
  .seller-cover {
    height: 16rem;
  }

  .seller-profile-layout {
    align-items: center;
    flex-direction: row;
    gap: 40px;
  }

  .seller-actions {
    align-items: flex-end;
    margin-left: auto;
    width: auto;
  }

  .seller-profile-panel {
    margin-top: -88px;
    padding: 36px;
  }

  .seller-logo-tile {
    height: 116px;
    width: 116px;
  }

  .seller-logo-tile svg {
    height: 50px;
    width: 50px;
  }

  .seller-title {
    font-size: 42px;
  }

  .seller-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-storefront {
    padding-top: 56px;
  }

  .seller-product-grid {
    gap: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seller-about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seller-story-card {
    grid-column: span 2;
  }
}

@media (min-width: 1280px) {
  .seller-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .seller-tabs {
    display: flex;
    width: 100%;
  }

  .seller-tabs button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
  }

  .seller-stats-grid,
  .seller-product-grid {
    grid-template-columns: 1fr;
  }
}
