/* INTIMA Gate · theme part: content (store, payments, posts, studio, polls) */

/* Products */
.product-grid, .pay-grid, .post-grid, .studio-grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.product-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); }
.product-kind { position: absolute; top: 10px; inset-inline-start: 10px; font: 700 10.5px/1 var(--font-b);
  text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: 5px 10px; border-radius: 50px; background: rgba(36,31,43,.72); }
.media-count { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.6); color:#fff; font: 600 11px/1 var(--font-b); padding: 4px 8px; border-radius: 50px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-title { font: 700 17px/1.3 var(--font-b); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.product-loc { font-size: 13px; color: var(--ink-dim); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.product-price { font: 700 17px/1 var(--font-b); color: var(--ink); }
.product-cta { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; text-decoration: none;
  font: 600 14px/1 var(--font-b); padding: 10px 18px; border-radius: 50px; box-shadow: 0 4px 12px color-mix(in srgb,var(--accent) 30%,transparent); }
.product-cta:hover { filter: brightness(1.06); }

/* Payments */
.pay-grid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.pay-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-s); }
.pay-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.pay-icon img { width: 30px; height: 30px; object-fit: contain; }
.pay-title { font: 700 16px/1.3 var(--font-b); }
.pay-desc { font-size: 14px; color: var(--ink-soft); margin: 4px 0; }
.pay-detail { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pay-detail code { flex: 1; background: var(--surface-2); padding: 7px 10px; border-radius: 8px; font-size: 13px; direction: ltr; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { cursor: pointer; border: 1.5px solid var(--line-2); background: #fff; border-radius: 8px; padding: 7px 12px; font: 600 13px/1 var(--font-b); color: var(--accent); }
.copy-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Posts / content feed */
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
.post-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-s); }
.post-type { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; font: 700 9.5px/1 var(--font-b);
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); background: #fff; padding: 4px 9px; border-radius: 50px; box-shadow: var(--shadow-s); }
.post-cover { background: var(--surface-2); }
.post-cover img { width: 100%; display: block; }
.post-cover.post-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-cover.post-gallery img { aspect-ratio: 1; object-fit: cover; }
.post-video { position: relative; aspect-ratio: 16/9; background: #000; }
.post-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-link { display: flex; align-items: center; justify-content: center; height: 160px; color: #fff; text-decoration: none; font: 600 16px/1 var(--font-b); background: #1a1420; }
.post-body { padding: 16px; }
.post-title { font: 700 17px/1.3 var(--font-b); margin-bottom: 6px; }
.post-excerpt { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 8px; }
.post-text { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.post-text p { margin-bottom: 10px; }

/* Poll */
.poll { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.poll-opt { cursor: pointer; text-align: start; border: 1.5px solid var(--line-2); background: var(--surface-2);
  border-radius: 12px; padding: 12px 15px; font: 600 14.5px/1 var(--font-b); color: var(--ink); transition: all .18s; }
.poll-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.poll-result { position: relative; overflow: hidden; border-radius: 12px; padding: 12px 15px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-b); background: var(--surface-2); }
.poll-bar { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; }
.poll-label, .poll-pct { position: relative; z-index: 1; }
.poll-pct { margin-inline-start: auto; color: var(--accent); }
.poll-total { font-size: 12.5px; color: var(--ink-dim); }

/* Studio creators */
.studio-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
.studio-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 22px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; }
.studio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.studio-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent); }
.studio-av-ph { background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); }
.studio-name { font: 700 15px/1.2 var(--font-b); }
.studio-sub { font-size: 12.5px; color: var(--ink-soft); }

/* תגית מקור (ירושה) – קליקבילית */
.inherit-tag { display: inline-flex; align-items: center; font: 700 10px/1 var(--font-b); color: #fff;
  background: var(--accent2); padding: 4px 9px; border-radius: 50px; text-decoration: none; }
a.inherit-tag:hover { filter: brightness(1.1); }
.post-inh { position: static; margin-inline-start: 6px; }

