/* The public store page (store.php). Moved out of the page unchanged. */
/* ==========================================================
   SELLER STOREFRONT STYLING — MESSTERS DESIGN SYSTEM
   ========================================================== */

/* Hero Header (Centered on Dark Green Textured Backdrop) */
.page-hero.store-hero {
  padding: 150px clamp(20px, 5vw, 40px) 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.store-hero-avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  padding: 3px;
  background: rgba(11, 70, 56, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--light-green);
}

.store-hero-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.store-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-transform: uppercase;
}

.store-creator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c25e38; /* warm terracotta / rust */
  box-shadow: 0 0 10px rgba(194, 94, 56, 0.7);
  flex-shrink: 0;
}

.store-hero .page-headline {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
}

.store-hero .page-subhead {
  color: rgba(237, 227, 212, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin: 0;
  font-weight: 500;
}

/* Storefront Body Section */
.store-content-section {
  position: relative;
  z-index: 2;
  background: var(--cream-soft);
  padding: 44px clamp(16px, 3vw, 28px) 90px;
  min-height: 80vh;
}

.storefront-wrapper {
  max-width: var(--container);
  margin: 0 auto;
}

/* Store Quick Info / Maker Summary in Body */
.store-body-summary-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 70, 56, 0.08);
  box-shadow: 0 16px 40px -12px rgba(11, 70, 56, 0.08);
  padding: 26px clamp(20px, 4vw, 32px);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-summary-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 70, 56, 0.08);
}

.store-identity{ display:flex; align-items:center; gap:14px; min-width:0; }
.store-body-logo{ width:64px; height:64px; flex:0 0 64px; border-radius:50%; overflow:hidden; background:var(--light-green); display:flex; align-items:center; justify-content:center; color:var(--forest); font:700 1.4rem var(--font-display); }
.store-body-logo img{ width:100%; height:100%; object-fit:cover; }
.store-profile-stats{ justify-content:flex-start; margin:0; }
.store-profile-stats .store-stat-pill{ background:transparent; padding:0; border:0; }
.store-profile-stats svg{ width:15px; height:15px; }
.store-icon-action{ width:42px; height:42px; padding:0; justify-content:center; }
.store-icon-action svg{ width:17px; height:17px; }
.store-follow-action svg{ width:16px; height:16px; }
.store-icon-action svg, .store-follow-action svg, .store-profile-stats svg{ color:var(--forest); stroke:currentColor; }

.store-maker-byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.store-maker-byline strong {
  color: var(--forest);
}

.store-maker-byline .dot-sep {
  opacity: 0.4;
}

.store-summary-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--charcoal);
  opacity: 0.9;
  max-width: 860px;
  margin: 0;
}

/* Stat & Trust Badges */
.store-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.store-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-soft);
  border: 1px solid rgba(15, 70, 56, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}

.store-stat-pill svg {
  color: var(--rust);
}

/* Actions & Social */
.store-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-store-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
}

.btn-store-primary {
  background: var(--forest);
  color: var(--cream-soft);
}
.btn-store-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(15, 70, 56, 0.4);
}

.btn-store-outline {
  background: #ffffff;
  color: var(--charcoal);
  border: 1.5px solid rgba(32, 34, 31, 0.18);
}
.btn-store-outline:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-2px);
}

.store-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.store-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  border: 1px solid rgba(15,70,56,0.08);
}
.store-social-btn:hover {
  background: var(--forest);
  color: var(--cream-soft);
  transform: translateY(-2px);
}

/* ================= TABS NAVIGATION ================= */
/* .store-tabs-nav-sticky positioning lives in the seller-profile block at
   the end of this stylesheet, where it can offset the fixed public navbar. */

.store-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 70, 56, 0.1);
  box-shadow: 0 10px 30px -8px rgba(11, 70, 56, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.store-tabs-nav{ min-width:0; }
.store-tabs-nav::-webkit-scrollbar { display: none; }

.store-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.store-tab-btn svg{ flex-shrink: 0; }

.tab-icon-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-count-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rust);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  transition: all 0.25s var(--ease);
}

