/* ================================================================
   Me2You - Public seller shop page styles
   Moved out of the inline <style> block and inline style attributes
   on app/seller/profile.php. Reuses shared design tokens from site.css.
   The trust badge colours (trust_badge_html) and per-listing thumbnail
   background-image stay inline because they are generated per request.
   ================================================================ */

.shop-cover {
  height: 180px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Per-seller cover values arrive via data-style-vars from cover_style().
     --cover-img is a url(...) or 'none'; --cover-bg is the brand gradient
     fallback when no upload exists. */
  background: var(--cover-bg, linear-gradient(135deg, #FFF1DD, var(--ink-200))) var(--cover-img, none) center / cover no-repeat;
}
.shop-cover + .shop-header {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  margin-top: -28px;
}
.shop-header {
  background: var(--paper);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.shop-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  background: var(--brand-orange-100);
  flex-shrink: 0;
  margin-top: -56px;
}
.shop-avatar .m2y-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.shop-name {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}
.shop-persona {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #FFE7C8;
  color: #9A5309;
  margin-top: 6px;
}
.shop-headline {
  font-size: 15px;
  color: var(--ink-700);
  margin-top: 8px;
  font-weight: 600;
}
.shop-bio {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
  margin-top: 8px;
  white-space: normal;
}
.shop-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #3D342E;
}
.shop-meta-row .dot { color: #6B5E55; }
.shop-stars { color: #9A5309; letter-spacing: 1px; font-size: 14px; }
.shop-stars .empty { color: #6B5E55; }
.shop-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.shop-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--brand-orange-700);
  text-decoration: none;
  font-weight: 600;
}
.shop-socials a:hover { text-decoration: underline; }
.shop-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
/* Inline forms inside the action row do not break the flex flow */
.shop-action-form {
  display: inline;
}
.shop-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ink-300);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.shop-tab {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.shop-tab.active {
  color: var(--brand-orange-700);
  border-bottom-color: var(--brand-orange);
}
.shop-tab .count {
  font-weight: 400;
  color: var(--ink-400);
  font-size: 12px;
  margin-left: 4px;
}
.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.shop-controls .count-label {
  font-size: 13px;
  color: var(--ink-500);
}
/* Sort label sits flush with the select */
.shop-controls .count-label--inline {
  margin: 0;
}
.shop-controls select {
  min-height: 36px;
  font-size: 13px;
}
.shop-card {
  position: relative;
}
.shop-card .price-tag {
  font-weight: 700;
  color: var(--ink-900);
}
@media (max-width: 575.98px) {
  .shop-cover { height: 130px; }
  .shop-header { padding: 18px; }
  .shop-avatar { width: 72px; height: 72px; margin-top: -44px; }
  .shop-avatar .m2y-avatar { width: 72px; height: 72px; }
  .shop-name { font-size: 22px; }
  .shop-actions { flex-direction: column; }
  .shop-actions .btn { width: 100%; }
}

/* keyboard-reachable submit when JS is off, hidden visually otherwise */
.sp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sp-visually-hidden:focus,
.sp-visually-hidden:focus-visible {
  position: static !important;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
}

.shop-handle {
  margin: 2px 0 0;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  color: var(--ink-500, #6B5E55);
}