/* ── WhatsApp buttons ── */
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; text-decoration: none;
  border: 0; border-radius: 50px; padding: 12px 22px; font: 600 15px/1 var(--font-b); cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,211,102,.32); transition: transform .15s, filter .15s; }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-wa svg { flex-shrink: 0; }
.btn-wa-sm { padding: 9px 12px; font-size: 13px; gap: 5px; box-shadow: none; }
.pay-wa { margin-top: 10px; }

/* ── clickable product / post cards ── */
.product-card-link, .product-media-link, .product-title-link { text-decoration: none; color: inherit; display: block; }
.product-media-link { position: relative; }
.product-card-link .product-media { aspect-ratio: 4/3; }
.product-card-link:hover .product-title, .product-title-link:hover { color: var(--accent); }
.product-actions { display: inline-flex; align-items: center; gap: 8px; }
.product-foot { flex-wrap: wrap; }

.post-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card-link .post-cover { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card-link .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-link:hover .post-title { color: var(--accent); }
.post-body { display: flex; flex-direction: column; gap: 6px; }
.post-readmore { margin-top: 4px; color: var(--accent); font: 600 13.5px/1 var(--font-b); }
.post-poll-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); }
.poll-emoji { font-size: 46px; }
.post-card-link .inherit-tag.post-inh { position: static; align-self: flex-start; }

/* ── single product page ── */
.back-link { display: inline-block; color: var(--ink-soft); text-decoration: none; font: 600 14px/1 var(--font-b); margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }
.single-product .sp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.sp-media .sp-main { width: 100%; border-radius: 20px; box-shadow: var(--shadow-m); object-fit: cover; }
.sp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sp-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sp-title { font: 700 clamp(24px,4vw,33px)/1.15 var(--font-b); letter-spacing: -0.01em; margin: 4px 0 8px; }
.sp-price { font: 700 26px/1 var(--font-b); color: var(--accent); margin: 12px 0; }
.sp-desc { color: var(--ink-soft); line-height: 1.8; font-size: 16px; margin: 12px 0; }
.sp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ── single post page ── */
.single-post { max-width: 720px; margin: 0 auto; }
.single-post .sp-kind { display: inline-block; font: 700 11px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent2); background: var(--accent2-soft); padding: 5px 11px; border-radius: 50px; }
.single-post .sp-title { font: 700 clamp(26px,5vw,40px)/1.12 var(--font-b); margin: 12px 0; }
.sp-gallery { display: grid; gap: 10px; margin: 18px 0; }
.sp-gallery img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-s); }
.sp-excerpt { font-size: 18px; color: var(--ink); font-weight: 500; line-height: 1.6; margin: 14px 0; }
.sp-body { font-size: 16.5px; line-height: 1.85; color: var(--ink-soft); }
.sp-body p { margin-bottom: 14px; } .sp-body h2,.sp-body h3 { color: var(--ink); margin: 18px 0 8px; }
.sp-body img { border-radius: 12px; margin: 12px 0; }

/* ── home widget ── */
.home-widget { margin-top: 26px; padding-top: 8px; }
.hw-posts { display: flex; flex-direction: column; gap: 10px; }
.hw-post { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-s); transition: transform .15s, border-color .15s; }
.hw-post:hover { transform: translateY(-2px); border-color: var(--accent); }
.hw-thumb { width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; }
.hw-thumb-ph { background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); }
.hw-post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hw-kind { font: 700 10px/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); }
.hw-title { font: 600 15.5px/1.35 var(--font-b); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hw-more { margin-top: 12px; text-align: center; }
.hw-more a { color: var(--accent); font: 600 14.5px/1 var(--font-b); text-decoration: none; }
.hw-more a:hover { text-decoration: underline; }

/* ── payment overflow fix (item 3) ── */
.pay-card { align-items: flex-start; }
.pay-body { min-width: 0; flex: 1; }
.pay-detail { flex-wrap: wrap; }
.pay-detail code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; white-space: normal; }

@media (max-width: 680px){ .single-product .sp-grid { grid-template-columns: 1fr; } }