.store-tab-btn:hover {
  color: var(--forest);
  background: var(--cream-soft);
}

.store-tab-btn.is-active {
  background: var(--forest);
  color: var(--cream-soft);
}
.store-tab-btn.is-active .tab-count-badge {
  border-color: var(--forest);
}

/* ================= TAB PANELS ================= */
.store-tab-panel {
  display: none;
  animation: fadeInPanel 0.35s var(--ease);
}
.store-tab-panel.is-active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter Controls Bar (Inside Products Tab) */
.store-filter-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 26px;
  border: 1px solid rgba(15, 70, 56, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  background: var(--cream-soft);
  border: 1px solid rgba(15, 70, 56, 0.1);
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-chip:hover,
.filter-chip.is-active {
  background: var(--forest);
  color: var(--cream-soft);
  border-color: var(--forest);
}

.store-search-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-search-box {
  position: relative;
}
.store-search-input {
  background: var(--cream-soft);
  border: 1px solid rgba(15, 70, 56, 0.12);
  padding: 7px 12px 7px 34px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--charcoal);
  outline: none;
  width: 170px;
  transition: all 0.2s var(--ease);
}
.store-search-input:focus {
  width: 220px;
  border-color: var(--forest);
  background: #ffffff;
}
.store-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(32, 34, 31, 0.45);
  pointer-events: none;
}

.store-sort-select {
  background: var(--cream-soft);
  border: 1px solid rgba(15, 70, 56, 0.12);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--charcoal);
  outline: none;
  cursor: pointer;
}

/* Product Grid */
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Store products use the shared card (views/components/product-card.php, style.css .pcard). */

/* Empty State */
.store-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(15, 70, 56, 0.2);
}
.store-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ================= ABOUT TAB ================= */
.about-studio-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(15, 70, 56, 0.08);
  box-shadow: 0 8px 30px -10px rgba(11, 70, 56, 0.06);
  margin-bottom: 30px;
}

.about-studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .about-studio-grid { grid-template-columns: 1fr; }
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest-deep);
  margin-bottom: 14px;
}

.about-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--charcoal);
  opacity: 0.88;
  margin-bottom: 24px;
}

.studio-specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: var(--cream-soft);
  padding: 20px;
  border-radius: var(--radius-md);
}

.spec-item h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
  margin-bottom: 4px;
}
.spec-item p {
  font-weight: 600;
  color: var(--forest-deep);
  font-size: 0.92rem;
}

.craft-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.craft-pillar {
  background: #ffffff;
  border: 1px solid rgba(15, 70, 56, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.craft-pillar-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 6px;
}
.craft-pillar h4 {
  font-size: 0.95rem;
  color: var(--forest);
  margin-bottom: 6px;
}
.craft-pillar p {
  font-size: 0.84rem;
  color: var(--charcoal);
  opacity: 0.8;
  line-height: 1.5;
}

/* ================= REVIEWS TAB ================= */
.reviews-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}
@media (max-width: 820px) {
  .reviews-container { grid-template-columns: 1fr; }
}

.review-summary-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(15, 70, 56, 0.08);
  text-align: center;
  height: fit-content;
}
.rating-big-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}
.stars-row {
  color: #f59e0b;
  font-size: 1.25rem;
  margin: 8px 0;
  letter-spacing: 2px;
}
.review-count-label {
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.7;
  margin-bottom: 20px;
}

.rating-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest-deep);
  padding: 8px 0;
  border-top: 1px solid rgba(15,70,56,0.08);
}

