/* ==========================================================================
   Boutique storefront (front page)
   Cover banner → overlapping shop profile → sticky in-shop bar →
   split catalog → info tabs → trust band & newsletter
   ========================================================================== */

/* Cover banner: the one expressive moment — a hand-mixed watercolor wash --- */
.tv-cover {
  position: relative;
  isolation: isolate;
  height: clamp(190px, 25vw, 330px);
  overflow: hidden;
  background: #f7efe4;
}
.tv-cover-filters { position: absolute; width: 0; height: 0; }
.tv-cover-wash { position: absolute; inset: -12% -6%; z-index: -2; filter: url(#tv-watercolor-edge); }
.tv-cover-wash span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(26px); }
.tv-cover-wash span:nth-child(1) { top: -28%; left: -4%; width: 44%; height: 130%; background: radial-gradient(closest-side, #f9c79e 0%, rgba(249, 199, 158, .55) 55%, transparent 100%); }
.tv-cover-wash span:nth-child(2) { top: 18%; left: 27%; width: 34%; height: 120%; background: radial-gradient(closest-side, #f5c6cf 0%, rgba(245, 198, 207, .5) 55%, transparent 100%); }
.tv-cover-wash span:nth-child(3) { top: -36%; left: 50%; width: 38%; height: 130%; background: radial-gradient(closest-side, #cfe0c3 0%, rgba(207, 224, 195, .55) 55%, transparent 100%); }
.tv-cover-wash span:nth-child(4) { top: 12%; right: -6%; width: 34%; height: 120%; background: radial-gradient(closest-side, #d8cff2 0%, rgba(216, 207, 242, .55) 55%, transparent 100%); }
.tv-cover-wash span:nth-child(5) { top: 58%; left: 10%; width: 26%; height: 90%; background: radial-gradient(closest-side, #fde4a6 0%, rgba(253, 228, 166, .5) 55%, transparent 100%); }
.tv-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .35 0 0 0 0 .27 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tv-cover.has-image::before { display: none; }
.tv-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tv-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, .5) 0%, rgba(15, 23, 42, .14) 46%, transparent 72%);
}
.tv-cover-inner { display: flex; flex-direction: column; justify-content: center; height: 100%; padding-bottom: 56px; }
.tv-cover-greeting {
  margin: 0;
  color: var(--tv-color-text-main);
  font-family: var(--tv-font-script);
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 700;
  line-height: .95;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
.tv-cover-subline {
  max-width: 44ch;
  margin: 14px 0 0;
  color: #57534e;
  font-size: clamp(.92rem, 1.4vw, 1.06rem);
  font-weight: 600;
  line-height: 1.5;
}
.tv-cover.has-image .tv-cover-greeting,
.tv-cover.has-image .tv-cover-subline { color: #ffffff; text-shadow: 0 2px 20px rgba(0, 0, 0, .28); }

/* Shop profile identity bar ------------------------------------------------- */
.tv-shop-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 26px;
  margin-top: -64px;
  padding: 22px 26px;
  border: 1px solid var(--tv-color-border);
  border-radius: var(--tv-radius-panel);
  background: var(--tv-color-surface);
  box-shadow: var(--tv-shadow-md);
}
.tv-shop-avatar {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 0 0 4px var(--tv-color-surface), 0 0 0 5px var(--tv-color-border);
}
.tv-shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tv-shop-monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--tv-color-primary);
  font-family: var(--tv-font-heading);
  font-size: 2.1rem;
  font-weight: 800;
}
.tv-shop-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tv-shop-name { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; }
.tv-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px 3px 4px;
  border-radius: var(--tv-radius-pill);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.tv-verified .tv-icon { color: #2563eb; }
.tv-shop-subtitle { margin: 4px 0 0; color: var(--tv-color-text-main); font-weight: 600; }
.tv-shop-description { max-width: 72ch; margin: 4px 0 0; color: var(--tv-color-text-muted); font-size: 14px; }
.tv-shop-stats { display: flex; flex-wrap: wrap; gap: 8px 25px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--tv-color-text-muted); font-size: 13.5px; }
.tv-shop-stat { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.tv-shop-stat + .tv-shop-stat::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 1px;
  height: 14px;
  background: var(--tv-color-border);
  transform: translateY(-50%);
}
.tv-shop-stat strong { color: var(--tv-color-text-main); font-weight: 800; }
.tv-shop-actions { display: flex; flex-direction: column; gap: 10px; align-self: start; min-width: 228px; }

/* Instagram Follow / Facebook Like */
.tv-shop-social { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tv-shop-social.has-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--tv-radius-button);
  color: #ffffff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--tv-ease), box-shadow .2s var(--tv-ease), background-color .2s var(--tv-ease), color .2s var(--tv-ease), border-color .2s var(--tv-ease);
}
.tv-social-btn:hover { color: #ffffff; transform: translateY(-1px); }
.tv-social-btn-icon, .tv-social-btn-check { display: inline-flex; }
.tv-social-btn-check { display: none; }
.tv-social-btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 10px 22px -14px rgba(204, 35, 102, .95);
}
.tv-social-btn--facebook { background: #1877f2; box-shadow: 0 10px 22px -14px rgba(24, 119, 242, .95); }
.tv-social-btn--facebook:hover { background: #0f66d8; }
.tv-social-btn.is-active { background: var(--tv-color-surface); box-shadow: none; }
.tv-social-btn--instagram.is-active { border-color: #e1306c; color: #c13584; }
.tv-social-btn--facebook.is-active { border-color: #1877f2; color: #1877f2; }
.tv-social-btn.is-active .tv-social-btn-icon { display: none; }
.tv-social-btn.is-active .tv-social-btn-check { display: inline-flex; }
.tv-social-btn.is-placeholder { opacity: .5; outline: 1.5px dashed var(--tv-color-border-hover); outline-offset: 2px; cursor: help; }

/* Sticky in-shop navigation ------------------------------------------------- */
.tv-shop-tabs {
  position: sticky;
  top: var(--tv-sticky-top);
  z-index: 40;
  margin-top: 28px;
  border-block: 1px solid var(--tv-color-border);
  background: color-mix(in srgb, var(--tv-color-bg) 94%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: top .32s var(--tv-ease);
}
.tv-shop-tabs-inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.tv-shop-search { position: relative; flex: 0 1 340px; }
.tv-shop-search > .tv-icon { position: absolute; top: 50%; left: 15px; color: var(--tv-color-text-muted); pointer-events: none; transform: translateY(-50%); }
.tv-shop-search input[type="search"] { height: 42px; min-height: 42px; padding-right: 42px; padding-left: 43px; border-radius: var(--tv-radius-pill); }
.tv-shop-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--tv-color-divider);
  color: var(--tv-color-text-muted);
  transform: translateY(-50%);
}
.tv-shop-search-clear:hover { background: var(--tv-color-border); color: var(--tv-color-text-main); }
.tv-shop-pills { display: flex; flex: 1; gap: 8px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.tv-shop-pills::-webkit-scrollbar { display: none; }

/* Split catalog ------------------------------------------------------------- */
.tv-catalog {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding-block: 28px 56px;
  scroll-margin-top: calc(var(--tv-sticky-top) + var(--tv-shop-tabs-h, 68px));
}
.tv-catalog-sidebar { position: sticky; top: calc(var(--tv-sticky-top) + var(--tv-shop-tabs-h, 68px) + 20px); transition: top .32s var(--tv-ease); }
.tv-catalog-sidebar .tv-cat-list { max-height: calc(100vh - var(--tv-sticky-top) - var(--tv-shop-tabs-h, 68px) - 120px); overflow-y: auto; scrollbar-width: thin; }
.tv-catalog.is-loading .tv-product-grid { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* Info tabs ----------------------------------------------------------------- */
.tv-info-tabs { margin: 8px 0 64px; }
.tv-reviews-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.tv-reviews-score { color: var(--tv-color-text-main); font-family: var(--tv-font-heading); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tv-reviews-summary .tv-stars { font-size: 18px; }
.tv-reviews-based { margin: 6px 0 0; color: var(--tv-color-text-muted); font-size: 13.5px; }
.tv-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tv-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--tv-color-divider);
  border-radius: 18px;
  background: var(--tv-color-muted-bg);
}
.tv-review-quote { margin: 0; color: var(--tv-color-text-body); font-size: 14.5px; line-height: 1.65; }
.tv-review-quote p { margin: 0; }
.tv-review-meta { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; font-size: 13px; }
.tv-review-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 800;
}
.tv-review-who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.tv-review-author { color: var(--tv-color-text-main); font-weight: 700; }
.tv-review-verified { display: inline-flex; align-items: center; gap: 4px; color: #047857; font-size: 12px; font-weight: 700; }
.tv-review-product { flex-basis: 100%; overflow: hidden; color: var(--tv-color-text-muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tv-review-product:hover { color: var(--tv-color-text-main); text-decoration: underline; }

.tv-about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.tv-about.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.tv-about-photo { margin: 0; }
.tv-about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.tv-about-name { margin: 0; font-size: 1.5rem; font-weight: 800; }
.tv-about-role { margin: 2px 0 16px; color: var(--tv-color-text-muted); font-weight: 600; }
.tv-about-bio { max-width: 64ch; color: var(--tv-color-text-body); font-size: 1rem; line-height: 1.75; }
.tv-about-quote {
  max-width: 30ch;
  margin: 22px 0 0;
  color: var(--tv-color-text-main);
  font-family: var(--tv-font-script);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.tv-policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.tv-policy { padding: 20px; border: 1px solid var(--tv-color-border); border-radius: 18px; }
.tv-policy-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.02rem; }
.tv-policy-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tv-badge-popular-bg); color: var(--tv-badge-popular-text); }
.tv-policy p { margin: 0; color: var(--tv-color-text-body); font-size: 14.5px; }
.tv-faq { max-width: 860px; margin-top: 32px; }
.tv-faq-title { margin: 0 0 6px; font-size: 1.15rem; }
.tv-faq-item { border-bottom: 1px solid var(--tv-color-border); }
.tv-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--tv-color-text-main);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.tv-faq-item summary::-webkit-details-marker { display: none; }
.tv-faq-item summary::after { content: "+"; color: var(--tv-color-text-muted); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s var(--tv-ease); }
.tv-faq-item[open] summary::after { transform: rotate(45deg); }
.tv-faq-answer { max-width: 70ch; padding-bottom: 14px; color: var(--tv-color-text-body); }
.tv-faq-answer p:last-child { margin-bottom: 0; }

/* Trust band & newsletter --------------------------------------------------- */
.tv-trust-band { padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--tv-color-border); background: var(--tv-color-surface); }
.tv-trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 44px; padding: 0; list-style: none; }
.tv-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.tv-trust-icon { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tv-badge-popular-bg); color: var(--tv-badge-popular-text); }
.tv-trust-title { margin: 3px 0 4px; font-size: 1rem; }
.tv-trust-item p { margin: 0; color: var(--tv-color-text-muted); font-size: 14px; }
.tv-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 22px 40px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--tv-radius-panel);
  background: var(--tv-color-primary);
  color: var(--tv-color-on-primary);
}
.tv-newsletter-title { margin: 0 0 6px; color: inherit; font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; }
.tv-newsletter-copy p { margin: 0; opacity: .78; }
.tv-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.tv-newsletter-form input[type="email"] {
  flex: 1 1 220px;
  height: 52px;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
}
.tv-newsletter-form input[type="email"]::placeholder { color: inherit; opacity: .55; }
.tv-newsletter-form .tv-btn { min-height: 52px; padding-inline: 28px; }
.tv-newsletter-status { flex-basis: 100%; min-height: 1.4em; margin: 0; font-size: 13.5px; }
.tv-newsletter-status[data-state="success"] { color: #6ee7b7; }
.tv-newsletter-status[data-state="error"] { color: #fda4af; }
.tv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1023px) {
  .tv-catalog { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .tv-catalog-sidebar { position: static; }
  .tv-catalog-sidebar .tv-cat-list { max-height: none; }
}
@media (max-width: 860px) {
  .tv-trust-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tv-newsletter { grid-template-columns: minmax(0, 1fr); }
  .tv-about { grid-template-columns: minmax(0, 1fr); }
  .tv-about-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .tv-cover-inner { padding-bottom: 48px; }
  .tv-shop-header { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; margin-top: -44px; padding: 18px; }
  .tv-shop-avatar { width: 64px; height: 64px; }
  .tv-shop-description { display: none; }
  .tv-shop-actions { grid-column: 1 / -1; min-width: 0; }
  .tv-shop-stats { gap: 6px 16px; }
  .tv-shop-stat + .tv-shop-stat::before { display: none; }
  .tv-shop-tabs { margin-top: 20px; }
  .tv-shop-tabs-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 10px; }
  .tv-shop-search { flex: none; }
  .tv-shop-pills { margin-inline: calc(-1 * var(--tv-gutter)); padding-inline: var(--tv-gutter); }
}