/* ── אזור ירושה בעץ הקישורים (בורר יוצרות) ── */
.inherit-zone { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.iz-head { text-align: center; margin-bottom: 16px; }
.iz-badge { display: inline-block; font: 700 10px/1 var(--font-b); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg,var(--accent),var(--accent2)); padding: 5px 12px; border-radius: 50px; margin-bottom: 10px; }
.iz-note { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 380px; margin: 0 auto; }
.iz-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 18px; }
.iz-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 50px; padding: 6px 15px 6px 6px; font: 600 14px/1 var(--font-b);
  color: var(--ink); transition: all .18s var(--spring); }
.iz-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.iz-chip.is-active { border-color: transparent; background: linear-gradient(135deg,var(--accent-soft),var(--accent2-soft));
  box-shadow: 0 0 0 2px var(--accent) inset; }
.iz-chip-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.iz-ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; font: 700 13px/1 var(--font-b); }
.iz-panel { display: none; animation: fadeUp .35s var(--smooth) both; }
.iz-panel.is-active { display: block; }
.iz-creator { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 14px; margin-bottom: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.iz-creator:hover { border-color: var(--accent); }
.iz-creator-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-s); }
.iz-creator-info { display: flex; flex-direction: column; gap: 2px; }
.iz-creator-info strong { font: 700 15.5px/1.1 var(--font-b); color: var(--ink); }
.iz-visit { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.iz-panel .links { gap: 11px; }

/* ── תגית מקור (מוצר/פוסט בירושה) ── */
.origin-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--accent2-soft); border: 1px solid color-mix(in srgb,var(--accent2) 24%,transparent);
  border-radius: 50px; padding: 4px 12px 4px 4px; margin: 4px 0; }
.origin-chip:hover { border-color: var(--accent2); }
.oc-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.oc-ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; font: 700 11px/1 var(--font-b); }
.oc-txt { display: flex; flex-direction: column; line-height: 1.15; }
.oc-by { font-size: 10px; color: var(--ink-dim); }
.oc-nm { font: 700 12.5px/1 var(--font-b); color: var(--accent2); }
.post-origin { display: inline-block; margin-top: 6px; }
.origin-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.origin-note-txt { font-size: 13.5px; color: var(--ink-soft); flex: 1; min-width: 160px; }

/* ── תמונת פוסט: צפה לצד הטקסט בדסקטופ, חשיפה מתקפלת במובייל ── */
.sp-flow::after { content:''; display:block; clear:both; }
.sp-figure { margin: 14px 0 18px; border-radius: 16px; overflow: hidden; }
.sp-figure .sp-fig-body img { width:100%; display:block; }
.sp-figure-video { position: relative; aspect-ratio:16/9; background:#000; }
.sp-figure-video iframe { width:100%; height:100%; border:0; display:block; }

/* מובייל (ברירת מחדל): כפתור חשיפה מתקפל */
.sp-figure[data-figure] { background: var(--surface-2); border:1px solid var(--line); }
.sp-figure-toggle { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:15px; font:600 14.5px/1 var(--font-b); color:var(--accent); user-select:none; }
.sp-figure-toggle::-webkit-details-marker { display:none; }
.sp-figure-toggle .spft-ico { font-size:17px; }
.sp-figure[open] .sp-figure-toggle { border-bottom:1px solid var(--line); color:var(--ink-soft); }

/* דסקטופ: תמונה צפה לצד הטקסט (כמו מגזין) */
@media (min-width: 681px){
  .sp-figure { float: right; width: 42%; max-width: 360px; margin-block: 4px 14px;
    margin-inline-start: 26px; margin-inline-end: 0; border: 0; background: transparent; }
  [dir="rtl"] .sp-figure { float: left; }
  .sp-figure-toggle { display: none; }
  .sp-figure > .sp-fig-body { display: block !important; }
  .sp-figure .sp-fig-body img, .sp-figure-video { border-radius: 16px; box-shadow: var(--shadow-m); }
  .sp-figure-video { width: 42%; max-width: 360px; }
}