.review-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(15, 70, 56, 0.08);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.reviewer-name {
  font-weight: 600;
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified-tag {
  background: rgba(15, 70, 56, 0.08);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.review-date {
  font-size: 0.8rem;
  color: rgba(32,34,31,0.5);
}
.review-item-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 8px;
}
.review-comment {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ================= POLICIES & FAQ TAB ================= */
.policies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .policies-grid { grid-template-columns: 1fr; }
}

.policy-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(15, 70, 56, 0.08);
}
.policy-box h3 {
  font-size: 1.1rem;
  color: var(--forest-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.policy-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.85;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 70, 56, 0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon {
  transition: transform 0.25s var(--ease);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  padding: 0 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.85;
}
.faq-item.is-open .faq-answer {
  max-height: 200px;
  padding-bottom: 16px;
}

/* ================= CONTACT / CUSTOM ORDER TAB ================= */
.contact-maker-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(15, 70, 56, 0.08);
  box-shadow: 0 10px 30px -10px rgba(11, 70, 56, 0.06);
  max-width: 720px;
  margin: 0 auto;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .form-group-row { grid-template-columns: 1fr; }
}

.store-form-group {
  margin-bottom: 16px;
}
.store-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 6px;
}
.store-form-input,
.store-form-select,
.store-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 70, 56, 0.16);
  background: var(--cream-soft);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  outline: none;
  transition: all 0.2s var(--ease);
}
.store-form-input:focus,
.store-form-select:focus,
.store-form-textarea:focus {
  background: #ffffff;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(15, 70, 56, 0.1);
}

/* Live Toast Notification */
.store-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--forest-deep);
  color: var(--cream-soft);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 9999;
}
.store-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ================= INSTAGRAM-STYLE PROFILE HEADER ================= */
.store-hero-avatar-wrap{ margin-bottom: 6px; }

.store-ig-stats{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 40px);
  margin-top: 6px;
}
.store-ig-stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.store-ig-stat strong{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.store-ig-stat span{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(237,227,212,0.7);
}

.store-ig-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn-ig{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  text-decoration: none;
}
.btn-ig svg{ width:15px; height:15px; }
.btn-ig-follow{
  background: var(--rust);
  color: var(--cream-soft);
  box-shadow: 0 8px 20px -8px rgba(169,79,42,0.7);
}
.btn-ig-follow:hover{ background: var(--rust-light); transform: translateY(-2px); }
.btn-ig-following{
  background: rgba(237,227,212,0.14);
  color: var(--cream);
  border: 1.5px solid rgba(237,227,212,0.4);
}
.btn-ig-following:hover{ background: rgba(237,227,212,0.22); }
.btn-ig-outline{
  background: rgba(237,227,212,0.08);
  color: var(--cream);
  border: 1.5px solid rgba(237,227,212,0.3);
}
.btn-ig-outline:hover{ background: rgba(237,227,212,0.16); }

.store-body-summary-card > .store-social-links{ margin-left: 0; justify-content: center; }

/* ================= RESPONSIVE — MOBILE ================= */
@media (max-width: 640px){
  .store-hero-avatar-wrap{ width: 84px; height: 84px; }
  .store-ig-stats{ gap: clamp(16px, 8vw, 28px); }
  .store-ig-stat strong{ font-size: 1.1rem; }
  .store-ig-stat span{ font-size: 0.64rem; }
  .btn-ig{ padding: 9px 18px; font-size: 0.82rem; }

  /* The tab bar scrolls horizontally rather than squeezing every tab into
     one row of unlabelled icons — the labels are what make the tabs
     usable, and .store-tabs-nav already scrolls with its scrollbar hidden. */
  .store-tabs-nav{ padding: 6px; gap: 4px; }
  .store-tab-btn{ flex: 0 0 auto; padding: 9px 14px; gap: 7px; font-size: 0.84rem; }
  .store-tab-btn svg{ width: 17px; height: 17px; }
}

/* ==========================================================
   SELLER PROFILE — header, breadcrumbs, sticky tabs, modals
   Replaces the old decorative hero. One markup tree, responsive
   by CSS only — there is no separate mobile profile.
   ========================================================== */

/* The public navbar is fixed and renders transparent-on-dark, which only
   works over a hero. With the hero gone it gets the same solid treatment
   it already uses once scrolled, and the page reserves its height. */
.seller-profile-page {
  /* The fixed site header's real height (partials/nav.php). The old 64px
     predated the install bar and let the header cover the store avatar. */
  --sp-nav-h: var(--site-header-h, 114px);
  background: var(--cream-soft);
  /* The site sets `overflow-x: hidden` on <body>, which quietly turns the
     body into a scroll container and stops `position: sticky` working for
     anything inside it — which is why the tab bar used to scroll away.
     `clip` prevents the same horizontal overflow without creating that
     scroll container, so the sticky tabs below actually stick. */
  overflow-x: clip;
}

.seller-profile-page .site-nav {
  background: rgba(8, 38, 31, 0.98);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(245, 235, 221, 0.16);
}

.seller-profile-main {
  padding-top: var(--sp-nav-h);
}

.seller-profile-page .store-content-section {
  padding-top: 18px;
  min-height: auto;
}

/* ---------------- Profile header ---------------- */

.sp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(15, 70, 56, 0.1);
}

/* Avatar left, identity (name, location/maker, stats) right — the same
   two-column relationship at every width. */
.sp-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
  min-width: 0;
  flex: 1 1 320px;
}

.sp-avatar {
  width: clamp(76px, 18vw, 112px);
  height: clamp(76px, 18vw, 112px);
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-green);
  border: 2px solid rgba(15, 70, 56, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-avatar-fallback {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  color: var(--forest);
}

.sp-ident { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.sp-store-name {
  font-family: var(--font-display);
  /* Scales down before a long store name can break the two-column row. */
  font-size: clamp(1.3rem, 5.2vw, 2.1rem);
  line-height: 1.15;
  color: var(--forest);
  margin: 0;
  overflow-wrap: anywhere;
}

.sp-meta {
  font-size: clamp(0.78rem, 2.9vw, 0.95rem);
  color: rgba(32, 34, 31, 0.66);
  margin: 0;
  overflow-wrap: anywhere;
}

.sp-meta strong { color: var(--charcoal); font-weight: 700; }
.sp-meta-sep { margin-right: 2px; }

.sp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(12px, 4vw, 30px);
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.sp-stat { min-width: 0; }

.sp-stat-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 0;
  background: none;
  padding: 2px 0;
  font-family: var(--font-body);
  color: rgba(32, 34, 31, 0.6);
  font-size: clamp(0.7rem, 2.6vw, 0.82rem);
  white-space: nowrap;
}

.sp-stat-btn strong {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.4vw, 1.1rem);
  font-weight: 700;
  color: var(--forest);
}

button.sp-stat-btn { cursor: pointer; }
button.sp-stat-btn:hover strong,
button.sp-stat-btn:focus-visible strong { color: var(--rust); }
button.sp-stat-btn:hover span { color: var(--charcoal); }
.sp-stat-btn--static { cursor: default; }

/* ---------------- Actions ---------------- */

.sp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-action-form { margin: 0; display: contents; }

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.sp-btn i, .sp-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.sp-btn--primary { background: var(--rust); color: var(--cream-soft); }
.sp-btn--primary:hover { background: var(--rust-light); transform: translateY(-1px); }

.sp-btn--following { background: var(--light-green); color: var(--forest); border-color: rgba(15, 70, 56, 0.2); }
.sp-btn--following:hover { background: #cdddcb; }

.sp-btn--ghost { background: #fff; color: var(--forest); border-color: rgba(15, 70, 56, 0.2); }
.sp-btn--ghost:hover { background: var(--light-green); }

/* ---------------- Bio / description ---------------- */

.sp-block {
  margin-bottom: 20px;
  max-width: 900px;
}

.sp-block-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--forest);
  margin: 0 0 6px;
}

.sp-block-body {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(32, 34, 31, 0.82);
  margin: 0;
}

.sp-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.sp-meta-row .store-social-links { margin: 0; }

/* ---------------- Sticky tabs ----------------
   Parked immediately under the fixed public navbar rather than at the top
   of the viewport, so the bar never slides behind it. */

.store-tabs-nav-sticky {
  position: sticky;
  top: calc(var(--sp-nav-h, 64px) + 6px);
  z-index: 40;
  margin-bottom: 26px;
}

.seller-profile-page .store-tab-panel { scroll-margin-top: calc(var(--sp-nav-h) + 70px); }

/* ---------------- Modal / sheet shell ----------------
   Shared by the share dialog and the followers/following lists: centred
   card on desktop, full-height sheet on phones and tablets. */

.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 16, 0.5);
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.sp-modal[hidden] { display: none; }
.sp-modal.is-open { opacity: 1; }

/* Controls inside the dialogs set an explicit `display`, which would beat
   the browser's default [hidden] rule and leave them on screen. */
.sp-modal [hidden] { display: none !important; }

.sp-modal-card {
  width: min(440px, 100%);
  max-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px -22px rgba(11, 70, 56, 0.55);
  transform: translateY(12px) scale(0.985);
  transition: transform .22s var(--ease);
  overflow: hidden;
}

.sp-modal.is-open .sp-modal-card { transform: none; }

.sp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 70, 56, 0.1);
  flex-shrink: 0;
}

.sp-modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
  margin: 0;
}

.sp-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 34, 31, 0.07);
  color: rgba(32, 34, 31, 0.65);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-modal-close:hover { background: rgba(32, 34, 31, 0.14); }

.sp-modal-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------------- Share ---------------- */

.sp-share-targets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.sp-share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px;
  border: 1px solid rgba(15, 70, 56, 0.12);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.sp-share-target:hover { background: var(--light-green); border-color: rgba(15, 70, 56, 0.28); }
.sp-share-target svg { width: 20px; height: 20px; }

.sp-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sp-copy-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgba(15, 70, 56, 0.16);
  border-radius: 999px;
  background: var(--cream-soft);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--charcoal);
  text-overflow: ellipsis;
}

.sp-copy-input:focus { outline: none; border-color: var(--forest); background: #fff; }

.sp-copy-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream-soft);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.sp-copy-btn:hover { background: var(--forest-deep); }

.sp-copy-feedback {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest);
  min-height: 1.1em;
}

.sp-share-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: rgba(32, 34, 31, 0.55);
  line-height: 1.5;
}

/* ---------------- People list ---------------- */

.sp-people { display: flex; flex-direction: column; min-width: 0; }

.sp-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(15, 70, 56, 0.08);
  color: inherit;
  min-width: 0;
}
.sp-person:last-child { border-bottom: 0; }

/* The avatar + name are the navigable part, so the relationship buttons
   are never nested inside a link. */
.sp-person-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

a.sp-person-main:hover .sp-person-name { text-decoration: underline; }

.sp-person-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.sp-person-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sp-person-text { min-width: 0; display: flex; flex-direction: column; }

.sp-person-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-person-meta { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 3px; }

.sp-person-sub {
  font-size: 0.78rem;
  color: rgba(32, 34, 31, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---- relationship actions on a seller row ---- */

.sp-person-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.sp-person-btn--message { gap: 6px; position: relative; }
.sp-person-btn--message svg { flex-shrink: 0; }

.sp-person-action-form { margin: 0; display: contents; }

.sp-person-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(15, 70, 56, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.sp-person-btn:hover { background: var(--light-green); }
.sp-person-btn:disabled { opacity: 0.6; cursor: default; }

.sp-person-btn--primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream-soft);
}

.sp-person-btn--primary:hover { background: var(--rust-light); border-color: var(--rust-light); }

.sp-person-btn--following {
  background: var(--light-green);
  border-color: rgba(15, 70, 56, 0.24);
  color: var(--forest);
}

.sp-person-btn--following:hover { background: #cdddcb; }

.sp-person-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 70, 56, 0.09);
  color: var(--forest);
}

.sp-people-state {
  padding: 26px 8px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(32, 34, 31, 0.6);
}

.sp-people-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1.5px solid rgba(15, 70, 56, 0.2);
  background: #fff;
  color: var(--forest);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.sp-people-more:hover { background: var(--light-green); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .seller-profile-page .store-content-section {
    /* style.css clips this section with `overflow: hidden` on narrow
       screens, which makes it a scroll container and stops the tab bar
       sticking. `clip` keeps the same containment without that side
       effect — the same reason <body> uses it above. */
    overflow: clip;
    /* Clear the site's shared mobile bottom bar. */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 720px) {
  .sp-header {
    align-items: stretch;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
  /* Actions drop to their own row and share the width evenly; the avatar
     and identity column keep sitting side by side above them. */
  .sp-identity { flex: 1 1 100%; align-items: flex-start; }
  .sp-actions { width: 100%; }
  .sp-btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 0.8rem; }
  .sp-block { margin-bottom: 16px; }
}

@media (max-width: 520px) {
  /* Tightened so all four figures still sit on one line inside the
     identity column at 375px rather than wrapping. */
  .sp-stats { gap: 3px 12px; }
  .sp-stat-btn { gap: 4px; font-size: 0.68rem; }
  .sp-stat-btn strong { font-size: 0.88rem; }
}

@media (max-width: 420px) {
  .sp-stats { gap: 3px 9px; }
  .sp-stat-btn { font-size: 0.65rem; }
  .sp-btn { gap: 5px; font-size: 0.75rem; padding: 10px 6px; }
  .sp-btn i, .sp-btn svg { width: 14px; height: 14px; }
}

/* Phones and tablets get a full-height sheet rather than a small centred
   dialog, so a follower list reads like the rest of the app. Tablets keep
   the centred card: a full-height sheet there is mostly empty space. */
@media (max-width: 600px) {
  .sp-modal { padding: 0; align-items: flex-end; }
  .sp-modal-card {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    transform: translateY(100%);
  }
  .sp-modal.is-open .sp-modal-card { transform: none; }
  .sp-modal--sheet-compact .sp-modal-card {
    height: auto;
    max-height: 86vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .sp-modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* Phones and small tablets: Message becomes a round icon button, so Follow
   and Message stay on the row beside the name instead of overflowing it. */
@media (max-width: 600px) {
  .sp-person { gap: 10px; }
  .sp-person-avatar { width: 40px; height: 40px; }
  .sp-person-btn { padding: 7px 12px; }
  .sp-person-btn--message { width: 34px; height: 34px; padding: 0; }
  .sp-person-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The very narrowest screens: the buttons move under the name, inside the
   sheet's width (never wider than it). */
@media (max-width: 340px) {
  .sp-person { flex-wrap: wrap; }
  .sp-person-main { flex: 1 1 100%; }
  .sp-person-actions { width: 100%; box-sizing: border-box; padding-left: 50px; margin-left: 0; }
  .sp-person-actions > .sp-person-btn:not(.sp-person-btn--message),
  .sp-person-actions > .sp-person-action-form { flex: 1 1 auto; }
}

/* ==========================================================
   STORE PAGE — cover, identity chips, stat pills, about cards
   ========================================================== */
.sp-hero {
  position: relative;
  margin-bottom: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 70, 56, 0.1);
  box-shadow: 0 18px 40px -30px rgba(10, 49, 40, 0.55);
}
.sp-cover {
  height: clamp(96px, 16vw, 150px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(192, 95, 53, 0.55) 0%, rgba(192, 95, 53, 0) 60%),
    radial-gradient(circle at 12% 30%, rgba(248, 242, 231, 0.12) 0 2px, transparent 3px) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%);
}
.sp-hero .sp-header {
  margin: 0;
  padding: 0 clamp(16px, 3vw, 28px) 22px;
  border-bottom: 0;
}
.sp-hero .sp-identity { align-items: center; padding-top: 18px; }
.sp-hero .sp-avatar {
  border: 4px solid #fff;
  box-shadow: 0 10px 24px -12px rgba(10, 49, 40, 0.55);
  background: #fff;
}
.sp-hero .sp-ident { padding-top: 0; }
.sp-hero .sp-actions { align-self: flex-end; }

.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 70, 56, 0.07);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
}
.sp-chip svg { width: 13px; height: 13px; }
.sp-chip--verified { background: #e3ece2; }
.sp-chip--rating { background: #fdf3e1; color: #9a6412; }
.sp-chip--rating span { font-weight: 600; opacity: 0.8; }

/* Followers, following and the rest read as tappable pills. */
.sp-hero .sp-stats { gap: 8px; margin-top: 10px; }
.sp-hero .sp-stat-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1px solid rgba(15, 70, 56, 0.1);
  align-items: center;
}
.sp-hero button.sp-stat-btn { cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease); }
.sp-hero button.sp-stat-btn:hover { background: var(--light-green); border-color: rgba(15, 70, 56, 0.22); }

/* About the maker / the store: cards instead of loose text. */
.sp-block {
  max-width: none;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 70, 56, 0.08);
}
.sp-block-title { display: flex; align-items: center; gap: 8px; }
.sp-block-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}

/* Tab counts sit after the label, never on top of the icon. */
.store-tab-btn .tab-count-badge {
  position: static;
  margin-left: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 0;
}

@media (max-width: 720px) {
  .sp-hero .sp-identity { padding-top: 14px; }
  .sp-hero .sp-ident { padding-top: 0; }
  .sp-hero .sp-actions { width: 100%; }
  .sp-hero .sp-stats { gap: 6px; }
  .sp-hero .sp-stat-btn { padding: 5px 10px; }
}
@media (max-width: 420px) {
  .sp-hero .sp-stat-btn { padding: 4px 8px; }
  .sp-chip { font-size: 0.68rem; padding: 3px 8px; }
}

/* A seller-uploaded banner fills the cover (seller/profile.php). */
.sp-cover { position: relative; overflow: hidden; }
.sp-cover--image { height: clamp(120px, 24vw, 260px); background: var(--light-green); }
.sp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sp-chip--muted { background: rgba(32, 34, 31, 0.05); color: rgba(32, 34, 31, 0.65); }
.sp-hero .sp-header { padding-bottom: 20px; }
.sp-hero .sp-actions { align-self: center; }

/* Logo level with the store name: the logo spans the name and chips rows;
   location and stats run the full width underneath. */
.sp-hero .sp-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  flex: 1 1 420px;
}
.sp-hero .sp-ident { display: contents; }
.sp-hero .sp-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: clamp(64px, 11vw, 92px);
  height: clamp(64px, 11vw, 92px);
  align-self: center;
}
.sp-hero .sp-store-name { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
.sp-hero .sp-chips { grid-column: 2; grid-row: 2; align-self: start; margin: 6px 0 0; }
.sp-hero .sp-meta { grid-column: 1 / -1; margin: 12px 0 0; }
.sp-hero .sp-stats { grid-column: 1 / -1; }
@media (max-width: 420px) {
  .sp-hero .sp-identity { column-gap: 12px; }
  .sp-hero .sp-store-name { font-size: 1.35rem; }
}

/* The verified tick after the store name. No space before it in the markup,
   so it wraps with the last word and never sits alone on a line. */
.sp-verified {
  display: inline-flex;
  vertical-align: -0.12em;
  margin-left: 0.28em;
  color: #1d9b5e;
  width: 0.82em;
  height: 0.82em;
  min-width: 18px;
  min-height: 18px;
}
.sp-verified svg { width: 100%; height: 100%; display: block; }
.sp-name-end--keep { white-space: nowrap; }

/* ==========================================================
   OWNER EDITING (store.php for the store's own seller)
   ========================================================== */
.sp-owner-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fdf3e1;
  border: 1px solid rgba(183, 121, 31, 0.3);
  color: #7a4f0e;
  font-size: 0.86rem;
}
.sp-owner-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: #b7791f;
}
.sp-owner-bar__icon svg { width: 16px; height: 16px; }
.sp-owner-bar__text { flex: 1; min-width: 0; line-height: 1.45; }
.sp-owner-bar__links { display: flex; gap: 14px; flex-shrink: 0; }
.sp-owner-bar__link { font-weight: 800; color: var(--forest); white-space: nowrap; }

.sp-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(10, 49, 40, 0.5);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.sp-edit-btn:hover { background: var(--light-green); transform: translateY(-1px); }
.sp-edit-btn:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.sp-edit-btn svg { width: 15px; height: 15px; }
.sp-edit-btn--cover { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; z-index: 2; }
.sp-edit-btn--logo {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  z-index: 2;
}
.sp-edit-btn--logo:hover { transform: translateX(-50%) translateY(-1px); }
.sp-edit-btn--corner { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; }
.sp-hero .sp-avatar { position: relative; }
.sp-block { position: relative; }
.sp-block--empty { border-style: dashed; border-color: rgba(183, 121, 31, 0.45); background: #fffdf8; }
.sp-block--empty .sp-block-body { color: rgba(32, 34, 31, 0.55); font-style: italic; }
[data-edit-region="bio"] .sp-block-title,
[data-edit-region="description"] .sp-block-title { padding-right: 44px; }

.sp-edit-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sp-owner-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(15, 70, 56, 0.25);
}
.sp-owner-tools__hint { font-size: 0.78rem; color: rgba(32, 34, 31, 0.55); }

/* The edit dialogs (their frame is .admin-dialog in style.css). */
.store-edit-dialog .form-field { gap: 6px; }
.store-edit-dialog textarea { resize: vertical; min-height: 70px; }
.store-edit-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--forest-deep); }
.store-edit-faq { border: 1px solid rgba(15, 70, 56, 0.12); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.store-edit-faq legend { padding: 0 6px; font-size: 0.78rem; font-weight: 800; color: var(--forest); }
.store-edit-preview { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--light-green); color: rgba(32, 34, 31, 0.6); font-size: 0.82rem; text-align: center; }
.store-edit-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-edit-preview--banner { width: 100%; aspect-ratio: 4 / 1; border-radius: 12px; padding: 0; }
.store-edit-preview--banner span { padding: 10px; }
.store-edit-preview--logo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; font-family: var(--font-display); font-size: 2rem; color: var(--forest); }
.store-edit-dialog .btn--ghost { color: var(--forest); border-color: rgba(11, 70, 56, 0.25); }

@media (max-width: 560px) {
  .sp-owner-bar { flex-wrap: wrap; font-size: 0.8rem; }
  .sp-owner-bar__links { width: 100%; padding-left: 44px; }
  .sp-edit-btn--cover { right: 10px; bottom: 10px; padding: 7px 11px; font-size: 0.72rem; }
  .sp-edit-row .sp-btn, .sp-owner-tools .sp-btn { flex: 1 1 auto; }
}

/* Phones: two pieces per row on a store, like the shop. */
@media (max-width: 767px) {
  .store-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .store-products-grid .pcard { max-width: none; width: 100%; }
}
.sp-edit-row--pillars { margin: 28px 0 12px; }

/* iOS Safari zooms the whole page when a field with text under 16px is focused: keep every typing field at 16px on touch screens. */
@media (hover: none) and (pointer: coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]),
  select, textarea, [contenteditable=true]{ font-size:16px !important; }
}
